/* === Star Student Stationery === */

:root {
  --text: #0a0a0a;
  --muted: #71717a;
  --bg: #ffffff;
  --bg2: #fafafa;
  --border: rgba(0,0,0,.12);
  --accent: #89CFF0;
  --dark: #0a0a0a;
  --font: 'Outfit', system-ui, sans-serif;
  /* Hero / UI copy — Inter reads cleaner at large sizes */
  --font-hero: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --r: 12px;
  --pill: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Prevent flex/grid children from forcing page-wide overflow */
main {
  min-width: 0;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }
input { font-family: var(--font); }
::selection { background: #d4edfc; }

/* Smooth page transitions (scroll-behavior set on html above) */
* { -webkit-tap-highlight-color: transparent; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  width: 100%;
  box-sizing: border-box;
}

/* Premium focus ring */
:focus-visible {
  outline: 2px solid #89CFF0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle grain texture overlay for premium feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .025;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: .88rem;
  padding: 14px 36px;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  letter-spacing: .3px;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-white { background: #fff; color: var(--dark); font-weight: 600; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(137,207,240,.35), 0 0 0 1px rgba(255,255,255,.1); }
.btn-full { width: 100%; }

.btn-cart { flex: 1; position: relative; }
.btn-cart .btn-done { display: none; }
.btn-cart.added .btn-label { display: none; }
.btn-cart.added .btn-done { display: inline; }
.btn-cart.added { background: #16a34a; pointer-events: none; }

.btn-buy {
  width: 100%;
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  padding: 14px 32px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  letter-spacing: .3px;
}
.btn-buy:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Frequently Bought Together --- */

.fbt {
  margin: 20px 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.fbt-title {
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.fbt-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.fbt-option { cursor: pointer; }
.fbt-option input { display: none; }

.fbt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  height: 100%;
}
.fbt-option:hover .fbt-card { border-color: rgba(0,0,0,.2); }
.fbt-option input:checked + .fbt-card {
  border-color: var(--dark);
  background: var(--bg2);
}

.fbt-qty {
  font-size: .7rem;
  font-weight: 600;
}
.fbt-price {
  font-size: .78rem;
  font-weight: 700;
}
.fbt-prices {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fbt-old {
  font-size: .68rem;
  color: var(--muted);
  text-decoration: line-through;
}
.fbt-save {
  font-size: .6rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22,163,74,.08);
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 1px;
}

/* --- Section Utilities --- */

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Loader --- */

.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease .2s, visibility .5s ease .2s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { text-align: center; }

.loader-text {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  animation: loaderIn .6s ease .3s forwards;
}
.loader-sub {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 6px;
  opacity: 0;
  animation: loaderIn .5s ease .6s forwards;
}
.loader-line {
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(137,207,240,.6), transparent);
  margin: 0 auto 20px;
  animation: loaderLine .8s ease .1s forwards;
}

@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderLine {
  to { width: 120px; }
}

/* Body hidden during load */
body.loading { overflow: hidden; }

/* --- Progress --- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--dark);
  width: 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* --- Nav --- */

.nav-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 960px;
  z-index: 1000;
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  height: 52px;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--pill);
  padding: 0 8px 0 24px;
  box-shadow: 0 4px 30px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.6);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nav-pill.scrolled {
  background: rgba(255,255,255,.6);
  box-shadow: 0 4px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.15);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 40px; width: auto; max-width: min(180px, 42vw); object-fit: contain; }

.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .25s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s;
}
.nav-cart:hover { background: var(--bg2); }

.nav-count {
  position: absolute;
  top: 2px;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.nav-count.show { transform: scale(1); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 11px;
}
.nav-burger span {
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: .25s var(--ease);
  transform-origin: center;
}
.nav-burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile-only close control (shown in @media max-width 768px) */
.nav-close {
  display: none;
}

/* --- Hero (side-by-side: copy | image) — Inter, restrained type --- */

.hero {
  font-family: var(--font-hero);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 140px 0 80px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 90% 70% at 15% 25%, rgba(137, 207, 240, 0.55) 0%, rgba(93, 173, 226, 0.25) 40%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(174, 214, 241, 0.5) 0%, rgba(137, 207, 240, 0.2) 45%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 75% 85%, rgba(137, 207, 240, 0.45) 0%, rgba(93, 173, 226, 0.2) 50%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 25% 80%, rgba(174, 214, 241, 0.4) 0%, rgba(133, 193, 226, 0.15) 45%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(137, 207, 240, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #e8f4fa 0%, #d4edfc 30%, #e8f4fa 60%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

/* Wholesale graphic: scale up visually without growing layout height (transform doesn’t affect flow) */
.hero.hero--wholesale-hero {
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(137, 207, 240, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(174, 214, 241, 0.15) 0%, transparent 45%);
  animation: colorShift 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes colorShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05) translate(-10px, 5px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.hero-trust {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}

.hero-trust-inner {
  font-variant-numeric: tabular-nums;
}

.hero-trust-inner strong {
  font-weight: 600;
  color: #334155;
}

.hero-trust-muted {
  color: #94a3b8;
  font-weight: 400;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: #fff !important;
  background: #0f172a;
  border: 1px solid #0f172a;
  box-shadow: none;
  transform: translateZ(0);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.btn-hero-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.btn-hero-primary:active {
  transform: translateY(0);
  transition-duration: 0.15s;
}
.btn-hero-primary:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: none;
  transform: translateZ(0);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.32);
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.btn-hero-ghost:active {
  transform: translateY(0);
  transition-duration: 0.15s;
}
.btn-hero-ghost:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-hero-primary,
  .btn-hero-ghost {
    transition-duration: 0.01ms;
  }
  .btn-hero-primary:hover,
  .btn-hero-ghost:hover {
    transform: none;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 130%;
  max-height: min(780px, 78vh);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.2));
  transform: rotate(5deg);
  transition: transform 0.5s var(--ease);
}

.hero-image:hover img {
  transform: scale(1.03) rotate(8deg);
}

/* Prevent wide hero art from causing horizontal scroll between mobile and desktop breakpoints */
@media (max-width: 1023px) {
  .hero-image img {
    max-width: 100%;
  }
}

/* Homepage hero — wholesale graphic (flat illustration vs product photo) */
.hero-image--wholesale {
  overflow: visible;
}

.hero-image--wholesale img {
  max-width: 100%;
  max-height: min(520px, 72vh);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: 58% 50%;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.12));
  transition: none;
}

/* Keep static on hover (overrides .hero-image:hover img) */
.hero-image--wholesale:hover img {
  transform: scale(1.12);
  transform-origin: 58% 50%;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(137, 207, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 207, 240, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(137, 207, 240, 0.6) 0%, rgba(93, 173, 226, 0.3) 40%, transparent 70%);
  top: 5%;
  right: 0%;
  animation: floatGlow1 15s ease-in-out infinite;
}
.hero-glow--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(174, 214, 241, 0.55) 0%, rgba(133, 193, 226, 0.25) 45%, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation: floatGlow2 18s ease-in-out infinite;
}

