/* Basterek — style komponentów (uzupełnienie theme.json) */

:root {
  --bst-primary: #D64545;
  --bst-primary-strong: #BE3A3A;
  --bst-primary-hover: #9E2E2E;
  --bst-cream: #EEDCC8;
  --bst-cream-soft: #F6ECE0;
  --bst-accent: #6B8F5E;
  --bst-bg: #F7F7F5;
  --bst-surface: #FFFFFF;
  --bst-text: #2F2F2F;
  --bst-muted: #6B6660;
  --bst-muted-on-cream: #5C5750;   /* 4.5:1 na #EEDCC8 */
  --bst-primary-on-cream: #A32017; /* 5.1:1 na #EEDCC8 */
  --bst-border: #E6E3DD;
  --bst-success: #4E6E43; --bst-success-soft: #EDF2E8;
  --bst-error: #A32017;   --bst-error-soft: #FBEDEC;
  --bst-warning: #8A6200; --bst-warning-soft: #FBF2DF;
  --bst-info: #2C5E86;    --bst-info-soft: #E9F1F7;
  --bst-r-card: 12px; --bst-r-control: 8px; --bst-r-badge: 4px; --bst-r-pill: 999px;
  --bst-shadow-card: 0 1px 2px rgba(47,47,47,.05);
  --bst-shadow-float: 0 10px 28px rgba(47,47,47,.16);
  --bst-font-heading: 'Playfair Display', Georgia, serif;
  --bst-font-body: Inter, system-ui, sans-serif;
  --bst-font-hand: Caveat, cursive;

  /* Nagłówek i hero — paleta „prosto z pola" (jaśniejsze tło, głęboka zieleń, cegła). */
  --bst-deep: #1F4938;            /* zieleń marki: logo, nagłówki, obrys przycisku */
  --bst-deep-ink: #18382D;
  --bst-leaf: #52734F;            /* zielony podpis nad tytułem, 4.9:1 na #F8F6F0 */
  --bst-brick: #D94A43;           /* czerwień akcentu */
  --bst-brick-dark: #B93838;
  --bst-sand: #F8F6F0;            /* tło hero */
  --bst-line: #E5E1D8;
  --bst-ink: #202A27;
  --bst-ink-soft: #5C625E;        /* 5.5:1 na #F8F6F0 */
  --bst-r-hero: 18px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }
img { height: auto; max-width: 100%; }
:focus-visible { outline: 2px solid var(--bst-primary); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Nagłówek ----------
   Układ: logo | nawigacja | konto | koszyk. Pasek jest celowo niski (72 px) —
   po usunięciu wyszukiwarki nic nie wymusza wysokiego rzędu, więc treść strony
   zaczyna się wyżej. Na tablecie znika podpis „Moje konto”, poniżej 961 px
   nawigacja zwija się w hamburger (blok wp:navigation, progi w rwd.css).

   Nagłówek pływa: sam <header> jest przezroczysty i daje tylko margines, a paskiem
   jest __inner — zaokrąglona karta z rozmytym tłem, która unosi się nad treścią.
   Wysokość zostaje stała przy przewijaniu: <header> stoi w normalnym przepływie,
   więc zmiana jego wysokości podrzucałaby treść pod nim. Zmienia się tylko cień
   i krycie tła (klasa is-scrolled z theme.js).
--------------------------------------------------------------------------- */
/* Sticky musi siąść na <header> od template-part, nie na .bst-header w środku:
   element przyklejony wędruje tylko w obrębie rodzica, a rodzicem .bst-header jest
   opakowanie równe mu wysokością — pasek odjeżdżał więc z treścią mimo position: sticky. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.bst-header { position: relative; background: none; border-bottom: 0; padding-block: 12px; }
.bst-header .bst-header__inner {
  position: relative; min-height: 72px; gap: 18px; padding-inline: 20px; background: none;
  border: 1px solid var(--bst-line); border-radius: var(--bst-r-pill);
  box-shadow: 0 4px 18px rgba(32,42,39,.06); transition: box-shadow .25s ease;
}
.bst-header.is-scrolled .bst-header__inner { box-shadow: 0 10px 30px rgba(32,42,39,.13); }

/* Tło i rozmycie siedzą na pseudo-elementach, nie na samych blokach. backdrop-filter
   na elemencie robi z niego blok zawierający dla position:fixed w środku — overlay
   menu (hamburger) przestawał być pełnoekranowy i zwijał się do wysokości paska.
   Pseudo-element nie ma potomków, więc nikomu niczego nie przestawia. */
.bst-header .bst-header__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: background-color .25s ease;
}
.bst-header.is-scrolled .bst-header__inner::before { background: rgba(255,255,255,.92); }

/* Nad i pod pigułką zostaje szczelina, przez którą przesuwa się treść — o to
   w pływającym pasku chodzi, ale ostry tekst w 12 px szparze robi bałagan.
   Po odjechaniu w dół cały pas dostaje delikatne rozmycie: przejeżdżająca treść
   zostaje miękką plamą koloru, a pasek nie traci przezroczystości. */
.bst-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.bst-header.is-scrolled::before { opacity: 1; }

/* Bez backdrop-filter (starsze WebKity) półprzezroczyste tło odkrywałoby treść pod paskiem. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bst-header .bst-header__inner::before,
  .bst-header.is-scrolled .bst-header__inner::before { background: var(--bst-surface); }
}
.bst-header__tools { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }

.bst-logo { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; text-decoration: none !important; color: var(--bst-deep-ink); flex: none; }
.bst-logo__word { font: 700 26px/1 var(--bst-font-heading); letter-spacing: -.015em; color: var(--bst-deep-ink); }

.bst-header .wp-block-navigation { --wp--style--block-gap: 2px; font-size: 15px; font-weight: 500; }
/* Siedem pozycji musi zostać w jednej linii — inaczej „Kontakt” spada pod logo.
   <ul> menu leży cztery poziomy pod <nav> (responsive-container → dialog → content),
   więc selektor potomka, nie dziecka. W otwartym overlayu menu ma być kolumną,
   dlatego wykluczamy stan is-menu-open. */
.bst-header .wp-block-navigation__responsive-container:not(.is-menu-open) ul.wp-block-navigation__container { flex-wrap: nowrap; gap: 2px; }
.bst-header nav.bst-nav { flex: 0 0 auto; }
.bst-header nav.bst-nav .wp-block-navigation-item__content { white-space: nowrap; }

/* Bez wyszukiwarki nagłówek mieści się w tej samej linii treści co reszta strony
   (1240 px) — logo równa się w pionie z krawędzią sekcji poniżej. */
