/* Nebbia storefront. Uses tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--font-body); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: var(--z-toast); background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--radius); }
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.h1 { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.muted { color: var(--ink-3); }
.price { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.price s { color: var(--ink-3); margin-left: var(--s2); }
.price .sale { color: var(--accent); }
em.serif { font-family: var(--font-display); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s6); border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: transform var(--t) var(--ease-out), opacity var(--t);
}
.btn::before { /* fill sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform var(--t-slow) var(--ease-out); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { --fg: var(--on-accent); }
.btn.light { --bg: var(--paper); --fg: var(--ink); }
.btn.light:hover { --fg: var(--on-accent); }
.btn.block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { position: relative; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: var(--s2) 0; display: inline-flex; gap: var(--s2); align-items: center; min-height: 44px; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: right; transition: transform var(--t-slow) var(--ease-out); }
.link:hover::after { transform: scaleX(0); }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: var(--paper); text-align: center; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; padding: var(--s2) var(--gutter); }
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: transform var(--t-slow) var(--ease-out), border-color var(--t);
}
.header.scrolled { border-bottom-color: var(--line); }
.header.hide { transform: translateY(-100%); }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.nav { display: flex; gap: var(--s5); align-items: center; }
.nav a { font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; padding: var(--s3) 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: .32em; padding-left: .32em; font-weight: 500; text-align: center; white-space: nowrap; }
.tools { display: flex; justify-content: flex-end; gap: var(--s1); }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background var(--t); }
.icon-btn:hover { background: var(--paper-3); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; transform: scale(0); transition: transform var(--t) var(--ease-out); }
.badge.on { transform: scale(1); }
.badge.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav.desktop { display: none; }
  .menu-btn { display: grid; }
  .logo { font-size: 1.4rem; }
}

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: var(--z-drawer); pointer-events: none; visibility: hidden; transition: visibility 0s var(--t-slow); }
.mnav .scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--t-slow); }
.mnav .panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--paper); padding: var(--s5) var(--s5) var(--s7); transform: translateX(-100%); transition: transform var(--t-slow) var(--ease-out); display: flex; flex-direction: column; gap: var(--s2); overflow-y: auto; }
.mnav.open { pointer-events: auto; visibility: visible; transition: none; }
.mnav.open .scrim { opacity: 1; }
.mnav.open .panel { transform: none; }
.mnav .panel a.big { font-family: var(--font-display); font-size: 2.25rem; padding: var(--s2) 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-16px); transition: opacity var(--t-slow), transform var(--t-slow) var(--ease-out); }
.mnav.open .panel a.big { opacity: 1; transform: none; }
.mnav.open .panel a.big:nth-of-type(2) { transition-delay: 60ms; } .mnav.open .panel a.big:nth-of-type(3) { transition-delay: 120ms; } .mnav.open .panel a.big:nth-of-type(4) { transition-delay: 180ms; }

/* search overlay */
.search { position: fixed; inset: 0 0 auto 0; z-index: var(--z-drawer); background: var(--paper); box-shadow: var(--shadow-3); transform: translateY(-105%); transition: transform var(--t-slow) var(--ease-out), visibility 0s var(--t-slow); padding: var(--s6) 0; visibility: hidden; }
.search.open { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease-out); }
.search form { display: flex; gap: var(--s3); align-items: center; }
.search input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-family: var(--font-display); font-size: var(--fs-2xl); padding: var(--s2) 0; }
.search input:focus { outline: none; border-bottom-color: var(--accent); }
.search-results { margin-top: var(--s5); display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s4); }
.search-results a { font-size: var(--fs-sm); }
.search-results .ph, .search-results img { aspect-ratio: 3/4; width: 100%; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--s2); background: var(--paper-3); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: calc(100svh - 104px); min-height: 520px; max-height: 980px; overflow: hidden; background: var(--ink); }
.hero-panel { position: relative; overflow: hidden; color: var(--paper); display: flex; align-items: flex-end; padding: var(--s7) var(--gutter); transition: flex-grow var(--t-slow) var(--ease-out); isolation: isolate; }
.hero-panel .bg { position: absolute; inset: 0; z-index: -2; }
.hero-panel .bg img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.15); animation: kenburns 9s var(--ease-out) forwards; will-change: transform; }
.hero-panel:nth-child(2) .bg img { animation-delay: .25s; }
.hero-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,25,23,0) 35%, rgba(28,25,23,.62) 100%); transition: background var(--t-slow); }
.hero-panel:hover::after { background: linear-gradient(180deg, rgba(28,25,23,0) 20%, rgba(28,25,23,.72) 100%); }
.hero-panel .bg img { transition: transform 1.6s var(--ease-out); }
.hero-panel:hover .bg img { transform: scale(1.06); }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.hero-panel .cta { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); letter-spacing: .2em; text-transform: uppercase; margin-top: var(--s4); min-height: 44px; }
.hero-panel .cta .icon { transition: transform var(--t) var(--ease-out); }
.hero-panel:hover .cta .icon { transform: translateX(6px); }
.hero-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1; margin: 0; }
.hero-title { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; color: var(--paper); pointer-events: none; width: 100%; padding: 0 var(--gutter); }
.hero-title .eyebrow { color: rgba(250,248,245,.95); text-shadow: 0 1px 12px rgba(28,25,23,.55), 0 0 2px rgba(28,25,23,.4); }
.hero::before { content: ''; position: absolute; z-index: 1; inset: 20% 10% 35%; background: radial-gradient(closest-side, rgba(28,25,23,.28), transparent); pointer-events: none; }
.hero-title h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-hero); line-height: .95; margin: var(--s3) 0 0; letter-spacing: .02em; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.split { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split > span { display: inline-block; transform: translateY(110%); animation: rise var(--t-hero) var(--ease-out) forwards; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease-out) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.ph-fill { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, #8c7a66 0%, #4a4038 55%, #2a2420 100%); }
.hero-panel:nth-child(2) .ph-fill { background: radial-gradient(120% 90% at 70% 20%, #5f6a77 0%, #343a42 55%, #1e2126 100%); }
.scroll-cue { position: absolute; z-index: 2; bottom: var(--s5); left: 50%; transform: translateX(-50%); width: 1px; height: 48px; background: rgba(250,248,245,.35); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; inset: 0; background: var(--paper); animation: cue 2.2s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (hover: hover) and (min-width: 861px) { .hero:hover .hero-panel { flex-grow: 1; } .hero { display: flex; } .hero-panel { flex: 1 1 0; } .hero-panel:hover { flex-grow: 1.35; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: auto; min-height: 0; max-height: none; }
  .hero-panel { min-height: 62svh; padding: var(--s6) var(--gutter); }
  .hero-title { top: 31svh; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: var(--s4) 0; background: var(--paper-2); }
.marquee .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic; padding: 0 var(--s6); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s6); }
.marquee span::after { content: '✦'; font-style: normal; font-size: .6em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s7); flex-wrap: wrap; }
.section-head p { max-width: 46ch; margin: var(--s3) 0 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-mask.in { clip-path: inset(0 0 0 0); }
.no-js .reveal, .no-js .reveal-mask { opacity: 1; transform: none; clip-path: none; }

/* ---------- product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); } }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s3); }
.card .media { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-slow) var(--ease-out), transform 1.4s var(--ease-out); }
.card .media img.alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .media img { transform: scale(1.05); }
  .card:hover .media img.alt { opacity: 1; }
}
.card .tag { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; background: var(--paper); color: var(--ink); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill); font-weight: 500; }
.card .tag.sale { background: var(--accent); color: var(--on-accent); }
.card .tag.out { background: var(--ink); color: var(--paper); }
.card .quick { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 1; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius); padding: var(--s2) var(--s3); display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; justify-content: center; transform: translateY(calc(100% + 16px)); transition: transform var(--t-slow) var(--ease-out); }
.card .quick .lbl { width: 100%; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.card .quick button { min-width: 44px; min-height: 36px; padding: 0 var(--s2); font-size: var(--fs-xs); font-weight: 500; border-radius: var(--radius-sm); transition: background var(--t), color var(--t); }
.card .quick button:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.card .quick button[disabled] { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }
@media (hover: hover) { .card:hover .quick, .card:focus-within .quick { transform: none; } }
@media (hover: none) { .card .quick { display: none; } }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.15; margin: 0; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.card .sub { font-size: var(--fs-sm); color: var(--ink-3); margin: 2px 0 0; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.card a.cover { position: absolute; inset: 0; z-index: 0; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 2px, transparent 2px 7px),
  linear-gradient(160deg, var(--c1, #d8cbb8), var(--c2, #b9a68e)); color: rgba(28,25,23,.55); font-family: var(--font-display); font-size: 3rem; }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--paper-3) 0%, var(--paper-2) 50%, var(--paper-3) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-card .m { aspect-ratio: 3/4; } .skel-card .l { height: 14px; margin-top: var(--s3); width: 70%; } .skel-card .l2 { height: 12px; margin-top: var(--s2); width: 40%; }

/* ---------- editorial blocks ---------- */
.split-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-feature .media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); }
.split-feature .media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.split-feature p { max-width: 52ch; }
@media (max-width: 860px) { .split-feature { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s5); }
.stats b { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; }
.stats span { font-size: var(--fs-sm); color: var(--ink-3); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.cat-tile { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-sm); color: var(--paper); display: flex; align-items: flex-end; padding: var(--s5); isolation: isolate; background: var(--ink-2); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(28,25,23,.6)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); margin: 0; }
.cat-tile span { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; } .cats > :first-child { grid-column: 1 / -1; aspect-ratio: 16/10; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.values > div { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.values h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xl); margin: var(--s2) 0; }
.values p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* newsletter */
.newsletter { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.newsletter p { color: rgba(250,248,245,.75); }
.newsletter form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; min-height: 52px; border-radius: var(--radius-pill); border: 1px solid rgba(250,248,245,.3); background: transparent; color: var(--paper); padding: 0 var(--s5); }
.newsletter input::placeholder { color: rgba(250,248,245,.6); }
.newsletter .msg { width: 100%; font-size: var(--fs-sm); min-height: 1.4em; margin: 0; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: var(--s9); padding: var(--s8) 0 var(--s6); font-size: var(--fs-sm); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); }
.footer h4 { font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 var(--s3); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.footer ul a { display: inline-block; padding: var(--s2) 0; color: var(--ink-2); }
.footer ul a:hover { color: var(--accent); }
.footer .big { font-family: var(--font-display); font-size: clamp(3rem, 14vw, 12rem); letter-spacing: .2em; line-height: 1; text-align: center; margin: var(--s7) 0 var(--s4); color: var(--paper-3); user-select: none; }
.footer .legal { display: flex; justify-content: space-between; gap: var(--s4); color: var(--ink-3); flex-wrap: wrap; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- shop page ---------- */
.shop-hero { padding: var(--s8) 0 var(--s6); }
.shop-hero .display { font-size: var(--fs-3xl); }
.toolbar { position: sticky; top: 68px; z-index: 5; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); margin-bottom: var(--s6); }
.toolbar .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 60px; flex-wrap: wrap; padding-block: var(--s2); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 var(--s4); border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: var(--fs-sm); white-space: nowrap; transition: background var(--t), color var(--t), border-color var(--t); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0 var(--s6) 0 var(--s4); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1917' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: var(--fs-sm); }
.filters-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-sm); }
.count { font-size: var(--fs-sm); color: var(--ink-3); }
.empty { text-align: center; padding: var(--s9) var(--s4); }
.empty .display { font-size: var(--fs-2xl); margin-bottom: var(--s3); }

