/* Herbawell — widok „Zestawy” (lista) + szczegół zestawu.
   1:1 z makietą Premium (markery isBundles / isBundle). Zero zaokrągleń i cieni,
   podział linią 1px var(--hw-line). Gridy: repeat(N, minmax(0,1fr)) — patrz gotcha. */

/* ============================================================
   WIDOK „ZESTAWY” (page-zestawy.php)
   ============================================================ */
.hw-bdl-page { padding-top: 26px; padding-bottom: 96px; }

.hw-bdl-crumbs {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--hw-text-muted); display: flex; gap: 8px; align-items: center;
}
.hw-bdl-crumbs a { color: var(--hw-text-muted); text-decoration: none; }
.hw-bdl-crumbs a:hover { color: var(--hw-green); }
.hw-bdl-crumbs__current { color: var(--hw-green); }

.hw-bdl-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end;
  padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(16, 38, 28, .14);
}
.hw-bdl-hero__head { display: flex; flex-direction: column; gap: 18px; }
.hw-bdl-hero__eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hw-brass-dark);
}
.hw-bdl-hero__title {
  margin: 0; font-family: var(--hw-font); font-size: 64px; font-weight: 500;
  letter-spacing: -.02em; color: var(--hw-green); line-height: .98;
}
.hw-bdl-hero__lead { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--hw-text-soft); }

.hw-bdl-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  /* 🔑 longhand, NIE skrót `padding: 24px 0` — skrót zerował padding-inline z klasy .hw-px (56px)
     i chipy filtrów wystawały 56px w lewo względem hero/siatki (zgłoszenie Huberta). */
  padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hw-line);
}
.hw-bdl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
/* Chipy wg makiety v2b: padding 10/15, licznik szary; aktywny = krem + mosiądz (nie zieleń). */
.hw-bdl-chip {
  padding: 10px 15px; border: 1px solid rgba(16, 38, 28, .2); background: transparent;
  font-size: 11.5px; font-weight: 600; color: var(--hw-text-soft); text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.hw-bdl-chip__count { color: var(--hw-text-muted); }
.hw-bdl-chip:hover { border-color: var(--hw-brass-dark); }
.hw-bdl-chip.is-active { background: #EFE8DB; color: var(--hw-green); border-color: var(--hw-brass); }
.hw-bdl-sort {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--hw-green); white-space: nowrap;
}

.hw-bdl-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--hw-line); margin-top: 32px; border: 1px solid var(--hw-line);
}
/* Makieta v2b: siatka dopasowana do liczby kart — 1 zestaw = wąska karta (nie rozciągnięta
   na całą szerokość), 2 zestawy = dwie kolumny. */
.hw-bdl-grid--one { grid-template-columns: minmax(360px, 460px); width: max-content; max-width: 100%; }
.hw-bdl-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Box „Jeden zestaw pod ten cel" (makieta v2b, bundleOne). */
.hw-bdl-one {
  display: flex; align-items: center; gap: 18px; margin-top: 26px;
  padding: 18px 22px; background: #EFE8DB; border: 1px solid rgba(176, 141, 87, .55);
}
.hw-bdl-one__label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hw-brass-dark); white-space: nowrap;
}
.hw-bdl-one__text { font-size: 13.5px; line-height: 1.6; color: var(--hw-text); }
.hw-bdl-one__btn { margin-left: auto; height: auto; padding: 13px 20px; font-size: 10px; white-space: nowrap; }

