/* ==========================================================================
   WAVESIDE — 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; 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%); }

.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; }

/* ---------- Mockup photos ---------- */
.mockup-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.card__art:has(.mockup-photo) { inset: 4%; }
.gallery__main .art:has(.mockup-photo) { inset: 4%; }
.gallery__thumb .mockup-photo, .line__img .mockup-photo, .co-line__img .mockup-photo, .hero__tag-img .mockup-photo, .search-hit__img .mockup-photo { object-fit: contain; }

/* ---------- Page transitions (cross-document) ---------- */
@view-transition { navigation: auto; }
.gallery__main .art { view-transition-name: product-art; }
::view-transition-group(product-art) { animation-duration: .55s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- Hero logo: wipe-in reveal ---------- */
.js .hero__brand .split-line > span { transform: none; }
.js .hero__logo { clip-path: inset(0 100% 0 0); transform: translateY(14px) rotate(-2deg); }
.js .is-loaded .hero__logo { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1) .15s, transform 1.3s var(--ease) .15s; }

/* ---------- Cards: tilt, glare, favourites ---------- */
.card__media { transition: transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.card__media:hover { box-shadow: 0 26px 40px -26px rgba(74, 42, 46, .45); }
.card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .35), transparent 55%); z-index: 1; }
.card__media:hover .card__glare { opacity: 1; }
.swatch[data-sw] { cursor: pointer; transition: transform .2s; }
.swatch[data-sw]:hover, .swatch.is-on { transform: scale(1.3); box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--rose-4); }
.stars-mini { color: var(--rust); font-weight: 800; }
.stars-mini small { color: var(--muted); font-weight: 600; }
.fav-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--white) 88%, transparent); color: var(--rose-5); cursor: pointer; transition: transform .2s, color .2s; }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-on { color: #C8394B; }
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn.pop { animation: favpop .5s var(--ease); }
@keyframes favpop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.card__fav { position: absolute; top: 12px; right: 12px; z-index: 3; box-shadow: var(--shadow); }
.fav-btn--lg { width: 54px; height: 54px; flex-shrink: 0; border: 1.5px solid var(--sand-3); background: transparent; }
.fav-link { position: relative; }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #C8394B; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.badge-count.is-empty { display: none; }
.fly-ghost { position: fixed; z-index: 200; pointer-events: none; border-radius: 18px; }
.fly-ghost img, .fly-ghost svg { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Product page: flip, lens, stock alerts ---------- */
.gallery__main { perspective: 1400px; }
.gallery__main .art.is-flip { transform: rotateY(90deg) scale(.96); opacity: .4; transition: transform .26s ease-in, opacity .26s; }
.gallery__main.is-detail .art:has(.mockup-photo) { transform: scale(2.1) translate(0, 14%); }
.lens { position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; pointer-events: none; z-index: 4; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); background-repeat: no-repeat; background-color: var(--white); }
.size-opt.is-out span { opacity: .55; text-decoration: line-through; }
.size-opt.is-out input:checked + span { opacity: 1; background: var(--sand-2); color: var(--ink); border-color: var(--sand-3); text-decoration: line-through; }
.stock-note { display: flex; flex-direction: column; gap: 8px; }
.stock-note .note { margin: 0; color: var(--rust); font-weight: 700; }
.alert-form { display: flex; gap: 8px; }
.alert-form .input { min-height: 46px; flex: 1; }
.alert-form .btn { min-height: 46px; padding: 0 18px; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.reviews__head { margin: 12px 0 20px; color: var(--ink-2); }
.stars { color: var(--sand-3); letter-spacing: 2px; }
.stars .on { color: #E9A23B; }
.reviews__list { display: flex; flex-direction: column; gap: 14px; }
.review { padding: 18px 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--sand-2); }
.review__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__top time { color: var(--muted); font-size: 13px; margin-left: auto; }
.review p { margin: 8px 0 0; }
.review__photo { margin-top: 12px; width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0 0 14px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 34px; line-height: 1; color: var(--sand-3); cursor: pointer; transition: color .15s, transform .15s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #E9A23B; }
.rate label:hover { transform: scale(1.15); }
.rate input:focus-visible + label { outline: 2px solid var(--rose-4); border-radius: 4px; }
.review-form .field + .field, .review-form .field-grid + .field { margin-top: 12px; }
.review-form .btn { margin-top: 14px; }
.input.file { padding: 10px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- Dialogs: search, size guide, lockers ---------- */
dialog.search-dlg, dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(23, 17, 19, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: dlgin .3s var(--ease); }
@keyframes dlgin { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.search-dlg { width: 640px; margin-top: 10vh; }
.search-dlg__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--sand-2); }
.search-dlg__bar > svg { width: 22px; height: 22px; color: var(--muted); }
.search-dlg__bar input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); outline: none; min-width: 0; }
.search-dlg__results { padding: 10px; max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.search-dlg__results > p { padding: 14px; margin: 0; }
.search-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; color: inherit; }
.search-hit:hover, .search-hit:focus-visible { background: var(--sand-1); }
.search-hit__img { width: 56px; height: 66px; border-radius: 10px; padding: 3px; }
.search-hit__img svg, .search-hit__img img { width: 100%; height: 100%; }
.search-hit b, .locker b { display: block; }
.search-hit small, .locker small { display: block; color: var(--muted); font-size: 13px; }
.search-hit__price { font-weight: 800; }
.modal { width: 560px; padding: 24px !important; }
.modal--wide { width: 980px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 12px; }
.size-table caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--sand-2); text-align: left; }
.size-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.size-tables { display: grid; gap: 24px; }