@keyframes floatGlow1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.1);
  }
}

@keyframes floatGlow2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -15px) scale(1.12);
  }
}

.hero-badges {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

/* Pills still used elsewhere on the site */
.hero-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(137, 207, 240, 0.3);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
}
.hero-pill:hover {
  border-color: rgba(137, 207, 240, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(137, 207, 240, 0.15);
}

.hero-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 1rem;
}

.hero-display {
  font-size: clamp(2.125rem, 4.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1.125rem;
  -webkit-text-fill-color: #0f172a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 1.75rem;
  max-width: 100%;
}

/* Desktop: hero fills exactly one viewport (below this, default padding height) */
@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: 56px;
  }
}

/* --- Marquee --- */

.marquee {
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: scroll 30s linear infinite;
}
.marquee-track span {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px;
  flex-shrink: 0;
}
.marquee-track .sep { opacity: .3; padding: 0 4px; }

/* Home: marquee flows into shop — no double border */
.marquee--flush {
  border-bottom: none;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Features --- */

.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.feature:hover {
  background: var(--bg2);
}
.feature:hover .feature-num {
  color: rgba(137,207,240,.3);
}

.feature-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(0,0,0,.05);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .3s var(--ease);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Shop --- */

.shop {
  padding: 120px 0;
  background: var(--bg2);
}

/* Home page: full-width band, seamless under marquee */
.shop.shop--home {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.shop-wide {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  box-sizing: border-box;
}

/* Best seller — section heading (above product grid) */
.shop-section-head {
  font-family: var(--font-hero);
  -webkit-font-smoothing: antialiased;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 0 clamp(24px, 3vw, 32px);
  margin: 0 auto;
  max-width: 40rem;
}

.shop-section-kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 0.65rem;
}

.shop-section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0f172a;
  margin: 0 0 0.65rem;
}

