/* ==========================================================================
   Woskówka — wspólne style (index.html, koszyk.html)
   Kolory: krem, miód, ciemny grafit. Kontrast tekstu sprawdzony (WCAG AA).
   ========================================================================== */

:root {
  /* Paleta */
  --cream: #FAF9F6;          /* tło główne */
  --sand: #F4EEE2;           /* tło sekcji */
  --paper: #FFFFFF;          /* karty */
  --honey: #E2AD26;          /* przyciski, akcenty (tekst na nim: --ink-strong, 7.9:1) */
  --honey-hover: #D49B16;    /* hover przycisku (tekst --ink-strong, 6.6:1) */
  --honey-soft: #FBF3DE;     /* delikatne tło akcentu */
  --honey-deep: #8A5B00;     /* miodowy tekst na kremie (5.6:1) */
  --ink: #2C302E;            /* tekst główny (12.7:1 na kremie) */
  --ink-strong: #1E211F;
  --muted: #5A605D;          /* tekst pomocniczy (6.1:1 na kremie) */
  --line: #E8E6DF;
  --line-strong: #D9D3C4;
  --on-dark: #F4EEE2;
  --on-dark-muted: #C9CCC8;

  /* Typografia */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Układ */
  --container: 1320px;
  --gutter: 16px;
  --header-h: 68px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(44, 48, 46, 0.06);
  --shadow: 0 12px 32px -12px rgba(44, 48, 46, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --section-y: clamp(64px, 9vw, 120px);
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-variant-numeric: lining-nums;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Przyciski ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 28px;
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary { background: var(--honey); color: var(--ink-strong); box-shadow: 0 8px 20px -10px rgba(185, 130, 10, 0.7); }
.btn--primary:hover { background: var(--honey-hover); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(185, 130, 10, 0.75); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--block { width: 100%; }
.btn .btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn.is-added { background: var(--ink); color: var(--cream); box-shadow: none; }

.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.2s; }
.text-link:hover { color: var(--honey-deep); }

/* --- Nagłówek ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.wordmark {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.75rem; line-height: 1;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wordmark__dot { color: var(--honey); }
@media (min-width: 768px) { .wordmark { font-size: 2rem; } }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.site-nav__link:hover { color: var(--honey-deep); }
.site-nav__link[aria-current="page"] { color: var(--honey-deep); }

.cart-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); transition: border-color 0.2s, background-color 0.2s;
}
.cart-link:hover { border-color: var(--ink); }
.cart-link svg { width: 18px; height: 18px; flex: none; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0; line-height: 1;
  background: var(--honey); color: var(--ink-strong); border-radius: 999px;
  transition: transform 0.3s var(--ease);
}
.cart-count.is-bumped { transform: scale(1.25); }
.cart-count[data-count="0"] { background: var(--line); color: var(--muted); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  align-items: center; justify-content: center; background: var(--paper);
}
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; }
  .site-nav { gap: 8px; }
  .cart-link__label { display: none; }
  .cart-link { padding: 0 12px; }
  /* Bez JS: menu w jednym przewijanym rzędzie */
  .site-nav__list { position: absolute; left: 0; right: 0; top: var(--header-h); padding: 6px var(--gutter);
    overflow-x: auto; background: var(--cream); border-bottom: 1px solid var(--line); }
  .site-header { margin-bottom: 0; }
  .js .site-nav__list {
    flex-direction: column; align-items: stretch; gap: 0; overflow: visible;
    padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px -20px rgba(44, 48, 46, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav__list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__link { min-height: 52px; padding: 0 4px; font-size: 0.9375rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav__list li:last-child .site-nav__link { border-bottom: 0; }
}
@media (max-width: 899px) { html:not(.js) body { padding-top: 0; } html:not(.js) main { padding-top: 56px; } }

/* --- Sekcje: wspólne ------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--honey); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.section-head__lead { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--muted); }
.section--dark .section-head__lead { color: var(--on-dark-muted); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(48px, 6vw, 96px); }
}
.hero__title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; margin-bottom: 24px; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--honey-deep); }
.hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts li { font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--honey); }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--sand); box-shadow: var(--shadow);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--honey);
  border-radius: var(--radius-lg); z-index: -1;
}
.hero__badge {
  position: absolute; left: -12px; bottom: 28px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow);
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2;
}
.hero__badge small { display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 899px) {
  .hero__media { margin-right: 12px; }
  .hero__badge { left: 12px; bottom: 16px; }
}

/* Pojawienie się zdjęcia w hero — czysty CSS, treść widoczna również bez animacji */
@keyframes hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__frame img { animation: hero-in 1.1s var(--ease) both; }
.hero__media::before { animation: rise-in 0.9s 0.35s var(--ease) both; }
.hero__badge { animation: rise-in 0.7s 0.6s var(--ease) both; }

/* --- Sklep --------------------------------------------------------------- */
.product-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) {
  .product-grid { gap: 28px; }
  .product-grid .product-card { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); }
  .product-grid .product-card__media { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .product-grid .product-card__body { padding: 26px 24px 24px; }
}

.product-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__count {
  position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.zoom-hint svg { width: 16px; height: 16px; }
.zoom-trigger:hover .zoom-hint, .zoom-trigger:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 20px 20px; }
.product-card__title { font-size: 1.75rem; margin-bottom: 6px; }
.product-card__desc { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }

.configurator { border: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 20px; min-width: 0; }
.configurator legend {
  float: left; width: 100%; margin-bottom: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.configurator legend + * { clear: both; }
.config-list { display: flex; flex-direction: column; gap: 8px; }
.config-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.config-size { font-size: 0.8125rem; font-weight: 700; color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.config-size__n { font-size: 0.6875rem; font-weight: 700; color: var(--muted); min-width: 1.2em; font-variant-numeric: tabular-nums; }
.config-select {
  width: 100%; min-height: 40px; padding: 8px 32px 8px 12px;
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  background-color: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C302E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
  transition: border-color 0.2s, background-color 0.2s;
  text-overflow: ellipsis;
}
.config-select:hover { border-color: var(--muted); }
.config-select:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 1px; border-color: var(--honey-deep); background-color: var(--paper); }
.config-preview {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong); background: var(--sand); cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.config-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.config-preview:hover { transform: scale(1.12); box-shadow: 0 0 0 1px var(--honey-deep); }
.config-preview.is-changing img { opacity: 0.2; }

.product-card__footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-row__label { font-size: 0.8125rem; color: var(--muted); }
.price { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--ink); }

.shop-note { margin-top: 32px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* --- O woskowijkach ------------------------------------------------------- */
.about__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); } }
.about__head h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); margin-bottom: 0; }
@media (min-width: 960px) { .about__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.about__text p { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.8; color: var(--muted); max-width: 62ch; }
.about__text p + p { margin-top: 1.1em; }
.about__text p:first-child { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.65; color: var(--ink); }

.ingredients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line-strong); }
.ingredients li { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.ingredients li:nth-child(odd) { border-right: 1px solid var(--line); }
.ingredients li:nth-child(even) { padding-left: 20px; }
.ingredients h3 { font-size: 1.375rem; margin-bottom: 4px; }
.ingredients p { font-size: 0.875rem !important; line-height: 1.5 !important; color: var(--muted) !important; margin: 0 !important; }

/* --- Instrukcja ----------------------------------------------------------- */
.howto__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .howto__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 104px); } }
.howto__video { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; background: #3a3f3c; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.howto__video video { width: 100%; height: 100%; object-fit: cover; }
.howto__video-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(250, 249, 246, 0.92); color: var(--ink);
  transition: transform 0.2s var(--ease);
}
.howto__video-toggle:hover { transform: scale(1.06); }
.howto__video-toggle svg { width: 18px; height: 18px; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 26px 0; border-top: 1px solid rgba(244, 238, 226, 0.16); }
.step:last-child { border-bottom: 1px solid rgba(244, 238, 226, 0.16); }
.step__n {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--honey);
  display: grid; place-items: center; font-family: var(--font-serif); font-variant-numeric: lining-nums; font-size: 1.375rem; font-weight: 700; color: var(--honey);
}
.step h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); color: var(--on-dark); align-self: center; }
.step p { color: var(--on-dark-muted); font-size: 1rem; line-height: 1.75; }
.step p b, .step p strong { color: var(--on-dark); }