.bst-header .bst-header__inner { max-width: min(1240px, 100%); }
/* Pozycje jako pigułki: odstęp robi padding, nie block-gap, więc cel kliknięcia
   jest większy niż sam tekst, a stan aktywny ma na czym usiąść. Ta sama geometria
   co koszyk i okrągły „+” na kartach — nagłówek czyta się jako jeden komplet. */
.bst-header .wp-block-navigation a.wp-block-navigation-item__content {
  padding: 9px 13px; border-radius: var(--bst-r-pill); color: var(--bst-ink);
  transition: background-color .18s ease, color .18s ease;
}
.bst-header .wp-block-navigation a:hover { text-decoration: none; background: var(--bst-cream-soft); color: var(--bst-deep); }
.bst-header .wp-block-navigation .current-menu-item > a { background: var(--bst-deep); color: #fff; box-shadow: none; }
.bst-header .wp-block-navigation .current-menu-item > a:hover { background: var(--bst-deep-ink); color: #fff; }

/* Konto */
.bst-account-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; white-space: nowrap; border-radius: var(--bst-r-pill); color: var(--bst-ink) !important; text-decoration: none !important; font: 500 14px var(--bst-font-body); }
.bst-account-link:hover { color: var(--bst-brick) !important; }
.bst-account-link .bst-icon { width: 20px; height: 20px; }

/* Koszyk */
.bst-cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; white-space: nowrap; border: 1px solid var(--bst-line); border-radius: var(--bst-r-pill); color: var(--bst-ink) !important; text-decoration: none !important; font: 600 14px var(--bst-font-body); background: var(--bst-surface); position: relative; }
.bst-cart-link:hover { border-color: var(--bst-deep); }
.bst-cart-link .bst-icon { width: 19px; height: 19px; }
.bst-cart-link__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C83F3F; color: #fff; font: 700 12px/20px var(--bst-font-body); text-align: center; }

.bst-header .wc-block-customer-account__link { color: var(--bst-ink); display: inline-flex; padding: 8px; border-radius: var(--bst-r-control); }
.bst-header .wc-block-customer-account__link:hover { color: var(--bst-brick); }
.bst-header .wc-block-mini-cart__button { border-radius: var(--bst-r-control); padding: 8px 12px; }
.bst-header .wc-block-mini-cart__badge { background: var(--bst-brick); color: #fff; border: 0; }
.bst-header .wc-block-mini-cart__amount { font-weight: 600; }

@media (max-width: 1100px) {
  .bst-header .bst-header__inner { gap: 14px; }
  .bst-header .wp-block-navigation { font-size: 14.5px; }
  .bst-header .wp-block-navigation__responsive-container:not(.is-menu-open) ul.wp-block-navigation__container { gap: 0; }
  .bst-header .wp-block-navigation a.wp-block-navigation-item__content { padding: 8px 10px; }
  .bst-account-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
}
@media (max-width: 781px) {
  .bst-header .bst-header__inner { min-height: 64px; gap: 8px; }
  .bst-logo__word { font-size: 22px; }
  .bst-cart-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
  .bst-cart-link { padding: 0 12px; }
  .bst-account-link { padding: 0 6px; }
  .bst-logo { margin-right: 0; }
}
@media (max-width: 600px) {
  .bst-header .bst-header__inner { min-height: 60px; }
}

/* ---------- Przyciski ---------- */
.wp-block-button__link, .wc-block-components-button, .wc-block-components-button:not(.is-link), button.wp-element-button, .single_add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  border-radius: var(--bst-r-control) !important; font-family: var(--bst-font-body) !important; font-weight: 600 !important; min-height: 48px; box-shadow: none !important;
}
.wc-block-components-button:not(.is-link) { background: var(--bst-primary-strong) !important; color: #fff !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--bst-primary-hover) !important; }
.wc-block-components-button.outlined, .wc-block-components-button.is-secondary { background: transparent !important; color: var(--bst-text) !important; border: 1px solid var(--bst-border) !important; }
.is-style-pill .wp-block-button__link { border-radius: var(--bst-r-pill) !important; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--bst-text); border: 1px solid var(--bst-border); }
.is-style-outline .wp-block-button__link:hover { border-color: var(--bst-text); background: transparent; color: var(--bst-text); }
@media (max-width: 600px) { .wp-block-button__link { min-height: 52px; } }

/* ---------- Karty i pasy ---------- */
.is-style-card, .bst-card { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); box-shadow: var(--bst-shadow-card); }
.is-style-cream-band { background: var(--bst-cream); border-radius: var(--bst-r-card); }
.bst-eyebrow { font: 600 13px/1.2 var(--bst-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bst-primary-strong); margin: 0 0 8px; }
.bst-hand { font: 600 19px/1.25 var(--bst-font-hand); color: var(--bst-accent); }
.bst-muted { color: var(--bst-muted); }
.bst-section { padding-block: clamp(48px, 7vw, 80px); }
.bst-section--tight { padding-block: clamp(32px, 5vw, 56px); }

