/* ==========================================================================
   Wyniki wyszukiwania produktów + filtry (template-parts/search_product.php)
   Kolorystyka: neutralne ciemne szarości, akcent marki #c8102e.
   ========================================================================== */
.amix-sr {
  --hs-red: #c8102e;
  --hs-red-ink: #a50b22;
  --hs-red-soft: #fff1f3;
  --hs-ink: #222222;
  --hs-text: #404040;
  --hs-muted: #737373;
  --hs-line: #e6e6e6;
  --hs-bg: #f6f6f6;
  padding: 18px 0 64px;
  background: #fff;
  color: var(--hs-text);
  font-family: inherit;
}
.amix-sr *, .amix-sr *::before, .amix-sr *::after { box-sizing: border-box; }
.amix-sr__inner { width: min(100% - 40px, 1400px); margin: 0 auto; }
.amix-sr__crumbs:empty { display: none; }
.amix-sr__crumbs { margin-bottom: 8px; font-size: 13px; }

/* Nagłówek */
.amix-sr__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--hs-line); }
.amix-sr__head h1 { margin: 0; color: var(--hs-ink); font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.amix-sr__count { margin: 0; color: var(--hs-muted); font-size: 15px; }

/* Układ */
.amix-sr__layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.amix-sr__main { min-width: 0; }

/* Panel filtrów (desktop: kolumna, przyklejona) */
.amix-sr__filters { position: sticky; top: var(--amix-sr-top, 16px); max-height: calc(100vh - var(--amix-sr-top, 16px) - 16px); margin: 0; display: flex; flex-direction: column; }
.amix-sr__filters-head, .amix-sr__filters-foot, .amix-sr__backdrop { display: none; }
.amix-sr__filters-body { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #cfcfcf transparent; }

.amix-sr-group { border-bottom: 1px solid var(--hs-line); }
.amix-sr-group > summary { display: flex; align-items: center; gap: 8px; padding: 14px 2px; color: var(--hs-ink); font-size: 15px; font-weight: 750; cursor: pointer; list-style: none; user-select: none; }
.amix-sr-group > summary::-webkit-details-marker { display: none; }
.amix-sr-group > summary > span { flex: 1; }
.amix-sr-group > summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #7a7a7a; border-bottom: 2px solid #7a7a7a; transform: rotate(45deg) translateY(-3px); transition: transform .18s ease; }
.amix-sr-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.amix-sr-group > summary:focus-visible { outline: 2px solid var(--hs-red); outline-offset: 2px; border-radius: 4px; }
.amix-sr-group__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hs-ink); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 800; }
.amix-sr-group__body { padding: 0 0 14px; }
.amix-sr-group__find { width: 100%; height: 38px; margin: 0 0 8px; padding: 0 12px; border: 1px solid #dcdcdc; border-radius: 8px; background: #fff; color: var(--hs-ink); font: inherit; font-size: 13.5px; outline: 0; }
.amix-sr-group__find:focus { border-color: var(--hs-ink); }

.amix-sr-opts { margin: 0; padding: 0; list-style: none; }
.amix-sr-opts li { margin: 0; padding: 0; list-style: none; }
.amix-sr-opts.is-collapsed li:nth-child(n+7) { display: none; }
.amix-sr-opts li.is-filtered-out { display: none !important; }
.amix-sr-opt, .amix-sr-switch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; color: var(--hs-text); font-size: 14px; line-height: 1.3; cursor: pointer; }
.amix-sr-opt:hover, .amix-sr-switch:hover { background: var(--hs-bg); }
.amix-sr-opt input, .amix-sr-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.amix-sr-opt__box { flex: none; position: relative; width: 18px; height: 18px; border: 1.5px solid #bdbdbd; border-radius: 5px; background: #fff; transition: background .15s, border-color .15s; }
.amix-sr-opt input:checked + .amix-sr-opt__box { border-color: var(--hs-ink); background: var(--hs-ink); }
.amix-sr-opt input:checked + .amix-sr-opt__box::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.amix-sr-opt input:focus-visible + .amix-sr-opt__box, .amix-sr-switch input:focus-visible + .amix-sr-switch__track { outline: 2px solid var(--hs-red); outline-offset: 2px; }
.amix-sr-opt input:checked ~ .amix-sr-opt__label { color: var(--hs-ink); font-weight: 650; }
.amix-sr-opt__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.amix-sr-opt__count { flex: none; color: #8a8a8a; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.amix-sr-opt.is-zero { opacity: .45; }
.amix-sr-more { margin: 4px 0 0; padding: 4px 0; border: 0; background: none; color: var(--hs-ink); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.amix-sr-more:hover { color: var(--hs-red-ink); }

/* Cena */
.amix-sr-price { display: flex; align-items: flex-end; gap: 6px; }
.amix-sr-price label { position: relative; flex: 1; min-width: 0; margin: 0; }
.amix-sr-price label > span { display: block; margin-bottom: 4px; color: var(--hs-muted); font-size: 12px; font-weight: 600; }
.amix-sr-price input { width: 100%; height: 40px; margin: 0; padding: 0 28px 0 10px; border: 1px solid #dcdcdc; border-radius: 8px; background: #fff; color: var(--hs-ink); font: inherit; font-size: 14px; outline: 0; -moz-appearance: textfield; }
.amix-sr-price input::-webkit-outer-spin-button, .amix-sr-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amix-sr-price input:focus { border-color: var(--hs-ink); }
.amix-sr-price i { position: absolute; right: 10px; bottom: 11px; color: #8a8a8a; font-size: 12.5px; font-style: normal; pointer-events: none; }
.amix-sr-price__sep { padding-bottom: 10px; color: #8a8a8a; }
.amix-sr-price__go { flex: none; height: 40px; padding: 0 12px; border: 1px solid var(--hs-ink); border-radius: 8px; background: var(--hs-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.amix-sr-price__go:hover { background: #000; }
.amix-sr-price__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.amix-sr-chipbtn { min-height: 32px; padding: 0 11px; border: 1px solid #dcdcdc; border-radius: 16px; background: #fff; color: var(--hs-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.amix-sr-chipbtn:hover { border-color: var(--hs-ink); }
.amix-sr-chipbtn.is-on { border-color: var(--hs-ink); background: var(--hs-ink); color: #fff; }

/* Przełączniki: dostępne / promocje */
.amix-sr-toggles { padding: 10px 0; border-bottom: 1px solid var(--hs-line); }
.amix-sr-switch__track { flex: none; position: relative; width: 34px; height: 20px; border-radius: 10px; background: #cfcfcf; transition: background .18s; }
.amix-sr-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.amix-sr-switch input:checked + .amix-sr-switch__track { background: var(--hs-ink); }
.amix-sr-switch input:checked + .amix-sr-switch__track::after { transform: translateX(14px); }

/* Pasek nad listą */
.amix-sr__toolbar { display: flex; align-items: center; gap: 10px 16px; min-height: 42px; }
.amix-sr__open { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--hs-ink); border-radius: 10px; background: #fff; color: var(--hs-ink); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.amix-sr__open svg { width: 18px; height: 18px; }
.amix-sr__open em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hs-red); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 800; }
.amix-sr__sort { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; flex: none; color: var(--hs-muted); font-size: 13.5px; }
.amix-sr__sort select { height: 42px; padding: 0 34px 0 12px; border: 1px solid #dcdcdc; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--hs-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none; outline: 0; }
.amix-sr__sort select:focus-visible { border-color: var(--hs-ink); box-shadow: 0 0 0 3px rgba(34,34,34,.12); }

/* Wybrane filtry */
.amix-sr__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.amix-sr__chips li { flex: none; }
.amix-sr__chips li { margin: 0; list-style: none; }
.amix-sr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 12px; border-radius: 16px; background: #efefef; color: var(--hs-ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.amix-sr-chip:hover { background: #e2e2e2; }
.amix-sr-chip svg { width: 14px; height: 14px; }
.amix-sr__clear-all { color: var(--hs-ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.amix-sr__clear-all:hover { color: var(--hs-red-ink); }

/* Siatka produktów */
.amix-sr__grid { margin-top: 16px; }
.amix-sr__grid ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.amix-sr__grid ul.products::before, .amix-sr__grid ul.products::after { display: none !important; }
.amix-sr__grid ul.products li.product { float: none !important; width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; }
@media (min-width: 1500px) { .amix-sr__grid ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Paginacja */
.amix-sr__pages { margin-top: 32px; }
.amix-sr__pages ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.amix-sr__pages ul.page-numbers li { margin: 0; border: 0; list-style: none; }
.amix-sr__pages li > a.page-numbers, .amix-sr__pages li > span.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid #dcdcdc; border-radius: 10px; color: var(--hs-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.amix-sr__pages li > a.page-numbers:hover { border-color: var(--hs-ink); }
.amix-sr__pages .page-numbers span.current { border-color: var(--hs-ink); background: var(--hs-ink); color: #fff; }
.amix-sr__pages .page-numbers span.dots { border: 0; }
.amix-sr__pages .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.amix-sr .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Puste stany */
.amix-sr__none, .amix-sr__empty { margin-top: 18px; padding: 28px; border: 1px solid var(--hs-line); border-radius: 14px; background: #fafafa; }
.amix-sr__none h2, .amix-sr__empty h2 { margin: 0 0 6px; color: var(--hs-ink); font-size: 20px; font-weight: 800; }
.amix-sr__none p, .amix-sr__empty p { margin: 0 0 16px; color: var(--hs-muted); font-size: 14.5px; line-height: 1.55; }
.amix-sr__btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--hs-ink); color: #fff !important; font-size: 14px; font-weight: 750; text-decoration: none; }
.amix-sr__btn:hover { background: #000; }
.amix-sr__empty-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.amix-sr__empty-cats li { margin: 0; list-style: none; }
.amix-sr__empty-cats a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 19px; background: #fff; color: var(--hs-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.amix-sr__empty-cats a:hover { border-color: var(--hs-ink); }
.amix-sr__advisor { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #222222; color: #fff !important; text-decoration: none; }
.amix-sr__advisor:hover { background: #111; }
.amix-sr__advisor > span { flex: 1; min-width: 0; }
.amix-sr__advisor strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.amix-sr__advisor small { display: block; margin-top: 2px; color: #bdbdbd; font-size: 13px; }
.amix-sr__advisor b { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; background: var(--hs-red); color: #fff; font-size: 13.5px; font-weight: 800; white-space: nowrap; }

/* Stare elementy szablonu archiwum niepotrzebne na tej stronie */
.amix-sr-search .categories_left_slide, .amix-sr-search .back_blac1k { display: none !important; }

/* Tablet */
@media (max-width: 1200px) {
  .amix-sr__grid ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile/tablet: filtry w wysuwanym panelu */
@media (max-width: 1000px) {
  .amix-sr__layout { display: block; margin-top: 14px; }
  .amix-sr__toolbar { justify-content: space-between; position: sticky; top: var(--amix-sr-top-m, 0px); z-index: 20; margin: 0 -20px; padding: 8px 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
  .amix-sr__open { display: inline-flex; }
  .amix-sr__toolbar { flex-wrap: wrap; }
  .amix-sr__chips { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .amix-sr__chips::-webkit-scrollbar { display: none; }
  .amix-sr__sort > span { display: none; }
  .amix-sr__sort select { max-width: 52vw; }
  .amix-sr__filters { position: fixed; z-index: 100001; top: 0; right: 0; bottom: 0; width: min(420px, 100%); max-height: none; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .amix-sr__filters.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .amix-sr__filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--hs-line); }
  .amix-sr__filters-head h2 { margin: 0; color: var(--hs-ink); font-size: 18px; font-weight: 800; }
  .amix-sr__icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--hs-ink); cursor: pointer; }
  .amix-sr__icon-btn:hover { background: var(--hs-bg); }
  .amix-sr__icon-btn svg { width: 22px; height: 22px; }
  .amix-sr__filters-body { flex: 1; padding: 0 20px; }
  .amix-sr__filters-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hs-line); background: #fff; }
  .amix-sr__clear { flex: none; padding: 0 6px; color: var(--hs-ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  .amix-sr__apply { flex: 1; height: 48px; border: 0; border-radius: 10px; background: var(--hs-red); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
  .amix-sr__apply:hover { background: var(--hs-red-ink); }
  .amix-sr__apply:disabled { background: #9a9a9a; cursor: default; }
  .amix-sr__backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.42); }
  html.amix-sr-lock, html.amix-sr-lock body { overflow: hidden; }
  .amix-sr-opt, .amix-sr-switch { min-height: 42px; }
}

@media (max-width: 640px) {
  .amix-sr { padding-top: 12px; }
  .amix-sr__inner { width: min(100% - 28px, 1400px); }
  .amix-sr__head { padding-bottom: 12px; }
  .amix-sr__head h1 { font-size: 22px; }
  .amix-sr__count { font-size: 14px; }
  .amix-sr__toolbar { margin: 0 -14px; padding: 8px 14px; }
  .amix-sr__grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .amix-sr__none, .amix-sr__empty { padding: 20px 16px; }
  .amix-sr__advisor { flex-wrap: wrap; }
  .amix-sr__advisor b { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Karta produktu w sekcjach strony głównej (rails) – wersja dopracowana
   Jednakowa wysokość, 2 linie tytułu, przyciski w jednej linii, czytelne
   etykiety zamiast grafik, cena z przekreśleniem przy promocji.
   ========================================================================== */
.amix-sr .amix-sr__grid ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e9e9e9 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.amix-sr .amix-sr__grid ul.products li.product:hover {
  border-color: #d6d6d6 !important;
  box-shadow: 0 12px 28px rgba(35, 35, 35, .08) !important;
  transform: translateY(-2px);
}
.amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link {
  position: relative;
  display: flex !important;
  flex-wrap: wrap;
  align-content: flex-start;
  flex: 1 1 auto;
  padding: 12px 14px 4px !important;
  color: var(--hs-ink) !important;
  font-size: 0; /* ukrywa luźne &nbsp; z szablonu */
  text-decoration: none !important;
}
.amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link > * { font-size: 14px; }
.amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link > style { display: none !important; }

/* Zdjęcie */
.amix-sr .amix-sr__grid li.product .two_image_hover_pp {
  order: 1;
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  margin: 0 0 12px !important;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.amix-sr .amix-sr__grid li.product .two_image_hover_pp img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  transition: transform .3s ease;
}
.amix-sr .amix-sr__grid li.product:hover .two_image_hover_pp img { transform: scale(1.04); }

/* Tytuł: zawsze 2 linie */
.amix-sr .amix-sr__grid li.product .woocommerce-loop-product__title {
  order: 2;
  display: -webkit-box !important;
  width: 100%;
  min-height: calc(1.4em * 2);
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--hs-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Ocena */
.amix-sr .amix-sr__grid li.product .rating_per_g { order: 3; width: 100%; min-height: 18px; margin: 0 0 10px !important; }
.amix-sr .amix-sr__grid li.product .rating_per_g.is-empty { visibility: hidden; }
.amix-sr .amix-sr__grid li.product .star_oceny ul { display: flex !important; align-items: center; gap: 2px; margin: 0 !important; padding: 0 !important; justify-content: flex-start !important; }
.amix-sr .amix-sr__grid li.product .star_oceny li { width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none; line-height: 1; }
.amix-sr .amix-sr__grid li.product .star_oceny li svg { width: 13px !important; height: 13px !important; }
.amix-sr .amix-sr__grid li.product .star_oceny .count_rating { margin-left: 5px !important; color: var(--hs-muted) !important; font-size: 12.5px !important; font-weight: 500 !important; }
.amix-sr .amix-sr__grid li.product .star_oceny .count_rating::before { content: '('; }
.amix-sr .amix-sr__grid li.product .star_oceny .count_rating::after { content: ')'; }
.amix-sr .amix-sr__grid li.product .star_oceny .rating_avg { margin: 0 4px 0 0 !important; color: #222 !important; font-size: 13px !important; font-weight: 700 !important; }

/* Cena + rabat w jednym wierszu */
.amix-sr .amix-sr__grid li.product .price {
  order: 4;
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 !important;
  color: var(--hs-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
.amix-sr .amix-sr__grid li.product .price del { order: 2; color: var(--hs-muted) !important; font-size: 13px !important; font-weight: 500 !important; opacity: 1 !important; }
.amix-sr .amix-sr__grid li.product .price ins { order: 1; color: var(--hs-red-ink) !important; text-decoration: none !important; background: none !important; font-weight: 800 !important; }
.amix-sr .amix-sr__grid li.product .saved-sale {
  order: 5;
  position: static !important;
  align-self: center;
  margin: 0 0 0 auto !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  background: var(--hs-red-soft) !important;
  color: var(--hs-red-ink) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
.amix-sr .amix-sr__grid li.product .saved-sale.is-empty { display: none !important; }

/* Etykiety: tekst zamiast grafik */
.amix-sr .amix-sr__grid li.product .bestseller_flash1,
.amix-sr .amix-sr__grid li.product .onsale {
  position: absolute !important;
  z-index: 2;
  top: 20px !important;
  left: 22px !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  background: var(--hs-ink) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: none !important;
  pointer-events: none;
}
.amix-sr .amix-sr__grid li.product .bestseller_flash1 img { display: none !important; }
.amix-sr .amix-sr__grid li.product .bestseller_flash1:not(.bestseller_flash2)::before { content: 'Bestseller'; }
.amix-sr .amix-sr__grid li.product .bestseller_flash2 { left: auto !important; right: 22px !important; background: #e8f6ee !important; color: #157a43 !important; }
.amix-sr .amix-sr__grid li.product .bestseller_flash2::before { content: 'Darmowa dostawa'; }
.amix-sr .amix-sr__grid li.product .onsale { background: var(--hs-red) !important; font-size: 0 !important; }
.amix-sr .amix-sr__grid li.product .onsale::before { content: 'Promocja'; font-size: 11px; }

/* Przycisk */
.amix-sr .amix-sr__grid li.product > a.button,
.amix-sr .amix-sr__grid li.product > a.added_to_cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 42px;
  margin: 10px 14px 14px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--hs-ink) !important;
  border-radius: 10px !important;
  background: var(--hs-ink) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.amix-sr .amix-sr__grid li.product > a.button, .amix-sr .amix-sr__grid li.product > a.added_to_cart { text-decoration: none !important; }
.amix-sr .amix-sr__grid li.product > a.button:hover,
.amix-sr .amix-sr__grid li.product > a.button:focus-visible { border-color: var(--hs-red) !important; background: var(--hs-red) !important; color: #fff !important; }
.amix-sr .amix-sr__grid li.product > a.button.loading { opacity: .6; }
.amix-sr .amix-sr__grid li.product > a.added_to_cart { margin-top: -6px !important; border: 0 !important; color: var(--hs-red-ink) !important; min-height: 0; }

/* Linia Black Line: bez czarnej karty, wyróżnienie dyskretne */
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line { background: #fff !important; }
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line * { color: inherit; }
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .woocommerce-loop-product__title,
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .price { color: var(--hs-ink) !important; }
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .two_image_hover_pp { background: #111 !important; }
/* Dodatkowy CSS w Customizerze barwi na biało wszystko w li.product_cat-amix-black-line a * - przywracamy kolory nazwy i ceny */
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .pn-main,
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .price .woocommerce-Price-amount,
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .price .woocommerce-Price-amount * { color: inherit !important; }
.amix-sr .amix-sr__grid li.product.product_cat-amix-black-line .pn-desc { color: #5c5c5c !important; }

@media (max-width: 640px) {
  .amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link { padding: 10px 10px 2px !important; }
  .amix-sr .amix-sr__grid li.product .woocommerce-loop-product__title { font-size: 13px !important; }
  .amix-sr .amix-sr__grid li.product .price { font-size: 15.5px !important; }
  .amix-sr .amix-sr__grid li.product .bestseller_flash1,
  .amix-sr .amix-sr__grid li.product .onsale { top: 16px !important; left: 16px !important; padding: 3px 6px !important; font-size: 10px !important; }
  .amix-sr .amix-sr__grid li.product .bestseller_flash2 { left: auto !important; right: 16px !important; }
  .amix-sr .amix-sr__grid li.product .bestseller_flash2::before { content: 'Dostawa 0 zł'; }
  .amix-sr .amix-sr__grid li.product .onsale { font-size: 0 !important; }
  .amix-sr .amix-sr__grid li.product .onsale::before { font-size: 10px; }
  .amix-sr .amix-sr__grid li.product > a.button,
  .amix-sr .amix-sr__grid li.product > a.added_to_cart { min-height: 40px; margin: 8px 10px 10px !important; font-size: 12.5px !important; }
  .amix-sr .amix-sr__grid li.product:hover { transform: none; }
}

/* ==========================================================================
   Kategorie i tagi produktów (archive-product.php)
   ========================================================================== */
.amix-sr--tax { padding: 8px 0 48px; }
.amix-sr__layout--nofilters { grid-template-columns: minmax(0, 1fr); }
.amix-sr__tcount { margin: 0; color: var(--hs-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 1000px) {
  .amix-sr--tax .amix-sr__toolbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 640px) {
  .amix-sr--tax .amix-sr__tcount { display: none; }
  .amix-sr--tax .amix-sr__toolbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
.amix-sr__filters[hidden] { display: none !important; }
@media (min-width: 1001px) {
  .amix-sr__layout--nofilters .amix-sr__grid ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .amix-sr__layout--nofilters .amix-sr__grid ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Nagłówek kategorii (sam tytuł) i „Popularne w tej kategorii” przeniesione pod listę produktów */
.amix-sr-tax .produkt_six_pp.top_kat_custom { background-color: #f6f6f6 !important; }
.amix-sr-tax .produkt_six_pp.top_kat_custom:not(.amix-cat-popular) { padding-bottom: 20px !important; }
.amix-sr-tax .amix-cat-popular { margin-top: 8px; padding: 32px 0 40px !important; }
.amix-cat-popular__title { margin: 0 0 16px; color: #222222; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
@media (max-width: 640px) {
  .amix-sr-tax .amix-cat-popular { padding: 24px 0 28px !important; }
  .amix-cat-popular__title { font-size: 20px; margin-bottom: 12px; }
}

/* Etykiety na karcie: jedna kolumna przy lewej krawędzi zdjęcia (Promocja → Bestseller → Darmowa dostawa),
   bez nachodzenia na siebie przy wąskich kartach; wszystkie tej samej wysokości. */
.amix-sr .amix-sr__grid li.product .onsale,
.amix-sr .amix-sr__grid li.product .bestseller_flash1 {
  display: inline-flex !important;
  align-items: center;
  height: 22px !important;
  padding: 0 8px !important;
  left: 22px !important;
  right: auto !important;
  top: 20px !important;
  bottom: auto !important;
  transform: none !important;
  white-space: nowrap;
}
.amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash1:not(.bestseller_flash2),
.amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash2,
.amix-sr .amix-sr__grid li.product:has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 48px !important; }
.amix-sr .amix-sr__grid li.product:has(.onsale):has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 76px !important; }

/* Cena i rabat w jednej linii: przekreślona cena przechodzi pod aktualną, „-7%” zostaje po prawej */
.amix-sr .amix-sr__grid li.product .price { flex: 1 1 50%; min-width: 0; }
.amix-sr .amix-sr__grid li.product .saved-sale { flex: none; }

@media (max-width: 640px) {
  .amix-sr .amix-sr__grid li.product .onsale,
  .amix-sr .amix-sr__grid li.product .bestseller_flash1 { height: 20px !important; padding: 0 6px !important; left: 16px !important; top: 16px !important; }
  .amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash1:not(.bestseller_flash2),
  .amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash2,
  .amix-sr .amix-sr__grid li.product:has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 40px !important; }
  .amix-sr .amix-sr__grid li.product:has(.onsale):has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 64px !important; }
}

/* Równe karty w rzędzie: ta sama wysokość, cena zawsze na tej samej linii, przycisk przyklejony do dołu */
.amix-sr .amix-sr__grid ul.products { align-items: stretch !important; grid-auto-rows: auto; }
.amix-sr .amix-sr__grid ul.products li.product { align-self: stretch !important; height: auto !important; min-height: 0 !important; }
.amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link { flex: 1 1 auto !important; align-content: flex-start !important; }
.amix-sr .amix-sr__grid li.product .rating_per_g { min-height: 18px !important; }
.amix-sr .amix-sr__grid li.product .price { min-height: 42px; align-content: flex-start; }
.amix-sr .amix-sr__grid li.product > a.button,
.amix-sr .amix-sr__grid li.product > a.added_to_cart { margin-top: auto !important; }
.amix-sr .amix-sr__grid li.product > a.added_to_cart { margin-top: -6px !important; }

/* Po zastosowaniu filtra strona przewija się do wyników (pod przyklejony nagłówek) */
#amix-sr-wyniki { scroll-margin-top: calc(var(--amix-sr-top-m, 0px) + 12px); }

/* ==========================================================================
   Przycisk na karcie: zamiast czarnego paska – okrągły „+” w rogu zdjęcia (styl SFD).
   Produkt prosty: dodaje do koszyka od razu (AJAX WooCommerce), z wariantami: otwiera produkt.
   ========================================================================== */
.amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link { padding-bottom: 16px !important; }
.amix-sr .amix-sr__grid li.product > a.button {
  position: absolute !important; z-index: 3; top: 16px; right: 16px; left: auto !important; bottom: auto !important;
  display: block !important; width: 44px !important; height: 44px !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid #d9d9d9 !important; border-radius: 50% !important; background: rgba(255,255,255,.96) !important;
  color: #222 !important; font-size: 0 !important; line-height: 0 !important; text-indent: 0; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .1s ease;
}
.amix-sr .amix-sr__grid li.product > a.button::before,
.amix-sr .amix-sr__grid li.product > a.button::after { content: ''; position: absolute; inset: 0; margin: auto; display: block; border-radius: 1px; background: currentColor; }
.amix-sr .amix-sr__grid li.product > a.button::before { width: 18px; height: 2px; }
.amix-sr .amix-sr__grid li.product > a.button::after { width: 2px; height: 18px; }
.amix-sr .amix-sr__grid li.product > a.button:hover,
.amix-sr .amix-sr__grid li.product > a.button:focus-visible { border-color: #c8102e !important; background: #fff !important; color: #c8102e !important; }
.amix-sr .amix-sr__grid li.product > a.button:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.amix-sr .amix-sr__grid li.product > a.button:active { transform: scale(.92); }
/* w trakcie dodawania – obracający się okrąg */
.amix-sr .amix-sr__grid li.product > a.button.loading { opacity: 1 !important; color: transparent !important; }
.amix-sr .amix-sr__grid li.product > a.button.loading::before { width: 18px; height: 18px; border: 2px solid #d9d9d9; border-top-color: #c8102e; border-radius: 50%; background: none; animation: amix-card-spin .7s linear infinite; }
.amix-sr .amix-sr__grid li.product > a.button.loading::after { display: none; }
/* dodano – zielony znak ✓ */
.amix-sr .amix-sr__grid li.product > a.button.added { border-color: #1a7f45 !important; color: #1a7f45 !important; }
.amix-sr .amix-sr__grid li.product > a.button.added::before { width: 7px; height: 13px; top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; border-radius: 0; background: none; transform: rotate(45deg); }
.amix-sr .amix-sr__grid li.product > a.button.added::after { display: none; }
.amix-sr .amix-sr__grid li.product > a.added_to_cart { display: none !important; }
@keyframes amix-card-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .amix-sr .amix-sr__grid li.product > a.button { top: 12px; right: 12px; width: 38px !important; height: 38px !important; }
  .amix-sr .amix-sr__grid li.product > a.button::before { width: 15px; }
  .amix-sr .amix-sr__grid li.product > a.button::after { height: 15px; }
  .amix-sr .amix-sr__grid li.product > a.woocommerce-LoopProduct-link { padding-bottom: 12px !important; }
}

/* Bez etykiety „Promocja” na karcie (promocję pokazuje czerwona cena i „-X%”); Bestseller / Dostawa 0 zł przesuwają się w górę */
.amix-sr .amix-sr__grid li.product .onsale { display: none !important; }
.amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash1:not(.bestseller_flash2),
.amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash2 { top: 20px !important; }
.amix-sr .amix-sr__grid li.product:has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2,
.amix-sr .amix-sr__grid li.product:has(.onsale):has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 48px !important; }
@media (max-width: 640px) {
  .amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash1:not(.bestseller_flash2),
  .amix-sr .amix-sr__grid li.product:has(.onsale) .bestseller_flash2 { top: 16px !important; }
  .amix-sr .amix-sr__grid li.product:has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2,
  .amix-sr .amix-sr__grid li.product:has(.onsale):has(.bestseller_flash1:not(.bestseller_flash2)) .bestseller_flash2 { top: 40px !important; }
}

/* Dociąganie produktów przy przewijaniu (js/amix-search.js) */
.amix-sr__more { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 48px; margin: 26px 0 8px; }
.amix-sr__more-spin { width: 28px; height: 28px; border: 3px solid #e6e6e6; border-top-color: #c8102e; border-radius: 50%; animation: amix-sr-spin .8s linear infinite; }
.amix-sr__more-spin[hidden], .amix-sr__more-btn[hidden] { display: none; }
@keyframes amix-sr-spin { to { transform: rotate(360deg); } }
.amix-sr__more-btn { min-height: 46px; padding: 0 26px; border: 1px solid #d0d0d0; border-radius: 12px; background: #fff; color: #222; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s; }
.amix-sr__more-btn:hover { border-color: #c8102e; color: #c8102e; }
.amix-sr__more-btn:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.amix-sr__more-status { margin: 0; color: #777; font-size: 13px; }
.amix-sr__more-status:empty { display: none; }