/* Stan „0 zestawów pod cel" (makieta v2b, bundleNone). */
.hw-bdl-none {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start;
  margin: 44px 0 0; padding-bottom: 20px;
}
.hw-bdl-none__main { display: flex; flex-direction: column; gap: 20px; }
.hw-bdl-none__title {
  margin: 0; font-family: var(--hw-font); font-size: 38px; font-weight: 500;
  letter-spacing: -.025em; color: var(--hw-green); line-height: 1.05;
}
.hw-bdl-none__text { margin: 0; max-width: 440px; font-size: 15.5px; line-height: 1.8; color: var(--hw-text-soft); }
.hw-bdl-none__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hw-bdl-none__actions .hw-btn { height: auto; padding: 16px 26px; font-size: 10px; }
.hw-bdl-none__top { display: flex; flex-direction: column; }
.hw-bdl-none__top-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hw-brass-dark); padding-bottom: 8px;
}
.hw-bdl-none__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid rgba(16, 38, 28, .12); text-decoration: none;
}
.hw-bdl-none__row-name { font-family: var(--hw-font); font-size: 20px; font-weight: 500; color: var(--hw-green); }
.hw-bdl-none__row-meta { font-size: 12px; color: var(--hw-text-muted); white-space: nowrap; }
.hw-bdl-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--hw-bone);
  text-decoration: none; transition: background .25s ease;
}
.hw-bdl-card:hover { background: var(--hw-bone-dark); }
.hw-bdl-card__img {
  height: 180px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; overflow: hidden;
}
.hw-bdl-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hw-bdl-card__img:has(img) { padding-bottom: 0; }
.hw-bdl-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 12px; }
.hw-bdl-card__save {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hw-brass-dark);
}
.hw-bdl-card__count {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hw-text-muted);
}
.hw-bdl-card__name {
  margin: 0; font-family: var(--hw-font); font-size: 27px; font-weight: 500; color: var(--hw-green); line-height: 1.08;
}
.hw-bdl-card__desc { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--hw-text-soft); }
.hw-bdl-card__price-row {
  display: flex; align-items: baseline; gap: 10px; margin-top: auto;
  padding-top: 8px; border-top: 1px solid var(--hw-line);
}
.hw-bdl-card__price { font-family: var(--hw-font); font-size: 30px; font-weight: 500; color: var(--hw-green); }
.hw-bdl-card__sum { font-size: 13px; color: var(--hw-text-muted); text-decoration: line-through; }
.hw-bdl-card__goal {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--hw-green);
}
.hw-bdl-card__cta { height: auto; padding: 15px; font-size: 10px; width: 100%; }

.hw-bdl-empty {
  margin: 40px 0; padding: 32px; background: var(--hw-bone-dark);
  font-size: 15px; color: var(--hw-text-soft);
}
.hw-bdl-empty a { color: var(--hw-green); border-bottom: 1px solid var(--hw-brass); text-decoration: none; }