/* ---------- Badge, chipy, pill-tabs ---------- */
.bst-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--bst-font-body); padding: 5px 8px; border-radius: var(--bst-r-badge); background: var(--bst-bg); color: var(--bst-text); border: 1px solid var(--bst-border); }
.bst-badge--accent { background: var(--bst-primary-strong); border-color: var(--bst-primary-strong); color: #fff; }
.bst-badge--info { background: var(--bst-info-soft); border-color: transparent; color: var(--bst-info); }
.bst-badge--success { background: var(--bst-success-soft); border-color: transparent; color: var(--bst-success); }
.bst-chip { display: inline-flex; align-items: center; font: 500 13px/1 var(--bst-font-body); padding: 7px 11px; border-radius: var(--bst-r-pill); background: var(--bst-bg); border: 1px solid var(--bst-border); color: var(--bst-text); }
.bst-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.bst-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--bst-r-pill); border: 1px solid var(--bst-border); background: var(--bst-surface); color: var(--bst-text); font: 500 15px/1 var(--bst-font-body); text-decoration: none !important; }
.bst-tabs a:hover { border-color: var(--bst-text); }
.bst-tabs a.is-active { background: var(--bst-primary-strong); border-color: var(--bst-primary-strong); color: #fff; }

/* ---------- Siatka produktów (Product Collection) ---------- */
.bst-products .wc-block-product-template { gap: 20px !important; }
.bst-products .wc-block-product, .bst-products li.product { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); box-shadow: var(--bst-shadow-card); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.bst-products .wc-block-product:hover { transform: translateY(-2px); box-shadow: var(--bst-shadow-float); }
.bst-products .wc-block-components-product-image, .bst-products .wc-block-product img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.bst-products .wc-block-components-product-image { margin-bottom: 4px; }
.bst-products .wp-block-post-title { font: 600 17px/1.3 var(--bst-font-heading); margin: 0; }
.bst-products .wp-block-post-title a { color: var(--bst-text); text-decoration: none; }
.bst-products .wc-block-components-product-price { font: 700 20px/1.2 var(--bst-font-body); font-variant-numeric: tabular-nums; color: var(--bst-text); }
.bst-products .wc-block-components-product-price del { color: var(--bst-muted); font-weight: 400; font-size: .85em; margin-right: 6px; }
.bst-products .bst-product-meta { font: 400 14px/1.4 var(--bst-font-body); color: var(--bst-muted); }
.bst-products .bst-product-badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.bst-products .wp-block-woocommerce-product-button, .bst-products .wc-block-components-product-button { margin: 0; }
.bst-product__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
/* Okrągły „+” */
.bst-products .wc-block-components-product-button .wp-block-button__link, .bst-products .add_to_cart_button {
  width: 44px; height: 44px; min-height: 44px; padding: 0 !important; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; position: relative;
}
.bst-products .wc-block-components-product-button .wp-block-button__link::before, .bst-products .add_to_cart_button::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2v12M2 8h12' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2v12M2 8h12' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>") center/contain no-repeat; }
.bst-products .wc-block-components-product-button .wp-block-button__link.added::before { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.bst-products .wc-block-components-product-button .wp-block-button__link.loading::before { animation: bst-spin 1s linear infinite; -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2' stroke-dasharray='20 18'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2' stroke-dasharray='20 18'/></svg>"); }
.bst-products .wc-block-components-product-button__added-to-cart-link, .bst-products .added_to_cart { display: none !important; }
@keyframes bst-spin { to { transform: rotate(360deg); } }
/* Stepper ilości — zastępuje okrągły „+", gdy produkt jest już w koszyku */
.bst-products .wc-block-components-product-button[hidden] { display: none !important; }
.bst-qty { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 2px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-pill); background: var(--bst-surface); }
.bst-qty[hidden] { display: none !important; }
.bst-qty__btn { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--bst-primary-strong); color: #fff; cursor: pointer; transition: background .15s; }
.bst-qty__btn:hover { background: var(--bst-primary-hover); }
.bst-qty__btn--minus { background: var(--bst-cream-soft); color: var(--bst-text); }
.bst-qty__btn--minus:hover { background: var(--bst-cream); }
.bst-qty__icon { width: 16px; height: 16px; }
.bst-qty__n { min-width: 30px; text-align: center; font: 700 16px/1 var(--bst-font-body); font-variant-numeric: tabular-nums; color: var(--bst-text); }
.bst-qty.is-busy { opacity: .55; pointer-events: none; }
/* Skrzynki na home: 3 kolumny, większe karty */


/* ---------- Karta produktu ---------- */
.bst-single .wp-block-woocommerce-product-image-gallery img, .bst-single .woocommerce-product-gallery__image img { border-radius: var(--bst-r-card); aspect-ratio: 1/1; object-fit: cover; }
.bst-single h1.wp-block-post-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 8px 0 12px; }
.bst-single .wc-block-components-product-price, .bst-single .price { font: 700 28px/1.2 var(--bst-font-body); }
.bst-single .wp-block-add-to-cart-form .quantity .qty, .bst-single .wc-block-components-quantity-selector__input { min-height: 48px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-control); text-align: center; width: 72px; font: 500 16px var(--bst-font-body); }
.bst-single .wp-block-add-to-cart-form form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bst-single .single_add_to_cart_button { padding: 0 26px; }
.bst-composition { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bst-composition li { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 12px; border-radius: var(--bst-r-pill); background: var(--bst-cream-soft); border: 1px solid #E8D6C1; font: 500 14px/1.2 var(--bst-font-body); }
.bst-composition li small { color: var(--bst-muted); font-weight: 400; }
.bst-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.bst-trust > div { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.bst-trust svg { flex: none; color: var(--bst-accent); }
.bst-trust strong { display: block; font-size: 15px; }
.bst-trust span { font-size: 13px; color: var(--bst-muted); }
@media (max-width: 600px) { .bst-trust { grid-template-columns: 1fr; } }
/* Sticky pasek zakupu (mobile) */
@media (max-width: 781px) {
  .bst-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bst-surface); border-top: 1px solid var(--bst-border); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(47,47,47,.08); }
  .bst-sticky-buy .price { font: 700 20px var(--bst-font-body); }
  body.bst-has-sticky-buy { padding-bottom: 76px; }
}
@media (min-width: 782px) { .bst-sticky-buy { display: none; } }

/* ---------- Ikony liniowe ---------- */
.bst-icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bst-tile { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 24px; }
.bst-tile__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bst-success-soft); color: var(--bst-accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bst-tile h3 { margin: 0 0 6px; font-size: 20px; }
.bst-tile p { margin: 0; color: var(--bst-muted); }
.bst-grid { display: grid; gap: 20px; }
.bst-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bst-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bst-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 1023px) { .bst-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .bst-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 639px) { .bst-grid--4, .bst-grid--3, .bst-grid--2 { grid-template-columns: 1fr; } }

/* Kroki */
.bst-step { position: relative; padding: 24px; background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); }
.bst-step__num { font: 700 20px/1 var(--bst-font-body); color: var(--bst-primary); width: 40px; height: 40px; border-radius: 50%; background: var(--bst-cream-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bst-step h3 { margin: 0 0 6px; font-size: 20px; }
.bst-step p { margin: 0; color: var(--bst-muted); }

/* Tabela klucz → wartość */
.bst-kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.bst-kv th, .bst-kv td { padding: 12px 0; border-bottom: 1px solid var(--bst-border); text-align: left; vertical-align: top; }
.bst-kv th { font-weight: 500; color: var(--bst-muted); width: 40%; }
.bst-kv tr:last-child th, .bst-kv tr:last-child td { border-bottom: 0; }

/* ---------- Nagłówek sekcji ---------- */
.bst-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 32px; flex-wrap: wrap; }
.bst-heading__main { max-width: 640px; }
.bst-heading__title { margin: 0; }
.bst-heading__lead { margin: 12px 0 0; color: var(--bst-muted); font-size: 17px; }
.bst-heading__link { font-weight: 600; font-size: 15px; white-space: nowrap; padding-bottom: 4px; }

/* ---------- Hero ----------
   Dwie kolumny (tekst | karuzela) na piaskowym tle zamkniętym w karcie —
   pełną szerokość ekranu zostawiamy, bo 100vw dokłada poziomy pasek przewijania
   wszędzie tam, gdzie system pokazuje scrollbar.
--------------------------------------------------------------------------- */
.bst-hero {
  background: var(--bst-sand); border-radius: var(--bst-r-hero);
  padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3vw, 44px);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.bst-hero__inner { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: clamp(24px, 4vw, 52px); align-items: center; min-height: 460px; }
.bst-hero__text { display: flex; flex-direction: column; align-items: flex-start; }

.bst-hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--bst-leaf); font: 700 15px var(--bst-font-body); letter-spacing: .12em; text-transform: uppercase; }
.bst-hero__eyebrow-icon { width: 18px; height: 18px; flex: none; }
.bst-hero__eyebrow-rule { width: 44px; height: 1px; background: currentColor; opacity: .45; }

