/* Pure Peptides — research peptide storefront
 * Design tokens: onyx + 24k gold + ivory (dark default).
 * Light mode via [data-theme="light"] on <html>.
 * Original styling (no third-party CSS frameworks).
 */

:root {
  --bg:          #0A0A0A;
  --bg-soft:     #141414;
  --bg-elev:     #1C1C1C;
  --line:        #2A2A2A;
  --gold:        #D4AF37;
  --gold-deep:   #A88628;
  --gold-soft:   rgba(212,175,55,.16);
  --ivory:       #F5EFE6;
  --ivory-mute:  #C9C2B6;
  --danger:      #E25C5C;
  --ok:          #6FCF7E;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --w-max: 1320px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 18px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.5);
}

/* ── Light mode ────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #FAFAF8;
  --bg-soft:     #F0EDEA;
  --bg-elev:     #FFFFFF;
  --line:        #E0DCD6;
  --ivory:       #1A1A1A;
  --ivory-mute:  #5A5549;
  --gold:        #8B7024;
  --gold-deep:   #6B5518;
  --gold-soft:   rgba(139,112,36,.1);
  --danger:      #C53030;
  --ok:          #2D8A4E;
  --shadow-1: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--ivory); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

.eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 600;
           letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: clamp(2.4rem, 6vw, 5.5rem) 0; }
.divider   { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); margin: 0; opacity: .6; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Glass effect utility ──────────────────────────────────────────────── */
.glass {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(10,10,10,.7);
}
[data-theme="light"] .glass {
  background: rgba(255,255,255,.7);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(10,10,10,.85);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .site-header {
  background: rgba(255,255,255,.85);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; gap: 1.25rem;
}
.site-header .brand {
  display: inline-flex; align-items: center;
}
.site-header .brand .brand-text {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
.brand-logo {
  height: 52px; width: auto; display: block;
}
@media (max-width: 820px) {
  .brand-logo { height: 40px; }
}
@media (max-width: 430px) {
  .brand-logo { height: 34px; }
}
.site-header nav { display: flex; gap: 0; align-items: center; }
.site-header nav > a, .site-header nav .nav-drop > .nav-label {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem .85rem; cursor: pointer; white-space: nowrap; color: var(--ivory);
  background: none; border: none; font-family: inherit;
}
.site-header nav > a:hover, .site-header nav .nav-drop:hover > .nav-label { color: var(--gold); }
/* Dropdown container */
.nav-drop { position: relative; }
.nav-drop .nav-dd {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg-elev); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  min-width: 240px; padding: .5rem 0; z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
}
.nav-drop:hover .nav-dd { display: block; }
.nav-dd a {
  display: block; padding: .55rem 1.2rem; font-size: .82rem; letter-spacing: .06em;
  color: var(--ivory-mute); white-space: nowrap;
}
.nav-dd a:hover { color: var(--gold); background: var(--bg-soft); }
.site-header .icons { display: flex; gap: 1rem; align-items: center; }
.site-header .icons button {
  background: none; border: 0; color: var(--ivory); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: .25rem;
}
.site-header .icons button:hover { color: var(--gold); }
.cart-count {
  display: inline-block; min-width: 1.2em; padding: 0 .35em;
  background: var(--gold); color: #1a1407; border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 1.4em; text-align: center;
}
.cart-count.hidden { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ivory); cursor: pointer; font-size: 1.4rem; }