/* --- Wzory --------------------------------------------------------------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gallery li:last-child:nth-child(odd) .gallery__img { aspect-ratio: 2 / 1; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .gallery li { grid-column: span 2; }
  .gallery li:nth-child(4), .gallery li:nth-child(5) { grid-column: span 3; }
  .gallery li:last-child:nth-child(odd) { grid-column: span 3; }
  .gallery li:last-child:nth-child(odd) .gallery__img { aspect-ratio: 4 / 3; }
  .gallery li:nth-child(4) .gallery__img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery li, .gallery li:nth-child(4), .gallery li:nth-child(5), .gallery li:last-child:nth-child(odd) { grid-column: auto; }
  .gallery li .gallery__img, .gallery li:nth-child(4) .gallery__img, .gallery li:last-child:nth-child(odd) .gallery__img { aspect-ratio: 4 / 5; }
}
.gallery__item { display: flex; flex-direction: column; gap: 12px; }
.gallery__btn { position: relative; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sand); cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__btn:hover .gallery__img { transform: scale(1.05); }
.gallery__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gallery__name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.gallery__n { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.patterns__note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* --- FAQ ----------------------------------------------------------------- */
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(48px, 7vw, 112px); } }
.faq__head h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
@media (min-width: 960px) { .faq__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--honey-deep); }
.faq-item summary:focus-visible { outline-offset: 4px; }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); transition: background-color 0.25s, border-color 0.25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--honey); border-color: var(--honey); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__body { padding: 0 52px 26px 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.faq-item[open] .faq-item__body { animation: rise-in 0.35s var(--ease) both; }

/* --- Stopka -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 8vw, 96px) 0 32px; }
.site-footer__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1fr auto; } }
.site-footer .wordmark { color: var(--on-dark); font-size: clamp(2.5rem, 5vw, 3.75rem); }
.site-footer__tagline { margin-top: 10px; font-size: 1.0625rem; color: var(--on-dark-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--honey); }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244, 238, 226, 0.16); font-size: 0.8125rem; color: var(--on-dark-muted); }
.site-footer :focus-visible { outline-color: var(--honey); }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(22, 24, 23, 0.94); color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(22, 24, 23, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: lb-in 0.25s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 16px 8px; max-width: 100%; max-height: 100%; min-height: 0; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__caption { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; text-align: center; color: var(--on-dark); }
.lightbox__controls { display: flex; align-items: center; gap: 16px; padding: 12px 16px 28px; }
.lightbox__counter { font-size: 0.875rem; color: var(--on-dark-muted); min-width: 4em; text-align: center; font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(244, 238, 226, 0.5); color: var(--on-dark);
  display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--honey); border-color: var(--honey); color: var(--ink-strong); }
.lb-btn:focus-visible { outline-color: var(--honey); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox[data-single] .lightbox__controls { visibility: hidden; }

/* --- Toast --------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 200; width: min(calc(100% - 32px), 440px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 14px 14px 20px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast__text { font-size: 0.9375rem; line-height: 1.4; }
.toast__text strong { color: var(--on-dark); display: block; }
.toast .btn { min-height: 40px; padding: 8px 16px; font-size: 0.8125rem; flex: none; }

/* --- Koszyk -------------------------------------------------------------- */
.cart-page { padding-block: clamp(32px, 5vw, 72px) var(--section-y); }
.cart-page__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.cart-page__head h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.cart-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; } }
/* Telefon/tablet: podsumowanie zaraz pod listą produktów, formularz na końcu */
@media (max-width: 999px) {
  .cart-layout { display: flex; flex-direction: column; }
  .cart-layout[hidden] { display: none; }
  .cart-main { display: contents; }
  .cart-list { order: 1; }
  .summary { order: 2; }
  .checkout { order: 3; margin-top: 0; }
}
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px 18px; padding: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.cart-item.is-removing { opacity: 0; transform: translateX(12px); }
@media (min-width: 640px) { .cart-item { grid-template-columns: 120px minmax(0, 1fr); padding: 20px; gap: 20px 24px; } }
.cart-item__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--sand); }
.cart-item__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cart-item__top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cart-item__name { font-size: 1.625rem; line-height: 1.1; }
.cart-item__unit { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.cart-item__patterns { display: flex; flex-wrap: wrap; gap: 6px; }
.pattern-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.3; }
.pattern-chip img { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; }
.pattern-chip b { font-weight: 700; }
.cart-item__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cart-item__total { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--cream); }
.qty button { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-size: 1.125rem; font-weight: 600; transition: background-color 0.2s; }
.qty button:hover:not(:disabled) { background: var(--honey-soft); }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; margin-right: -10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.remove-btn:hover { color: #A0281E; background: #FBEDEA; }
.remove-btn svg { width: 16px; height: 16px; }

.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary h2 { font-size: 1.875rem; margin-bottom: 16px; }
.summary__rows { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row span:first-child { color: var(--muted); }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 0 6px; }
.summary__total span:first-child { font-weight: 700; }
.summary__total output { font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.summary__note { font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }

.checkout { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.checkout h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); margin-bottom: 8px; }
.checkout__lead { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 1rem; transition: border-color 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 1px; border-color: var(--honey-deep); }
.field input[aria-invalid="true"] { border-color: #A0281E; }
.field__error { font-size: 0.8125rem; color: #A0281E; }
.choice-group { border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.choice-group legend { margin-bottom: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-size: 0.9375rem; transition: border-color 0.2s, background-color 0.2s; }
.choice:has(input:checked) { border-color: var(--honey-deep); background: var(--honey-soft); }
.choice input { accent-color: var(--honey-deep); width: 18px; height: 18px; }
.order-result { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--honey-soft); border: 1px solid #EBD9A8; }
.order-result h3 { font-size: 1.5rem; margin-bottom: 8px; }
.order-result pre { white-space: pre-wrap; font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.6; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0; max-height: 320px; overflow: auto; }

.empty-state { text-align: center; padding: clamp(48px, 8vw, 96px) 16px; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.empty-state p { color: var(--muted); margin-bottom: 28px; }
.empty-state__img { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; margin: 0 auto 24px; border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line-strong); }

/* --- Animacje przewijania --------------------------------------------------
   Treść ukrywana TYLKO gdy JS potwierdzi gotowość (klasa .reveal-ready),
   więc bez JS / przy błędzie wszystko pozostaje widoczne. */
.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.reveal-ready .reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--reveal-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .product-card:hover, .btn--primary:hover { transform: none; }
}

/* ==========================================================================
   Sklep v2: marka z avatarem, karty listy, strona produktu, kasa, status
   ========================================================================== */

/* --- Marka --------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); flex: none; transition: transform 0.4s var(--ease); }
.brand:hover .brand__avatar { transform: rotate(-8deg) scale(1.05); }
@media (min-width: 768px) { .brand__avatar { width: 44px; height: 44px; } }

.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.8125rem; }
.btn__icon { width: 20px; height: 20px; }
.btn.is-disabled { background: var(--line); color: var(--ink); box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* --- Lista zestawów (strona główna) -------------------------------------- */
.shop-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1180px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.shop-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.shop-card:hover .shop-card__media img { transform: scale(1.05); }
.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.shop-card__title { font-size: 1.75rem; margin-bottom: 6px; }
.shop-card__title a { text-decoration: none; color: inherit; }
.shop-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.shop-card__desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.shop-card__sizes { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.shop-card__footer { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-card__footer .btn { position: relative; z-index: 2; min-height: 44px; padding: 10px 18px; font-size: 0.875rem; }

/* --- Okruszki ------------------------------------------------------------ */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 8px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--honey-deep); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Strona produktu ----------------------------------------------------- */
.product { display: grid; gap: 28px; padding: 12px 0 48px; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 80px); align-items: start; } }
.pgallery { min-width: 0; }
@media (min-width: 960px) { .pgallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pgallery__main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); cursor: zoom-in; animation: hero-in 0.9s var(--ease) both; }
.pgallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.pgallery__main img.is-changing { opacity: 0.35; }
.pgallery__main .zoom-hint { opacity: 1; transform: none; width: 44px; height: 44px; }
.pgallery__caption { margin: 10px 2px 0; font-size: 0.8125rem; color: var(--muted); }
.pgallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.pgallery__thumb { flex: none; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-strong); scroll-snap-align: start; transition: border-color 0.2s, transform 0.2s; }
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb:hover { transform: translateY(-2px); }
.pgallery__thumb[aria-current="true"] { border-color: var(--honey-deep); }