/* ---------- Locker picker (InPost) ---------- */
.locker-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 14px; align-items: stretch; }
.lk-chosen { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--sand-1); border: 1.5px dashed var(--sand-3); min-height: 76px; }
.lk-chosen.is-set { background: var(--blush); border: 1.5px solid var(--accent); }
.lk-chosen img, .lk-chosen__icon { width: 64px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lk-chosen__icon, .lk-chosen__empty svg { display: grid; place-items: center; background: #FFCD00; color: #2B1F21; }
.lk-chosen__icon svg { width: 26px; height: 26px; }
.lk-chosen__empty { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.lk-chosen__empty svg { width: 34px; height: 34px; padding: 6px; border-radius: 10px; }
.lk-chosen__txt { display: flex; flex-direction: column; min-width: 0; }
.lk-chosen__txt span { font-size: 14px; }
.lk-chosen__txt small { color: var(--muted); font-size: 12.5px; }
.lk-open { gap: 8px; align-self: center; }
.lk-open svg { width: 20px; height: 20px; }
.lk-code { grid-column: 1 / -1; }
.lk-code label { font-weight: 600 !important; font-size: 13px !important; color: var(--muted) !important; }
html.lk-open { overflow: hidden; }

dialog.lk { width: min(1180px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 28px; overflow: hidden;
  display: none; grid-template-columns: 400px minmax(0, 1fr); background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); }
dialog.lk[open] { display: grid; animation: dlgin .35s var(--ease); }
.lk__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--sand-2); }
.lk__head { display: flex; gap: 14px; align-items: center; padding: 22px 22px 14px; }
.lk__head h2 { margin: 0; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; color: var(--rose-5); }
.lk__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.lk__logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #FFCD00; color: #2B1F21; flex-shrink: 0; }
.lk__logo svg { width: 26px; height: 26px; }
.lk__x { margin-left: auto; }
.lk__search { display: flex; align-items: center; gap: 8px; margin: 0 22px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--sand-3); border-radius: 999px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.lk__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.lk__search > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.lk__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.lk__search .btn { min-height: 40px; padding: 0 16px; }
.lk__chips { display: flex; align-items: center; gap: 10px; padding: 12px 22px; flex-wrap: wrap; }
.lk__chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.lk__chips .chip svg { width: 16px; height: 16px; }
.lk__status { font-size: 13px; color: var(--muted); }
.lk__list { flex: 1; overflow: auto; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.lk-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border: 1.5px solid transparent; border-radius: 16px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background-color .2s, border-color .2s; }
.lk-item:hover { background: var(--sand-1); }
.lk-item.is-active { background: var(--blush); border-color: var(--accent); }
.lk-item__pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #FFCD00; color: #2B1F21; }
.lk-item__pin svg { width: 20px; height: 20px; }
.lk-item__txt { display: flex; flex-direction: column; min-width: 0; }
.lk-item__txt b { font-size: 15px; }
.lk-item__txt span { font-size: 13.5px; color: var(--ink-2); }
.lk-item__txt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-item__dist { font-size: 12.5px; font-weight: 800; color: var(--rose-4); white-space: nowrap; }
.lk__mapwrap { position: relative; min-height: 0; background: var(--sand-1); }
.lk__map { position: absolute; inset: 0; }
.lk__map .leaflet-tile-pane { filter: saturate(.55) sepia(.16) hue-rotate(-6deg) brightness(1.04) contrast(.96); }
:root[data-theme='dark'] .lk__map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) saturate(.35) brightness(.88) contrast(.9); }
.lk__map .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); border-radius: 14px; overflow: hidden; margin: 0 16px 16px 0; }
.lk__map .leaflet-control-zoom a { width: 40px; height: 40px; line-height: 40px; background: var(--white); color: var(--ink); border-color: var(--sand-2); }
.lk__map .leaflet-control-attribution { background: color-mix(in srgb, var(--white) 80%, transparent); color: var(--muted); font-size: 10.5px; }
.lk__map .leaflet-control-attribution a { color: var(--rose-4); }
.lk-pin { background: none; border: 0; }
.lk-pin span { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #FFCD00; color: #2B1F21;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45), 0 0 0 3px #fff; transition: transform .2s var(--ease), background-color .2s; }
.lk-pin span svg { width: 18px; height: 18px; transform: rotate(45deg); }
.lk-pin.is-hover span, .lk-pin:hover span { transform: rotate(-45deg) scale(1.18); }
.lk-pin.is-active span { background: var(--accent); color: #fff; transform: rotate(-45deg) scale(1.3); box-shadow: 0 8px 20px -4px rgba(0, 0, 0, .5), 0 0 0 4px #fff; }
.lk-cluster { background: none; }
.lk-cluster span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--deep); color: #FFCD00; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 0 6px color-mix(in srgb, #FFCD00 45%, transparent), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.lk-cluster.is-big span { width: 48px; height: 48px; margin: -3px; }
.lk-card { position: absolute; left: 18px; bottom: 18px; width: min(360px, calc(100% - 36px)); background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .5); z-index: 500; animation: dlgin .3s var(--ease); }
.lk-card__img { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--sand-1); }
.lk-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.lk-card__top { display: flex; justify-content: space-between; align-items: center; }
.lk-card__top b { font-size: 18px; font-family: var(--f-display); }
.lk-card__body small { color: var(--muted); }
.lk-card .btn { margin-top: 10px; }
.lk-card__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.lk-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.lk-badge { padding: 3px 9px; border-radius: 999px; background: #FFF3B8; color: #5A4500; font-size: 12px; font-weight: 800; }
:root[data-theme='dark'] .lk-badge { background: #4A3D10; color: #FFE89A; }
@media (max-width: 860px) {
  .locker-pick { grid-template-columns: 1fr; }
  dialog.lk { width: 100vw; height: 100dvh; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto 42dvh; }
  .lk__side { border-right: 0; order: 2; min-height: 0; }
  .lk__mapwrap { order: 1; }
  dialog.lk[open] { grid-template-rows: 42dvh minmax(0, 1fr); }
  .lk__head { padding: 14px 16px 10px; }
  .lk__search { margin: 0 16px; }
  .lk__chips { padding: 10px 16px; }
  .lk-card { left: 10px; right: 10px; bottom: 10px; width: auto; display: grid; grid-template-columns: 96px 1fr; }
  .lk-card__img { height: 100%; }
  .lk-card__body { padding: 12px 14px; }
  .lk-card__top { padding-right: 34px; }
  .lk-card__top b { font-size: 16px; }
  .lk-card .btn { margin-top: 6px; min-height: 42px; font-size: 14px; }
  .lk-card__x { top: 8px; right: 8px; width: 28px; height: 28px; }
  .lk__map .leaflet-control-zoom { display: none; }
  .lk-open { align-self: stretch; }
}

/* ---------- Text pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--f-display); font-size: 26px; color: var(--rose-5); margin: 34px 0 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose a { color: var(--rose-4); font-weight: 700; }
.prose mark { background: #FCEFB4; color: #4A3A00; padding: 0 4px; border-radius: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 8px 14px; border-radius: 999px; background: var(--sand-1); font-weight: 700; font-size: 14px; color: var(--ink); }
.legal-note { padding: 14px 16px; border-radius: 14px; background: #FCEFB4; color: #4A3A00 !important; font-weight: 600; }
:root[data-theme='dark'] .legal-note, :root[data-theme='dark'] .prose mark { background: #4A3D10; color: #FCEFB4 !important; }

@media (max-width: 860px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .locker-dlg__body { grid-template-columns: 1fr; grid-template-rows: 300px auto; height: auto; }
  .locker-list { max-height: 40vh; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__logo { clip-path: none; transform: none; }
  @view-transition { navigation: none; }
}
.review-form .field-grid .field + .field { margin-top: 0; }

/* ---------- Free-shipping suggestions ---------- */
.suggest { margin: 14px 0 6px; padding: 14px; border-radius: 16px; background: var(--blush); }
.suggest__title { margin: 0 0 10px; font-weight: 800; font-size: 14px; color: var(--rose-5); }
.suggest__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; }
.suggest__img { width: 52px; height: 60px; border-radius: 10px; padding: 3px; display: block; }
.suggest__img img, .suggest__img svg { width: 100%; height: 100%; object-fit: contain; }
.suggest__txt { display: flex; flex-direction: column; min-width: 0; font-weight: 700; font-size: 14px; }
.suggest__txt a { color: var(--ink); }
.suggest__txt small { color: var(--muted); font-weight: 600; }
.suggest__add { background: var(--white); box-shadow: var(--shadow); }
.suggest__add svg { width: 18px; height: 18px; }

/* ---------- Bundles ---------- */
.bundle-box { margin-top: 18px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--rose-3); display: flex; flex-direction: column; gap: 12px; }
.bundle-box__title { margin: 0; font-weight: 800; color: var(--rose-4); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.bundle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.bundle__imgs { display: flex; align-items: center; gap: 6px; }
.bundle__imgs > span, .bundle__imgs > a { width: 56px; height: 64px; border-radius: 12px; padding: 3px; display: block; }
.bundle__imgs img, .bundle__imgs svg { width: 100%; height: 100%; object-fit: contain; }
.bundle__txt { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.bundle__txt small { color: var(--muted); }
.bundle__txt s { color: var(--muted); }
.bundle__price { color: var(--rose-4); font-size: 16px; }
.bundle__save { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--rust); color: #fff; font-weight: 800; font-size: 12px; }
.bundle .btn { min-height: 42px; padding: 0 16px; }

/* ---------- Lookbook ---------- */
.lookbook__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.look { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--sand-1); color: #fff; }
.look--big { grid-column: span 2; grid-row: span 2; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.look:hover img { transform: scale(1.06); }
.look__cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(23, 17, 19, .75)); font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.look:hover .look__cap, .look:focus-visible .look__cap { opacity: 1; transform: none; }
.look__cap b { color: #FFD9A8; }
@media (max-width: 860px) { .lookbook__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .look__cap { opacity: 1; transform: none; } }

/* ---------- Tracking ---------- */
.tracking__now { margin: 0 0 12px; font-size: 18px; color: var(--rose-5); }
.tracking__list { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--sand-2); display: flex; flex-direction: column; gap: 12px; }
.tracking__list li { position: relative; display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); }
.tracking__list li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sand-3); border: 2px solid var(--white); }
.tracking__list li.is-now { color: var(--ink); font-weight: 700; }
.tracking__list li.is-now::before { background: #FFCD00; box-shadow: 0 0 0 4px color-mix(in srgb, #FFCD00 35%, transparent); }
.tracking__list time { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Language toggle ---------- */
.lang-toggle { font-family: var(--f-body); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.cart-summary .code-row + .note { margin: -4px 0 0; }

/* ---------- On-model photos ---------- */
.model-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__main.is-model .art { inset: 0; }
.gallery__main.is-model .art img { border-radius: inherit; }
.gallery__thumb--model { padding: 0; overflow: hidden; }
.gallery__thumb--model .model-photo { border-radius: 12px; }

/* ---------- Living hero: time of day ---------- */
.scene { --sky-a: #F6E6CC; --sky-b: #F6E6CC; --sun: #EFAE8E; --dune: #E8D2AE; --w1: #E8B9B5; --w2: #C98A86; --w3: #8E4F55; --sand: #EADBC4; --bird: #4A2A2E;
  transition: transform .5s var(--ease), background-color 1.2s; will-change: transform; }
.scene[data-time='sunset'] { --sky-a: #F2A98C; --sky-b: #FAD9BC; --sun: #E0704A; --dune: #E2A982; --w1: #D98E8A; --w2: #A85A6A; --w3: #6B3550; --sand: #E8C29E; --bird: #4A2A2E; }
.scene[data-time='night'] { --sky-a: #17162A; --sky-b: #3A2B47; --sun: #F3E6C8; --dune: #3B2F45; --w1: #4B3A58; --w2: #3A2A48; --w3: #261B32; --sand: #45384A; --bird: #8F84A6; }
.scene .sky-a { stop-color: var(--sky-a); transition: stop-color 1.2s; }
.scene .sky-b { stop-color: var(--sky-b); transition: stop-color 1.2s; }
.scene .sun__disc { fill: var(--sun); transition: fill 1.2s; }
.scene .sun__halo { stroke: var(--sun); transition: stroke 1.2s; }
.scene .dune { fill: var(--dune); transition: fill 1.2s; }
.scene .w1 { fill: var(--w1); } .scene .w2 { fill: var(--w2); } .scene .w3 { fill: var(--w3); }
.scene .wave { transition: fill 1.2s; }
.scene .sand { fill: var(--sand); transition: fill 1.2s; }
.scene .bird { stroke: var(--bird); transition: stroke 1.2s, opacity 1.2s; }
.scene .moon-cut { opacity: 0; transition: opacity 1.2s; }
.scene .stars { opacity: 0; transition: opacity 1.4s; }
.scene .stars circle { animation: twinkle 3.4s ease-in-out infinite; }
.scene[data-time='night'] .stars, .scene[data-time='night'] .moon-cut { opacity: 1; }
.scene[data-time='night'] .bird { opacity: 0; }
.scene[data-time='night'] .sun { animation-duration: 14s; }
.scene .glints path { opacity: 0; animation: glint 3.2s ease-in-out infinite; }
.scene .glints path:nth-child(2n) { animation-delay: -1.1s; } .scene .glints path:nth-child(3n) { animation-delay: -2.2s; }
.scene[data-time='night'] .glints path { stroke: #F3E6C8; }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes glint { 0%, 100% { opacity: 0; transform: translateX(0); } 45% { opacity: .9; } 70% { opacity: 0; transform: translateX(6px); } }
.scene__time { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--white) 82%, transparent); backdrop-filter: blur(6px); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.scene__time span { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Paper grain + inked headings ---------- */
body::after { content: ''; position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .075; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme='dark'] body::after { mix-blend-mode: screen; opacity: .05; }
.display.h1, .display.h2, .cat__title, .capsule__tag { filter: url(#wl-ink); }

/* ---------- Cursor ---------- */
.cur-ring, .cur-dot { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor-on .cur-ring, .cursor-on .cur-dot { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--rose-4); }
.cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cur-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--rose-4) 60%, transparent); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.cur-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cur-ring.is-hot::before { transform: scale(1.5); background: color-mix(in srgb, var(--rose-3) 18%, transparent); }
.cur-ring.is-view::before { transform: scale(2.6); background: var(--deep); border-color: var(--deep); }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-down::before { transform: scale(.8); }
.has-cursor .card__media, .has-cursor .look, .has-cursor .hs-card { cursor: none; }
.btn { transition: translate .25s var(--ease), background-color .3s, color .3s, border-color .3s; }

/* ---------- Horizontal collection ---------- */
.hscroll { position: relative; background: var(--sand-1); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: hidden; padding-block: calc(var(--header-h) + 16px) 32px; }
.hscroll__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hscroll__track { display: flex; gap: 22px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); will-change: transform; }
.hs-card { position: relative; flex: 0 0 auto; width: clamp(240px, 26vw, 360px); aspect-ratio: 3 / 4; border-radius: 28px; background: var(--bg); color: var(--ink); overflow: hidden; display: block; transition: transform .5s var(--ease); }
.hs-card:hover { transform: translateY(-8px) rotate(-1deg); }
.hs-card__n { position: absolute; top: 16px; left: 20px; font-family: var(--f-display); font-weight: 800; font-size: 44px; color: rgba(43, 31, 33, .14); }
.hs-card__art { position: absolute; inset: 8% 6% 22%; }
.hs-card__art img, .hs-card__art svg { width: 100%; height: 100%; object-fit: contain; }
.hs-card__txt { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 800; }
.hs-card__txt span { color: var(--rose-4); white-space: nowrap; }
.hscroll__bar { margin-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); height: 3px; border-radius: 3px; background: var(--sand-2); overflow: hidden; }
.hscroll__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
@media (max-width: 860px) {
  .hscroll__sticky { position: static; height: auto; padding-block: 56px; }
  .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .hs-card { scroll-snap-align: center; width: 72vw; }
  .hscroll__bar { display: none; }
}

/* ---------- Drag to rotate ---------- */
.gallery__main { touch-action: pan-y; }
.rot { position: absolute; inset: 0; transform-style: preserve-3d; }
.rot__face { position: absolute; inset: 0; backface-visibility: hidden; }
.rot__face img, .rot__face svg { width: 100%; height: 100%; object-fit: contain; }
.rot__back { transform: rotateY(180deg); }
.gallery__main.is-rotating { cursor: grabbing; }
.rotate-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--white) 85%, transparent); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 800; color: var(--ink); pointer-events: none; animation: hintIn 1s var(--ease) .8s both; }
.rotate-hint svg { width: 16px; height: 16px; }
.gallery__main.is-detail .rotate-hint, .gallery__main.is-model .rotate-hint { display: none; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Cart wobble + confetti ---------- */
[data-open-cart]:has(.cart-count.bump) svg { animation: cartwave .7s var(--ease); }
@keyframes cartwave { 20% { transform: rotate(-14deg) translateY(-2px); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 350; pointer-events: none; }

/* ---------- Page transition: rising wave ---------- */
::view-transition-new(root) { animation: wl-wave-in .75s cubic-bezier(.65, 0, .25, 1) both;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 300' preserveAspectRatio='none'><path d='M0 120 Q12.5 108 25 120 T50 120 T75 120 T100 120 V300 H0Z'/></svg>") 0 0 / 100% 300% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 300' preserveAspectRatio='none'><path d='M0 120 Q12.5 108 25 120 T50 120 T75 120 T100 120 V300 H0Z'/></svg>") 0 0 / 100% 300% no-repeat; }
::view-transition-old(root) { animation: wl-fade-out .75s ease both; }
@keyframes wl-wave-in { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
@keyframes wl-fade-out { to { opacity: .6; transform: scale(.985); } }

/* ---------- Story page (historia.html) ---------- */
.tale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: 40px 80px; }
.tale__visual { position: sticky; top: calc(var(--header-h) + 24px); height: min(78vh, 640px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.tale__scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.tale__visual[data-active='1'] [data-scene='1'], .tale__visual[data-active='2'] [data-scene='2'], .tale__visual[data-active='3'] [data-scene='3'], .tale__visual[data-active='4'] [data-scene='4'] { opacity: 1; transform: none; }
.tale__steps { display: flex; flex-direction: column; }
.tale__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .3; transition: opacity .6s; }
.tale__step.is-active { opacity: 1; }
.tale__step p { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 30em; }
.tale__step .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .tale { grid-template-columns: 1fr; padding-top: 16px; }
  .tale__visual { display: none; }
  .tale__step { min-height: 0; opacity: 1; padding-block: 28px; }
}
.tale__inline { display: none; }
@media (max-width: 860px) { .tale__inline { display: block; width: 100%; aspect-ratio: 5 / 4; border-radius: var(--r); box-shadow: var(--shadow); } }


/* ---------- Sessions counter ---------- */
.sess-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sess-stat { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--sand-2); }
.sess-stat b { font-family: var(--f-display); font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--rose-5); letter-spacing: -0.03em; }
.sess-stat span { color: var(--muted); font-weight: 700; font-size: 14px; }
.sessions-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--blush); }
.sessions-band .lead { margin: 12px 0 20px; }
.sessions__head { margin-bottom: 20px; }
.sessions__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.sess-form .btn { margin-top: 16px; }
.sess-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.sess-feed li { padding-bottom: 10px; border-bottom: 1px solid var(--sand-2); }
@media (max-width: 860px) { .sessions-band__inner, .sessions__grid { grid-template-columns: 1fr; } .sess-stats { grid-template-columns: 1fr 1fr 1fr; } .sess-stat { padding: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .scene .stars circle, .scene .glints path, .scene__time span { animation: none; }
  ::view-transition-new(root), ::view-transition-old(root) { animation: none; }
}

.gallery__main img { -webkit-user-drag: none; user-select: none; }
.gallery__main .art:has(.rot) { perspective: 1200px; }
.gallery__main.is-rotating .lens, .gallery__main:has(.rot) .lens { display: none; }
