/* ============================================================
   Cuff — product page
   Colour follows the selected variant; switching drifts the band.
   Layout: [story | product-module | buy] on desktop,
           product → buy → story on mobile.
   ============================================================ */

:root {
  --bg:      #90959b;                       /* set per-colour by JS */
  --ink:     #f7f4ee;
  --ink-2:   rgba(255, 255, 255, 0.74);
  --ink-3:   rgba(255, 255, 255, 0.5);
  --line:    rgba(255, 255, 255, 0.18);
  --glass:   rgba(255, 255, 255, 0.09);
  --cream:   #f4efe8;
  --coal:    #1e2129;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mid: cubic-bezier(0.4, 0, 0.2, 1);
  --bg-swap:  0.7s;
  --ink-swap: 0.5s;
}

/* light-background variant (if ever used) flips text dark */
.panel.on-light {
  --ink: #20242b; --ink-2: rgba(24,28,34,0.7); --ink-3: rgba(24,28,34,0.5);
  --line: rgba(24,28,34,0.16); --glass: rgba(24,28,34,0.06);
  --cream: #20242b; --coal: #f4efe8;
}

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

body {
  min-height: 100vh;
  background: #0c0d10;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  overflow-x: clip;                 /* clip horizontal drift overshoot without breaking vertical scroll */
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== full-screen colour-shifting card ===== */
.panel {
  position: relative;
  /* the sticky promo band now sits above the panel in flow, so subtract its
     measured height to keep the hero fitting one viewport (see js: --promo-h) */
  min-height: calc(100vh - var(--promo-h, 0px));
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 2rem) clamp(1.4rem, 3vw, 3.4rem);
  display: flex; flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color var(--bg-swap) var(--ease-mid), color var(--ink-swap) var(--ease-mid);
}
.panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(70% 58% at 52% 32%, rgba(255, 255, 255, 0.13), transparent 60%),
    radial-gradient(130% 125% at 50% 46%, transparent 42%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
}

/* ===== promo bar — sticky full-bleed band ===== */
.promo-bar {
  position: sticky; top: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--cream); color: var(--coal);
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: box-shadow 0.3s var(--ease-mid);
}
/* lifts off the page only once it has actually stuck */
.promo-bar.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
.promo-bar b { font-weight: 800; }
.promo-bar svg { flex: 0 0 auto; }
.promo-dim { font-weight: 700; opacity: 0.55; letter-spacing: 0.02em; text-transform: none; }

/* ===== top bar ===== */
.topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 1.95rem; height: 1.95rem;
  background: currentColor;
  -webkit-mask: url('../assets/logo.svg') center / contain no-repeat;
  mask: url('../assets/logo.svg') center / contain no-repeat;
}
.brand-name { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.2em; }
.nav-pill { display: flex; gap: 0.2rem; padding: 0.32rem; background: var(--glass); border: 1px solid var(--line); border-radius: 100px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-pill a { padding: 0.5rem 1.05rem; border-radius: 100px; color: var(--ink-2); text-decoration: none; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; transition: color 0.3s, background 0.3s; }
.nav-pill a:hover { color: var(--ink); }
.nav-pill a.active { background: var(--cream); color: var(--coal); }
.tools { display: flex; align-items: center; gap: 1rem; }
.tool { background: transparent; border: none; color: var(--ink-2); cursor: pointer; padding: 0.2rem; transition: color 0.3s; }
.tool:hover { color: var(--ink); }

/* ---- hamburger + mobile drawer (nav-pill is hidden below 900px) ---- */
.burger {
  display: none; width: 2.3rem; height: 2.3rem; padding: 0; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--glass);
  cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 1rem; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.34s var(--ease-out), opacity 0.2s linear; }