.bst-hero__title { margin: 0 0 16px; max-width: 650px; text-wrap: balance; font: 700 clamp(38px, 4.4vw, 58px)/1.04 var(--bst-font-heading); color: var(--bst-deep-ink); letter-spacing: -.015em; }
.bst-hero__lead { margin: 0 0 22px; max-width: 52ch; font-size: 18px; line-height: 1.6; color: var(--bst-ink-soft); }

.bst-hero__usp { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0 0 26px; padding: 0; border: 0; }
.bst-hero__usp li { display: flex; align-items: center; gap: 12px; }
.bst-hero__usp-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: var(--bst-r-pill); background: rgba(110,143,104,.14); color: var(--bst-deep); }
.bst-hero__usp-icon .bst-icon { width: 21px; height: 21px; }
.bst-hero__usp-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.bst-hero__usp strong { font-weight: 600; color: var(--bst-ink); }
.bst-hero__usp span { color: var(--bst-ink-soft); }

.bst-hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bst-btn { display: inline-flex; box-sizing: border-box; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: var(--bst-r-pill); font: 700 16px var(--bst-font-body); text-decoration: none !important; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.bst-btn__arrow { width: 20px; height: 20px; }
.bst-btn--primary { background: var(--bst-brick); color: #fff !important; border: 2px solid var(--bst-brick); }
.bst-btn--primary:hover { background: var(--bst-brick-dark); border-color: var(--bst-brick-dark); transform: translateY(-2px); }
.bst-btn--outline { background: transparent; color: var(--bst-deep) !important; border: 2px solid var(--bst-deep); }
.bst-btn--outline:hover { background: var(--bst-deep); color: #fff !important; transform: translateY(-2px); }
.bst-btn-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--bst-r-control); border: 1px solid var(--bst-border); background: var(--bst-surface); color: var(--bst-text) !important; font: 600 15px var(--bst-font-body); text-decoration: none !important; }
.bst-btn-ghost:hover { border-color: var(--bst-text); }

/* Kreski „iskierki" przy przyciskach hero — jedyny odręczny akcent. Kształtu przycisku
   nie robimy rozciąganym SVG: przy zmiennej szerokości psuł rogi i grubość obrysu. */
.bst-hero__actions .bst-btn { position: relative; }
.bst-hero__actions .bst-btn::before,
.bst-hero__actions .bst-btn::after {
  content: ""; position: absolute; top: 50%; width: 13px; height: 30px;
  background: var(--bst-leaf); opacity: .55; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44'><path d='M21 11 9 6M22 22H8M21 33 9 38' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44'><path d='M21 11 9 6M22 22H8M21 33 9 38' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>") center/contain no-repeat;
}
.bst-hero__actions .bst-btn::before { right: 100%; margin-right: 8px; transform: translateY(-50%) scaleX(-1); }
.bst-hero__actions .bst-btn::after { left: 100%; margin-left: 8px; transform: translateY(-50%); }
/* Tylko skrajne kreski: między przyciskami cztery komplety zlewały się w gąszcz. */
.bst-hero__actions .bst-btn:not(:first-child)::before,
.bst-hero__actions .bst-btn:not(:last-child)::after { display: none; }
.bst-hero__actions { gap: 18px; }

@media (max-width: 600px) {
  /* Przyciski idą na pełną szerokość — kreski nie mają gdzie stanąć. */
  .bst-hero__actions { gap: 12px; }
  .bst-hero__actions .bst-btn::before,
  .bst-hero__actions .bst-btn::after { display: none; }
}

/* Prawa kolumna: karuzela na organicznej zielonej plamie. */
.bst-hero__visual { position: relative; min-width: 0; }
.bst-hero__blob { position: absolute; inset: -6% -4% -2% -6%; background: rgba(110,143,104,.16); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; z-index: 0; }
.bst-hero__note {
  position: absolute; right: 8px; top: -6px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 20px/1 var(--bst-font-hand); color: var(--bst-leaf);
}
.bst-hero__note-arrow { width: 22px; height: 22px; transform: rotate(28deg); }

.bst-slider { position: relative; z-index: 1; }
.bst-slider__viewport { overflow: hidden; border-radius: var(--bst-r-hero); }
.bst-slider__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform .5s ease; }
.bst-slider__slide { flex: 0 0 100%; min-width: 0; }
.bst-slider__figure { position: relative; margin: 0; }
.bst-slider__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bst-r-hero); background: var(--bst-cream-soft); }
.bst-slider__caption {
  position: absolute; left: 14px; right: auto; bottom: 14px; max-width: calc(100% - 28px);
  padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92);
  font: 600 14px/1.35 var(--bst-font-body); color: var(--bst-ink);
}
.bst-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--bst-line); border-radius: var(--bst-r-pill);
  background: rgba(255,255,255,.94); color: var(--bst-deep); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bst-slider__nav:hover { background: #fff; border-color: var(--bst-deep); }
.bst-slider__nav .bst-icon { width: 22px; height: 22px; }
.bst-slider__nav--prev { left: 10px; }
.bst-slider__nav--prev .bst-icon { transform: rotate(90deg); }
.bst-slider__nav--next { right: 10px; }
.bst-slider__nav--next .bst-icon { transform: rotate(-90deg); }
.bst-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.bst-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: var(--bst-r-pill); background: rgba(31,73,56,.24); cursor: pointer; transition: background .15s, width .15s; }
.bst-slider__dot.is-active { width: 26px; background: var(--bst-deep); }
/* Pole kliknięcia kropki ma 44 px, sama kropka zostaje mała. */
.bst-slider__dot::before { content: ""; position: absolute; width: 44px; height: 44px; transform: translate(-17px, -17px); }
.bst-slider__dots { position: relative; }
.bst-slider__dot { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .bst-slider__track { transition: none; }
  .bst-btn:hover { transform: none; }
}