.shop-section-lede {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
  margin: 0;
}

/* “Shop more” — full-width row inside bestseller frame (no extra box) */
.shop--home .shop-more-cta {
  grid-column: 1 / -1;
  font-family: var(--font-hero);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0.35rem 0 0;
  border: none;
  background: none;
}

.shop-more-text {
  margin: 0;
  max-width: 26rem;
  font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
  line-height: 1.45;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
}

.shop-more-btn {
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.shop-more-btn::after {
  content: '→';
  margin-left: 0.35em;
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.shop-more-btn:hover::after {
  transform: translateX(3px);
}

/* Tighter row gap so “Shop more” sits closer to payments; keep wide column gap */
.shop--home .shop-frame {
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
  box-shadow: none;
  gap: 14px 56px;
}

.shop--home .shop-frame:hover {
  box-shadow: none;
  border-color: var(--border);
}

.shop-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px;
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.shop-frame:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.14);
}

.shop-img-main {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
}
.shop-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; }
/* Home bestseller: keep gallery from blowing past column width (many DB thumbnails) */
.shop--home .shop-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.shop--home .shop-thumbs {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color .2s;
  padding: 0;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--text); }

.shop-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.shop-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.shop-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: .9rem; }
.rating-count { font-size: .82rem; color: var(--muted); }

.shop-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.shop-badge {
  font-size: .68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-left: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-desc {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.shop-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-list li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.shop-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.shop-actions { display: flex; gap: 10px; margin-bottom: 24px; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.qty-btn {
  width: 40px;
  height: 46px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.qty-btn:hover { background: var(--bg2); }
#qtyVal {
  width: 40px;
  height: 46px;
  border: none;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  -moz-appearance: textfield;
}
#qtyVal::-webkit-inner-spin-button,
#qtyVal::-webkit-outer-spin-button { -webkit-appearance: none; }

.shop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.shop-meta .sep { opacity: .3; }

.shop-payments {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  opacity: .45;
  transition: opacity .3s var(--ease);
}
.shop-payments:hover { opacity: .7; }
.shop-payments img { height: 28px; width: auto; flex-shrink: 0; }

/* --- Home bestseller (reference layout: Inter, Buy Now, image pack cards) --- */

.shop--home .shop-info--bestseller {
  font-family: var(--font-hero);
}

.shop--home .shop-title--bestseller {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.shop--home .shop-title--bestseller strong {
  font-weight: 700;
}

.shop--home .shop-desc--bestseller {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 0.875rem;
  max-width: 36rem;
}

.home-bestseller-link-wrap {
  margin: 0 0 0.75rem;
}
.home-bestseller-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}
.home-bestseller-link:hover {
  opacity: 1;
}

.shop--home .shop-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.shop-buy-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 1rem;
}

.shop-buy-now {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  margin: 0;
  border-radius: 12px;
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  background: #0f172a;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shop-buy-now:hover {
  background: #1e293b;
  color: #fff !important;
  transform: translateY(-1px);
}

.shop--home .qty--compact {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.shop--home .qty--compact .qty-btn {
  width: 36px;
  height: 44px;
  font-size: 1rem;
}

.shop--home .qty--compact #qtyVal {
  width: 36px;
  height: 44px;
  font-size: 0.85rem;
}

.pack-options-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 8px;
}

.fbt--packs {
  margin: 0 0 0.875rem;
}

.fbt-options--packs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fbt-options--packs .pack-option {
  flex: 1 1 calc(50% - 4px);
  min-width: 200px;
}

.pack-option {
  cursor: pointer;
  margin: 0;
  display: flex;
}

.pack-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  padding: 8px 14px 8px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pack-option:hover .pack-card {
  border-color: #cbd5e1;
  background: #fff;
}

.pack-option input:checked + .pack-card {
  border-color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.pack-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.pack-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.pack-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.pack-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.3;
}

.pack-reg {
  font-size: 0.72rem;
  color: #64748b;
}

.pack-reg .strike {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-color: #dc2626;
}

.pack-deal {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pack-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #22c55e;
  color: #fff;
  line-height: 1.2;
}

.pack-deal .pack-price-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.shop-urgency-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 12px;
}

