/*
 * Okazja dnia – front
 *
 * Krój pisma dziedziczony z motywu sklepu. Kolory/zaokrąglenia z ustawień modułu (zmienne --hd-*)
 * albo odczytane z motywu w trybie automatycznym.
 * Odstępy i nagłówek odwzorowują sekcje motywów Codezeel (religijna.pl, aromatslowa.pl):
 * sekcja 30 px od góry (20 px < 992 px), biały blok 30/30/20 px (15 px < 992 px),
 * nagłówek 22 px / 600, linia #e5e5e5 z akcentem 70 × 2 px.
 */
.hotdeal,
.hotdeal-product {
  --hd-accent: #343ca4;
  --hd-button: #5e64ad;
  --hd-badge: #ef2d2d;
  --hd-timer: #111111;
  --hd-radius: 5px;
  --hd-ink: #111111;
  --hd-text: #555555;
  --hd-muted: #888888;
  --hd-line: #e5e5e5;
  --hd-track: #eeeeee;
  font-family: inherit;
  color: var(--hd-text);
}
.hotdeal *, .hotdeal *::before, .hotdeal *::after,
.hotdeal-product *, .hotdeal-product *::before, .hotdeal-product *::after,
.hotdeal-col, .hotdeal-beside * { box-sizing: border-box; }

/* ===================== Miejsce i szerokość (siatka 12 kolumn) ===================== */
.hotdeal-placement {
  --hd-cols-xs: 12;
  --hd-cols-md: 12;
  --hd-cols-lg: 12;
  --hd-cols-xl: 12;
  --hd-img-h: 240px;
  --hd-gap: 30px;
  --hd-cols: var(--hd-cols-xs);
  padding-top: 20px;
}
.hotdeal-placement::after { content: ""; display: table; clear: both; }
.hotdeal-beside { --hd-gap: 30px; --hd-cols: var(--hd-cols-xs, 12); }
@media (min-width: 768px) { .hotdeal-placement, .hotdeal-beside { --hd-cols: var(--hd-cols-md, 12); } }
@media (min-width: 992px) { .hotdeal-placement, .hotdeal-beside { --hd-cols: var(--hd-cols-lg, 12); } .hotdeal-placement { padding-top: 30px; } }
@media (min-width: 1200px) { .hotdeal-placement, .hotdeal-beside { --hd-cols: var(--hd-cols-xl, 12); } }
@media (max-width: 575px) { .hotdeal-beside { --hd-gap: 20px; } }

.hotdeal-col { width: calc(var(--hd-cols) / 12 * 100%); max-width: 100%; }
.hotdeal-col--left { margin-right: auto; }
.hotdeal-col--center { margin-left: auto; margin-right: auto; }
.hotdeal-col--right { margin-left: auto; }

/* ===================== Widget ===================== */
.hotdeal {
  position: relative;
  margin: 0;
  padding: 15px;
  background: #fff;
  border-radius: var(--hd-radius);
  text-align: center;
}
@media (min-width: 992px) { .hotdeal { padding: 30px 30px 20px; } }

/* Nagłówek – jak tytuły sekcji motywu */
.hotdeal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hd-line);
  text-align: left;
}
.hotdeal__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 70px;
  height: 2px;
  background: var(--hd-button);
}
.hotdeal__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hd-ink);
  text-transform: none;
}
@media (min-width: 992px) { .hotdeal__title { font-size: 22px; } }
.hotdeal--upper .hotdeal__title { text-transform: uppercase; }
.hotdeal-icon { flex: none; width: 22px; height: 22px; color: var(--hd-accent); }