.buybox { min-width: 0; }
.buybox__title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 14px; }
.buybox__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.buybox__price .price { font-size: 2.75rem; }
.buybox__price-note { color: var(--muted); font-size: 0.875rem; }
.buybox__lead { font-size: 1.125rem; color: var(--muted); margin-bottom: 22px; }
.buybox__h { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.buybox__included { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 20px; }
.included-list { display: flex; flex-wrap: wrap; gap: 8px; }
.included-list li { padding: 6px 12px; border-radius: 999px; background: var(--sand); font-size: 0.875rem; font-weight: 600; }
.included-list li span { color: var(--honey-deep); font-weight: 800; }
.configurator--product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.configurator--product .config-row { grid-template-columns: 84px minmax(0, 1fr) 44px; }
.configurator--product .config-select { min-height: 46px; font-size: 0.9375rem; }
.configurator--product .config-preview { width: 44px; height: 44px; }
.configurator__hint { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.buybox__actions { display: flex; gap: 12px; align-items: center; margin: 4px 0 18px; }
.buybox__actions .btn { flex: 1; }
.qty--lg button { width: 48px; height: 52px; }
.qty--lg output { min-width: 36px; font-size: 1.0625rem; }
.buybox__facts { display: grid; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.buybox__facts li { display: flex; gap: 10px; align-items: baseline; }
.buybox__facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg) translateY(-1px); background: var(--honey); }

.pdetails { max-width: 860px; border-top: 1px solid var(--line-strong); margin-bottom: 64px; }
.pdetails .faq-item__body p + p { margin-top: 0.8em; }
.care-list { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
ol.care-list { list-style: decimal; }
.pattern-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.pattern-strip button { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: zoom-in; }
.pattern-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.pattern-strip span { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.related { padding-bottom: var(--section-y); }
.related h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 20px; }
.related__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.25s var(--ease); }
.mini-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mini-card img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-card__body { display: flex; flex-direction: column; }
.mini-card__name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.15; }
.mini-card__meta { font-size: 0.8125rem; color: var(--muted); }