.hw-bdl-help {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  margin-top: 44px; padding: 40px 44px; background: var(--hw-green);
}
.hw-bdl-help__text { display: flex; flex-direction: column; gap: 10px; }
.hw-bdl-help__title { font-family: var(--hw-font); font-size: 32px; font-weight: 500; color: var(--hw-bone); line-height: 1.1; }
.hw-bdl-help__lead { font-size: 14.5px; color: #A9B8AC; }
.hw-bdl-help__btn { white-space: nowrap; }

/* ============================================================
   SZCZEGÓŁ ZESTAWU (template-parts/bundle-detail.php)
   ============================================================ */
.hw-bdd { padding-top: 26px; padding-bottom: 96px; }
.hw-bdd .woocommerce-notices-wrapper:empty { display: none; }

.hw-bdd__crumbs {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--hw-text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hw-bdd__crumbs a { color: var(--hw-text-muted); text-decoration: none; }
.hw-bdd__crumbs a:hover { color: var(--hw-green); }
.hw-bdd__crumbs-current { color: var(--hw-green); }

.hw-bdd__top {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px;
  padding-top: 36px; align-items: start;
}

/* Galeria */
.hw-bdd__gallery { display: flex; flex-direction: column; gap: 12px; }
.hw-bdd__stage { aspect-ratio: 4 / 5; background: var(--hw-tint-1); padding: 32px; display: flex; align-items: center; justify-content: center; }
/* height:100% nie rozwiązuje się w boxie z aspect-ratio → obraz siedział u góry; flex + max-height centrują zdjęcie o dowolnych proporcjach. */
.hw-bdd__stage-img { width: 100%; height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hw-bdd__stage-ph {
  height: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .7) 0 12px, rgba(255, 255, 255, .28) 12px 24px);
}
.hw-bdd__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hw-bdd__thumb {
  aspect-ratio: 1 / 1; background: var(--hw-bone-dark); border: 1px solid var(--hw-line);
  display: flex; align-items: center; justify-content: center;
}
.hw-bdd__thumb-label { font-family: ui-monospace, Menlo, monospace; font-size: 9px; color: var(--hw-text-soft); }

/* Kolumna zakupu */
.hw-bdd__buy { display: flex; flex-direction: column; gap: 22px; }
.hw-bdd__eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hw-brass-dark);
}
.hw-bdd__title {
  margin: 0; font-family: var(--hw-font); font-size: 56px; font-weight: 500;
  letter-spacing: -.02em; color: var(--hw-green); line-height: 1;
}
.hw-bdd__lead { margin: 0; font-size: 16px; line-height: 1.8; color: var(--hw-text-soft); }
/* Opis z panelu może mieć akapity i listę (mini-edytor: pogrubienie/kursywa/lista). */
.hw-bdd__lead p { margin: 0 0 12px; }
.hw-bdd__lead p:last-child { margin-bottom: 0; }
.hw-bdd__lead ul, .hw-bdd__lead ol { margin: 0 0 12px; padding-left: 20px; }
.hw-bdd__lead li { margin: 0 0 4px; }

.hw-bdd__price-box {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(16, 38, 28, .14); border-bottom: 1px solid rgba(16, 38, 28, .14);
}
.hw-bdd__price { font-family: var(--hw-font); font-size: 52px; font-weight: 500; color: var(--hw-green); letter-spacing: -.02em; }
.hw-bdd__old { font-size: 16px; color: var(--hw-text-muted); text-decoration: line-through; }
.hw-bdd__save {
  margin-left: auto; padding: 8px 14px; border: 1px solid var(--hw-brass); color: var(--hw-brass-dark);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}

