/* ============================================================
   NOMA POGO - home page
   Edit tokens in :root. Font: Inter (loaded in index.html).
   ============================================================ */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --text:          #1d1d1f;
  --text-soft:     #6e6e73;
  --accent:        #2b44d1;   /* royal cobalt (less Apple than #0071e3) */
  --accent-hover:  #3a55ea;
  --dark:          #0a0a0b;
  --hairline:      rgba(0,0,0,.10);

  /* Metallic heading gradient */
  --grad: linear-gradient(180deg, #354351 0%, #b9cdd8 100%);

  --maxw:          1080px;
  --nav-h:         52px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Smooth cross-page transitions (Chromium MPA; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s ease both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img {
  display: block; max-width: 100%;
  -webkit-user-drag: none; user-select: none;
  -webkit-touch-callout: none;          /* no long-press "Save Image" on iOS */
}

/* ---- Headings ---- */
.section-title { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }

/* Bold keywords inside light body copy (Samsung-style emphasis) */
.hero__subtitle strong, .why__body strong, .adapt__body strong { color: var(--text); font-weight: 600; }
.crowd__body strong { color: #fff; font-weight: 600; }

/* ============================================================
   GRADIENT TEXT  (DESKTOP ONLY - mobile stays solid & crisp)
   ============================================================ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   REVEAL ON SCROLL  (fade + slight move)
   Only active when JS is present (.js on <html>), so no-JS
   users still see everything.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.nav__brand { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 13px; color: var(--text-soft); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { font-size: 13px; font-weight: 600; color: var(--accent); }
.nav__cta:hover { color: var(--accent-hover); }
.nav__cart {
  position: relative; display: inline-flex; align-items: center; color: var(--text);
  background: none; border: none; padding: 0; cursor: pointer; transition: color .2s;
}
.nav__cart:hover { color: var(--accent); }
.nav__cart-count {
  position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1; color: #fff;
  background: var(--accent); border-radius: 980px;
}
.nav__cart-count[hidden] { display: none; }
.nav__toggle { display: none; }   /* hamburger, shown on phones (see media query) */

/* ============================================================
   BUTTONS
   ============================================================ */
/* Rectangular, uppercase CTA (deliberately un-Apple) */
.btn {
  display: inline-block; font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:focus:not(:focus-visible) { outline: none; }
.btn--primary {
  background: linear-gradient(135deg, #6b86ff 0%, #2f49da 50%, #121b66 100%);
  color: #fff;
  padding: 15px 42px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: .14em;
  box-shadow: 0 8px 22px -10px var(--accent);
}
.btn--primary:hover { filter: brightness(1.07); box-shadow: 0 12px 28px -10px var(--accent); }
.btn--primary:active { transform: translateY(1px); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 22px 60px; text-align: center; }
.hero__eyebrow { font-size: clamp(34px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; margin-bottom: 12px; color: #000; padding-bottom: 4px; }
.hero__title { font-size: clamp(40px, 7.5vw, 84px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero__subtitle { font-size: clamp(18px, 2.4vw, 26px); color: var(--text-soft); max-width: 640px; margin: 0 auto 26px; }
.hero__actions { display: flex; gap: 26px; justify-content: center; align-items: center; }
.hero__price { font-size: 17px; color: var(--text-soft); margin-bottom: 18px; }

/* Transparent render, sitting on the page (entrance fade+move, then a clear float) */
.hero__visual { animation: heroIn 1.1s cubic-bezier(.16,1,.3,1) both; margin-bottom: 8px; }
.hero__product {
  width: 100%; max-width: 680px; height: auto; margin: 0 auto;
  animation: floaty 4.5s ease-in-out infinite;
  transition: opacity .28s ease;                 /* colour cross-fade */
}

/* Colour switcher */
.swatches { display: flex; gap: 14px; justify-content: center; margin-top: 6px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--sw); border: 1px solid rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.hero__color-name { font-size: 14px; color: var(--text-soft); letter-spacing: .02em; margin: 14px 0 22px; }
@keyframes heroIn { from { opacity: 0; transform: translateY(48px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes floaty {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-30px) rotate(-1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual { animation: none; }
  .hero__product { animation: none; }
}

/* ============================================================
   2. CAROUSEL  (Samsung-style: caption UNDER each card)
   ============================================================ */
.exp { padding: 96px 0 64px; background: var(--bg-alt); }
.exp__title { text-align: center; margin-bottom: 44px; padding: 0 22px; }

/* Only the viewport clips the sliding track - controls sit outside it
   so their shadows aren't cropped. */
.carousel { max-width: 1320px; margin: 0 auto; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex; gap: 26px; padding: 20px 0 46px;
  cursor: grab; touch-action: pan-y; user-select: none;
  will-change: transform;
}
.carousel__track.is-dragging { cursor: grabbing; }

/* Larger cards on desktop; centred card is emphasised */
.card { flex: 0 0 clamp(300px, 40vw, 560px); opacity: .5; transition: opacity .5s ease; }
.card.is-active { opacity: 1; }
.card__media {
  border-radius: 26px; overflow: hidden; background: #e9e9ec; aspect-ratio: 4 / 5;
  box-shadow: 0 14px 44px -20px rgba(0,0,0,.4);
  transform: scale(.93); transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.card.is-active .card__media { transform: scale(1); }
.card__media img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.card__caption { padding: 22px 6px 0; }
.card__title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.card__text  { font-size: 15px; color: var(--text-soft); }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.carousel__arrow {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .2s, transform .1s;
}
.carousel__arrow:hover { background: #f0f0f2; }
.carousel__arrow:active { transform: scale(.94); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__arrow:disabled:hover { background: #fff; }
.carousel__dots { display: flex; align-items: center; gap: 9px; background: #fff; padding: 9px 16px; border-radius: 980px; box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: #c7c7cc; cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.dot.is-active { width: 26px; border-radius: 980px; background: var(--text); }

/* ============================================================
   3. WHY  (text left, image right on desktop)
   ============================================================ */
.why {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 22px 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.why__title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 24px; }
.why__body { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-soft); }
.why__media { border-radius: 28px; overflow: hidden; }              /* rounded corners, no grey box */
.why__media img { width: 100%; height: auto; display: block; }

/* ============================================================
   4. BUILT FOR THE CROWD  (dark band)
   ============================================================ */
.crowd {
  /* Left dark scrim keeps white text legible; earplug (right side) stays clear */
  background:
    linear-gradient(to right, rgba(12,20,28,.66) 0%, rgba(12,20,28,.24) 34%, rgba(12,20,28,0) 55%),
    url("images/banner2.webp") 76% center/cover no-repeat, #4a5a64;
  color: #fff;
}
.crowd__inner { max-width: var(--maxw); margin: 0 auto; padding: 140px 22px; }
.crowd__col { max-width: 460px; text-align: left; }   /* text on the left */
.crowd__title { font-size: clamp(32px, 6vw, 60px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 22px; }
.crowd__body { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.88); margin-bottom: 34px; }
/* Mobile: banner crops tighter, so use a fuller scrim and full-width text */
@media (max-width: 760px) {
  .crowd {
    background:
      linear-gradient(to right, rgba(12,20,28,.85) 0%, rgba(12,20,28,.58) 55%, rgba(12,20,28,.38) 100%),
      url("images/banner2.webp") 76% center/cover no-repeat, #4a5a64;
  }
  .crowd__inner { padding: 88px 22px; }
  .crowd__col { max-width: none; }
  .crowd__title, .crowd__body { text-shadow: 0 1px 14px rgba(0,0,0,.45); }
}

/* ============================================================
   TECHNICAL VIEW  -  scroll-scrubbed exploded sequence
   Tall section = scroll track; inner stage is pinned (sticky)
   and holds the frame on the diagonal gradient.
   ============================================================ */
.tech { position: relative; height: 180vh; }
/* Scroll target for the "Specs" link - lands on the fully-exploded state */
.tech__jump { position: absolute; top: 62vh; left: 0; width: 1px; height: 1px; }
.tech__stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #354351 0%, #b9cdd8 100%);  /* top-left -> bottom-right */
  overflow: hidden;
}
.tech__title {
  position: absolute; top: clamp(52px, 11vh, 130px); left: 0; right: 0;
  color: #fff; text-align: center; padding: 0 22px;
  font-size: clamp(32px, 5.6vw, 66px); font-weight: 700; letter-spacing: -0.02em;
  text-shadow: 0 2px 22px rgba(0,0,0,.18);
}
.tech__figure { position: relative; width: min(80%, 860px); transform: translateY(6vh); }
.tech__frame { width: 100%; height: auto; display: block; }

/* Caption + Buy under the earplug - fade in with the labels (exploded state) */
.tech__bottom {
  position: absolute; left: 50%; bottom: clamp(30px, 6.5vh, 72px); transform: translateX(-50%);
  width: calc(100% - 44px); max-width: 760px;
  display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vh, 26px);
}
.tech__caption {
  text-align: center; color: #fff;
  font-size: clamp(18px, 2.5vw, 27px); line-height: 1.45; font-weight: 500;
  text-shadow: 0 2px 20px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.tech.is-labeled .tech__caption { opacity: 1; }
.tech__cta { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.tech.is-labeled .tech__cta { opacity: 1; pointer-events: auto; }

/* Callout labels - fade in when the section is fully exploded */
.tech__labels { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.tech.is-labeled .tech__labels { opacity: 1; }
.tlabel-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tlabel-lines line { stroke: rgba(255,255,255,.6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tlabel__dot {
  position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255,255,255,.2), 0 1px 5px rgba(0,0,0,.5);
}
.tlabel__txt {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: rgba(16,24,34,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 7px 14px; border-radius: 980px; border: 1px solid rgba(255,255,255,.16);
}
/* Desktop label positions (labels above, pointing down) */
.tp1 { left: 18%; top: 5%; }
.tp2 { left: 36%; top: 13%; }
.tp3 { left: 56%; top: 5%; }
.tp4 { left: 74%; top: 13%; }
.tp5 { left: 88%; top: 5%; }
.tlabel-lines--mob { display: none; }

@media (max-width: 760px) {
  .tech { height: 170vh; }
  .tech__figure { width: 96%; transform: none; }
  /* Same callout system, repositioned so it fits a narrow screen */
  .tlabel-lines--dsk { display: none; }
  .tlabel-lines--mob { display: block; }
  .tlabel__txt { font-size: 11px; padding: 5px 10px; }
  .tp1 { left: 24%; top: 6%; }     /* ear tip - top-left */
  .tp5 { left: 72%; top: 6%; }     /* foam frame - top-right */
  .tp3 { left: 66%; top: 20%; }    /* sound proofing ring - centre-right */
  .tp2 { left: 27%; top: 90%; }    /* earplug body - bottom-left */
  .tp4 { left: 76%; top: 90%; }    /* noise reduction foam - bottom-right */
}

/* ============================================================
   5 + 6. ADAPT / PROTECTION
   ============================================================ */
.adapt { max-width: var(--maxw); margin: 0 auto; padding: 110px 22px 90px; }
.adapt__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.adapt__media { border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; }   /* square, like before */
.adapt__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; display: block; }
.adapt__title { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.adapt__sub { font-size: 17px; color: var(--text-soft); margin-bottom: 22px; }
.adapt__body { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-soft); }

/* ============================================================
   7. CHIPS
   ============================================================ */
/* Key points - bento grid of gradient cards */
.keys { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 40px; }
.keys__title { font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 30px; }
.keys__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.key {
  grid-column: span 2;
  background: linear-gradient(135deg, #354351 0%, #b9cdd8 100%);
  border-radius: 22px; padding: 34px 28px; min-height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.key--wide { grid-column: span 4; }
.key--full { grid-column: span 6; min-height: 170px; }
.key h3 {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 8px; text-shadow: 0 1px 14px rgba(0,0,0,.28);
}
.key p { font-size: 15px; color: rgba(255,255,255,.9); max-width: 300px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.key--full h3 { font-size: clamp(30px, 4vw, 44px); }

/* Wide "22 dB" card: earplug render on each side, text in the middle */
.key--sides { flex-direction: row; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px; }
.key--sides .key__body { display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; }
.key__side {
  flex: none; width: clamp(130px, 30%, 230px); align-self: stretch;
  object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.28));
}

/* Travel-case card: title on top, render bigger and stuck to the bottom */
.key--media { justify-content: flex-start; gap: 0; padding: 24px 20px 0; overflow: hidden; }
.key--media .key__body { display: flex; flex-direction: column; align-items: center; }
.key--media .key__body h3 { margin-bottom: 0; }
.key__media {
  width: clamp(140px, 66%, 200px); aspect-ratio: 776 / 1024; object-fit: contain;
  object-position: center bottom; margin-top: auto;
}

/* Photo card ("Discreet fit"): model centred, only the label at the bottom */
.key--photo { position: relative; padding: 0; justify-content: flex-end; overflow: hidden; }
.key__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.key--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,0) 70%);
}
.key--photo .key__body { position: relative; z-index: 1; width: 100%; padding: 22px 24px; }
.key--photo h3 { margin-bottom: 0; text-shadow: 0 1px 16px rgba(0,0,0,.6); }

.keys__cta { text-align: center; margin-top: 44px; }

@media (max-width: 860px) {
  .keys__grid { grid-template-columns: 1fr 1fr; }
  .key { grid-column: auto; min-height: 170px; }
  .key--wide, .key--full { grid-column: span 2; }
}
@media (max-width: 540px) {
  .keys__grid { grid-template-columns: 1fr; }
  .key, .key--wide, .key--full { grid-column: auto; min-height: 150px; }
  .key--sides { padding: 14px 10px; gap: 2px; }
  .key--sides .key__side { width: clamp(90px, 30%, 130px); }
  /* Travel case + Discreet fit: identical height when stacked on phones */
  .key--media, .key--photo { min-height: 300px; }
  .key--media .key__media { width: auto; height: 232px; aspect-ratio: auto; max-width: 92%; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); background: var(--bg-alt); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__brand { font-weight: 700; font-size: 18px; }
.footer__links, .footer__legal { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer__links a { font-size: 13px; color: var(--text-soft); }
.footer__links a:hover { color: var(--text); }
.footer__legal a, .footer__link-btn { font-size: 12px; color: var(--text-soft); background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.footer__legal a:hover, .footer__link-btn:hover { color: var(--text); text-decoration: underline; }
.footer__copy { font-size: 13px; color: var(--text-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; gap: 30px; }
  .adapt__cols { grid-template-columns: 1fr; gap: 24px; }
  .adapt__media { order: 2; }   /* text first, image after, on mobile */
}
@media (max-width: 760px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 12px; }
  .hero { padding-top: 54px; }
  .hero__actions { flex-direction: column; gap: 14px; }
  .carousel__track { padding-left: 22px; padding-right: 22px; gap: 18px; }
  .card { flex-basis: 80vw; }
  .footer__inner { flex-direction: column; text-align: center; }
}
/* Phones: collapse the nav into a hamburger menu */
@media (max-width: 600px) {
  .nav__inner { gap: 14px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0; background: none; border: none; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 6px 22px 14px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.3);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { font-size: 16px; color: var(--text); padding: 14px 4px; border-top: 1px solid var(--hairline); }
  .nav__links a:first-child { border-top: none; }
}

/* ============================================================
   BASKET DRAWER  (bottom sheet, built by cart.js)
   ============================================================ */
html.basket-open { overflow: hidden; padding-right: var(--sbw, 0px); }

.basket-drawer { position: fixed; inset: 0; z-index: 1200; }
.basket-drawer[hidden] { display: none; }   /* closed state stays in the DOM so the open can animate */
/* hidden must win over the display:flex rows below */
.basket-drawer [hidden] { display: none !important; }

.basket-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .42);
  opacity: 0; transition: opacity .5s ease;
}
.basket-drawer.is-open .basket-drawer__backdrop { opacity: 1; }
.basket-drawer.is-closing .basket-drawer__backdrop { opacity: 0; }

.basket-drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 540px;
  display: flex; flex-direction: column; max-height: 88vh;
  background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px -22px rgba(0, 0, 0, .4);
  transform: translateY(101%); transition: transform .55s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.basket-drawer.is-open .basket-drawer__panel { transform: translateY(0); }
.basket-drawer.is-closing .basket-drawer__panel { transform: translateY(101%); }

.basket-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--hairline);
}
.basket-drawer__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.basket-drawer__head-right { display: inline-flex; align-items: center; gap: 12px; }
.basket-drawer__cur .cur-select { padding-top: 6px; padding-bottom: 6px; }
.basket-drawer__close {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: none; background: var(--bg-alt); border-radius: 50%; color: var(--text); cursor: pointer;
  transition: background .15s;
}
.basket-drawer__close:hover { background: #e9e9ee; }

.basket-drawer__body { overflow-y: auto; padding: 6px 24px; -webkit-overflow-scrolling: touch; }
.basket-drawer__empty {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 40px 0 34px; text-align: center; color: var(--text-soft); font-size: 16px;
}
.basket-drawer__empty[hidden] { display: none; }

.basket-drawer__foot { padding: 16px 24px 24px; border-top: 1px solid var(--hairline); }
.basket-drawer__foot[hidden] { display: none; }

/* Cart line rows (shared by the summary) */
.cart-line { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: var(--text-soft); margin: 7px 0; }
.cart-line--free { color: var(--accent); font-weight: 600; }
.cart-line--total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 16px; color: var(--text); }
.cart-line--total strong { font-size: 24px; font-weight: 700; }
.cart-line__free { color: #1c8a4a; font-weight: 600; }
.basket-drawer__ship {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: 13px; color: var(--text-soft);
}
.basket-drawer__ship::before {
  content: ""; flex: none; width: 15px; height: 15px;
  background: #1c8a4a; border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.basket-drawer__foot .btn { width: 100%; margin-top: 16px; }

/* Currency picker (injected into the footer by currency.js) */
.cur { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cur__label { font-size: 13px; color: var(--text-soft); }
.cur-select {
  font: inherit; font-size: 13px; color: var(--text); background: #fff;
  border: 1px solid var(--hairline); border-radius: 980px; padding: 7px 30px 7px 14px;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.cur-select:hover { border-color: #c7c7cc; }

/* Cart items */
.cart-item {
  display: grid; grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "media info qty price"; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.cart-item__media { grid-area: media; width: 66px; height: 66px; border-radius: 14px; overflow: hidden; background: var(--bg-alt); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item__info { grid-area: info; display: flex; flex-direction: column; gap: 2px; }
.cart-item__name { font-weight: 600; font-size: 15px; }
.cart-item__color { font-size: 13px; color: var(--text-soft); }
.cart-item__remove {
  align-self: flex-start; margin-top: 3px; padding: 0; background: none; border: none;
  font-size: 12px; color: var(--text-soft); text-decoration: underline; cursor: pointer;
}
.cart-item__remove:hover { color: var(--text); }
.cart-item__price { grid-area: price; min-width: 62px; text-align: right; font-weight: 600; font-size: 15px; }

/* Quantity stepper (global so the drawer has it on every page) */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 980px; overflow: hidden; }
.qty__btn { width: 34px; height: 34px; border: none; background: #fff; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s; }
.qty__btn:hover { background: var(--bg-alt); }
.qty__btn:disabled { opacity: .35; cursor: default; }
.qty__input { width: 34px; text-align: center; border: none; font: inherit; font-weight: 600; color: var(--text); background: transparent; pointer-events: none; }

@media (max-width: 460px) {
  .cart-item { grid-template-columns: auto 1fr; grid-template-areas: "media info" "qty price"; gap: 10px 14px; }
  .cart-item .qty { grid-area: qty; justify-self: start; }
  .cart-item__price { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .basket-drawer__panel, .basket-drawer__backdrop { transition: none; }
}