/* drawers (cart + filters) */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); pointer-events: none; visibility: hidden; transition: visibility 0s var(--t-slow); }
.drawer .scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 460px); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t-slow) var(--ease-out); box-shadow: var(--shadow-3); }
.drawer.left .panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open { pointer-events: auto; visibility: visible; transition: none; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.drawer header h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); margin: 0; }
.drawer .body { flex: 1; overflow-y: auto; padding: var(--s5); overscroll-behavior: contain; }
.drawer footer { border-top: 1px solid var(--line); padding: var(--s5); display: grid; gap: var(--s3); padding-bottom: max(var(--s5), env(safe-area-inset-bottom)); }
.ship-bar { font-size: var(--fs-sm); }
.ship-bar .bar { height: 3px; background: var(--paper-3); border-radius: 2px; margin-top: var(--s2); overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform var(--t-slow) var(--ease-out); }
.line { display: grid; grid-template-columns: 84px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); animation: fadeUp .5s var(--ease-out) both; }
.line .thumb { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--paper-3); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0; }
.line .meta { font-size: var(--fs-sm); color: var(--ink-3); }
.line .warn { font-size: var(--fs-sm); color: var(--danger); margin: var(--s1) 0 0; }
.line .ctl { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--paper-3); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.remove { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.totals { display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: var(--fs-lg); font-weight: 500; padding-top: var(--s2); border-top: 1px solid var(--line); }
.fly { position: fixed; z-index: var(--z-toast); pointer-events: none; border-radius: var(--radius-sm); object-fit: cover; box-shadow: var(--shadow-2); }

/* filters drawer contents */
.fgroup { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.fgroup h3 { font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 var(--s3); font-weight: 500; }
.fopts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.fopt { min-height: 40px; min-width: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.fopt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.price-row { display: flex; gap: var(--s3); align-items: center; }
.price-row input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 var(--s3); background: var(--paper); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 80px); padding-top: var(--s5); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.gallery figure { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); cursor: zoom-in; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery figure.zoom img { transform: scale(1.8); }
.gallery figure.zoom { cursor: zoom-out; }
.pinfo { position: sticky; top: 96px; align-self: start; display: grid; gap: var(--s5); }
.crumbs { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: var(--s2); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.pinfo h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); line-height: 1; margin: 0; }
.pinfo .price { font-size: var(--fs-xl); }
.opt-label { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: var(--s2); }
.opt-label b { font-weight: 500; }
.colors { display: flex; gap: var(--s3); flex-wrap: wrap; }
.color-opt { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t); }
.color-opt i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.color-opt[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--s2); }
.size-opt { min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500; transition: border-color var(--t), background var(--t), color var(--t); position: relative; }
.size-opt:hover:not([aria-disabled="true"]) { border-color: var(--ink); }
.size-opt[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-opt[aria-disabled="true"] { color: var(--ink-3); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); cursor: not-allowed; }
.stock-note { font-size: var(--fs-sm); min-height: 1.6em; margin: 0; }
.stock-note.low { color: var(--warning); }
.stock-note.out { color: var(--danger); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--t) var(--ease-out); width: 18px; height: 18px; }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc .content { padding: 0 0 var(--s5); color: var(--ink-2); font-size: var(--fs-sm); }
.perks { display: grid; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.perks div { display: flex; gap: var(--s3); align-items: center; }
.perks .icon { width: 18px; height: 18px; }
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: 0; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s2); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 86%; scroll-snap-align: center; cursor: default; }
  .pinfo { position: static; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: var(--s3) var(--gutter) max(var(--s3), env(safe-area-inset-bottom)); gap: var(--s3); align-items: center; transform: translateY(110%); transition: transform var(--t-slow) var(--ease-out); }
  .sticky-buy.show { transform: none; }
  .sticky-buy .btn { flex: 1; min-height: 48px; }
}
.dots { display: none; justify-content: center; gap: 6px; margin-top: var(--s3); }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width var(--t), background var(--t); }
.dots i.on { width: 18px; background: var(--ink); }
@media (max-width: 900px) { .dots { display: flex; } }