/* Skład */
.hw-bdd__contents { display: flex; flex-direction: column; }
.hw-bdd__contents-title {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hw-green); padding-bottom: 6px;
}
.hw-bdd__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--hw-line); text-decoration: none;
}
a.hw-bdd__item:hover .hw-bdd__item-name { color: var(--hw-brass-dark); }
.hw-bdd__item-thumb { width: 48px; height: 60px; flex: 0 0 48px; overflow: hidden; }
.hw-bdd__item-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hw-bdd__item-info { display: flex; flex-direction: column; gap: 3px; }
.hw-bdd__item-name { font-size: 14.5px; font-weight: 600; color: var(--hw-green); line-height: 1.3; }
.hw-bdd__item-note { font-size: 12px; color: #6B7A70; }
.hw-bdd__item-price { margin-left: auto; font-size: 13px; color: var(--hw-text-muted); text-decoration: line-through; }

/* Akcje */
.hw-bdd__form { margin: 0; }
.hw-bdd__actions { display: flex; gap: 12px; }
.hw-bdd__qty { display: flex; align-items: center; border: 1px solid rgba(16, 38, 28, .24); }
.hw-bdd__qty-btn {
  width: 48px; height: 56px; border: 0; background: transparent; color: var(--hw-green);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.hw-bdd__qty-val { min-width: 34px; text-align: center; font-size: 15px; font-weight: 600; color: var(--hw-green); }
.hw-bdd__add {
  flex: 1; padding: 19px; border: 1px solid var(--hw-green); background: var(--hw-green); color: var(--hw-bone);
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease;
}
.hw-bdd__add:hover { background: var(--hw-green-hover); }

.hw-bdd__assure {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hw-line); border-bottom: 1px solid var(--hw-line);
}
.hw-bdd__assure-item {
  padding: 16px 0; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3B4A41;
}

/* Plan 3 etapów */
.hw-bdd__plan-wrap { padding-top: 80px; }
.hw-bdd__plan-title {
  margin: 0; padding-bottom: 26px; border-bottom: 1px solid rgba(16, 38, 28, .14);
  font-family: var(--hw-font); font-size: 40px; font-weight: 500; letter-spacing: -.015em; color: var(--hw-green);
}
.hw-bdd__plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Liczba kolumn = liczba kroków (1 = pełna szerokość, 2 = połowy, 3 = trzy); ostatni krok bez prawej krawędzi. */
.hw-bdd__plan[data-hw-steps="1"] { grid-template-columns: minmax(0, 1fr); }
.hw-bdd__plan[data-hw-steps="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-bdd__plan-step:last-child { border-right: 0; }
.hw-bdd__plan-step {
  display: flex; flex-direction: column; gap: 14px; padding: 34px 32px;
  border-right: 1px solid rgba(16, 38, 28, .1); border-bottom: 1px solid rgba(16, 38, 28, .1);
}
.hw-bdd__plan-num { font-family: var(--hw-font); font-size: 30px; font-weight: 500; color: var(--hw-brass-dark); }
.hw-bdd__plan-step-title { font-family: var(--hw-font); font-size: 24px; font-weight: 500; color: var(--hw-green); }
.hw-bdd__plan-text { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--hw-text-soft); }
.hw-bdd__plan-text p { margin: 0 0 10px; }
.hw-bdd__plan-text p:last-child { margin-bottom: 0; }
.hw-bdd__plan-text ul, .hw-bdd__plan-text ol { margin: 0 0 10px; padding-left: 20px; }
.hw-bdd__plan-text li { margin: 0 0 4px; }

/* Produkty osobno */
.hw-bdd__separate { padding-top: 70px; }
.hw-bdd__separate-title {
  margin: 0; padding-bottom: 24px; border-bottom: 1px solid rgba(16, 38, 28, .14);
  font-family: var(--hw-font); font-size: 36px; font-weight: 500; letter-spacing: -.015em; color: var(--hw-green);
}
.hw-bdd__separate-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px;
}

/* ============================================================
   MOBILE 390 — bez poziomego scrolla
   ============================================================ */
@media (max-width: 900px) {
  .hw-bdl-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .hw-bdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-bdl-grid--one { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hw-bdl-none { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hw-bdl-one { flex-wrap: wrap; }
  .hw-bdl-one__btn { margin-left: 0; }
  .hw-bdd__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hw-bdd__separate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hw-px { padding-inline: 22px; }
  .hw-bdl-hero__title { font-size: 40px; }
  .hw-bdl-grid { grid-template-columns: minmax(0, 1fr); }
  .hw-bdl-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hw-bdl-help { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 22px; }
  .hw-bdl-help__title { font-size: 26px; }

  .hw-bdd__title { font-size: 38px; }
  .hw-bdd__price { font-size: 40px; }
  .hw-bdd__price-box { gap: 12px; }
  .hw-bdd__save { margin-left: 0; }
  .hw-bdd__plan-wrap { padding-top: 48px; }
  .hw-bdd__plan-title { font-size: 28px; }
  .hw-bdd__plan { grid-template-columns: minmax(0, 1fr); }
  .hw-bdd__plan-step { border-right: 0; }
  .hw-bdd__separate { padding-top: 44px; }
  .hw-bdd__separate-title { font-size: 26px; }
  .hw-bdd__separate-grid { grid-template-columns: minmax(0, 1fr); }
  .hw-bdd__assure { grid-template-columns: minmax(0, 1fr); }
  .hw-bdd__assure-item { padding: 10px 0; border-bottom: 1px solid var(--hw-line); }
  .hw-bdd__assure-item:last-child { border-bottom: 0; }
}