.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 940;
  background: rgba(10, 11, 14, 0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem clamp(1.4rem, 7vw, 3rem);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out), visibility 0.32s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  color: #f4f1ea; text-decoration: none;
  font-size: clamp(1.9rem, 9vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(244, 241, 234, 0.07);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .mobile-meta { margin-top: 2rem; font-size: 0.76rem; color: rgba(244, 241, 234, 0.46); }
body.nav-open { overflow: hidden; }

/* ===== hero grid ===== */
.hero {
  position: relative; z-index: 5; flex: 1;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(300px, 1.1fr) minmax(200px, 0.72fr);
  grid-template-areas: "story product buy";
  align-items: center; gap: 1.5rem;
}

/* ---- story ---- */
.col-story { grid-area: story; max-width: 30rem; }
.headline {
  font-weight: 800; font-size: clamp(2.4rem, 3.8vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1.4rem; color: var(--ink);
  transition: color var(--ink-swap) var(--ease-mid); text-shadow: 0 2px 30px rgba(0,0,0,0.22);
}
.lede { color: var(--ink-2); font-weight: 500; font-size: 0.92rem; line-height: 1.75; max-width: 22rem; margin-bottom: 1.4rem; transition: color var(--ink-swap) var(--ease-mid); }

/* spec list — plain facts, tighter leading than a prose lede */
.specs { list-style: none; display: grid; gap: 0.42rem; line-height: 1.45; }
.specs li { position: relative; padding-left: 0.95rem; }
.specs li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.55;
}
.tagline { font-weight: 500; font-size: 1rem; color: var(--ink); transition: color var(--ink-swap) var(--ease-mid); }
.tagline span { color: var(--ink-3); font-weight: 600; }

/* ---- product module (device → band → colours) ---- */
.col-product { grid-area: product; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }

.device-bar { display: flex; justify-content: center; }
.segmented { display: inline-flex; gap: 0.25rem; padding: 0.28rem; background: var(--glass); border: 1px solid var(--line); border-radius: 100px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg { padding: 0.55rem 1.3rem; border-radius: 100px; border: none; background: transparent; color: var(--ink-2); cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; transition: color 0.3s, background 0.3s; }
.seg:hover { color: var(--ink); }
.seg.is-active { background: var(--cream); color: var(--coal); }

.stage { position: relative; display: flex; align-items: center; justify-content: center; }
.showcase { position: relative; width: clamp(220px, 22vw, 320px); }
.product-slot { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: center; }
.floater { position: relative; width: 100%; animation: levitate 6.5s ease-in-out infinite; }
.hero-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.4)); transition: opacity 0.28s var(--ease-mid); }
.hero-img.faded { opacity: 0; }                 /* device crossfade */
.hero-img.flight { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.floor-shadow {
  position: absolute; bottom: 4%; left: 50%; width: 60%; height: 2.1rem; transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.5), transparent 74%);
  filter: blur(8px); animation: shadowPulse 6.5s ease-in-out infinite;
}

/* arrows flank the band */
.arrow {
  position: absolute; top: 50%; z-index: 8; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(18, 18, 22, 0.32); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; cursor: pointer; transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.arrow-prev { left: -1.2rem; transform: translateY(-50%); }
.arrow-next { right: -1.2rem; transform: translateY(-50%); }
.arrow:hover { background: rgba(18, 18, 22, 0.5); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.arrow-prev:hover { transform: translateY(-50%) scale(1.08); }
.arrow-next:hover { transform: translateY(-50%) scale(1.08); }

/* corner preview — also the drift's origin; hidden on mobile but kept laid out */
.variant-next {
  position: absolute; bottom: -0.5rem; right: -1.5rem; width: 5.5rem; height: 5.5rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; z-index: 6; transition: transform 0.3s var(--ease-out);
}
.variant-next::before { content: ''; position: absolute; inset: auto 12% 8% 12%; height: 9px; background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.45), transparent 75%); filter: blur(4px); }
.variant-next:hover { transform: translateY(-4px); }
.variant-next img { width: 4.4rem; height: auto; display: block; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4)); }

/* ---- colour dots ---- */
.colors { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
.dots { display: flex; gap: 0.75rem; }
.dot {
  --dot: #ccc; position: relative; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--dot); border: none; cursor: pointer;
  box-shadow: inset 0 1.5px 2px rgba(255,255,255,0.35), inset 0 -2px 3px rgba(0,0,0,0.35), 0 2px 5px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease-out);
}
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; transform: scale(0.75); transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.dot:hover { transform: translateY(-2px); }
.dot.is-active::after { opacity: 0.95; transform: scale(1); }
.color-name { font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; }