.hotdeal__badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--hd-badge);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Treść – domyślnie układ karty (pionowy) */
.hotdeal__body { display: block; }
a.hotdeal__image { text-decoration: none; }
.hotdeal__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.hotdeal__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hotdeal__labels { position: absolute; top: 6px; left: 6px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.hotdeal__lbl { display: inline-block; padding: 2px 8px; font-size: 12px; line-height: 1.4; white-space: nowrap; box-shadow: 0 1px 3px rgba(17,24,39,.15); }
.hotdeal__image img.hotdeal__lbl.is-img { max-height: 28px; width: auto; box-shadow: none; }
.hotdeal--soldout .hotdeal__image img { filter: grayscale(1); opacity: .4; }
.hotdeal__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  padding: 6px 16px;
  border: 2px solid var(--hd-accent);
  border-radius: var(--hd-radius);
  background: rgba(255, 255, 255, .9);
  color: var(--hd-accent);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.hotdeal__name {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hd-ink);
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hotdeal__name a { color: inherit; text-decoration: none; transition: color .15s; }
.hotdeal__name a:hover, .hotdeal__name a:focus { color: var(--hd-accent); text-decoration: none; }

/* Ceny – jak w miniaturach motywu */
.hotdeal__prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.hotdeal__price { color: var(--hd-accent); font-size: 26px; font-weight: 700; line-height: 1.15; }
.hotdeal__regular { color: var(--hd-muted); font-size: 15px; text-decoration: line-through; }
.hotdeal__saving { margin: 4px 0 0; font-size: 14px; }
.hotdeal__saving strong { color: var(--hd-ink); font-weight: 600; }
.hotdeal__omnibus { margin: 4px 0 0; font-size: 12px; color: var(--hd-muted); }

/* Pula sztuk */
.hotdeal__stock { margin: 16px 0 14px; text-align: left; }
.hotdeal__stock-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--hd-muted);
}
.hotdeal__stock-labels strong { color: var(--hd-ink); font-weight: 600; }
.hotdeal__bar {
  height: 8px;
  border-radius: calc(var(--hd-radius) * 2);
  background: var(--hd-track);
  overflow: hidden;
}
.hotdeal__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hd-accent);
  transition: width .6s ease;
}

/* Licznik */
.hotdeal__label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--hd-muted); }
.hotdeal-timer {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.hotdeal-timer__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 7px 4px 5px;
  border-radius: var(--hd-radius);
  background: var(--hd-timer);
  color: #fff;
}
.hotdeal-timer__box b { font-size: 19px; font-weight: 700; line-height: 1; color: inherit; }
.hotdeal-timer__box small { color: inherit; margin-top: 3px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.hotdeal-timer__sep { padding-top: 7px; font-size: 18px; font-weight: 700; color: var(--hd-ink); }
.hotdeal-timer.is-urgent .hotdeal-timer__box { background: var(--hd-badge); }
@media (min-width: 576px) {
  .hotdeal-timer__box { min-width: 52px; }
  .hotdeal-timer__box b { font-size: 22px; }
  .hotdeal-timer__sep { font-size: 20px; }
}

/* Przycisk – kształt jak przyciski motywu */
.hotdeal__cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--hd-radius);
  background: var(--hd-button);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: filter .15s;
}
.hotdeal--upper .hotdeal__cta { text-transform: uppercase; letter-spacing: .03em; }
.hotdeal__cta:hover, .hotdeal__cta:focus { color: #fff; text-decoration: none; filter: brightness(.88); }

/* Wyprzedane */
.hotdeal__soldout {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--hd-radius);
  background: #f7f7f7;
}
.hotdeal__soldout strong { display: block; margin-bottom: 10px; color: var(--hd-accent); font-weight: 600; }

/* Oczekiwanie na kolejną okazję */
.hotdeal__waiting { padding: 6px 0 2px; }
.hotdeal__mystery {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 4px auto 16px;
  border: 2px dashed var(--hd-accent);
  border-radius: var(--hd-radius);
  color: var(--hd-accent);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}
.hotdeal__waiting-text { margin: 0 0 8px; color: var(--hd-ink); font-weight: 600; }
.hotdeal__hint { margin: 12px 0 0; font-size: 12px; color: var(--hd-muted); }

/* ===== Układ zależny od szerokości SAMEGO widgetu – zapytania kontenerowe =====
 * Bez skryptu i bez progów mierzonych w JS: układ płynie razem z szerokością przy każdym rozmiarze ekranu.
 *   < 480 px    karta: zdjęcie nad opisem
 *   480–819 px  zdjęcie | opis, pod opisem pula / licznik / przycisk
 *   ≥ 820 px    zdjęcie | opis | pula / licznik / przycisk
 * Ustawienie „zawsze karta”: zawsze pionowo, treść najwyżej 440 px, wyśrodkowana w białym bloku.
 * Zdjęcie: wysokość jak zdjęcia produktów w karuzelach (--hd-img-h), nigdy szersze niż pozwala blok.
 */