@media (max-width: 900px) {
  .bst-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .bst-hero__title { max-width: none; font-size: clamp(32px, 6.4vw, 40px); }
  .bst-hero__lead { font-size: 16.5px; }
  .bst-hero__note { top: auto; bottom: -4px; right: 4px; }
}
@media (max-width: 600px) {
  .bst-hero { padding: 20px 16px 24px; }
  .bst-hero__usp { gap: 10px 18px; }
  .bst-hero__usp li { flex: 1 1 100%; }
  .bst-hero__actions { width: 100%; gap: 12px; flex-direction: column; align-items: stretch; }
  .bst-btn { width: 100%; }
}

/* ---------- Kafle kategorii ---------- */
.bst-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
.bst-cat { display: flex; flex-direction: column; background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); overflow: hidden; text-decoration: none !important; color: var(--bst-text) !important; transition: border-color .15s, transform .15s; }
.bst-cat:hover { border-color: var(--bst-text); transform: translateY(-2px); }
.bst-cat__img { display: block; aspect-ratio: 16 / 10; background: var(--bst-cream-soft) center/cover no-repeat; }
.bst-cat__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 6px; }
.bst-cat__body strong { font: 600 16px var(--bst-font-heading); }
.bst-cat__body span { font-size: 13px; color: var(--bst-muted); }
.bst-cat__arrow { padding: 0 14px 12px; color: var(--bst-primary-strong); font-size: 15px; }
@media (max-width: 1023px) { .bst-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .bst-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sekcja Dostawa ---------- */
.bst-delivery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bst-nextdate { background: var(--bst-cream); border-radius: var(--bst-r-card); padding: 20px 22px; margin-bottom: 12px; }
.bst-nextdate strong { display: block; font: 700 26px/1.2 var(--bst-font-heading); margin-bottom: 6px; }
.bst-nextdate span { font-size: 14px; color: var(--bst-muted); }
.bst-money-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bst-money-tile { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 16px 18px; }
.bst-money-tile span { display: block; font-size: 13px; color: var(--bst-muted); margin-bottom: 4px; }
.bst-money-tile strong { font: 700 20px var(--bst-font-body); font-variant-numeric: tabular-nums; }
.bst-realization { padding: 24px; margin-bottom: 16px; }
.bst-realization h3 { margin: 0 0 12px; font-size: 18px; }
.bst-realization p { margin: 0 0 10px; color: var(--bst-muted); }
.bst-realization p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .bst-delivery { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.bst-cta { background: var(--bst-cream); border-radius: var(--bst-r-card); padding: clamp(32px, 5vw, 56px); text-align: center; margin-block: 24px; }
.bst-cta h2 { margin: 0 0 10px; }
.bst-cta p { max-width: 56ch; margin: 0 auto 22px; font-size: 17px; color: var(--bst-muted); }
.bst-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pasek kroków (koszyk → dane → potwierdzenie) ---------- */
.bst-steps { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0 0 28px; padding: 0; font: 500 14px var(--bst-font-body); color: var(--bst-muted); flex-wrap: wrap; }
.bst-steps li { display: inline-flex; align-items: center; gap: 8px; }
.bst-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--bst-border); margin-right: 4px; }
.bst-steps .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bst-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; background: var(--bst-surface); }
.bst-steps .is-active { color: var(--bst-text); }
.bst-steps .is-active .n { background: var(--bst-primary-strong); border-color: var(--bst-primary-strong); color: #fff; }
.bst-steps .is-done .n { background: var(--bst-success-soft); border-color: transparent; color: var(--bst-success); }

/* Komunikaty */
.bst-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--bst-r-control); font-size: 14px; line-height: 1.45; }
.bst-notice svg { flex: none; margin-top: 1px; }
.bst-notice--info { background: var(--bst-info-soft); color: var(--bst-info); }
.bst-notice--success { background: var(--bst-success-soft); color: var(--bst-success); }
.bst-notice--warning { background: var(--bst-warning-soft); color: var(--bst-warning); }
.bst-notice--error { background: var(--bst-error-soft); color: var(--bst-error); }
.bst-progress { height: 6px; border-radius: 3px; background: var(--bst-border); overflow: hidden; margin-top: 8px; }
.bst-progress > span { display: block; height: 100%; background: var(--bst-accent); transition: width .3s; }

/* ---------- Toast — potwierdzenie akcji ----------
   Okrągły „+” na karcie produktu dodaje do koszyka bez żadnej widocznej
   odpowiedzi (stepper pojawia się dopiero po odpowiedzi Store API, a licznik
   w nagłówku łatwo przeoczyć). Toast mówi wprost, co wleciało do koszyka.
   Odliczanie do zniknięcia prowadzi pasek CSS — dzięki temu najechanie myszą
   wstrzymuje je bez linijki JS (animation-play-state).
--------------------------------------------------------------------------- */
.bst-toasts { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.bst-toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 14px; border-radius: var(--bst-r-card); background: var(--bst-surface); border: 1px solid var(--bst-line); box-shadow: var(--bst-shadow-float); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1); }
.bst-toast.is-in { opacity: 1; transform: none; }
.bst-toast.is-bump { animation: bst-toast-bump .3s ease; }
.bst-toast__thumb { position: relative; flex: none; width: 46px; height: 46px; }
.bst-toast__thumb img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; background: var(--bst-cream-soft); }
.bst-toast__mark { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--bst-accent); border: 2px solid var(--bst-surface); }
.bst-toast__mark--solo { position: static; width: 34px; height: 34px; border: 0; }
.bst-toast__mark::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/11px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/11px no-repeat; }
.bst-toast__mark--solo::before { -webkit-mask-size: 18px; mask-size: 18px; }
.bst-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bst-toast__title { font: 600 14px/1.35 var(--bst-font-body); color: var(--bst-text); }
.bst-toast__text { font: 400 13px/1.35 var(--bst-font-body); color: var(--bst-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bst-toast__cta { align-self: flex-start; margin-top: 4px; padding: 4px 0; font: 600 13px/1.2 var(--bst-font-body); color: var(--bst-primary-strong); text-decoration: none; }
.bst-toast__cta::after { content: " →"; }
.bst-toast__cta:hover { color: var(--bst-primary-hover); text-decoration: underline; }
.bst-toast__close { flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bst-muted); font: 400 20px/1 var(--bst-font-body); cursor: pointer; transition: background .15s, color .15s; }
.bst-toast__close:hover { background: var(--bst-cream-soft); color: var(--bst-text); }
.bst-toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bst-accent); transform-origin: left; animation: bst-toast-bar linear forwards; }
.bst-toast:hover .bst-toast__bar, .bst-toast:focus-within .bst-toast__bar { animation-play-state: paused; }
@keyframes bst-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bst-toast-bump { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  .bst-toast { transition: none; transform: none; }
  .bst-toast.is-bump { animation: none; }
  .bst-toast__bar { display: none; }
}