/* ---- buy ---- */
.col-buy { grid-area: buy; display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; text-align: right; }
.price { display: flex; align-items: baseline; gap: 0.35rem; line-height: 1; }
.price .now { font-weight: 800; font-size: 2.5rem; letter-spacing: -0.01em; }
.price .was { font-weight: 600; font-size: 1.15rem; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.bundle-note { font-size: 0.7rem; color: var(--ink-3); font-weight: 500; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem; background: var(--cream); color: var(--coal);
  border: none; border-radius: 100px; font-family: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background-color var(--ink-swap) var(--ease-mid), color var(--ink-swap) var(--ease-mid);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
.cta.added { background: #3fae72; color: #fff; }


/* ===== keyframes ===== */
@keyframes levitate { 0%,100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }
@keyframes shadowPulse { 0%,100% { transform: translateX(-50%) scale(1); opacity: 0.5; } 50% { transform: translateX(-50%) scale(0.97); opacity: 0.45; } }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.loaded { animation: fadeUp 0.7s var(--ease-out) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== responsive ===== */

/* tablet & down: single column — product, then buy, then story */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "product" "buy" "story";
    justify-items: center; text-align: center; gap: 1.3rem; padding-top: 0.5rem;
  }
  /* let the page flow & scroll on mobile instead of clipping to one screen */
  .panel { overflow: visible; min-height: 100dvh; }
  .col-story { grid-area: story; max-width: 34rem; }
  .lede { margin: 0 auto 1.2rem; }
  .tagline { margin: 0 auto; }
  .col-buy { grid-area: buy; align-items: center; text-align: center; width: 100%; max-width: 22rem; }
  .price { flex-direction: row; gap: 0.8rem; align-items: baseline; justify-content: center; }
  .price .was { margin-top: 0; }
  .nav-pill { display: none; }
  .burger { display: grid; }
}

/* phone: fit device + band + dots + price + add-to-cart above the fold */
@media (max-width: 640px) {
  .panel { justify-content: flex-start; padding: 0.9rem 1.1rem 1.2rem; }
  .topbar { margin-bottom: 0.3rem; }
  .hero { gap: 0.9rem; padding-top: 0.2rem; }
  .col-product { gap: 0.7rem; }
  .showcase { width: min(54vw, 220px); }
  .arrow { width: 2.5rem; height: 2.5rem; }
  .arrow-prev { left: -0.7rem; }
  .arrow-next { right: -0.7rem; }
  .variant-next { opacity: 0; pointer-events: none; }
  .dot { width: 1.8rem; height: 1.8rem; }
  .color-name { font-size: 0.9rem; }
  .col-buy { gap: 0.9rem; width: 100%; max-width: none; }
  .price .now { font-size: 1.9rem; }
  .cta { width: 100%; padding: 1rem; font-size: 0.9rem; }
  .headline { white-space: normal; font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 0.8rem; }
  .lede { font-size: 0.88rem; margin-bottom: 0.8rem; }
  .tagline { display: none; }
  .col-story { padding-top: 0.5rem; }
}

/* ===== lifestyle gallery marquee (scrolls opposite to reviews) ===== */
.gallery {
  position: relative; z-index: 1;
  background: #0e0f13; color: #f4f1ea;
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  overflow: hidden;
}
.track.reverse { animation-direction: reverse; }
/* full-bleed portrait tiles — these hold lifestyle photography, not cut-out
   product renders, so the image fills the tile instead of floating inside it */
.gallery-tile {
  flex: 0 0 auto; width: clamp(210px, 26vw, 300px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121317;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== reviews marquee ===== */
.reviews {
  position: relative; z-index: 1;
  background: #0e0f13; color: #f4f1ea;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(7rem, 15vw, 12rem);
  overflow: hidden;
}
.reviews-head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3.2rem); padding: 0 1.5rem; }
.reviews-head h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.reviews-head p { color: rgba(255, 255, 255, 0.58); margin-top: 0.7rem; font-weight: 500; font-size: 0.95rem; }

.marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.track { display: flex; gap: 1.4rem; width: max-content; padding: 0 0.7rem; animation: reviewSlide 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes reviewSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.review-card {
  flex: 0 0 auto; width: clamp(230px, 25vw, 300px);
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px; padding: 0.85rem 0.85rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
/* holds real customer photos now, so the image fills the frame rather than
   floating a cut-out render inside it */
.review-photo {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #131418;
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-stars { color: #f2c14e; font-size: 0.82rem; letter-spacing: 2px; }
.review-stars .star-off { color: rgba(255, 255, 255, 0.22); }
.review-text { font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.87); font-weight: 500; }
.review-name { margin-top: auto; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }

/* ---- mobile sticky buy bar (hidden until inline CTA scrolls away) ---- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(130%); transition: transform 0.38s var(--ease-out);
}
.sticky-buy.show { transform: translateY(0); }
.sticky-info { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-name { font-size: 0.68rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.04em; }
.sticky-price { font-weight: 800; font-size: 1.1rem; color: #fff; }
.sticky-cta { flex: 1; max-width: 58%; padding: 0.85rem 1rem; }
@media (max-width: 640px) { .sticky-buy { display: flex; } }

/* ===== cart drawer (dark, premium) ===== */
.cart-toggle { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 100px; background: #3fae72; color: #fff; font-size: 0.6rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.cart-badge[hidden] { display: none; }

.cart-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 7, 10, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-mid), visibility 0.35s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(94vw, 412px); z-index: 1001;
  color: #f4f1ea;
  background: #121317;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%); will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
.cart.open { transform: translateX(0); }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cart-head h3 { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.cart-head span { color: rgba(255, 255, 255, 0.4); font-weight: 700; }
.cart-close { display: grid; place-items: center; background: none; border: none; cursor: pointer; color: rgba(255, 255, 255, 0.55); padding: 0.3rem; transition: color 0.2s; }
.cart-close:hover { color: #fff; }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; color: rgba(255, 255, 255, 0.38); }
.cart-empty[hidden] { display: none; }
.cart-empty p { font-weight: 600; font-size: 0.92rem; }

.cart-items { flex: 1; overflow-y: auto; padding: 0.3rem 1.5rem; display: flex; flex-direction: column; }
.cart-item { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cart-item:last-child { border-bottom: none; }
.cart-item-photo { flex: 0 0 auto; width: 4.3rem; height: 4.3rem; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #1c1e24; }
.cart-item-photo img { width: 80%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item-name { font-weight: 700; font-size: 0.88rem; }
.cart-item-variant { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.15rem; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.cart-qty { display: flex; align-items: center; gap: 0.55rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; padding: 0.25rem 0.6rem; }
.cart-qty button { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 1.05rem; line-height: 1; width: 1.1rem; color: #f4f1ea; transition: color 0.2s; }
.cart-qty button:hover { color: #fff; }
.cart-qty span { font-weight: 700; font-size: 0.82rem; min-width: 1rem; text-align: center; }
.cart-item-price { display: flex; align-items: baseline; gap: 0.4rem; font-weight: 800; font-size: 0.92rem; }
.cart-item-was { font-weight: 600; font-size: 0.72rem; color: rgba(255, 255, 255, 0.34); text-decoration: line-through; }

/* free 3rd band row */
.cart-item.free .cart-item-photo { background: #1c1e24; display: grid; place-items: center; color: rgba(255, 255, 255, 0.55); }
.cart-item.free .cart-item-price { color: #7fd6a3; }
.free-tag { font-size: 0.54rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: #3fae72; color: #08130c; padding: 0.12rem 0.4rem; border-radius: 100px; margin-left: 0.4rem; vertical-align: middle; }
.cart-free-note { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.4); }

/* footer breakdown lines */
.cart-line { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.55rem; }
.cart-line[hidden] { display: none; }
.cart-remove { align-self: flex-start; background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 500; font-size: 0.72rem; color: rgba(255, 255, 255, 0.42); margin-top: 0.5rem; padding: 0; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.cart-remove:hover { color: rgba(255, 255, 255, 0.8); }

.cart-foot { padding: 1.2rem 1.5rem calc(1.3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); }
.cart-upsell {
  display: block; width: 100%; text-align: left; font-family: inherit;
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px; padding: 0.7rem 0.85rem; margin-bottom: 0.9rem;
  color: var(--ink); font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cart-upsell:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.38); }
.cart-upsell[hidden] { display: none; }
.cart-upsell b { color: #fff; font-weight: 800; }
.cart-savings { display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); font-weight: 600; margin-bottom: 0.6rem; }
.cart-savings[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.cart-sub-label { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; font-weight: 600; }
.cart-checkout { width: 100%; background: var(--cream); color: var(--coal); font-weight: 800; }
.cart-checkout:hover { background: #fff; }
.cart-note { display: flex; align-items: center; justify-content: center; gap: 0.42rem; text-align: center; font-size: 0.72rem; color: rgba(255, 255, 255, 0.42); margin-top: 0.85rem; }
body.cart-open { overflow: hidden; }

/* mini "added" popover (top corner) */
.mini-cart {
  position: fixed; top: clamp(0.7rem, 2vw, 1.3rem); right: clamp(0.7rem, 2vw, 1.3rem);
  z-index: 1002; width: min(86vw, 320px);
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  background: #16171d; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; color: #f4f1ea;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease-mid);
}
.mini-cart.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mini-cart-photo { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 8px; background: #1c1e24; display: grid; place-items: center; overflow: hidden; }
.mini-cart-photo img { width: 82%; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.mini-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-cart-title { display: flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.8rem; }
.mini-cart-title svg { color: #6fce9b; }
.mini-cart-variant { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.12rem; }
.mini-cart-view { flex: 0 0 auto; background: var(--cream); color: var(--coal); border: none; border-radius: 100px; padding: 0.5rem 0.95rem; font-family: inherit; font-weight: 700; font-size: 0.72rem; cursor: pointer; transition: transform 0.2s var(--ease-out); }
.mini-cart-view:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .reveal { opacity: 1; transform: none; }
}