.hotdeal { container: hotdeal / inline-size; display: flex; flex-direction: column; }
.hotdeal__body,
.hotdeal__waiting { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hotdeal__image { height: min(var(--hd-img-h), 110cqi); }
.hotdeal--card .hotdeal__body,
.hotdeal--card .hotdeal__waiting { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }

/* poziomo: zdjęcie | opis, pod opisem pula / licznik / przycisk („dopasowany” od 480 px, „zawsze poziomo” od 320 px) */
@container hotdeal (min-width: 320px) {
  .hotdeal--layout-row .hotdeal__body {
    display: grid;
    grid-template-columns: clamp(120px, 38%, 260px) minmax(0, 1fr);
    grid-template-areas: "img info" "img action";
    align-content: center;
    gap: 10px 20px;
    text-align: left;
  }
}
@container hotdeal (min-width: 480px) {
  .hotdeal--layout-auto .hotdeal__body {
    display: grid;
    grid-template-columns: clamp(150px, 38%, 260px) minmax(0, 1fr);
    grid-template-areas: "img info" "img action";
    align-content: center;
    text-align: left;
  }
  .hotdeal--layout-auto .hotdeal__body,
  .hotdeal--layout-row .hotdeal__body { gap: 12px 28px; }
}
@container hotdeal (min-width: 320px) {
  .hotdeal--layout-row .hotdeal__image { grid-area: img; height: var(--hd-img-h); margin: 0; }
  .hotdeal--layout-row .hotdeal__info { grid-area: info; align-self: end; }
  .hotdeal--layout-row .hotdeal__action { grid-area: action; align-self: start; }
  .hotdeal--layout-row .hotdeal__prices { justify-content: flex-start; }
  .hotdeal--layout-row .hotdeal__stock { margin: 4px 0 12px; }
  .hotdeal--layout-row .hotdeal__cta { margin-top: 14px; }
  .hotdeal--layout-row .hotdeal__soldout { margin-top: 0; text-align: center; }
  .hotdeal--layout-row .hotdeal__waiting { flex-direction: row; align-items: center; gap: 24px; }
  .hotdeal--layout-row .hotdeal__mystery { flex: none; margin: 0; }
  .hotdeal--layout-row.hotdeal--img-right .hotdeal__body { grid-template-columns: minmax(0, 1fr) clamp(120px, 38%, 260px); grid-template-areas: "info img" "action img"; }
}
@container hotdeal (min-width: 480px) {
  .hotdeal--layout-auto .hotdeal__image { grid-area: img; height: var(--hd-img-h); margin: 0; }
  .hotdeal--layout-auto .hotdeal__info { grid-area: info; align-self: end; }
  .hotdeal--layout-auto .hotdeal__action { grid-area: action; align-self: start; }
  .hotdeal--layout-auto .hotdeal__prices { justify-content: flex-start; }
  .hotdeal--layout-auto .hotdeal__stock { margin: 4px 0 12px; }
  .hotdeal--layout-auto .hotdeal__cta { margin-top: 14px; }
  .hotdeal--layout-auto .hotdeal__soldout { margin-top: 0; text-align: center; }
  .hotdeal--layout-auto .hotdeal__waiting { flex-direction: row; align-items: center; gap: 32px; }
  .hotdeal--layout-auto .hotdeal__mystery { flex: none; margin: 0; }
  .hotdeal--layout-auto.hotdeal--img-right .hotdeal__body { grid-template-columns: minmax(0, 1fr) clamp(150px, 38%, 260px); grid-template-areas: "info img" "action img"; }
}
/* szeroko: zdjęcie | opis | pula / licznik / przycisk */
@container hotdeal (min-width: 820px) {
  .hotdeal--layout-auto .hotdeal__body,
  .hotdeal--layout-row .hotdeal__body {
    grid-template-columns: clamp(180px, 26%, 260px) minmax(0, 1fr) minmax(260px, 340px);
    grid-template-areas: "img info action";
    align-items: center;
  }
  .hotdeal--layout-auto.hotdeal--img-right .hotdeal__body,
  .hotdeal--layout-row.hotdeal--img-right .hotdeal__body {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) clamp(180px, 26%, 260px);
    grid-template-areas: "info action img";
  }
  .hotdeal--layout-auto .hotdeal__info, .hotdeal--layout-auto .hotdeal__action,
  .hotdeal--layout-row .hotdeal__info, .hotdeal--layout-row .hotdeal__action { align-self: center; }
  .hotdeal--layout-auto .hotdeal__name, .hotdeal--layout-row .hotdeal__name { font-size: 18px; -webkit-line-clamp: 3; }
  .hotdeal--layout-auto .hotdeal__price, .hotdeal--layout-row .hotdeal__price { font-size: 30px; }
  .hotdeal--layout-auto .hotdeal__stock, .hotdeal--layout-row .hotdeal__stock { margin-top: 0; }
  .hotdeal--layout-auto .hotdeal__countdown, .hotdeal--layout-row .hotdeal__countdown { text-align: center; }
}