/* ---------- Basterek AI — regułowy pomocnik ----------
   Markup renderuje wtyczka (BST_Assistant), styl trzymamy tu razem z toastem
   i sticky-buy, bo dzielą ten sam dół ekranu i tę samą oś z-index.
   Lewy róg, bo prawy zajmują toasty. z-index 55: nad nagłówkiem (50)
   i sticky-buy (40), pod toastem (60) — potwierdzenie „dodano do koszyka”
   nigdy nie może zniknąć pod panelem.
--------------------------------------------------------------------------- */
.bst-ai { position: fixed; left: 16px; bottom: 16px; z-index: 55; font-family: var(--bst-font-body); }
.bst-ai__launcher { position: relative; width: 56px; height: 56px; padding: 0; border: 1px solid var(--bst-line); border-radius: 50%; background: var(--bst-surface); box-shadow: var(--bst-shadow-float); cursor: pointer; display: grid; place-items: center; font-size: 26px; line-height: 1; transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s; }
.bst-ai__launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47,47,47,.2); }
.bst-ai__launcher[aria-expanded="true"] { background: var(--bst-cream-soft); }
.bst-ai.has-tips .bst-ai__launcher::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--bst-brick); border: 2px solid var(--bst-surface); }
.bst-ai__panel { position: absolute; left: 0; bottom: 68px; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; box-sizing: border-box; background: var(--bst-surface); border: 1px solid var(--bst-line); border-radius: var(--bst-r-card); box-shadow: var(--bst-shadow-float); padding: 14px; animation: bst-ai-in .16s ease; }
.bst-ai__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bst-ai__title { margin: 0; font: 600 15px/1.2 var(--bst-font-body); color: var(--bst-deep); }
.bst-ai__close { position: relative; width: 32px; height: 32px; margin: -4px -4px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bst-muted); font: 400 22px/1 var(--bst-font-body); cursor: pointer; }
.bst-ai__close::before { content: ""; position: absolute; inset: -6px; } /* cel dotykowy 44 px */
.bst-ai__close:hover { background: var(--bst-cream-soft); color: var(--bst-text); }
.bst-ai__hello { margin: 6px 0 10px; font: 400 13px/1.4 var(--bst-font-body); color: var(--bst-muted); }
.bst-ai__tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bst-ai__tip { display: flex; gap: 10px; padding: 10px; border-radius: var(--bst-r-control); background: var(--bst-sand); border: 1px solid var(--bst-border); }
.bst-ai__tip.is-good { background: var(--bst-success-soft); border-color: #CFDCC7; }
.bst-ai__tip-emoji { flex: none; font-size: 18px; line-height: 1.3; }
.bst-ai__tip-text { display: block; font: 400 13px/1.45 var(--bst-font-body); color: var(--bst-text); }
.bst-ai__tip-act { position: relative; margin-top: 4px; padding: 6px 0; border: 0; background: none; font: 600 13px/1.2 var(--bst-font-body); color: var(--bst-primary-strong); cursor: pointer; }
.bst-ai__tip-act::after { content: " →"; }
.bst-ai__tip-act:hover { color: var(--bst-primary-hover); text-decoration: underline; }
.bst-ai__foot { margin: 10px 0 0; font: 400 11px/1.35 var(--bst-font-body); color: var(--bst-muted); }
@keyframes bst-ai-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bst-ai__launcher { transition: none; }
  .bst-ai__launcher:hover { transform: none; }
  .bst-ai__panel { animation: none; }
}

/* ---------- Bloki koszyka / zamówienia WooCommerce ---------- */
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 32px; }
.wc-block-cart .wc-block-components-sidebar, .wc-block-checkout .wc-block-components-sidebar { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 20px; align-self: flex-start; position: sticky; top: 108px; }
.wc-block-components-checkout-step { padding-left: 0; }
.wc-block-components-checkout-step__heading .wc-block-components-title, .wc-block-components-title { font-family: var(--bst-font-heading) !important; font-weight: 600 !important; }
.wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=number], .wc-block-components-textarea, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-select .components-custom-select-control__button, .wc-block-components-form .wc-block-components-select select {
  border: 1px solid var(--bst-border) !important; border-radius: var(--bst-r-control) !important; min-height: 48px; font-family: var(--bst-font-body) !important; background: var(--bst-surface);
}
.wc-block-components-text-input.is-active input, .wc-block-components-text-input input:focus { border-color: var(--bst-text) !important; box-shadow: none !important; }
.wc-block-components-text-input.has-error input { border-color: var(--bst-error) !important; }
.wc-block-components-validation-error p { color: var(--bst-error); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: var(--bst-r-control); }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--bst-primary) !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--bst-primary-strong) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--bst-primary-strong) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--bst-primary-strong); border-color: var(--bst-primary-strong); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { color: #fff; }
.wc-block-components-order-summary-item__image img, .wc-block-cart-item__image img { border-radius: 8px; }
.wc-block-components-product-name { font-weight: 600; color: var(--bst-text); }
.wc-block-cart-items__header { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--bst-muted); }
.wc-block-components-quantity-selector { border: 1px solid var(--bst-border); border-radius: var(--bst-r-control); }
.wc-block-components-quantity-selector::after { border-radius: var(--bst-r-control); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; font-weight: 700; }
.wc-block-components-notice-banner { border-radius: var(--bst-r-control); }
.wc-block-components-notice-banner.is-error { background: var(--bst-error-soft); border-color: var(--bst-error); }
.wc-block-components-notice-banner.is-info { background: var(--bst-info-soft); border-color: var(--bst-info); }
.wc-block-components-notice-banner.is-success { background: var(--bst-success-soft); border-color: var(--bst-success); }
.wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option { padding-left: 56px; }
.wc-block-components-local-pickup-select .wc-block-components-radio-control__option { border-radius: var(--bst-r-control); }
.wc-block-checkout__terms { font-size: 14px; }
.wc-block-components-checkout-place-order-button { width: 100%; }
@media (max-width: 781px) { .wc-block-cart .wc-block-components-sidebar, .wc-block-checkout .wc-block-components-sidebar { position: static; } .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; } }
/* Kalendarz terminu (pole select w checkout) — wyróżnienie */
.wc-block-components-address-form__basterek-delivery-date, [class*="basterek-delivery-date"] { grid-column: 1 / -1; }
/* Ukryj mini-koszyk w drawerze: przyciski */
.wc-block-mini-cart__footer-actions .wc-block-components-button { flex: 1; }