/* ---------- checkout ---------- */
.checkout > * { min-width: 0; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: var(--s6) 0 var(--s8); }
.checkout aside { background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--s5); align-self: start; position: sticky; top: 96px; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .checkout aside { position: static; order: -1; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s6); }
legend { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: var(--s4); padding: 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea { min-height: 50px; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); background: var(--paper); font-size: var(--fs-md); transition: border-color var(--t), box-shadow var(--t); width: 100%; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--fs-sm); margin: 0; }
.code-row { display: flex; gap: var(--s2); }
.code-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0 var(--s4); background: var(--paper); text-transform: uppercase; }
.code-row .btn { min-height: 48px; padding: 0 var(--s5); }
.alert { padding: var(--s4); border-radius: var(--radius); font-size: var(--fs-sm); display: flex; gap: var(--s3); align-items: flex-start; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--accent-soft); color: var(--ink); }
.alert.ok { background: var(--success-soft); color: var(--success); }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; font-size: var(--fs-sm); }
.mini-line .thumb { aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--paper-3); }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-line .thumb b { position: absolute; top: -1px; right: -1px; background: var(--ink); color: var(--paper); font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }

/* confirmation */
.confirm { max-width: 720px; margin: 0 auto; padding: var(--s8) 0; text-align: center; }
.check { width: 84px; height: 84px; margin: 0 auto var(--s5); }
.check circle { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease-out) forwards; }
.check path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .7s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt { text-align: left; background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--s5); margin-top: var(--s6); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; background: var(--accent-soft); font-weight: 500; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--s2); width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--radius); font-size: var(--fs-sm); box-shadow: var(--shadow-3); animation: toastIn var(--t-slow) var(--ease-out); pointer-events: auto; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* page enter */
main { animation: pageIn .7s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; } }
@media (max-width: 760px) {
  .card > div > .row:first-child { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card h3 { font-size: 1.15rem; }
}
.line .thumb:empty, .mini-line .thumb:not(:has(img)) { background: linear-gradient(160deg, var(--paper-3), var(--line)); }

/* ---- admin-editable content: pages, logo image, socials ---- */
.prose { padding-bottom: var(--s9); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.15; margin: var(--s8) 0 var(--s4); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--fs-lg); font-weight: 500; margin: var(--s6) 0 var(--s3); scroll-margin-top: 96px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { overflow-x: auto; margin: var(--s4) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 420px; }
.prose th { text-align: left; border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; font-weight: 500; }
.prose td { border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; }
.prose tr:last-child td { border-bottom: 0; }
.logo-img { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; margin: 0 auto; }
.footer .logo .logo-img { margin: 0; height: 32px; }
.footer .big .logo-img { height: auto; width: 100%; max-width: none; max-height: 30vw; opacity: .9; }
.socials { display: flex; gap: var(--s2); margin-top: var(--s4); }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); transition: border-color var(--t-fast), color var(--t-fast); }
.social:hover { border-color: var(--ink); color: var(--accent); }
.social .icon { width: 18px; height: 18px; }
.footer .company { margin: var(--s3) 0 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; max-width: 100%; overflow-wrap: anywhere; }
