/* ==========================================================================
   WAVE LANE — Baltic Surf Goods
   Paleta: biel, piasek/beże, pudrowy róż + różane drewno jako kolor tekstu
   ========================================================================== */

:root {
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --sand-1: #F3ECE1;
  --sand-2: #E8DCC8;
  --sand-3: #D6C3A5;
  --sand-4: #A88F6A;
  --blush: #F6E3E0;
  --rose-1: #F2D7D5;
  --rose-2: #E8B9B5;
  --rose-3: #C98A86;
  --rose-4: #8E4F55;
  --rose-5: #4A2A2E;
  --ink: #2B1F21;
  --ink-2: #5A4A4C;
  --muted: #735E60;
  --rust: #B5532F;
  --sun: #EFAE8E;
  --accent: #8E4F55;
  --deep: #4A2A2E;
  --on-dark: #FFFFFF;
  --on-dark-2: #F3ECE1;
  --header-bg: rgba(255, 255, 255, .86);
  color-scheme: light;

  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 14px;
  --r: 24px;
  --r-lg: 32px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 18px 40px -18px rgba(74, 42, 46, .28);
}
:root[data-theme='dark'] {
  --paper: #171113;
  --white: #221A1C;
  --sand-1: #261D20;
  --sand-2: #3A2D31;
  --sand-3: #54434A;
  --sand-4: #B9A27F;
  --blush: #2B1F22;
  --rose-1: #2A1F22;
  --rose-2: #5C3A3F;
  --rose-3: #8A5A5E;
  --rose-4: #EBA9A6;
  --rose-5: #F6DEDA;
  --ink: #F3EAE6;
  --ink-2: #D5C6C3;
  --muted: #A8979A;
  --accent: #A65E64;
  --deep: #0F0B0C;
  --on-dark-2: #F3ECE1;
  --header-bg: rgba(23, 17, 19, .82);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--rose-4); text-decoration: none; }
a:hover { color: var(--rose-5); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role='list'], .list-reset { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose-4); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rose-2); color: var(--rose-5); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: var(--on-dark); padding: 12px 18px; border-radius: 12px; }
.skip:focus { top: 12px; color: var(--on-dark); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); }
.stack { display: flex; flex-direction: column; }

/* ---------- typografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-4); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.035em; line-height: .96; color: var(--rose-5); }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.h1 { font-size: clamp(46px, 7.4vw, 104px); }
.h2 { font-size: clamp(34px, 4.6vw, 60px); }
.h3 { font-size: clamp(24px, 2.4vw, 30px); }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- przyciski ---------- */
.btn {
  --bg: var(--accent); --fg: var(--on-dark); --bd: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--deep); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--on-dark); border-color: var(--deep); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--rose-4); }
.btn-sand { --bg: var(--white); --fg: var(--rose-5); --bd: var(--white); }
.btn-sand::before { background: var(--deep); }
.btn-sand:hover { color: var(--on-dark); border-color: var(--deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]::before { display: none; }

.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--sand-3);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--rose-4); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .2s;
}
.icon-btn:hover { background: var(--sand-1); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- pasek ogłoszeń (marquee) ---------- */
.announce { background: var(--deep); color: var(--on-dark-2); font-size: 13px; font-weight: 600; letter-spacing: .05em; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; padding: 10px 18px; white-space: nowrap; }
.marquee__item::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--sand-2); box-shadow: 0 8px 30px -20px rgba(74, 42, 46, .35); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--rose-5); flex-shrink: 0; }
.logo:hover { color: var(--rose-5); }
.logo__img {
  display: block; width: 84px; aspect-ratio: 560 / 330; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.logo:hover .logo__img { transform: rotate(-4deg) scale(1.04); }
.footer-brand .logo__img { width: 132px; }
.theme-toggle .i-sun, :root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }
body, .site-header, .card, .drawer, .cart-summary { transition: background-color .35s, color .35s; }

.main-nav { flex: 1; display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 32px); }
.main-nav a { position: relative; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--rose-3); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-sale { color: var(--rust); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--rust); color: var(--on-dark); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
.menu-toggle { display: none; }