/* ── Theme toggle button ───────────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--ivory); cursor: pointer; transition: .2s ease;
  font-size: 1rem; padding: 0;
}
.theme-toggle:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-soft);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Responsive nav breakpoints ──────────────────────────── */
@media (max-width: 1200px) {
  .site-header nav > a, .site-header nav .nav-drop > .nav-label {
    font-size: .72rem; padding: .5rem .55rem;
  }
}
@media (max-width: 1024px) {
  .site-header nav > a, .site-header nav .nav-drop > .nav-label {
    font-size: .68rem; padding: .5rem .4rem; letter-spacing: .04em;
  }
  .site-header .bar { padding: .6rem 0; gap: .75rem; }
}
/* Switch to hamburger (820px) */
@media (max-width: 820px) {
  .site-header nav { display: none; }
  .menu-toggle { display: inline-block; }
  .site-header .bar { padding: .7rem 0; flex-wrap: nowrap; gap: 0; }
  .menu-toggle { margin-right: 0; }
  .site-header .brand { flex: 1; justify-content: center; margin: 0 .5rem; }
  .site-header .icons { margin-left: auto; gap: .7rem; }
}
@media (max-width: 540px) {
  .site-header .icons { gap: .6rem; }
  .site-header .bar { gap: 0 !important; }
}
@media (max-width: 375px) {
  .site-header .brand .brand-text { font-size: .95rem; letter-spacing: .12em; }
  .site-header .icons button { font-size: .85rem; }
  .site-header .bar { gap: 0 !important; }
}