/* Pasek zakupu na telefonie */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 30px -18px rgba(44, 48, 46, 0.4); transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__info { display: flex; flex-direction: column; min-width: 0; }
.buybar__name { font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .price { font-size: 1.625rem; }
.buybar .btn { min-height: 48px; padding: 12px 22px; flex: none; }
@media (min-width: 960px) { .buybar { display: none; } }
.page-product .toast { bottom: 84px; }
@media (min-width: 960px) { .page-product .toast { bottom: 20px; } }

/* --- Kontakt ------------------------------------------------------------- */
.contact__grid { display: grid; gap: 28px; align-items: center; justify-items: start; }
@media (min-width: 768px) { .contact__grid { grid-template-columns: auto 1fr; gap: 48px; } }
.contact__avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(226, 173, 38, 0.25); }
@media (min-width: 768px) { .contact__avatar { width: 180px; height: 180px; } }
.contact h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-bottom: 12px; }
.contact__lead { color: var(--on-dark-muted); font-size: 1.0625rem; margin-bottom: 24px; max-width: 40em; }

/* Stopka */
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(244, 238, 226, 0.25); }
.footer-ig { gap: 8px; }
.footer-ig svg { width: 18px; height: 18px; }

/* --- Kroki zamówienia, panele, kasa -------------------------------------- */
.steps-bar { display: flex; gap: 8px; margin-bottom: 20px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); overflow-x: auto; }
.steps-bar li { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.steps-bar span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 0.75rem; }
.steps-bar [aria-current="step"] { color: var(--ink); border-color: var(--honey-deep); }
.steps-bar [aria-current="step"] span, .steps-bar .is-done span { background: var(--honey); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 16px; }
@media (min-width: 640px) { .panel { padding: 26px 28px; } }
.panel h2 { display: flex; align-items: center; gap: 12px; font-size: 1.75rem; margin-bottom: 18px; }
.panel__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--honey); color: var(--ink-strong); font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 800; flex: none; }