/* Potwierdzenie zamówienia */
.bst-confirmation .wc-block-order-confirmation-status { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 24px; }
.bst-confirmation .wc-block-order-confirmation-summary-list { gap: 12px; }
.bst-confirmation .wc-block-order-confirmation-summary-list-item { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-control); padding: 12px 16px; }
.bst-confirmation .wc-block-order-confirmation-summary-list-item__key { color: var(--bst-muted); font-size: 13px; }
.bst-confirmation .wc-block-order-confirmation-totals table { border-collapse: collapse; }
.bst-confirmation .wc-block-order-confirmation-totals th, .bst-confirmation .wc-block-order-confirmation-totals td { border-color: var(--bst-border); }

/* ---------- Mapa punktów odbioru ---------- */
.bst-pickup { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 20px; align-items: start; }
.bst-pickup__list { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow: auto; padding-right: 4px; }
.bst-pickup__map { min-height: 480px; border-radius: var(--bst-r-card); border: 1px solid var(--bst-border); background: repeating-linear-gradient(135deg,#F1F2EC 0 10px,#E4E7DD 10px 20px); overflow: hidden; }
.bst-pickup__map.leaflet-container { font-family: var(--bst-font-body); }
.bst-point { text-align: left; width: 100%; background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 14px 16px; cursor: pointer; font-family: var(--bst-font-body); color: var(--bst-text); display: grid; gap: 4px; transition: border-color .15s; }
.bst-point:hover { border-color: var(--bst-text); }
.bst-point.is-active { border: 2px solid var(--bst-primary); padding: 13px 15px; }
.bst-point strong { font-size: 16px; }
.bst-point span { font-size: 14px; color: var(--bst-muted); }
.bst-point .bst-point__hours { font-size: 13px; }
.bst-marker { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--bst-primary); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(47,47,47,.35); }
.bst-marker.is-active { background: var(--bst-accent); }
.leaflet-popup-content { font: 400 13px/1.5 var(--bst-font-body); color: var(--bst-muted); }
.leaflet-popup-content strong { display: block; font: 600 14px var(--bst-font-body); color: var(--bst-text); }
@media (max-width: 900px) { .bst-pickup { grid-template-columns: 1fr; } .bst-pickup__map { order: -1; min-height: 320px; } .bst-pickup__list { max-height: none; } }
/* Mapa w checkout */
.bst-checkout-map { margin: 8px 0 14px; }
.bst-checkout-map .bst-pickup__map { min-height: 300px; }
.bst-checkout-map .bst-pickup { grid-template-columns: 1fr; }

/* ---------- Stopka ---------- */
.bst-footer { background: var(--bst-surface); border-top: 1px solid var(--bst-border); font-size: 14px; color: var(--bst-muted); }
.bst-footer h3, .bst-footer h4, .bst-footer .wp-block-heading { font: 600 13px/1.2 var(--bst-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bst-text); margin: 0 0 12px; }
.bst-footer .wp-block-navigation { flex-direction: column; gap: 8px !important; --wp--style--block-gap: 8px; }
.bst-footer .wp-block-navigation a { color: var(--bst-muted); }
.bst-footer .wp-block-navigation a:hover { color: var(--bst-primary-strong); text-decoration: none; }
.bst-footer address { font-style: normal; line-height: 1.6; }
.bst-payments { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bst-payments span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--bst-border); border-radius: 6px; font: 700 11px/1 var(--bst-font-body); color: var(--bst-text); background: var(--bst-surface); letter-spacing: .02em; }
.bst-footer__bottom { border-top: 1px solid var(--bst-border); padding: 16px 0; font-size: 13px; }
.bst-cookie-link { background: none; border: 0; padding: 0; color: var(--bst-muted); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Strony informacyjne ---------- */
.bst-info { max-width: 760px; margin-inline: auto; }
.bst-info h2 { font-size: 26px; margin-top: 40px; }
.bst-info h3 { font-size: 20px; margin-top: 28px; }
.bst-info .bst-toc { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 20px 24px; margin: 24px 0 32px; }
.bst-info .bst-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.bst-info .bst-toc a { color: var(--bst-text); }
.bst-important { background: var(--bst-warning-soft); border-left: 3px solid var(--bst-warning); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.bst-form-lines p { border-bottom: 1px dotted var(--bst-muted); padding: 10px 0 4px; margin: 0; }
@media (max-width: 600px) { .bst-info .bst-toc ol { columns: 1; } }

/* 404 */
.bst-404 { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.bst-404 .bst-hand { font-size: 28px; }

/* Cookies: Complianz — dopasowanie kolorów zrobione w ustawieniach wtyczki; tu tylko font */
#cmplz-cookiebanner-container, .cmplz-cookiebanner { font-family: var(--bst-font-body) !important; }

/* Drobne: zdjęcia zastępcze produktów bez obrazka */
.wc-block-components-product-image img.wc-block-components-product-image__placeholder, img.woocommerce-placeholder { background: var(--bst-cream-soft); }

/* ---------- Karty produktów: kompaktowe + skład na zdjęciu ---------- */
.bst-products .wc-block-product { position: relative; padding: 10px 10px 12px; gap: 6px; }
.bst-products .wp-block-post-title { font-size: 17px; }
.bst-products .wc-block-components-product-price { font-size: 18px; }
.bst-products .bst-product-meta-wrap { display: contents; }
.bst-products .bst-product-badges { position: absolute; top: 18px; left: 18px; z-index: 4; min-height: 0; pointer-events: none; }
.bst-products .bst-product-badges .bst-badge { box-shadow: 0 1px 3px rgba(47,47,47,.12); }
.bst-products .bst-product-badges .bst-badge:not(.bst-badge--accent):not(.bst-badge--info):not(.bst-badge--success) { background: rgba(255,255,255,.94); }
.bst-product-excerpt { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bst-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bst-comp { position: absolute; top: 10px; left: 10px; right: 10px; aspect-ratio: 1 / 1; z-index: 3; pointer-events: none; border-radius: 8px; overflow: hidden; }
.bst-comp__toggle { pointer-events: auto; position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-pill); background: rgba(255,255,255,.94); color: var(--bst-text); font: 600 12px/1 var(--bst-font-body); cursor: pointer; box-shadow: 0 1px 3px rgba(47,47,47,.12); transition: opacity .2s; }
.bst-comp__toggle:hover { border-color: var(--bst-text); }
.bst-icon--sm { width: 16px; height: 16px; color: var(--bst-accent); }
.bst-comp__panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 12px 12px 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease, visibility .22s; pointer-events: auto; }
.bst-comp__title { margin: 0 0 8px; font: 600 11px/1.2 var(--bst-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bst-primary-strong); }
.bst-comp__list { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--bst-primary) transparent; overscroll-behavior: contain; }
.bst-comp__list::-webkit-scrollbar { width: 4px; }
.bst-comp__list::-webkit-scrollbar-thumb { background: var(--bst-primary); border-radius: 2px; }
.bst-comp__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #D9D4CB; font-size: 13px; line-height: 1.3; color: var(--bst-text); }
.bst-comp__list li:last-child { border-bottom: 0; }
.bst-comp__list b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* pokaż: najechanie (urządzenia z kursorem), fokus klawiatury, dotknięcie przycisku */
@media (hover: hover) {
  .bst-products .wc-block-product:hover .bst-comp__panel { opacity: 1; visibility: visible; transform: none; }
  .bst-products .wc-block-product:hover .bst-comp__toggle,
  .bst-products .wc-block-product:hover .bst-product-badges { opacity: 0; }
}
.bst-products .wc-block-product:has(.bst-comp.is-open) .bst-product-badges,
.bst-products .wc-block-product:focus-within .bst-product-badges { opacity: 0; }
.bst-products .bst-product-badges { transition: opacity .2s; }
.bst-products .wc-block-product:focus-within .bst-comp__panel,
.bst-comp.is-open .bst-comp__panel { opacity: 1; visibility: visible; transform: none; }
.bst-comp.is-open .bst-comp__toggle { opacity: 0; pointer-events: none; }
.bst-comp.is-open .bst-comp__panel { padding-bottom: 12px; }

/* siatka kart: grid 4 → 2 → 1 (stabilniejszy niż flex WooCommerce) */
.bst-products .wc-block-product-template { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px !important; }
.bst-products .wc-block-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 1023px) { .bst-products .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .bst-products--boxes .wc-block-product-template { grid-template-columns: 1fr; }
}