/* ===================== Wygląd z ustawień (klasy hotdeal--…; domyślnie żadnej) ===================== */
.hotdeal { background: var(--hd-bg, #fff); }
/* karta: tekst do lewej */
.hotdeal--text-left .hotdeal__body,
.hotdeal--text-left .hotdeal__waiting { text-align: left; }
.hotdeal--text-left .hotdeal__prices { justify-content: flex-start; }
.hotdeal--text-left .hotdeal__image { justify-content: flex-start; }
/* obramowanie i cień */
.hotdeal--border-line { border: 1px solid var(--hd-line); }
.hotdeal--border-accent { border: 2px solid var(--hd-accent); }
.hotdeal--shadow-soft { box-shadow: 0 6px 24px rgba(17, 17, 40, .08); }
.hotdeal--shadow-strong { box-shadow: 0 14px 40px rgba(17, 17, 40, .18); }
/* odstępy wewnątrz */
.hotdeal.hotdeal--pad-compact { padding: 12px 14px; }
.hotdeal.hotdeal--pad-spacious { padding: 22px; }
@media (min-width: 992px) {
  .hotdeal.hotdeal--pad-compact { padding: 18px 20px 14px; }
  .hotdeal.hotdeal--pad-spacious { padding: 40px 40px 30px; }
}
/* nagłówek: bez linii / pasek w kolorze głównym */
.hotdeal--head-plain .hotdeal__header { padding-bottom: 0; border-bottom: 0; }
.hotdeal--head-plain .hotdeal__header::after { display: none; }
.hotdeal--head-band .hotdeal__header { padding: 10px 14px; border: 0; border-radius: var(--hd-radius); background: var(--hd-accent); }
.hotdeal--head-band .hotdeal__header::after { display: none; }
.hotdeal--head-band .hotdeal__title, .hotdeal--head-band .hotdeal-icon { color: #fff; }
.hotdeal--head-band .hotdeal__badge { background: #fff; color: var(--hd-badge); }
/* rozmiary pisma (0 = jak motyw) */
.hotdeal[style*="--hd-title-size"] .hotdeal__title { font-size: var(--hd-title-size); }
.hotdeal[style*="--hd-price-size"] .hotdeal__price { font-size: var(--hd-price-size); }
/* licznik: same cyfry / obrys */
.hotdeal--timer-plain .hotdeal-timer__box { min-width: 0; padding: 0 4px; background: none; color: var(--hd-timer); }
.hotdeal--timer-plain .hotdeal-timer__box b { font-size: 26px; }
.hotdeal--timer-plain .hotdeal-timer.is-urgent .hotdeal-timer__box { background: none; color: var(--hd-badge); }
.hotdeal--timer-outline .hotdeal-timer__box { border: 2px solid var(--hd-timer); background: none; color: var(--hd-timer); }
.hotdeal--timer-outline .hotdeal-timer.is-urgent .hotdeal-timer__box { border-color: var(--hd-badge); background: none; color: var(--hd-badge); }
/* przycisk z obrysem */
.hotdeal--cta-outline .hotdeal__cta { border: 2px solid var(--hd-button); background: transparent; color: var(--hd-button); }
.hotdeal--cta-outline .hotdeal__cta:hover, .hotdeal--cta-outline .hotdeal__cta:focus { background: var(--hd-button); color: #fff; filter: none; }
/* co pokazywać */
.hotdeal--no-badge .hotdeal__badge,
.hotdeal--no-saving .hotdeal__saving,
.hotdeal--no-stock .hotdeal__stock,
.hotdeal--no-label .hotdeal__countdown .hotdeal__label { display: none; }

/* ===================== „Obok sekcji” – widget i sekcja motywu w jednym rzędzie ===================== */
.hotdeal-beside { padding-top: 20px; }
@media (min-width: 992px) { .hotdeal-beside { padding-top: 30px; } }
.hotdeal-beside__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--hd-gap, 30px);
}
.hotdeal-beside--equal .hotdeal-beside__row { align-items: stretch; }
.hotdeal-beside__widget {
  flex: 0 0 calc(var(--hd-cols) / 12 * 100% - var(--hd-gap, 30px) / 2);
  min-width: 0;
}
.hotdeal-beside__section { flex: 1 1 320px; min-width: 0; }
.hotdeal-beside--right .hotdeal-beside__widget { order: 2; }
/* przy 12 kolumnach widget i sekcja układają się jedno pod drugim */
.hotdeal-beside__widget.is-full { flex-basis: 100%; }
/* sekcja przeniesiona do rzędu: bez własnego kontenera i górnego odstępu */
.hotdeal-beside__section > * { padding-top: 0 !important; margin-top: 0 !important; }
.hotdeal-beside__section .container {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.hotdeal-beside__widget .hotdeal-placement { padding-top: 0; height: 100%; }
.hotdeal-beside__widget .hotdeal-placement > .container { width: auto; max-width: none; padding: 0; margin: 0; height: 100%; }
.hotdeal-beside__widget .hotdeal-col { width: 100%; height: 100%; }
.hotdeal-beside--equal .hotdeal-beside__widget .hotdeal { height: 100%; }
.hotdeal-beside--equal .hotdeal-beside__section > *,
.hotdeal-beside--equal .hotdeal-beside__section > * > .container,
.hotdeal-beside--equal .hotdeal-beside__section > * > .container > :first-child { height: 100%; }

/* ===================== Karta produktu ===================== */
.hotdeal-product {
  margin: 15px 0;
  padding: 16px 18px;
  border: 1px solid var(--hd-accent);
  border-radius: var(--hd-radius);
  background: #fff;
  text-align: left;
}
.hotdeal-product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hotdeal-product__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--hd-ink);
  font-size: 16px;
  font-weight: 600;
}
.hotdeal-product.hotdeal--upper .hotdeal-product__title { text-transform: uppercase; }
.hotdeal-product .hotdeal-icon { width: 20px; height: 20px; }
.hotdeal-product__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 12px;
}
.hotdeal-product__save { font-size: 13px; }
.hotdeal-product__save strong { color: var(--hd-accent); font-weight: 600; }
.hotdeal-product__countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.hotdeal-product__countdown .hotdeal__label { display: inline; margin: 0; color: var(--hd-ink); font-weight: 500; }
.hotdeal-product .hotdeal__stock { margin: 14px 0 6px; }
.hotdeal-product__notes { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--hd-muted); }
.hotdeal-product__notes li { margin: 2px 0; }
.hotdeal-product--soldout { border-color: var(--hd-line); background: #f7f7f7; }
.hotdeal-product--soldout .hotdeal-icon { color: var(--hd-muted); }
.hotdeal-product__soldout { margin: 0; font-size: 14px; }
@media (max-width: 575px) {
  .hotdeal-product { padding: 14px; }
  .hotdeal-product__countdown { flex-direction: column; align-items: flex-start; }
}

/* Etykieta na miniaturach (obok „Nowość”, „-5,00 zł”) */
.product-flags .product-flag.hotdeal,
.product-flag.hotdeal { background: var(--hotdeal-flag, #111111); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hotdeal__bar > span, .hotdeal__cta, .hotdeal__name a { transition: none; }
}

/* ===================== „Obok slidera” – górna kolumna motywu (displayTopColumn) =====================
 * Motywy Codezeel: slider .flexslider ma szerokość calc(100% - 300px) (992–1199 px: calc(100% - 220px)),
 * a lewą kolumnę 270 px (200 px) zajmuje na stronie głównej stale rozwinięte menu kategorii.
 * Widget zajmuje tę kolumnę, menu zwija się jak na podstronach. Wysokość widgetu = wysokość slidera
 * (ustawia skrypt), więc nie powstaje pusta przestrzeń ani nachodzenie na sekcje poniżej.
 */
@media (min-width: 992px) {
  .hotdeal-placement--slider {
    float: left;
    width: 200px;
    margin-top: 15px;
    padding-top: 0;
  }
  .hotdeal-placement--slider-right { float: right; }
  .hotdeal-placement--slider .hotdeal-col { width: 100%; height: 100%; }
  .hotdeal-placement--slider .hotdeal { height: 100%; }

  /* slider po lewej, gdy widget stoi po prawej */
  .display-top-inner .container:has(.hotdeal-placement--slider-right) .flexslider,
  .display-top-inner .container:has(.hotdeal-placement--slider-right) .phs--w-beside,
  .hotdeal-has-slider-right .flexslider,
  .hotdeal-has-slider-right .phs--w-beside { float: left; }

  /* zwinięte menu kategorii na stronie głównej – zachowanie jak na podstronach */
  body#index:has(.hotdeal-placement--slider) #czverticalmenublock .block_content,
  body#index.hotdeal-slider-mode #czverticalmenublock .block_content {
    top: 100%;
    transform: perspective(600px) scaleY(0);
    transition: .4s ease-in-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
  }
  body#index:has(.hotdeal-placement--slider) #czverticalmenublock.open .block_content,
  body#index:has(.hotdeal-placement--slider) #czverticalmenublock:hover .block_content,
  body#index.hotdeal-slider-mode #czverticalmenublock.open .block_content,
  body#index.hotdeal-slider-mode #czverticalmenublock:hover .block_content {
    transform: perspective(600px) scale(1);
  }
  body#index:has(.hotdeal-placement--slider) #czverticalmenublock .block_title .dropdown-arrow::before,
  body#index.hotdeal-slider-mode #czverticalmenublock .block_title .dropdown-arrow::before { display: block; }

}
@media (min-width: 992px) and (max-width: 1199px) {
  /* kolumna 200 px – tylko „Pozostało X szt.” */
  .hotdeal-placement--slider .hotdeal__stock-labels span + span { display: none; }
}
@media (min-width: 1200px) {
  .hotdeal-placement--slider { width: 270px; margin-top: 30px; }
  .hotdeal-placement--slider .hotdeal__title { font-size: 16px; }
  .hotdeal-placement--slider .hotdeal__price { font-size: 22px; }
  .hotdeal-placement--slider .hotdeal-timer__box b { font-size: 18px; }
}
/* poniżej 992 px slider zajmuje całą szerokość – widget pod nim albo ukryty */
@media (max-width: 991px) {
  .hotdeal-placement--slider { clear: both; padding-top: 15px; }
  .hotdeal-placement--mobile-hide { display: none !important; }
}