.site-header .announcement {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  color: #1a1407; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; text-align: center; padding: .35rem 0; font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 72vh; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,.18), transparent 60%),
    linear-gradient(180deg, #0A0A0A, #161616);
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at center, rgba(184,150,47,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero p  { max-width: 52ch; margin: 1rem auto 1.6rem; color: var(--ivory-mute); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; font-family: var(--sans); font-weight: 600;
  font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  border-radius: var(--r-sm); cursor: pointer; transition: .15s ease;
}
.btn:hover { background: var(--gold); color: #1a1407; }
.btn-primary {
  background: var(--gold); color: #1a1407; border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-deep); border-color: var(--gold-deep); color: #1a1407;
}
.btn-glass {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: rgba(212,175,55,.15); border-color: var(--gold);
  color: var(--gold);
}
.btn-glass:hover {
  background: var(--gold); color: #1a1407;
}
.btn-block { display: flex; width: 100%; }
.btn-ghost { border-color: var(--line); color: var(--ivory); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--gold); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Product card ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: .2s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px); border-color: var(--gold-deep); box-shadow: var(--shadow-1);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
}
.card .ph { aspect-ratio: 4/5; background: var(--bg-elev); position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .ribbon {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--gold); color: #1a1407;
  padding: .2rem .55rem; font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; border-radius: 2px;
}
.card .body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card .title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.card .price { color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.card .compare { color: var(--ivory-mute); text-decoration: line-through; font-size: .85rem; margin-left: .5em; }
.card .meta { font-size: .78rem; color: var(--ivory-mute); }
.card .viewers {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; color: var(--gold); margin-top: .25rem;
  animation: viewerPulse 2s ease-in-out infinite;
}
@keyframes viewerPulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

/* ── PDP viewer count ───────────────────────────────────────────────────── */
.viewers-pdp {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--gold); font-weight: 500;
  animation: viewerPulse 2s ease-in-out infinite;
}
.viewers-pdp strong { font-weight: 700; }

/* ── PDP ──────────────────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 1.5rem; } }
.gallery { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; }
.gallery .thumbs { display: flex; flex-direction: column; gap: .5rem; max-height: 580px; overflow-y: auto; }
.gallery .thumbs img { width: 80px; height: 100px; object-fit: cover; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-sm); }
.gallery .thumbs img.active { border-color: var(--gold); }
.gallery .main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
}

.pdp .price { font-size: 1.6rem; color: var(--gold); }
.option { display: flex; flex-direction: column; gap: .4rem; margin: 1rem 0; }
.option label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-mute); }
.swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.swatch {
  padding: .55rem 1rem; border: 1px solid var(--line); background: var(--bg-soft);
  color: var(--ivory); cursor: pointer; font-size: .85rem; border-radius: var(--r-sm); transition: .15s;
}
.swatch:hover { border-color: var(--gold); }
.swatch.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.swatch[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.tabs { border-top: 1px solid var(--line); margin-top: 2rem; }
.tabs .tab-bar { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.tabs .tab { padding: 1rem 0; cursor: pointer; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-mute); border-bottom: 2px solid transparent; }
.tabs .tab.active { color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }

.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0; padding: .75rem var(--gutter);
  background: rgba(10,10,10,.96); border-top: 1px solid var(--gold-deep); z-index: 40;
  display: none;
}
[data-theme="light"] .sticky-buy {
  background: rgba(255,255,255,.96);
}
@media (max-width: 720px) { .sticky-buy { display: flex; gap: .75rem; align-items: center; } }
.sticky-buy .price { color: var(--gold); font-weight: 700; }

/* ── Cart / drawer ──────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--bg-soft); border-left: 1px solid var(--line); z-index: 91;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
}
.drawer.open { transform: translateX(0); }
.drawer .head { display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer .body { flex: 1; overflow: auto; padding: 1rem 1.25rem; }
.drawer .foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 70px 1fr auto; gap: .75rem; padding: .75rem 0;
             border-bottom: 1px solid var(--line); }
.line-item img { width: 70px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.line-item .li-meta { font-size: .82rem; color: var(--ivory-mute); }
.qty { display: inline-flex; align-items: center; gap: .35rem; }
.qty button { background: var(--bg-elev); border: 1px solid var(--line); color: var(--ivory);
              width: 28px; height: 28px; border-radius: var(--r-sm); cursor: pointer; }
.qty input { width: 38px; background: transparent; border: 1px solid var(--line); color: var(--ivory);
             text-align: center; padding: .25rem; border-radius: var(--r-sm); }

.free-ship-bar {
  background: var(--bg-elev); padding: .55rem .75rem; border-radius: var(--r-sm);
  font-size: .8rem; color: var(--ivory-mute); margin-bottom: .75rem;
}
.free-ship-bar .progress { height: 4px; background: var(--line); border-radius: 999px; margin-top: .35rem; overflow: hidden; }
.free-ship-bar .progress > div { height: 100%; background: var(--gold); transition: width .3s; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%; padding: .75rem .9rem; background: var(--bg-elev); color: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft);
}
label.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
label.field span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-mute); }

/* ── Filters ────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.filter-bar select { width: auto; min-width: 160px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; margin-top: 4rem;
  background: var(--bg-soft);
}
footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--gold); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: .25rem 0; font-size: .9rem; color: var(--ivory-mute); }
footer .legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
                 display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
                 font-size: .8rem; color: var(--ivory-mute); }

/* ── Promo banner ───────────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  color: #1a1407; padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.promo-banner h2 { color: #1a1407; font-family: var(--serif); }

/* ── Purity badge (peptide-specific) ───────────────────────────────────── */
.purity-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(111,207,126,.12); color: var(--ok);
  padding: .2rem .6rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-radius: 999px;
  border: 1px solid rgba(111,207,126,.25);
}
.purity-badge::before {
  content: '✓'; font-weight: 900;
}

/* ── COA viewer (peptide-specific) ─────────────────────────────────────── */
.coa-viewer {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.25rem; margin: 1rem 0;
}
.coa-viewer .coa-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}
.coa-viewer .coa-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  font-size: .88rem; color: var(--ivory-mute);
}
.coa-viewer .coa-detail dt { font-weight: 600; color: var(--ivory); }
.coa-viewer .coa-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .75rem; font-size: .82rem; font-weight: 600;
  color: var(--gold); letter-spacing: .06em;
}
.coa-viewer .coa-link:hover { text-decoration: underline; }

/* ── RUO banner (research use only) ────────────────────────────────────── */
.ruo-banner {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .75rem 1rem; margin: 1rem 0;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--ivory-mute); line-height: 1.5;
}
.ruo-banner .ruo-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-soft); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .85rem;
}
.ruo-banner strong { color: var(--gold); font-weight: 700; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.muted { color: var(--ivory-mute); }
.gold { color: var(--gold); }
.center { text-align: center; }

/* Minimum 12px on mobile for accessibility (Apple HIG + WCAG) */
@media (max-width: 820px) {
  .eyebrow { font-size: max(.72rem, 12px); }
  .card .meta, .li-meta { font-size: max(.82rem, 12px); }
  footer .legal { font-size: max(.8rem, 12px); }
  .cart-count { font-size: max(.72rem, 12px); }
}
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--bg-soft), var(--bg-elev), var(--bg-soft));
            background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.flash { padding: .75rem 1rem; border-radius: var(--r-sm); margin: 1rem 0; }