.shop--home .shop-meta {
  border-top: none;
  padding-top: 8px;
}

@media (max-width: 520px) {
  .fbt-options--packs {
    grid-template-columns: 1fr;
  }
}

/* Homepage bestseller: stack Buy now + qty so the row doesn’t overflow narrow phones */
@media (max-width: 640px) {
  .shop-buy-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .shop-buy-now {
    flex: none;
    width: 100%;
    min-height: 48px;
  }
  .shop--home .qty--compact {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-shrink: 1;
  }
}

/* --- Reviews --- */

.reviews {
  padding: clamp(56px, 9vh, 104px) 0 clamp(64px, 10vh, 112px);
  text-align: center;
  background: var(--bg2);
}

.reviews .section-label {
  margin-bottom: 4px;
}

.reviews .section-title {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.2;
}

.reviews-wrap {
  overflow: hidden;
  max-width: min(1040px, 100%);
  margin: 24px auto 0;
}

.reviews-track {
  display: flex;
  transition: transform .5s var(--ease);
}

.review {
  flex: 0 0 100%;
  padding: 0 12px;
}

/* Side-by-side: quote left, large image right — clear card (no soft shadow) */
.review-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(420px, 44vw));
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  text-align: left;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  box-shadow: none;
}

/* Avoid 260px min column forcing horizontal scroll on tablets / narrow widths */
@media (max-width: 960px) {
  .review-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .review-photo-wrap {
    margin-left: auto;
    margin-right: auto;
    width: min(100%, 420px);
  }
}

.review-content {
  min-width: 0;
}

.review-content blockquote {
  font-size: clamp(0.92rem, 1.65vw, 1.08rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  margin: 0 0 10px;
  padding: 0;
}

.review-content cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.review-content cite strong {
  color: var(--text);
  font-weight: 600;
}

.review-photo-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 0 0 auto;
  aspect-ratio: 1;
  max-height: min(420px, 52vh);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--bg2);
  box-shadow: none;
}

.review-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: inherit;
  overflow: hidden;
  line-height: 0;
  transition: opacity 0.2s var(--ease);
}

.review-photo-btn:hover {
  opacity: 0.85;
}

.review-photo-btn:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Full-screen lightbox for review photos */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.review-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.review-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.review-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  margin: 0 auto;
}

.review-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.review-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.review-lightbox-close:hover {
  background: #0f172a;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .review-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

/* Short viewport height — shrink image column, keep side-by-side (wide screens only) */
@media (max-height: 780px) and (min-width: 961px) {
  .review-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, min(320px, 38vw));
    gap: 16px;
  }
  .review-photo-wrap {
    max-height: min(320px, 42vh);
    max-width: 320px;
  }
}