/* ===================== Układ kompaktowy (.is-compact – ustawia skrypt) =====================
 * Wąska, wysoka kolumna: obok slidera albo okazja w wąskiej kolumnie sekcji.
 * Zdjęcie wypełnia wolne miejsce, więc wysokość dyktują sąsiednie kolumny – bez dziur.
 */
.hotdeal.is-compact {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  text-align: center;
}
.hotdeal.is-compact .hotdeal__header { margin-bottom: 10px; padding-bottom: 8px; }
.hotdeal.is-compact .hotdeal__header::after { width: 50px; }
.hotdeal.is-compact .hotdeal__title { font-size: 15px; gap: 6px; }
.hotdeal.is-compact .hotdeal-icon { width: 18px; height: 18px; }
.hotdeal.is-compact .hotdeal__badge { padding: 2px 6px; font-size: 12px; }
.hotdeal.is-compact .hotdeal__body,
.hotdeal.is-compact .hotdeal__waiting {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.hotdeal.is-compact .hotdeal__image {
  flex: 1 1 auto;
  min-height: 50px;
  height: auto;
  margin-bottom: 8px;
}
.hotdeal.is-compact .hotdeal__image img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}
.hotdeal.is-compact .hotdeal__name { margin-bottom: 4px; font-size: 13px; line-height: 1.3; }
.hotdeal.is-compact .hotdeal__price { font-size: 20px; }
.hotdeal.is-compact .hotdeal__regular { font-size: 12px; }
.hotdeal.is-compact .hotdeal__saving { display: none; }
.hotdeal.is-compact .hotdeal__omnibus { font-size: 10px; line-height: 1.3; }
.hotdeal.is-compact .hotdeal__stock { margin: 8px 0 6px; }
.hotdeal.is-compact .hotdeal__stock-labels { font-size: 11px; margin-bottom: 4px; }
.hotdeal.is-compact .hotdeal__bar { height: 6px; }
.hotdeal.is-compact .hotdeal__countdown .hotdeal__label { display: none; }
.hotdeal.is-compact .hotdeal-timer { gap: 2px; }
.hotdeal.is-compact .hotdeal-timer__box { min-width: 0; flex: 1 1 0; padding: 4px 2px 3px; }
.hotdeal.is-compact .hotdeal-timer { display: flex; width: 100%; }
.hotdeal.is-compact .hotdeal-timer__box b { font-size: 16px; }
.hotdeal.is-compact .hotdeal-timer__box small { font-size: 8px; margin-top: 2px; }
.hotdeal.is-compact .hotdeal-timer__sep { padding-top: 4px; font-size: 14px; }
.hotdeal.is-compact .hotdeal__cta { margin-top: 8px; padding: 8px 10px; font-size: 13px; }
.hotdeal.is-compact .hotdeal__soldout { margin-top: 8px; padding: 10px; }
.hotdeal.is-compact .hotdeal__soldout strong { margin-bottom: 6px; font-size: 13px; }
.hotdeal.is-compact .hotdeal__mystery { flex: 1 1 auto; width: auto; height: auto; min-height: 60px; margin: 0 0 10px; font-size: 44px; }
.hotdeal.is-compact .hotdeal__waiting-text { font-size: 13px; }
.hotdeal.is-compact .hotdeal__hint { display: none; }