.flash.ok    { background: rgba(111,207,126,.1); border: 1px solid var(--ok); color: var(--ok); }
.flash.err   { background: rgba(226,92,92,.1);  border: 1px solid var(--danger); color: var(--danger); }

/* ── Mobile nav drawer ──────────────────────────────────────────────────── */
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; display: none;
}
.mobile-nav-backdrop.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--bg); border-right: 1px solid var(--line); z-index: 81;
  transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav .mn-head .brand {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.mobile-nav .mn-head .mn-close {
  background: none; border: 0; color: var(--ivory); font-size: 1.5rem; cursor: pointer; padding: 0;
}
.mobile-nav .mn-links { flex: 1; padding: 1rem 0; }
.mobile-nav .mn-links a {
  display: block; padding: .85rem 1.5rem; font-size: 1rem; letter-spacing: .1em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); color: var(--ivory);
}
.mobile-nav .mn-links a:hover, .mobile-nav .mn-links a:active { color: var(--gold); background: var(--bg-elev); }
.mobile-nav .mn-foot {
  padding: 1rem 1.25rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ivory-mute);
}
.mobile-nav .mn-foot a { color: var(--gold); }
/* Collapsible sections in mobile nav */
.mn-section { border-bottom: 1px solid var(--line); }
.mn-toggle {
  display: block; width: 100%; padding: .85rem 1.5rem; font-size: 1rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ivory);
  background: none; border: none; text-align: left; cursor: pointer;
  font-family: inherit;
}
.mn-toggle:hover { color: var(--gold); background: var(--bg-elev); }
.mn-sub { display: none; padding: 0 0 .5rem; }
.mn-section.open .mn-sub { display: block; }
.mn-section.open .mn-toggle { color: var(--gold); }
.mn-sub a {
  padding: .55rem 1.5rem .55rem 2.5rem !important;
  font-size: .88rem !important; color: var(--ivory-mute) !important;
  border-bottom: none !important;
}
.mn-sub a:hover { color: var(--gold) !important; }
/* Mobile nav responsive tweaks */
@media (max-width: 375px) {
  .mobile-nav .mn-links a { font-size: .88rem; padding: .7rem 1.2rem; }
  .mn-toggle { font-size: .88rem; padding: .7rem 1.2rem; }
  .mn-sub a { padding: .45rem 1.2rem .45rem 2rem !important; font-size: .82rem !important; }
  .mobile-nav .mn-head { padding: .8rem 1rem; }
}

/* ── Zelle payment info box ────────────────────────────────────────────── */
.zelle-info {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.25rem; margin-top: .5rem;
}
.zelle-info .zelle-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #6D1ED4; color: #fff; padding: .25rem .75rem;
  border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; margin-bottom: .75rem;
}
.zelle-info .zelle-detail { padding: .35rem 0; font-size: .95rem; }
.zelle-info .zelle-detail .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ivory-mute); }

/* ── Payment method selector ───────────────────────────────────────────── */
.pay-methods { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pay-methods label {
  flex: 1; min-width: 100px; display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  transition: .15s;
}
.pay-methods label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.pay-methods input[type=radio] { width: auto; accent-color: var(--gold); }

/* Stripe / Square element wrappers */
#stripe-card, #square-card-container {
  padding: .75rem .9rem; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 48px;
}

/* ── Announcement bar ──────────────────────────────────────────────────── */
.announcement { display: flex; justify-content: center; align-items: center; gap: 1rem; }