.choice-cards { border: 0; display: grid; gap: 10px; min-width: 0; }
.choice-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.choice-card:hover { border-color: var(--muted); }
.choice-card.is-checked { border-color: var(--honey-deep); background: var(--honey-soft); box-shadow: 0 0 0 1px var(--honey-deep); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--honey-deep); outline-offset: 2px; }
.choice-card input { width: 20px; height: 20px; accent-color: var(--honey-deep); }
.choice-card__text { display: flex; flex-direction: column; }
.choice-card__title { font-weight: 700; }
.choice-card__note { font-size: 0.8125rem; color: var(--muted); }
.choice-card__price { font-weight: 800; white-space: nowrap; }
.choice-card.is-disabled { cursor: not-allowed; opacity: 0.55; background: var(--cream); }

.locker { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.locker label { display: block; font-size: 0.8125rem; font-weight: 700; margin-bottom: 6px; }
.locker__row { display: flex; gap: 8px; }
.locker__row input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); font-size: 1rem; }
.locker__row input:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 1px; }
.locker__row .btn { min-height: 48px; padding: 10px 18px; }
.locker__status { font-size: 0.8125rem; color: var(--muted); margin: 8px 0; min-height: 1.4em; }
.locker__results { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.locker-opt { display: grid; width: 100%; text-align: left; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color 0.2s, background-color 0.2s; }
.locker-opt:hover, .locker-opt:focus-visible { border-color: var(--honey-deep); background: var(--honey-soft); }
.locker-opt__code { font-weight: 800; }
.locker-opt__addr { font-size: 0.875rem; }
.locker-opt__desc { font-size: 0.8125rem; color: var(--muted); }
.locker__selected { display: grid; gap: 4px; justify-items: start; }
.locker__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.locker__code { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.locker__addr { font-size: 0.9375rem; margin-bottom: 8px; }
#address-box { margin-top: 16px; }

.sum-items { display: grid; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sum-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.sum-item__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.3; }
.sum-item__patterns { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
.sum-item__price { font-weight: 700; white-space: nowrap; }
.status-page .sum-item { grid-template-columns: minmax(0, 1fr) auto; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; font-size: 0.875rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--honey-deep); }
.form-error { padding: 10px 12px; border-radius: var(--radius-sm); background: #FBEDEA; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; display: grid; gap: 12px; justify-items: start; }
.notice--warn { background: var(--honey-soft); border-color: #EBD9A8; }
.ship-options { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.ship-options:empty { display: none; }
.ship-options li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.cart-item__name a { color: inherit; text-decoration: none; }
.cart-item__name a:hover { text-decoration: underline; text-decoration-color: var(--honey); }

@media (max-width: 999px) {
  .checkout-form.cart-layout { display: flex; flex-direction: column; }
  .checkout-form .cart-main { display: block; width: 100%; }
}

/* --- Status zamówienia --------------------------------------------------- */
.status-hero { display: flex; gap: 20px; align-items: center; margin: 12px 0 24px; }
.status-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.status-hero__lead { color: var(--muted); margin-top: 8px; font-size: 1.0625rem; }
.status-hero__icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.75rem; font-weight: 800; background: var(--line); animation: rise-in 0.6s var(--ease) both; }
.status-hero__icon.is-ok { background: var(--honey); color: var(--ink-strong); }
.status-hero__icon.is-wait { background: var(--honey-soft); color: var(--honey-deep); }
.status-hero__icon.is-bad { background: #FBEDEA; color: #8A1F15; }