/* ---- Limit sztuk w koszyku ---- */
.hotdeal-product__alert { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--hd-accent, #c00); background: rgba(204, 0, 0, .06); color: #333; font-size: 13px; line-height: 1.4; }
.hotdeal-product__alert[hidden] { display: none; }
.hotdeal-toast { position: fixed; z-index: 10000; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); width: 520px; padding: 12px 16px; background: #222; color: #fff; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; line-height: 1.4; transition: opacity .5s; }
.hotdeal-toast.is-out { opacity: 0; }

/* ===================== Wysokość: minimalna i „jak sąsiednie bloki w rzędzie” ===================== */
@media (min-width: 768px) {
  .hotdeal-placement .hotdeal { min-height: var(--hd-min-h, 0px); }
  .hotdeal-placement--equal { height: 100%; display: flex; flex-direction: column; }
  .hotdeal-placement--equal > .container { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hotdeal-placement--equal .hotdeal-col { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hotdeal-placement--equal .hotdeal-col > .hotdeal { flex: 1 1 auto; }
}

/* ---- W kolumnie sekcji Kompozytora: kolumna wyznacza szerokość – bez kontenera motywu i odstępu nad ---- */
.pc-sec-col .hotdeal-placement { padding-top: 0; height: 100%; }
.pc-sec-col .hotdeal-placement > .container { width: auto; max-width: none; padding: 0; margin: 0; height: 100%; }
.pc-sec-col .hotdeal-col { width: 100%; height: 100%; }

/* ---- Dopasowanie wysokości w rzędzie sekcji Kompozytora ----
 * Zdjęcie jest elastyczne: na naturalnej wysokości jak w karuzelach (--hd-img-h), w wyższej kolumnie rośnie
 * (zamiast pustych pasów nad i pod treścią), w kolumnie dopasowanej do niższego wzorca maleje (do 140 px). */
.pc-sec--stretch > .pc-sec-col .hotdeal__body { min-height: 0; }
.pc-sec--stretch > .pc-sec-col .hotdeal--layout-card .hotdeal__image { flex: 1 1 var(--hd-img-h); height: auto; min-height: 140px; }
@container hotdeal (max-width: 479.98px) {
  .pc-sec--stretch > .pc-sec-col .hotdeal--layout-auto .hotdeal__image { flex: 1 1 var(--hd-img-h); height: auto; min-height: 140px; }
}
@container hotdeal (max-width: 319.98px) {
  .pc-sec--stretch > .pc-sec-col .hotdeal--layout-row .hotdeal__image { flex: 1 1 var(--hd-img-h); height: auto; min-height: 140px; }
}
/* układ poziomy: kolumna zdjęcia rośnie z wysokością bloku */
.pc-sec--stretch > .pc-sec-col .hotdeal__body { align-content: stretch; }
@container hotdeal (min-width: 480px) {
  .pc-sec--stretch > .pc-sec-col .hotdeal--layout-auto .hotdeal__image { height: auto; min-height: var(--hd-img-h); }
}
@container hotdeal (min-width: 320px) {
  .pc-sec--stretch > .pc-sec-col .hotdeal--layout-row .hotdeal__image { height: auto; min-height: var(--hd-img-h); }
}
.pc-sec-col--fit.is-fit .hotdeal__image { min-height: 140px !important; }
.pc-sec--stretch > .pc-sec-col .hotdeal__image img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; }
/* kadrowanie zdjęcia (Wygląd → Zdjęcie produktu): wypełnij / do szerokości / do wysokości – obraz zajmuje całe pole, zaczep wg ustawienia */
.hotdeal.pcfit--cover .hotdeal__image, .hotdeal.pcfit--width .hotdeal__image, .hotdeal.pcfit--height .hotdeal__image { overflow: hidden; }
.hotdeal.pcfit--cover .hotdeal__image img, .hotdeal.pcfit--width .hotdeal__image img, .hotdeal.pcfit--height .hotdeal__image img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  object-fit: var(--pco-fit, var(--pcfit-fit, cover)); object-position: var(--pco-x, var(--pcfit-x, 50%)) var(--pco-y, var(--pcfit-y, 50%));
}
.hotdeal.pcfit--contain .hotdeal__image img { object-position: var(--pco-x, var(--pcfit-x, 50%)) var(--pco-y, var(--pcfit-y, 50%)); }

/* Ściskanie w kolumnie dopasowanej do wzorca (Kompozytor: data-pc-sq 1–3) – okazja oddaje kolejno:
 * 1 – opis nad licznikiem i „Sprzedano”, 2 – kwotę oszczędności i mniejsze odstępy, 3 – pasek puli i mniejszy licznik. */
[data-pc-sq] .hotdeal .hotdeal__countdown .hotdeal__label,
[data-pc-sq] .hotdeal .hotdeal__stock-labels span + span { display: none; }
[data-pc-sq="2"] .hotdeal .hotdeal__saving, [data-pc-sq="3"] .hotdeal .hotdeal__saving { display: none; }
[data-pc-sq="2"] .hotdeal .hotdeal__header, [data-pc-sq="3"] .hotdeal .hotdeal__header { margin-bottom: 10px; }
[data-pc-sq="2"] .hotdeal .hotdeal__cta, [data-pc-sq="3"] .hotdeal .hotdeal__cta { margin-top: 10px; }
[data-pc-sq="3"] .hotdeal .hotdeal__stock { display: none; }
[data-pc-sq="3"] .hotdeal .hotdeal-timer__box { min-width: 40px; padding: 4px 3px 3px; }
[data-pc-sq="3"] .hotdeal .hotdeal-timer__box b { font-size: 17px; }
[data-pc-sq="3"] .hotdeal .hotdeal__image { min-height: 100px !important; }

/* kadrowanie ustawione w Kompozytorze dla tego miejsca (data-pco-fit na obudowie) – zdjęcie zajmuje całe pole */
[data-pco-fit] .hotdeal__image { overflow: hidden; }
[data-pco-fit] .hotdeal__image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  object-fit: var(--pco-fit); object-position: var(--pco-x, var(--pcfit-x, 50%)) var(--pco-y, var(--pcfit-y, 50%)); }