/* ── Social cards (homepage section) ───────────────────────────────────── */
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.8rem 2.5rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-soft); transition: .2s ease; text-align: center;
  min-width: 200px;
}
.social-card:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,175,55,.12);
}
.social-card .sc-icon { color: var(--gold); }
.social-card .sc-label { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.social-card .sc-handle { font-size: .82rem; color: var(--ivory-mute); }
.social-card .sc-cta {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-top: .25rem;
}

/* ── Footer social bar ─────────────────────────────────────────────────── */
footer .social-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line);
  margin-top: 2rem;
}
footer .social-icons { display: flex; gap: .75rem; }
footer .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ivory-mute); transition: .15s;
}
footer .social-icons a:hover { border-color: var(--gold); color: var(--gold); }

/* ── Toast notifications ───────────────────────────────────────────────── */
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }
@keyframes fadeOut  { from { opacity: 1; } to { opacity: 0; } }

/* ── Loading skeletons ─────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-soft) 50%, var(--bg-elev) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}
.skeleton-text {
  height: 1em; width: 80%; border-radius: 4px; margin: .4rem 0;
  background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-soft) 50%, var(--bg-elev) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-card {
  height: 280px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-soft) 50%, var(--bg-elev) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--ivory-mute); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--ivory-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ivory); font-weight: 600; }

/* ── Image lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 1rem;
}
.lightbox img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--gold-deep); }
.faq-item summary {
  padding: 1rem 1.25rem; cursor: pointer; font-family: var(--serif);
  font-size: 1.05rem; font-weight: 500; color: var(--ivory);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--gold); font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item > div { padding: 0 1.25rem 1.25rem; color: var(--ivory-mute); line-height: 1.65; }
.faq-item > div p { margin: 0 0 .5rem; }
.faq-item > div p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Apple-Grade Mobile Optimization — iPhone 15 Pro / iOS HIG
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Global mobile refinements (≤820px) ──────────────────────────────────── */
@media (max-width: 820px) {
  /* Bigger corner radii → Apple feel */
  .card { border-radius: 14px; }
  .btn  { border-radius: 12px; min-height: 48px; }
  .faq-item { border-radius: 14px; }

  /* Section breathing room */
  .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }

  /* Generous container padding */
  .container { padding: 0 clamp(1rem, 5vw, 1.5rem); }

  /* Full-width buttons on mobile */
  .btn-block, .btn-primary:not(.btn-sm) {
    width: 100%; justify-content: center;
  }

  /* Larger tap targets on links & buttons — Apple HIG 44pt minimum */
  button, [role="button"], a.btn { min-height: 44px; }

  /* Smoother font rendering */
  body { -webkit-text-size-adjust: 100%; }

  /* Hero section — tighter on mobile */
  .hero {
    min-height: 60vh;
    padding: 2.5rem 0;
  }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero p  { font-size: .95rem; padding: 0 .5rem; }

  /* Cards — subtle lift on hover removed for touch, cleaner shadows */
  .card:hover { transform: none; }
  .card:active { transform: scale(0.98); }

  /* Product card images — slightly taller on mobile */
  .card .ph { aspect-ratio: 3/4; }

  /* Product card body — roomier */
  .card .body { padding: 1rem 1.1rem 1.2rem; }
  .card .title { font-size: 1rem; }
  .card .price { font-size: .95rem; }

  /* Form inputs — Apple-style rounded fields */
  input, select, textarea {
    border-radius: 10px;
    padding: .85rem 1rem;
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Filter bar — stack on mobile */
  .filter-bar { gap: .5rem; }
  .filter-bar select { min-width: 0; flex: 1; }

  /* PDP — more space below gallery */
  .pdp { gap: 1.75rem; }

  /* Swatches — bigger touch targets */
  .swatch {
    padding: .65rem 1.1rem;
    font-size: .9rem;
    border-radius: 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Tabs — scrollable on mobile */
  .tabs .tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0;
  }
  .tabs .tab {
    scroll-snap-align: start;
    padding: .9rem .75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Footer — Apple-clean spacing */
  footer { padding: 2.5rem 0 1.5rem; margin-top: 2.5rem; }
  footer h4 { font-size: .78rem; margin-bottom: .5rem; }
  footer li { padding: .35rem 0; }

  /* FAQ — bigger touch target on summary */
  .faq-item summary {
    padding: 1.1rem 1.25rem;
    min-height: 48px;
  }
}

/* ── iPhone-specific (≤430px — iPhone 15 Pro Max) ────────────────────────── */
@media (max-width: 430px) {
  /* Typography refinements */
  h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  h3 { font-size: 1.1rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .18em; }

  /* Buttons — plush Apple rounded */
  .btn { padding: .85rem 1.4rem; font-size: .82rem; border-radius: 14px; }

  /* Cards — more generous radius */
  .card { border-radius: 16px; }
  .card .ribbon { border-radius: 4px; font-size: .6rem; }

  /* Product card — full bleed at edge */
  .grid-2.grid, .grid-3.grid, .grid-4.grid { gap: .75rem; }

  /* Cart line items — compact but readable */
  .line-item {
    grid-template-columns: 70px 1fr auto !important;
    gap: .6rem !important;
  }
  .line-item img { width: 70px; height: 88px; border-radius: 10px; }

  /* Qty control — 44px touch targets */
  .qty button {
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 1rem;
  }
  .qty input {
    width: 42px; height: 36px;
    border-radius: 8px;
    font-size: .95rem;
  }

  /* Social cards in grid */
  .social-card {
    padding: 1.4rem 1.5rem;
    border-radius: 14px;
  }

  /* Announcement bar — compact */
  .site-header .announcement {
    font-size: .68rem;
    padding: .3rem .5rem;
    letter-spacing: .1em;
  }

  /* Free shipping bar — rounded */
  .free-ship-bar { border-radius: 10px; }

  /* Flash messages — rounded */
  .flash { border-radius: 10px; }

  /* Zelle info box — rounded */
  .zelle-info { border-radius: 14px; }

  /* Payment method pills — rounded */
  .pay-methods label { border-radius: 10px; min-height: 48px; }

  /* Square card container — rounded */
  #stripe-card, #square-card-container { border-radius: 10px; }
}

/* ── Cart page — responsive grid fix ─────────────────────────────────────── */
@media (max-width: 720px) {
  .container .grid[style*="2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .container .grid[style*="2fr 1fr"] > aside {
    position: static !important;
  }
}

/* ── Cookie consent banner — Apple-style ─────────────────────────────────── */
#cookie-banner {
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -4px 30px rgba(0,0,0,.3) !important;
}
@media (max-width: 540px) {
  #cookie-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .75rem !important;
    padding: 1rem 1.25rem !important;
    font-size: .82rem !important;
  }
  #cookie-banner span { min-width: 0 !important; }
  #cookie-accept, #cookie-decline {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: .85rem !important;
  }
}

/* ── Mobile nav — Apple-smooth ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .mobile-nav {
    border-right: none;
    box-shadow: 8px 0 30px rgba(0,0,0,.5);
  }
  .mobile-nav .mn-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .mn-toggle {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ── Drawer (cart) — Apple corner radius ─────────────────────────────────── */
@media (max-width: 540px) {
  .drawer {
    width: 100vw;
    border-left: none;
    border-radius: 0;
  }
}

/* ── Breadcrumbs — wrap nicely on mobile ─────────────────────────────────── */
@media (max-width: 430px) {
  .breadcrumb { font-size: .72rem; gap: .3rem; }
}

/* ── Lightbox — safe area aware ──────────────────────────────────────────── */
@media (max-width: 430px) {
  .lightbox { padding: env(safe-area-inset-top, .5rem) .5rem env(safe-area-inset-bottom, .5rem); }
  .lightbox-close { top: calc(env(safe-area-inset-top, .5rem) + .5rem); }
}

/* ── Safe area padding for notch/dynamic island ──────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-buy {
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  }
  #cookie-banner {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  }
  footer .legal {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