/* ---------- Potwierdzenie zamówienia ---------- */
.bst-order-extra { display: grid; gap: 16px; margin: 24px 0; }
.bst-order-number { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bst-cream); border-radius: var(--bst-r-card); padding: 18px 22px; flex-wrap: wrap; }
.bst-order-number strong { font: 700 26px/1.1 var(--bst-font-heading); font-variant-numeric: tabular-nums; }
.bst-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #D9CDBD; border-radius: var(--bst-r-control); background: var(--bst-surface); color: var(--bst-text); font: 600 14px var(--bst-font-body); cursor: pointer; }
.bst-copy:hover { border-color: var(--bst-text); }
.bst-copy.is-done { border-color: var(--bst-success); color: var(--bst-success); }
.bst-order-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; font-size: 14px; }

/* ---------- Zmiana terminu przez klienta ---------- */
.bst-reschedule { padding: 20px 24px; margin: 24px 0; }
.bst-reschedule__current strong { font: 700 20px/1.2 var(--bst-font-heading); }
.bst-reschedule__current { margin: 0 0 10px; }
.bst-reschedule__form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.bst-reschedule__form select { min-height: 48px; min-width: 240px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-control); padding: 0 12px; background: var(--bst-surface); font: 400 15px var(--bst-font-body); color: var(--bst-text); }
.bst-reschedule__form select:focus { border-color: var(--bst-text); }

/* ---------- Kalendarz terminów ---------- */
.bst-date-field input[id*="delivery-date"], .bst-date-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.bst-cal { background: var(--bst-surface); border: 1px solid var(--bst-border); border-radius: var(--bst-r-card); padding: 16px; margin: 8px 0 16px; max-width: 420px; }
.bst-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bst-cal__month { font: 600 16px var(--bst-font-heading); text-transform: capitalize; }
.bst-cal__nav { width: 36px; height: 36px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-control); background: var(--bst-surface); color: var(--bst-text); font-size: 18px; line-height: 1; cursor: pointer; }
.bst-cal__nav:hover:not([disabled]) { border-color: var(--bst-text); }
.bst-cal__nav[disabled] { opacity: .35; cursor: default; }
.bst-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bst-cal__dow { text-align: center; font: 600 11px/1 var(--bst-font-body); color: var(--bst-muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0 8px; }
.bst-cal__pad { aspect-ratio: 1; }
.bst-cal__day { aspect-ratio: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--bst-r-control); background: var(--bst-bg); color: var(--bst-text); font: 500 14px var(--bst-font-body); cursor: pointer; transition: background .12s, border-color .12s; }
.bst-cal__day:hover:not(.is-disabled) { border-color: var(--bst-text); }
.bst-cal__day.is-disabled { background: transparent; color: #C9C4BB; cursor: default; }
.bst-cal__day.is-today { border-color: var(--bst-text); }
.bst-cal__day.is-selected { background: var(--bst-primary-strong); border-color: var(--bst-primary-strong); color: #fff; font-weight: 700; }
.bst-cal__legend { display: flex; gap: 14px; margin: 12px 0 0; font-size: 12px; color: var(--bst-muted); }
.bst-cal__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bst-cal__legend .l-today::before { border: 1px solid var(--bst-text); }
.bst-cal__legend .l-sel::before { background: var(--bst-primary-strong); }
.bst-cal__legend .l-off::before { background: #E6E3DD; }
.bst-cal__hint { margin: 10px 0 0; font-size: 13px; color: var(--bst-muted); transition: color .2s; }
.bst-cal__hint.is-warn { color: var(--bst-error); font-weight: 600; }
.bst-cal__chosen { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bst-border); display: grid; gap: 2px; }
.bst-cal__chosen strong { font: 600 15px var(--bst-font-body); }
@media (max-width: 480px) { .bst-cal { max-width: none; } }

/* ---------- Zamówienie cykliczne ---------- */
.bst-recurring { padding: 20px 24px; margin: 24px 0; }
.bst-recurring__plan { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.bst-recurring__plan strong { font: 600 18px var(--bst-font-heading); }
.bst-recurring__form { margin-top: 14px; }

/* Kontrast na kremowym tle (hero, CTA, pasy) — WCAG AA */
.bst-cta .bst-eyebrow, .is-style-cream-band .bst-eyebrow, .bst-nextdate .bst-eyebrow { color: var(--bst-primary-on-cream); }
.bst-cta p, .is-style-cream-band p, .bst-nextdate span { color: var(--bst-muted-on-cream); }
.bst-order-number .bst-eyebrow { color: var(--bst-primary-on-cream); }
