/* 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;
}

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 ---------- */
.bst-header { position: sticky; top: 0; z-index: 50; background: var(--bst-surface); border-bottom: 1px solid var(--bst-border); transition: background .2s, box-shadow .2s; }
.bst-header.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--bst-border); }
.bst-header .bst-header__inner { min-height: 76px; }
.bst-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--bst-text); }
.bst-logo__word { font: 700 26px/1 var(--bst-font-heading); letter-spacing: -.01em; color: var(--bst-text); }
.bst-header .wp-block-navigation { --wp--style--block-gap: 28px; }
.bst-header .wp-block-navigation a { padding: 6px 0; }
.bst-header .wp-block-navigation a:hover { text-decoration: none; color: var(--bst-primary-strong); }
.bst-header .wp-block-navigation .current-menu-item > a { color: var(--bst-primary-strong); box-shadow: inset 0 -2px 0 var(--bst-primary); }
.bst-cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bst-border); border-radius: var(--bst-r-pill); color: var(--bst-text) !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-text); }
.bst-cart-link .bst-icon { width: 20px; height: 20px; }
.bst-cart-link__count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bst-primary-strong); color: #fff; font: 700 12px/20px var(--bst-font-body); text-align: center; }
@media (max-width: 600px) { .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-header .wc-block-customer-account__link { color: var(--bst-text); display: inline-flex; padding: 8px; border-radius: var(--bst-r-control); }
.bst-header .wc-block-customer-account__link:hover { color: var(--bst-primary-strong); }
.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-primary); color: #fff; border: 0; }
.bst-header .wc-block-mini-cart__amount { font-weight: 600; }
@media (max-width: 781px) { .bst-header .bst-header__inner { min-height: 60px; } .bst-logo__word { font-size: 22px; } }

/* ---------- 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); } }
/* 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 ---------- */
.bst-hero { padding-block: clamp(24px, 4vw, 56px); }
.bst-hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.bst-hero h1 { margin: 0 0 18px; }
.bst-hero__lead { font-size: 18px; color: var(--bst-muted); max-width: 46ch; margin: 0 0 24px; }
.bst-hero__usp { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--bst-border); }
.bst-hero__usp li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.bst-hero__usp strong { font-weight: 600; color: var(--bst-text); }
.bst-hero__usp span { color: var(--bst-muted); }
.bst-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.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); }
.bst-hero__visual { position: relative; }
.bst-hero__photo { margin: 0; border-radius: var(--bst-r-card); overflow: hidden; }
.bst-hero__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bst-hero__visual .bst-polaroid { position: absolute; right: -8px; bottom: -28px; width: 44%; background: #fff; padding: 8px 8px 30px; border-radius: 6px; box-shadow: var(--bst-shadow-float); margin: 0; }
.bst-hero__visual .bst-polaroid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.bst-hero__visual .bst-polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 7px; font: 600 15px/1.1 var(--bst-font-hand); color: var(--bst-text); }
.bst-hero__stamp { position: absolute; left: 14px; top: 14px; background: var(--bst-cream); color: var(--bst-text); font: 600 12px/1 var(--bst-font-body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--bst-r-pill); }
@media (max-width: 900px) {
  .bst-hero__inner { grid-template-columns: 1fr; }
  .bst-hero__visual .bst-polaroid { width: 38%; bottom: -18px; }
}

/* ---------- 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; }

/* ---------- 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: 92px; }
.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-hero .bst-eyebrow, .bst-cta .bst-eyebrow, .is-style-cream-band .bst-eyebrow, .bst-nextdate .bst-eyebrow { color: var(--bst-primary-on-cream); }
.bst-hero .bst-muted, .bst-hero__lead, .bst-hero__usp span, .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); }