/* menu mobilne */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--on-dark-2);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .icon-btn, .mobile-nav .logo { color: var(--on-dark-2); }
.mobile-nav .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.mobile-nav ul { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav ul a { display: block; padding: 8px 0; font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; color: var(--on-dark-2); }
.mobile-nav ul li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
.mobile-nav.is-open ul li { opacity: 1; transform: none; }
.mobile-nav.is-open ul li:nth-child(2) { transition-delay: .05s; }
.mobile-nav.is-open ul li:nth-child(3) { transition-delay: .1s; }
.mobile-nav.is-open ul li:nth-child(4) { transition-delay: .15s; }
.mobile-nav.is-open ul li:nth-child(5) { transition-delay: .2s; }
.mobile-nav.is-open ul li:nth-child(6) { transition-delay: .25s; }
.mobile-nav__foot { margin-top: auto; font-size: 14px; color: var(--rose-2); }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--sand-1); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__title .serif { color: var(--rose-4); font-size: 1.04em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--rose-4); }

.scene { position: relative; aspect-ratio: 5 / 5.4; border-radius: var(--r-lg); overflow: hidden; background: #F6E6CC; box-shadow: var(--shadow); }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .sun { animation: sun 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.scene .wave { animation: wave linear infinite; }
.scene .w1 { animation-duration: 16s; }
.scene .w2 { animation-duration: 11s; animation-direction: reverse; }
.scene .w3 { animation-duration: 8s; }
.scene .bird { animation: bird 14s ease-in-out infinite; }
.scene .bird.b2 { animation-delay: -6s; animation-duration: 18s; }
.scene .board { animation: bob 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes sun { 50% { transform: translateY(-10px) scale(1.04); } }
@keyframes bird { 0% { transform: translate(0, 0); } 50% { transform: translate(-40px, -12px); } 100% { transform: translate(0, 0); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }

.hero__tag {
  position: absolute; left: clamp(14px, 3vw, 24px); bottom: clamp(14px, 3vw, 24px); z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--white) 92%, transparent); box-shadow: var(--shadow); color: var(--ink);
  animation: float 6s ease-in-out infinite; transition: transform .3s;
}
.hero__tag:hover { color: var(--ink); }
.hero__tag-img { width: 58px; height: 58px; border-radius: 14px; background: var(--blush); padding: 4px; flex-shrink: 0; }
.hero__tag small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-4); }
.hero__tag strong { display: block; font-size: 15px; }
.hero__tag span.price { font-size: 14px; color: var(--ink-2); }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero__stamp {
  position: absolute; right: clamp(14px, 3vw, 24px); top: clamp(14px, 3vw, 24px); z-index: 2; width: clamp(92px, 11vw, 120px); height: auto;
  animation: spin 22s linear infinite; color: var(--rose-5);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- pas z nazwami spotów ---------- */
.spots { background: var(--rose-2); color: var(--rose-5); overflow: hidden; padding-block: 18px; }
.spots .marquee { animation-duration: 46s; }
.spots .marquee__item { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 46px); letter-spacing: -0.02em; gap: 28px; padding: 0 28px; }
.spots .marquee__item:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--rose-4); }
.spots .marquee__item::after { width: 10px; height: 10px; background: var(--white); }

