/* ==========================================================================
   Greener World Glass — main stylesheet (mobile-first, cosmic dark theme)
   Brand palette pulled from the logo: deep space, neon cyan ring,
   glass green, molten orange, violet core.
   ========================================================================== */

:root {
  --bg: #07081a;
  --bg-2: #0c0f2b;
  --surface: #121538;
  --surface-2: #1a1f4d;
  --line: rgba(150, 175, 255, .16);
  --line-2: rgba(150, 175, 255, .28);

  --ink: #f3f6ff;
  --ink-2: #c4cbe8;
  --muted: #8e97bd;

  --cyan: #3fe3ea;
  --cyan-2: #1fbfd3;
  --green: #7cf03d;
  --orange: #ff8d2a;
  --violet: #9b6bff;
  --danger: #ff6b6b;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--green) 100%);
  --grad-warm: linear-gradient(120deg, var(--orange), #ffc247);
  --glow: 0 0 0 1px rgba(63, 227, 234, .35), 0 8px 28px rgba(63, 227, 234, .28);

  --font-display: "Righteous", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --header-h: 66px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(155, 107, 255, .18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(63, 227, 234, .10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  overflow-x: hidden;
}
/* star field */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #cfe 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #bdf 50%, transparent 51%),
    radial-gradient(1px 1px at 170px 240px, #fff 50%, transparent 51%);
  background-size: 260px 260px;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--bg); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: .7em; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute; left: -9999px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #03121a; box-shadow: var(--glow); }
.btn-primary:hover { color: #03121a; filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(124, 240, 61, .5), 0 10px 34px rgba(63, 227, 234, .42); }
.btn-primary[disabled], .btn-primary.is-loading { opacity: .75; pointer-events: none; }
.btn-light { background: rgba(255, 255, 255, .08); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .14); color: var(--ink); border-color: var(--cyan); }
.btn-outline { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline:hover { background: var(--cyan); color: var(--bg); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn.is-added { background: var(--green); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--surface-2); color: var(--cyan); }

/* ── Preview bar ─────────────────────────────────────────── */
.preview-bar { background: rgba(255, 141, 42, .14); color: #ffc38d; font-size: .82rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid rgba(255, 141, 42, .3); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 26, .78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 6px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 62px; height: auto; filter: drop-shadow(0 0 10px rgba(63, 227, 234, .35)); }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.brand-text small { font-size: .66rem; letter-spacing: .42em; color: var(--cyan); margin-top: 2px; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 0; }
.cart-count, .tab-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--orange); color: #1a0b00; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 12px rgba(255, 141, 42, .6);
}
.cart-count.bump, .tab-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(2, 3, 12, .6); }
.mobile-menu-panel {
  position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 12px 20px calc(24px + var(--safe-b)); overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s var(--ease);
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 60px; margin-bottom: 8px; }
.mobile-menu-head img { width: 84px; }
.mobile-menu nav a { display: block; padding: 14px 4px; font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current] { color: var(--cyan); }
.mobile-menu-label { margin: 24px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Mobile tab bar ──────────────────────────────────────── */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(10, 12, 36, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab-bar a, .tab-bar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tab-bar [aria-current] { color: var(--cyan); }
.tab-bar [aria-current] svg { filter: drop-shadow(0 0 6px rgba(63, 227, 234, .7)); }
.tab-bar .tab-count { top: 6px; right: calc(50% - 22px); }
.has-buy-bar .tab-bar { display: none; }
.has-buy-bar { padding-bottom: calc(76px + var(--safe-b)); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 12px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -40% auto; height: 120%; z-index: -1; opacity: .12;
  background: url("/images/flower_of_life.svg") center / 520px repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.hero-inner { position: relative; display: grid; gap: 8px; }
.hero-logo { position: relative; width: min(74vw, 420px); margin: 0 auto; }
.hero-logo::before {
  content: ""; position: absolute; inset: 12% 22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(63, 227, 234, .45), rgba(155, 107, 255, .2) 55%, transparent 70%); filter: blur(30px);
}
.hero-logo img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero-copy { text-align: center; }
.hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.hero .lead { font-size: 1.02rem; }

/* Trust bar */
.trust-bar { background: rgba(18, 21, 56, .7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-grid > div { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.trust-grid svg { flex: none; color: var(--cyan); margin-top: 2px; }
.trust-grid strong { display: block; color: var(--ink); font-size: .9rem; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-tight { padding: 24px 0 48px; }
.section-tint { background: linear-gradient(180deg, rgba(18, 21, 56, .0), rgba(18, 21, 56, .75) 20%, rgba(18, 21, 56, .75) 80%, rgba(18, 21, 56, 0)); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.page-head { padding: 40px 0 12px; }
.page-head-compact { padding: 18px 0 2px; }
.page-head-compact h1 { font-size: clamp(1.9rem, 6.5vw, 2.7rem); margin-bottom: .1em; }
.banner-strip { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner-strip img { width: 100%; }

/* ── Product grid & cards ────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.product-card:hover { border-color: rgba(63, 227, 234, .5); box-shadow: 0 10px 30px rgba(63, 227, 234, .12); }
.product-card[hidden] { display: none; }
.product-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.is-sold .product-media img { filter: grayscale(.7) brightness(.6); }
.badge {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(7, 8, 26, .72); color: var(--cyan); border: 1px solid rgba(63, 227, 234, .55);
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px);
}
.badge-low { color: #ffd2a8; border-color: rgba(255, 141, 42, .7); }
.badge-sold { color: var(--ink-2); border-color: var(--line-2); }
.product-info { padding: 10px 12px 12px; }
.product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.35; min-height: 2.7em;
}
.product-name:hover { color: var(--cyan); }
.product-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-price { font-weight: 800; color: var(--green); }
.quick-add {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(63, 227, 234, .5); background: rgba(63, 227, 234, .1); color: var(--cyan);
  transition: background .2s, color .2s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.quick-add:hover, .quick-add.is-added { background: var(--grad); color: #03121a; border-color: transparent; }
.quick-add:active { transform: scale(.9); }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.category-tile:hover img { transform: scale(1.06); }
.category-tile:hover { border-color: var(--cyan); }
.category-tile span { position: absolute; inset: auto 0 0 0; padding: 34px 12px 12px; color: #fff; background: linear-gradient(transparent, rgba(4, 5, 18, .88)); }
.category-tile strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; line-height: 1.2; }
.category-tile small { color: var(--ink-2); }

/* Split */
.split { display: grid; gap: 28px; align-items: center; }
.split-media img { width: 100%; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: 32px 24px;
  border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(63, 227, 234, .35);
  background: radial-gradient(600px 300px at 100% 0%, rgba(155, 107, 255, .35), transparent 60%), linear-gradient(135deg, #0f2a4a, #0b1330);
}
.cta-band::after { content: ""; position: absolute; inset: 0; opacity: .1; background: url("/images/flower_of_life.svg") right center / 320px no-repeat; pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-2); margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* ── Shop controls ───────────────────────────────────────── */
.shop-controls {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(7, 8, 26, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.search-field { position: relative; margin: 0 0 10px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 16px; color: var(--ink);
}
.search-field input::placeholder { color: var(--muted); }
.search-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 227, 234, .2); }
.filter-row { display: flex; gap: 10px; align-items: center; }
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  flex: 1; min-width: 0; padding: 2px; margin: -2px; scroll-snap-type: x proximity;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .9rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip.is-active { background: var(--grad); color: #03121a; border-color: transparent; }
.sort-select select {
  height: 38px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background-color: var(--surface);
  font-size: .9rem; appearance: none; -webkit-appearance: none; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233fe3ea' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; max-width: 130px;
}
.empty-state { text-align: center; padding: 48px 16px; }

/* ── Product page ────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; padding-top: 14px; padding-bottom: 10px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.product-layout { display: grid; gap: 22px; padding-bottom: 20px; }
.gallery { position: relative; margin: 0 -16px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; background: var(--surface-2); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); transition: width .25s var(--ease), background .2s; }
.gallery-dots button[aria-selected="true"] { width: 22px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.gallery-thumbs { display: none; }
.product-detail h1 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); margin-bottom: .2em; }
.detail-price { font-size: 1.6rem; font-weight: 800; color: var(--green); margin-bottom: .4em; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.stock-in { color: var(--green); }
.stock-one { color: var(--cyan); }
.stock-low { color: var(--orange); }
.stock-out { color: var(--muted); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.btn-grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); height: 54px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; color: var(--cyan); }
.qty button:disabled { color: var(--muted); opacity: .5; }
.qty input { width: 36px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; background: transparent; font-size: 16px; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.qty-sm { height: 38px; }
.qty.qty-sm button { width: 34px; font-size: 1.1rem; }
.qty.qty-sm input, .qty.qty-sm span { width: 26px; text-align: center; font-weight: 700; font-size: .95rem; }
.pay-methods { text-align: center; font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.pay-methods.left { text-align: left; }
.detail-desc { margin: 24px 0; color: var(--ink-2); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--cyan); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > *:not(summary) { padding: 0 2px 16px; color: var(--ink-2); margin: 0; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(10, 12, 36, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.buy-bar[hidden] { display: none; }
.buy-bar.is-hidden { transform: translateY(110%); }
.buy-bar > div { flex: 1; min-width: 0; line-height: 1.3; }
.buy-bar strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar span { color: var(--green); font-weight: 800; }
.buy-bar .btn { min-height: 48px; padding: 10px 24px; }

/* ── Cart drawer ─────────────────────────────────────────── */
.cart-drawer { position: fixed; inset: 0; z-index: 100; }
.cart-scrim { position: absolute; inset: 0; background: rgba(2, 3, 12, .6); opacity: 0; transition: opacity .3s; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px;
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart-drawer.is-open .cart-scrim { opacity: 1; }
.cart-drawer.is-open .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; margin: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: 4px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cart-foot { padding: 16px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
.cart-foot .btn-ghost { min-height: 40px; margin-top: 4px; font-size: .9rem; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart-subtotal strong { font-size: 1.35rem; color: var(--green); }
.fine { font-size: .82rem; color: var(--muted); margin: 2px 0 14px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 95px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item-name { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.cart-item-price { font-weight: 800; color: var(--green); white-space: nowrap; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cart-remove { border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; padding: 8px 0; }
.cart-remove:hover { color: var(--danger); }
.cart-note { font-size: .8rem; color: var(--orange); margin-top: 6px; }
.cart-empty { text-align: center; padding: 48px 8px; }
.cart-empty svg { color: var(--cyan); margin: 0 auto 12px; filter: drop-shadow(0 0 10px rgba(63, 227, 234, .5)); }
.ship-progress { padding: 12px 20px; background: rgba(63, 227, 234, .08); border-bottom: 1px solid var(--line); font-size: .88rem; }
.ship-progress p { margin: 0 0 6px; color: var(--ink-2); }
.ship-progress strong { color: var(--ink); }
.ship-progress .bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .5s var(--ease); box-shadow: 0 0 10px var(--cyan); }

/* Cart page */
.cart-page { display: grid; gap: 24px; }
.cart-page .ship-progress { border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 8px; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.cart-summary h2 { font-size: 1.35rem; }
.assurances { list-style: none; padding: 0; margin: 16px 0 0; font-size: .88rem; color: var(--ink-2); }
.assurances li { padding: 4px 0 4px 24px; position: relative; }
.assurances li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

/* ── Forms ───────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 22px; box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.field-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input[type=date] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 227, 234, .2); }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-alert.success { background: rgba(124, 240, 61, .12); color: #c8ffab; border: 1px solid rgba(124, 240, 61, .4); }
.form-alert.error { background: rgba(255, 107, 107, .12); color: #ffc2c2; border: 1px solid rgba(255, 107, 107, .4); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: border-color .2s; }
.contact-card:hover { border-color: var(--cyan); color: var(--ink-2); }
.contact-card svg { color: var(--cyan); flex: none; }
.contact-card strong { display: block; color: var(--ink); }
.contact-card span { word-break: break-word; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #03121a; font-weight: 800; }
.steps strong { color: var(--ink); }
.steps p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }

.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Success page */
.success-mark { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #03121a; box-shadow: var(--glow); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.order-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.order-box > div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.order-box span { display: block; font-size: .82rem; color: var(--muted); }
.order-box strong { font-size: 1.2rem; color: var(--green); }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .3s var(--ease);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--surface-2); color: var(--ink);
  border: 1px solid rgba(63, 227, 234, .45); box-shadow: var(--shadow), 0 0 20px rgba(63, 227, 234, .2); font-size: .92rem;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast span { white-space: nowrap; }
.cart-drawer:not([hidden]) ~ .toast { display: none; }
.toast button { border: 0; background: var(--grad); color: #03121a; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.has-buy-bar .toast { bottom: calc(84px + var(--safe-b)); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { position: relative; background: #04050f; border-top: 1px solid var(--line); color: var(--ink-2); padding: 44px 0 20px; margin-top: 32px; font-size: .92rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent); opacity: .6; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 150px; filter: drop-shadow(0 0 14px rgba(63, 227, 234, .3)); }
.footer-brand p { margin: 12px 0; max-width: 38ch; }
.site-footer h3 { color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a, .site-footer span { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.site-footer a:hover { color: var(--cyan); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; }
.social a:hover { border-color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer-bottom .pay-note { display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom span, .footer-bottom a { padding: 0; color: var(--muted); }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery { margin: 0; }
  .gallery-slide { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .card { padding: 30px; }
  .brand-text { font-size: 1.15rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  body, .has-buy-bar { padding-bottom: 0; }
  .tab-bar, .buy-bar, .menu-btn { display: none !important; }
  .toast, .has-buy-bar .toast { bottom: 28px; }
  .main-nav { display: flex; gap: 4px; margin: 0 auto; }
  .main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
  .main-nav a:hover { color: var(--ink); background: var(--surface); }
  .main-nav a[aria-current] { color: var(--cyan); background: rgba(63, 227, 234, .1); }
  .brand { margin-right: 0; }
  .brand img { width: 78px; }
  .brand-text { font-size: 1.3rem; }
  .hero { padding: 40px 0 90px; }
  .hero-inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; }
  .hero-copy { text-align: left; order: -1; }
  .hero h1, .hero .lead { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-logo { width: 100%; max-width: 620px; }
  .section { padding: 80px 0; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-form { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .product-layout { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding-top: 8px; }
  .product-detail { position: sticky; top: calc(var(--header-h) + 24px); }
  .gallery-dots { display: none; }
  .gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .gallery-thumbs button { width: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; opacity: .6; }
  .gallery-thumbs button[aria-selected="true"] { border-color: var(--cyan); opacity: 1; }
  .shop-controls .container { display: flex; gap: 16px; align-items: center; }
  .search-field { margin: 0; width: 320px; flex: none; }
  .filter-row { flex: 1; min-width: 0; }
  .sort-select select { max-width: none; }
  .cart-page { grid-template-columns: 1fr 360px; gap: 40px; }
  .cart-summary { position: sticky; top: calc(var(--header-h) + 24px); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