/* Short laptop / small viewport height — slightly tighter but still airy */
@media (max-height: 820px) {
  .reviews {
    padding: clamp(36px, 6vh, 56px) 0 clamp(40px, 7vh, 64px);
  }
  .reviews .section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  }
  .reviews-wrap {
    margin-top: 16px;
  }
  .review-content blockquote {
    line-height: 1.42;
    margin-bottom: 8px;
  }
  .reviews-nav {
    margin-top: 12px;
  }
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.reviews-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: .2s;
  background: var(--bg);
}
.reviews-btn:hover { border-color: var(--text); }

.reviews-dots { display: flex; gap: 6px; }
.reviews-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: .2s;
}
.reviews-dots .dot.active { background: var(--text); }

/* --- Story --- */

.story { background: var(--bg); }

.story-img { overflow: hidden; height: 520px; }
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.story-body {
  max-width: 640px;
  padding: 80px 0 120px;
}
.story-body .section-label { margin-bottom: 8px; }
.story-body .section-title { margin-bottom: 28px; }

.story-text { margin-bottom: 32px; }
.story-text p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
.story-text p strong { color: var(--text); }

/* --- CTA --- */

.cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,173,226,.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137,207,240,.3), transparent);
}
.cta .container { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.cta-desc {
  color: rgba(255,255,255,.45);
  font-size: 1.05rem;
  margin-bottom: 44px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Footer --- */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.footer-wordmark span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 12px; }
.footer-email { color: var(--accent); font-size: .85rem; transition: opacity .2s; }
.footer-email:hover { opacity: .7; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: .88rem;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  transition: .2s;
}
.footer-social a:hover { border-color: rgba(137,207,240,.4); color: var(--accent); transform: translateY(-1px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: .78rem;
  text-align: center;
}

/* --- Cart Drawer --- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.05rem; font-weight: 600; }
.drawer-head button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s;
}
.drawer-head button:hover { background: var(--bg2); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--muted);
}

.drawer-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg2);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }

.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s;
}
.cart-item-btn:hover { border-color: var(--text); }
.cart-item-count { font-size: .85rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item-rm {
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
  transition: color .15s;
}
.cart-item-rm:hover { color: #dc2626; }

.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: none;
  flex-shrink: 0;
}
.drawer-foot.show { display: block; }

.drawer-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.drawer-total span:first-child { color: var(--muted); font-size: .9rem; }
.drawer-total span:last-child { font-size: 1.15rem; font-weight: 700; }
.drawer-note { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }

/* --- Custom Cursor --- */

.cursor-dot {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 6px;
  height: 6px;
  background: var(--dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0,0,0,.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: rgba(137,207,240,.4);
  background: rgba(137,207,240,.06);
}

.cursor-ring.click {
  width: 28px;
  height: 28px;
}

.cursor-dot.hidden,
.cursor-ring.hidden { opacity: 0; }

.cursor-dot.inverted { background: #fff; }
.cursor-ring.inverted { border-color: rgba(255,255,255,.25); }
.cursor-ring.inverted.hover {
  border-color: rgba(137,207,240,.5);
  background: rgba(137,207,240,.1);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- Toast --- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--pill);
  font-size: .85rem;
  font-weight: 500;
  z-index: 5000;
  transition: transform .35s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* --- Back to Top --- */

.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.to-top:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* --- Urgency --- */

.urgency {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.urgency-stock,
.urgency-viewers {
  font-size: .78rem;
  color: var(--muted);
}
.urgency-stock strong { color: #dc2626; }
.urgency-viewers strong { color: var(--text); }

.btn:disabled, .btn[disabled] {
  opacity: .4;
  pointer-events: none;
  cursor: not-allowed;
}

/* --- Animations --- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate="left"] {
  transform: translateX(-40px);
}
[data-animate="right"] {
  transform: translateX(40px);
}
[data-animate="scale"] {
  transform: scale(.92);
}
[data-animate="fade"] {
  transform: none;
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}

/* --- Responsive --- */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-frame { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  /* Pin bar to edges — avoids transform + width math overflow on small viewports */
  .nav-wrap {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    transform: none;
    top: max(10px, env(safe-area-inset-top, 0px));
  }
  .nav-pill { padding: 0 6px 0 16px; height: 48px; }
  .nav-logo img { height: 36px; max-width: min(160px, 38vw); }
  .nav-pill { position: static; }
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-pill {
    position: relative;
    width: 100%;
    overflow: visible;
  }
  .nav-wrap {
    overflow: visible;
  }

  /*
   * Full-viewport menu: JS moves #navLinks to document.body while open so .nav-pill
   * can keep backdrop-filter (glassy bar) without trapping position:fixed.
   */
  .nav-links {
    --nav-menu-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-menu-dur: 0.52s;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    box-sizing: border-box;
    padding: max(96px, calc(env(safe-area-inset-top, 0px) + 72px)) max(22px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 16px, 0) scale(0.985);
    will-change: opacity, transform;
    transition:
      opacity var(--nav-menu-dur) var(--nav-menu-ease),
      transform var(--nav-menu-dur) var(--nav-menu-ease),
      visibility 0s linear var(--nav-menu-dur);
    z-index: 5000;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      opacity var(--nav-menu-dur) var(--nav-menu-ease),
      transform var(--nav-menu-dur) var(--nav-menu-ease),
      visibility 0s linear 0s;
  }
  .nav-links .nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      opacity 0.48s var(--nav-menu-ease),
      transform 0.52s var(--nav-menu-ease);
  }
  .nav-links.open .nav-link {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .nav-links.open .nav-link:nth-child(2) {
    transition-delay: 0.1s;
  }
  .nav-links.open .nav-link:nth-child(3) {
    transition-delay: 0.16s;
  }
  .nav-links.open .nav-link:nth-child(4) {
    transition-delay: 0.22s;
  }
  .nav-links.open .nav-link:nth-child(5) {
    transition-delay: 0.28s;
  }
  .nav-links.open .nav-link:nth-child(6) {
    transition-delay: 0.34s;
  }
  .nav-links .nav-link::after {
    display: none;
  }
  /* Premium close control — hide hamburger while sheet is open to avoid duplicate X */
  .nav-close {
    position: absolute;
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 6px));
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 6px));
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
    box-shadow:
      0 4px 18px rgba(15, 23, 42, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
    color: #0f172a;
    cursor: pointer;
    transition:
      transform 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      border-color 0.2s var(--ease);
  }
  .nav-close:hover {
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow:
      0 8px 26px rgba(15, 23, 42, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }
  .nav-close:active {
    transform: scale(0.96);
  }
  .nav-close:focus-visible {
    outline: 2px solid #89cff0;
    outline-offset: 3px;
  }
  .nav-close-icon {
    display: block;
    opacity: 0.88;
  }
  .nav-links > .nav-close {
    opacity: 0;
    transform: scale(0.88);
    transition:
      opacity 0.4s var(--nav-menu-ease),
      transform 0.45s var(--nav-menu-ease);
  }
  .nav-links.open > .nav-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.06s;
  }
  .nav-links.open > .nav-close:active {
    transform: scale(0.92);
  }
  body.mobile-nav-open .nav-burger {
    opacity: 0;
    pointer-events: none;
  }
  .nav-burger {
    display: flex;
    z-index: 5001;
    transition: opacity 0.35s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links {
      transform: none !important;
      transition-duration: 0.01ms !important;
    }
    .nav-links .nav-link,
    .nav-links > .nav-close {
      transform: none !important;
      transition-duration: 0.01ms !important;
      transition-delay: 0s !important;
    }
    .nav-links.open .nav-link {
      opacity: 1;
    }
  }

  .hero { padding: 100px 0 60px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .hero-text { text-align: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 520px; max-width: 100%; transform: rotate(4deg); }
  .hero-image--wholesale img {
    max-height: 440px;
    transform: scale(1.06);
    transform-origin: 50% 50%;
  }
  .hero-image--wholesale:hover img {
    transform: scale(1.06);
    transform-origin: 50% 50%;
  }
  .hero-label { font-size: .65rem; letter-spacing: 0.12em; margin-bottom: 16px; }
  .hero-sub { font-size: 1rem; }
  .hero-text { max-width: 100%; }
  .hero-desc { font-size: .9375rem; margin-bottom: 20px; margin-left: auto; margin-right: auto; }
  .hero-actions {
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; }
  .hero-trust {
    display: flex;
    justify-content: center;
  }
  .hero-pill { font-size: .65rem; padding: 5px 12px; }
  .hero-grid-bg { background-size: 32px 32px; }

  .hero-glow { display: none; }
  .hero-display { font-size: clamp(1.75rem, 6.5vw, 2.25rem); font-weight: 700; }

  .marquee { margin-top: 0; }
  .marquee-track span { font-size: .65rem; padding: 0 10px; letter-spacing: 2px; }

  .features-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
  .feature {
    border-right: none;
    padding: 32px 20px;
  }
  .feature:last-child { border-bottom: none; }
  .feature-num { font-size: 2.2rem; margin-bottom: 14px; }

  .shop { padding: 64px 0; }
  .shop.shop--home {
    padding: 0 0 36px;
  }
  /* Many thumbnails: wrap and center so the row doesn’t hug the right edge */
  .shop--home .shop-thumbs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 2px;
  }
  .shop--home .shop-thumbs .thumb {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }
  .shop-wide {
    padding: 0 16px;
  }
  .shop-section-head {
    padding: 24px 0 20px;
    max-width: 100%;
  }
  .shop-section-lede {
    font-size: 0.875rem;
  }
  .shop--home .shop-more-cta {
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    flex-direction: column;
    gap: 0.65rem;
  }
  .shop-more-text {
    font-size: 0.9rem;
  }
  .shop--home .shop-frame {
    padding: 20px 16px;
  }
  .shop-frame { padding: 20px; gap: 32px; }
  .shop-title { font-size: 1.3rem; }
  .shop-price { font-size: 1.5rem; }
  .urgency { flex-direction: column; gap: 6px; }
  .shop-desc { font-size: .85rem; }

  .reviews { padding: 48px 0 56px; }
  .reviews-wrap { margin-top: 18px; }
  .review-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .review-photo-wrap {
    order: -1;
    margin: 0 auto;
    width: min(280px, 100%);
    max-width: 100%;
    max-height: min(280px, 42vh);
    aspect-ratio: 1;
    height: auto;
  }
  .review-content blockquote {
    font-size: 0.92rem;
  }

  .story-img { height: 320px; }
  .story-body { padding: 40px 0 64px; }
  .story-text p { font-size: .88rem; }

  .cta { padding: 72px 16px; }
  .cta-title { font-size: 1.8rem; }

  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-wordmark { font-size: 1.2rem; }
  .footer-bottom { font-size: .72rem; }

  .fbt-options { grid-template-columns: repeat(2, 1fr); }

  .to-top { bottom: 20px; right: 16px; width: 38px; height: 38px; }

  .drawer { width: 100%; max-width: 100%; }
  .drawer-body { padding: 16px; }

  .btn-buy { padding: 12px 24px; font-size: .85rem; }
}

@media (max-width: 480px) {
  .hero-display { letter-spacing: -.03em; }
  .hero-badges { flex-wrap: wrap; justify-content: center; }

  .shop-actions { flex-direction: column; }
  .qty { width: 100%; justify-content: center; }
  .btn-cart { text-align: center; }

  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: .65rem; letter-spacing: 1.5px; }

  .fbt-card { padding: 8px 4px; }
  .fbt-qty { font-size: .65rem; }
  .fbt-price { font-size: .72rem; }
  .fbt-old { font-size: .62rem; }
  .fbt-save { font-size: .55rem; }

  .shop-payments img { height: 22px; }

  .section-title { font-size: 1.6rem; }
  .section-label { font-size: .65rem; }

  .cta-title { font-size: 1.5rem; }
  .cta-desc { font-size: .88rem; }
}