/* ---------- kategorie ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(320px, 34vw, 460px);
  padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-lg); overflow: hidden; color: var(--rose-5); isolation: isolate;
}
.cat:hover { color: var(--rose-5); }
.cat__art { position: absolute; inset: 12% 8% 18%; z-index: -1; transition: transform .8s var(--ease); }
.cat__art svg { width: 100%; height: 100%; }
.cat:hover .cat__art { transform: scale(1.07) rotate(-3deg); }
.cat__count { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cat__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cat__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.cat__go {
  width: 52px; height: 52px; border-radius: 50%; background: var(--deep); color: var(--on-dark); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .45s var(--ease), background .3s;
}
.cat:hover .cat__go { transform: rotate(-45deg); background: var(--rust); }

/* ---------- karty produktów ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 1.8vw, 22px); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card__top { position: relative; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.card__art { position: absolute; inset: 10%; transition: transform .7s var(--ease); }
.card__art svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 16px rgba(74, 42, 46, .14)); }
.card:hover .card__art { transform: scale(1.06) translateY(-4px); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 11px; border-radius: 999px;
  background: var(--white); color: var(--rose-4); font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
}
.card__badge.is-hot { background: var(--rust); color: var(--on-dark); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; min-height: 46px; border: 0; border-radius: 999px;
  background: var(--deep); color: var(--on-dark); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease), background .25s;
}
.card__quick:hover { background: var(--rust); }
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
.card__body { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card__name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.card__name:hover { color: var(--rose-4); }
.card__color { font-size: 13.5px; color: var(--muted); }
.card__price { font-weight: 800; color: var(--rose-4); white-space: nowrap; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(43, 31, 33, .18); }

/* ---------- historia marki ---------- */
.story { background: var(--rose-1); color: var(--ink); overflow: hidden; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.story .display { color: var(--rose-5); }
.story .serif { color: var(--rose-4); }
.story .eyebrow { color: var(--rose-4); }
.story p { color: var(--ink-2); }
.story__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; padding: 0; margin: 6px 0 4px; list-style: none; }
.facts li { border-top: 1px solid rgba(142, 79, 85, .3); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--f-display); font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--rose-5); line-height: 1; }
.facts span { font-size: 14px; color: var(--ink-2); }
.story__art { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--accent); overflow: hidden; }
.story__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__art .ring { animation: spin 40s linear infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- kolekcje kapsułowe ---------- */
.capsules { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.capsule {
  position: relative; min-height: clamp(280px, 30vw, 400px); padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: var(--rose-5); isolation: isolate;
}
.capsule:hover { color: var(--rose-5); }
.capsule__art { position: absolute; inset: 0; z-index: -1; transition: transform .9s var(--ease); }
.capsule__art svg { width: 100%; height: 100%; }
.capsule:hover .capsule__art { transform: scale(1.06); }
.capsule__tag { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.capsule p { color: var(--ink-2); max-width: 26em; }
.capsule.is-dark { color: var(--on-dark-2); }
.capsule.is-dark p { color: #EBCFCB; }

/* ---------- dziennik / journal ---------- */
.journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.post { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.post:hover { color: var(--ink); }
.post__art { aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; }
.post__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .post__art svg { transform: scale(1.06); }
.post__meta { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-4); }
.post__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.post:hover .post__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sand-2); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.newsletter__wave { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; opacity: .55; pointer-events: none; }
.newsletter__wave svg { width: 200%; height: 100%; animation: wave 18s linear infinite; }
.nl-form { position: relative; display: flex; flex-direction: column; gap: 10px; }
.nl-form label { font-size: 14px; font-weight: 700; }
.nl-row { display: flex; gap: 10px; }
.input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--sand-3);
  background: var(--white); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--rose-4); box-shadow: 0 0 0 4px rgba(201, 138, 134, .18); }
.nl-form small { font-size: 12.5px; color: var(--ink-2); }
.form-ok { font-weight: 700; color: var(--rose-4); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 104px); background: var(--deep); color: #EBCFCB; position: relative; }
.footer-wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; color: var(--deep); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-block: 48px 40px; }
.footer-grid h3 { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-grid a { color: #EBCFCB; transition: color .2s; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-brand .logo { color: var(--on-dark-2); }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 26em; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(232, 185, 181, .35); display: inline-flex; align-items: center; justify-content: center; color: var(--on-dark-2); transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--accent); transform: translateY(-3px); color: var(--on-dark); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(232, 185, 181, .2); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-icons span { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 12px; color: var(--on-dark-2); }

/* ---------- drawer koszyka ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(60, 32, 36, .45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s; box-shadow: -20px 0 60px -30px rgba(60, 32, 36, .5);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--sand-2); }
.drawer__head h2 { font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.drawer__ship { padding: 16px 20px; background: var(--sand-1); font-size: 14px; }
.progress { height: 6px; border-radius: 6px; background: var(--sand-2); margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--rose-3); transition: width .7s var(--ease); }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--sand-2); display: flex; flex-direction: column; gap: 12px; }
.drawer__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 12px; }
.drawer__empty svg { width: 120px; height: 120px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; }
.sum-row strong { font-size: 20px; }

.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--sand-2); animation: lineIn .45s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateX(14px); } }
.line__img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; padding: 8px; }
.line__name { font-weight: 700; color: var(--ink); }
.line__meta { font-size: 13px; color: var(--muted); }
.line__price { font-weight: 800; color: var(--rose-4); text-align: right; }
.line__remove { border: 0; background: none; padding: 6px 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; min-height: 32px; }
.line__remove:hover { color: var(--rust); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--sand-3); border-radius: 999px; margin-top: 8px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--sand-1); }
.qty output, .qty input { width: 32px; text-align: center; font-weight: 700; border: 0; background: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-radius: 999px;
  background: var(--deep); color: var(--on-dark); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s; max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .3s; }
.toast button { border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; background: var(--sun); color: var(--deep); font-weight: 800; font-size: 13px; }

/* ---------- listing (sklep) ---------- */
.page-hero { background: var(--sand-1); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px; border-bottom: 1px solid var(--sand-2); margin-bottom: 32px; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.select { min-height: 44px; padding: 0 40px 0 18px; border-radius: 999px; border: 1.5px solid var(--sand-3); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23142328' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; -webkit-appearance: none; appearance: none; font-weight: 600; font-size: 14px; }
.result-count { font-size: 14px; color: var(--muted); }
.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }

/* ---------- karta produktu ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(24px, 4vw, 48px) 24px; }
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumb { aspect-ratio: 4 / 5; border-radius: 14px; border: 2px solid transparent; padding: 6px; transition: border-color .2s; }
.gallery__thumb[aria-current='true'] { border-color: var(--rose-4); }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; transition: background-color .5s; }
.gallery__main .art { position: absolute; inset: 9%; transition: opacity .35s, transform .6s var(--ease); }
.gallery__main .art svg { width: 100%; height: 100%; filter: drop-shadow(0 22px 22px rgba(74, 42, 46, .18)); }
.gallery__main .art.is-swap { opacity: 0; transform: scale(.94) rotate(-2deg); }
.gallery__main.is-detail .art { transform: scale(1.9) translate(4%, 12%); }
.gallery__main.is-back .art { transform: scaleX(-1); }

.info { display: flex; flex-direction: column; gap: 18px; }
.info__price { font-size: 24px; font-weight: 800; color: var(--rose-4); }
.info__desc { color: var(--ink-2); line-height: 1.7; }
.opt-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.opt-label span { font-weight: 500; color: var(--muted); }
.color-opts, .size-opts { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.color-opt { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; transition: border-color .2s, transform .2s; }
.color-opt span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(43, 31, 33, .2); }
.color-opt:hover { transform: scale(1.06); }
.color-opt[aria-pressed='true'] { border-color: var(--rose-4); }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--sand-3); background: var(--white); font-weight: 700; cursor: pointer; transition: all .2s; }
.size-opt span:hover { border-color: var(--rose-4); }
.size-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.size-opt input:focus-visible + span { outline: 2px solid var(--rose-4); outline-offset: 3px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row .qty { margin-top: 0; }
.buy-row .btn { flex: 1; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; }
.perks li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: var(--sand-1); font-size: 13px; font-weight: 600; }
.perks svg { width: 22px; height: 22px; color: var(--rose-4); }

.accordion { border-top: 1px solid var(--sand-2); }
.accordion details { border-bottom: 1px solid var(--sand-2); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-weight: 700; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 22px; font-weight: 400; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ---------- strona koszyka ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--sand-2); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.cart-summary h2 { font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.cart-summary hr { border: 0; border-top: 1px solid var(--sand-2); margin: 4px 0; width: 100%; }
.cart-page .line { grid-template-columns: 110px minmax(0, 1fr) auto; }
.note { font-size: 13px; color: var(--muted); }
.code-row { display: flex; gap: 8px; }
.code-row .input { min-height: 46px; font-size: 14px; }
.code-row .btn { min-height: 46px; padding: 0 18px; }

/* ---------- animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.js .hero .reveal { transition-duration: 1.1s; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; }
.js .split-line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-loaded .split-line > span { transform: none; }
.js .is-loaded .split-line:nth-child(2) > span { transition-delay: .12s; }
.js .is-loaded .split-line:nth-child(3) > span { transition-delay: .24s; }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__grid, .story__grid, .pdp, .cart-layout, .newsletter { grid-template-columns: minmax(0, 1fr); }
  .scene { aspect-ratio: 4 / 3.4; }
  .capsules { grid-template-columns: 1fr 1fr; }
  .capsules .capsule:first-child { grid-column: 1 / -1; }
  .gallery, .cart-summary { position: static; }
  .journal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal .post:nth-child(3) { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { min-height: 260px; }
  .cat__art { inset: 8% 6% 22% 34%; }
  .capsules, .journal { grid-template-columns: minmax(0, 1fr); }
  .journal .post:nth-child(3) { display: flex; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .nl-row { flex-direction: column; }
  .card__quick { opacity: 1; transform: none; min-height: 40px; font-size: 13px; left: auto; right: 10px; bottom: 10px; width: 40px; padding: 0; }
  .card__quick .label { display: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { flex-direction: row; order: 2; }
  .gallery__thumb { width: 72px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks li { flex-direction: row; align-items: center; }
  .toolbar__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .cart-page .line, .line { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .header-actions .hide-sm { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .grid-products { gap: 24px 10px; }
  .card__body { flex-direction: column; gap: 4px; }
}

/* ---------- mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split-line > span { opacity: 1; transform: none; }
}

/* Category and capsule tiles keep their light illustration backgrounds in dark mode, so their text stays dark. */
:root[data-theme='dark'] .cat,
:root[data-theme='dark'] .cat:hover,
:root[data-theme='dark'] .capsule:not(.is-dark),
:root[data-theme='dark'] .capsule:not(.is-dark):hover { color: #4A2A2E; }
:root[data-theme='dark'] .cat__count,
:root[data-theme='dark'] .capsule:not(.is-dark) p { color: #5A4A4C; }

:root[data-theme='dark'] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F3EAE6' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }

/* ---------- Kasa, zamówienie, konto ---------- */
.co-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.co-box { margin: 0; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--sand-2); border-radius: var(--r); background: var(--white); min-width: 0; }
.co-login { font-size: 15px; }
.co-login a, .co-box a:not(.btn) { color: var(--rose-4); font-weight: 700; }
.co-box > legend.co-legend { float: left; width: 100%; }
.co-box > legend.co-legend + * { clear: both; }
.co-legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 16px; font-family: var(--f-display); font-size: 20px; font-weight: 800; color: var(--rose-5); }
.co-legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-dark); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 12px; }
.field-grid .field + .field { margin-top: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.textarea { min-height: 96px; padding-block: 12px; resize: vertical; width: 100%; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--sand-3); border-radius: 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--rose-3); }
.choice.is-on { border-color: var(--accent); background: var(--blush); }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.choice__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.choice__body small, .co-line__txt small { color: var(--muted); font-size: 13px; }
.choice__price { font-weight: 800; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.co-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FBE3DF; color: #7A2320; font-size: 14px; font-weight: 600; }
:root[data-theme='dark'] .co-error { background: #4A1F22; color: #FFD9D4; }
.co-lines { display: flex; flex-direction: column; gap: 12px; }
.co-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-line__img { width: 56px; height: 64px; border-radius: 12px; padding: 4px; }
.co-line__img svg, .co-line__img img { width: 100%; height: 100%; }
.co-line__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--sand-3); }
.co-line__txt { display: flex; flex-direction: column; min-width: 0; }
.co-line__price { font-weight: 700; white-space: nowrap; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.order-status { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.order-status .eyebrow { color: var(--rose-4); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; padding: 0; margin: 8px 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li { padding-top: 10px; border-top: 4px solid var(--sand-2); }
.steps li.is-done { border-color: var(--accent); color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.auth { max-width: 460px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; gap: 8px; }
.account { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(18px, 3vw, 32px); align-items: start; }
.acc-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--sand-2); color: inherit; }
.acc-order:first-child { border-top: 0; }
.acc-order span:first-child { display: flex; flex-direction: column; }
.acc-order small { color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--sand-1); color: var(--ink-2); white-space: nowrap; }
.pill--processing { background: #FCEFD5; color: #7A4A0B; }
.pill--shipped { background: #DDEBF7; color: #1F4766; }
.pill--delivered { background: #DFF1E3; color: #1F5130; }
.pill--cancelled { background: #F5DCDC; color: #7A2320; }
.pw summary { cursor: pointer; font-weight: 700; font-size: 14px; margin: 14px 0 4px; }
.product-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.card__art .product-photo { border-radius: 18px; }
.stock-note { color: var(--rust); font-weight: 700; min-height: 1em; }
.size-opt input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .steps { font-size: 11px; }
  .acc-order { grid-template-columns: 1fr auto; }
  .acc-order > b { grid-column: 2; }
}

.hero__brand { margin: 0; color: var(--rose-5); line-height: 1; }
.hero__logo { width: clamp(240px, 34vw, 460px); max-width: 100%; }
.hero__brand .split-line > span { display: block; }
