/* =========================================================
   Demira Store — Premium editorial UI
   Fraunces (display) + Inter (body)
   ========================================================= */

:root {
  --bg: #FAF7F2;
  --bg-2: #F1EBE0;
  --ink: #0F0F0E;
  --ink-2: #24231F;
  --ink-3: #3A3833;
  --muted: #5F5C55;
  --muted-2: #8A857C;
  --line: #E5DDCD;
  --line-2: #EFE7D6;
  --gold: #A88347;
  --gold-2: #7B5F2F;
  --olive: #4A5232;
  --cream: #FBF7EE;
  --white: #FFFFFF;
  --danger: #B03A3A;
  --success: #2F7A3A;

  --radius: 4px;
  --radius-card: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(30,20,10,.10);
  --shadow-lg: 0 30px 80px rgba(30,20,10,.18);

  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 48;
}
h1 { font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 96; }
p { margin: 0 0 1em; color: var(--ink-3); }

.container { width: min(1220px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }

/* ============ Announcement ============ */
.announcement { background: var(--ink); color: var(--cream); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; overflow: hidden; font-weight: 500; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 40px; white-space: nowrap; animation: marq 45s linear infinite; padding: 11px 0; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,242,.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; height: var(--header-h);
}
.header-left { display: flex; align-items: center; gap: 4px; }
.header-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }

/* ============ Wordmark Logo ============ */
.logo {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.logo-word {
  font-family: var(--font-serif); font-weight: 500; font-size: 26px;
  letter-spacing: .01em; line-height: 1;
  font-variation-settings: "SOFT" 40, "opsz" 48;
}
.logo-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  display: inline-block;
}
.logo-sub {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2);
  line-height: 1;
}

.menu-btn, .icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 4px;
  color: var(--ink); transition: background .15s;
}
.menu-btn:hover, .icon-btn:hover { background: var(--line-2); }
.menu-btn svg, .icon-btn svg { width: 22px; height: 22px; }

/* ============ Right-side Sidenav ============ */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(15,15,14,.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.sidenav {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: min(400px, 90vw);
  background: var(--cream);
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(.7,0,.2,1);
  z-index: 70; display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.15);
}
.sidenav.open { transform: translateX(0); }
.sidenav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.sidenav-close {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--ink); transition: background .15s, border-color .15s;
}
.sidenav-close:hover { background: var(--bg); border-color: var(--ink); }
.sidenav-body { flex: 1; overflow-y: auto; padding: 20px 18px; }
.sidenav-section-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 8px; font-weight: 600; }
.sidenav-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 4px;
  font-size: 15.5px; font-weight: 500; color: var(--ink); transition: background .15s;
}
.sidenav-link .ico { font-size: 18px; width: 24px; text-align: center; }
.sidenav-link .arrow { margin-left: auto; opacity: .3; transition: opacity .15s, transform .15s; color: var(--gold-2); }
.sidenav-link:hover { background: var(--bg); }
.sidenav-link:hover .arrow { opacity: 1; transform: translateX(3px); }
.sidenav-footer { padding: 22px 26px; border-top: 1px solid var(--line); }
.sidenav-tag { font-size: 11.5px; color: var(--muted); text-align: center; margin: 12px 0 0; letter-spacing: .04em; }

/* ============ Buttons (≤ 5px radius) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 14.5px;
  letter-spacing: .01em; transition: all .2s; border: 1px solid transparent;
  white-space: nowrap; font-family: var(--font-sans);
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(168,131,71,.35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ Hero ============ */
.home-hero {
  padding: clamp(60px, 10vw, 130px) 0 clamp(50px, 8vw, 90px);
  text-align: center; position: relative;
}
.hero-eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600; margin-bottom: 20px;
  padding: 6px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--cream);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 400; line-height: 1.02; letter-spacing: -.02em;
  max-width: 950px; margin: 0 auto 24px;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  max-width: 620px; margin: 0 auto 36px; line-height: 1.6;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 620px; margin-inline: auto;
}
.hero-stat .n { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 38px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.hero-stat .l { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; font-weight: 500; }

.eyebrow { display: inline-block; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
.section-title { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 50px); font-weight: 500; letter-spacing: -.02em; max-width: 720px; color: var(--ink); }
.section-title.center { margin-inline: auto; }
.section-lede { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 8px; line-height: 1.6; }

/* ============ Categories ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; transition: all .25s; position: relative; overflow: hidden;
  color: var(--ink);
}
.cat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(168,131,71,.06)); opacity: 0; transition: opacity .25s; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.cat-card:hover::before { opacity: 1; }
.cat-ico { font-size: 32px; margin-bottom: 12px; }
.cat-card h3 { font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.cat-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cat-arrow { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }

/* ============ Product card ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.prod-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
  color: var(--ink);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.prod-card .thumb { aspect-ratio: 4/3; background: var(--bg-2); position: relative; overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .thumb img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { display: inline-block; padding: 5px 11px; border-radius: 4px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-olive { background: var(--olive); color: var(--cream); }
.badge-oos { background: var(--danger); color: #fff; }
.prod-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod-brand { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.prod-title { font-family: var(--font-serif); font-size: 21px; font-weight: 500; margin: 6px 0 4px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.prod-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; flex: 1; line-height: 1.55; }
.prod-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.prod-price { display: flex; flex-direction: column; }
.prod-price .curr { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.prod-price .orig { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.prod-cta { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }

/* ============ Why cards ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.why-card .ico { font-size: 26px; margin-bottom: 10px; }
.why-card h4 { font-size: 19px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============ Category / breadcrumbs ============ */
.breadcrumbs { padding: 18px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs .sep { margin: 0 8px; opacity: .4; }
.cat-hero { text-align: center; padding: 30px 0 20px; }
.cat-hero .ico { font-size: 42px; margin-bottom: 12px; }

/* ============ PDP ============ */
.pdp-hero {
  display: grid; grid-template-columns: 1fr; gap: 44px;
  padding: 24px 16px 60px; align-items: start;
}
@media (min-width: 960px) { .pdp-hero { grid-template-columns: 1.15fr 1fr; gap: 60px; padding: 40px 0 80px; } }

.gallery { position: relative; }
.gal-viewport { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); aspect-ratio: 4/3; }
.gal-track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.7,0,.2,1); }
.gal-slide { min-width: 100%; height: 100%; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 4px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 20px; z-index: 3; color: var(--ink); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gal-dot { width: 8px; height: 4px; border-radius: 2px; background: var(--line); transition: all .2s; }
.gal-dot.active { background: var(--gold); width: 24px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 14px; }
.gal-thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 1; opacity: .55; transition: opacity .2s, transform .2s; border: 2px solid transparent; }
.gal-thumb.active { opacity: 1; border-color: var(--gold); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-title { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 44px); font-weight: 500; margin: 12px 0 8px; letter-spacing: -.015em; color: var(--ink); }
.product-subtitle { font-size: 17px; color: var(--muted); margin-bottom: 14px; }
.product-desc { font-size: 15.5px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.65; }
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.price-current { font-family: var(--font-serif); font-size: 38px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.price-original { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 11px; padding: 4px 10px; border-radius: 4px; background: var(--olive); color: var(--cream); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--success); margin-bottom: 22px; font-weight: 500; }
.stock.oos { color: var(--danger); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47,122,58,.15); }
.cta-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-strip { list-style: none; padding: 20px 0 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.trust-strip li { display: flex; align-items: center; gap: 8px; }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.hl-card { text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 14px; }
.hl-icon { font-size: 26px; margin-bottom: 6px; }
.hl-val { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.hl-lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; font-weight: 500; }

.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-3); }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } }
.split-media img { border-radius: var(--radius-lg); }
.spec-list { list-style: none; padding: 0; margin: 20px 0 0; }
.spec-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; gap: 20px; }
.spec-list strong { font-weight: 600; color: var(--ink); }
.spec-list span { color: var(--muted); text-align: right; }

.spec-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 600; color: var(--ink); background: var(--bg-2); width: 40%; }
.spec-table td { color: var(--ink-3); }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { list-style: none; padding: 20px 0; font-size: 16.5px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--gold); transition: transform .2s; font-family: var(--font-serif); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ============ Services ============ */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: all .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.svc-ico { font-size: 28px; margin-bottom: 10px; }
.svc-card h3 { font-size: 21px; margin-bottom: 6px; }
.svc-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============ Contact / Forms ============ */
.split-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1.3fr 1fr; gap: 60px; } }

.form label { display: block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.form input, .form textarea, .form select {
  display: block; width: 100%; margin-top: 8px;
  padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .15s;
  font-family: var(--font-sans);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--ink); }
.form input.invalid, .form textarea.invalid { border-color: var(--danger); }
.field-err { display: block; font-size: 12px; color: var(--danger); min-height: 16px; margin-top: 4px; font-weight: 500; letter-spacing: 0; }
.honeypot { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 500; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }

.contact-info { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-info h3 { font-size: 21px; margin-bottom: 16px; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-3); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.contact-info a { color: var(--gold-2); font-weight: 600; }

/* ============ Modal / lightbox ============ */
.modal { position: fixed; inset: 0; background: rgba(15,15,14,.6); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; max-width: 460px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; font-size: 18px; transition: background .15s; color: var(--ink); }
.modal-close:hover { background: var(--line-2); }
.modal-card h3 { font-size: 25px; margin-bottom: 4px; }
.modal-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 4px; }
.lb-close { position: absolute; top: 20px; right: 20px; color: #fff; width: 44px; height: 44px; border-radius: 4px; background: rgba(255,255,255,.15); font-size: 20px; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--bg); padding: 60px 0 30px; margin-top: 40px; }
.footer h5 { font-family: var(--font-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); font-weight: 600; margin-bottom: 14px; }
.footer p { color: rgba(250,247,242,.7); font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; font-size: 14px; color: rgba(250,247,242,.75); }
.footer a { transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .logo { color: var(--cream); margin-bottom: 12px; }
.footer-brand .logo-word { color: var(--cream); }
.footer-brand .logo-sub { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(250,247,242,.6); letter-spacing: .04em; }

/* ============ FABs ============ */
.fab-top, .fab-wa {
  position: fixed; z-index: 45; width: 48px; height: 48px; border-radius: 4px;
  display: grid; place-items: center; box-shadow: var(--shadow-md); transition: all .2s;
}
.fab-top { bottom: 88px; right: 20px; background: var(--ink); color: var(--cream); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { transform: translateY(-2px); }
.fab-wa { bottom: 24px; right: 20px; background: #25D366; color: #fff; }
.fab-wa svg { width: 24px; height: 24px; }
.fab-wa:hover { transform: scale(1.06); }

body.has-mobile-buy .fab-top { bottom: 158px; }
body.has-mobile-buy .fab-wa { bottom: 94px; }

/* ============ Mobile Buy Bar ============ */
.mobile-buy {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 44;
  background: var(--cream); border-top: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  transform: translateY(100%); transition: transform .3s;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.mobile-buy.show { transform: translateY(0); }
.mobile-buy .m-price { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.mobile-buy .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-buy { display: none !important; } }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */
.adm-body { background: #F5F1E8; color: var(--ink); min-height: 100vh; font-family: var(--font-sans); }
.adm-topbar {
  background: var(--ink); color: var(--cream);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.adm-topbar .brand { display: flex; align-items: center; gap: 10px; }
.adm-topbar .brand .logo-word { color: var(--cream); font-size: 22px; }
.adm-topbar .brand .logo-sub { color: var(--gold); }
.adm-topbar .user-email { font-size: 13px; color: #d9cfb8; }
.adm-topbar .actions { display: flex; gap: 8px; }
.adm-topbar .actions .adm-btn-ghost {
  background: transparent; color: var(--cream); border-color: rgba(251,247,238,.35);
}
.adm-topbar .actions .adm-btn-ghost:hover:not(:disabled) {
  background: rgba(251,247,238,.08); border-color: var(--cream); color: #fff;
}

.adm-tabs {
  background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; gap: 4px; padding: 0 24px; overflow-x: auto;
}
.adm-tab {
  padding: 15px 18px; font-size: 14px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; background: transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.adm-tab.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.adm-tab:hover:not(.active) { color: var(--ink-3); }

.adm-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }

.adm-heading {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 22px;
}
.adm-heading h2 { font-size: 28px; margin: 0; color: var(--ink); }
.adm-heading .count { font-size: 13px; color: var(--muted); margin-top: 2px; }

.adm-btn {
  padding: 10px 18px; border-radius: 4px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
  font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.2;
}
.adm-btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.adm-btn-primary:hover:not(:disabled) { background: var(--ink-2); }
.adm-btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.adm-btn-gold:hover:not(:disabled) { background: var(--gold-2); border-color: var(--gold-2); }
.adm-btn-ghost { background: var(--white); color: var(--ink); border-color: #b8b1a3; font-weight: 600; }
.adm-btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: #f5efe3; color: var(--ink); }
.adm-btn-danger { background: var(--white); color: #7a1e1e; border-color: #b57373; font-weight: 600; }
.adm-btn-danger:hover:not(:disabled) { background: #fef0f0; border-color: #7a1e1e; }
.adm-btn:disabled { opacity: .55; cursor: not-allowed; }
.adm-btn-sm { padding: 7px 12px; font-size: 12.5px; }

.adm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px; box-shadow: var(--shadow-sm);
}

/* Product list rows — bulletproof responsive grid.
   Mobile: image + info on top, actions below in a wrapping row.
   Desktop (≥720px): image | info | actions in a single row. */
.adm-prod-list { display: grid; gap: 12px; }
.adm-prod-row {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px; display: grid; gap: 12px;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    "img info"
    "actions actions";
  align-items: start;
}
.adm-prod-row .r-img {
  grid-area: img; width: 84px; height: 84px; object-fit: cover;
  border-radius: 6px; background: var(--bg-2);
}
.adm-prod-row .r-info { grid-area: info; min-width: 0; overflow-wrap: anywhere; }
.adm-prod-row .r-title {
  font-weight: 600; color: var(--ink); font-size: 15.5px; margin-bottom: 4px;
  line-height: 1.35; word-break: break-word;
}
.adm-prod-row .r-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.adm-prod-row .r-meta .tag { display: inline-block; margin-left: 8px; font-weight: 600; }
.adm-prod-row .r-meta .tag-feat { color: var(--gold-2); }
.adm-prod-row .r-meta .tag-oos { color: var(--danger); }
.adm-prod-row .r-actions {
  grid-area: actions; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line-2);
}
.adm-prod-row .r-actions .adm-btn { width: 100%; justify-content: center; }
@media (min-width: 520px) {
  .adm-prod-row .r-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .adm-prod-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "img info actions";
    align-items: center;
  }
  .adm-prod-row .r-actions {
    padding-top: 0; border-top: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .adm-prod-row .r-actions .adm-btn { width: auto; }
}

/* Admin form */
.adm-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; }
.adm-form h2 { font-size: 24px; margin: 0 0 4px; color: var(--ink); }
.adm-form .subtitle { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.adm-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .adm-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .adm-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.adm-field { display: grid; gap: 5px; }
.adm-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.adm-field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.adm-input, .adm-select, .adm-textarea {
  width: 100%; padding: 10px 12px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font: inherit; font-family: var(--font-sans);
  font-size: 14px; transition: border-color .15s;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus { outline: 0; border-color: var(--ink); }
.adm-textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

.adm-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.adm-check input { accent-color: var(--gold); }

/* File input — obvious drop-target style */
.adm-file-wrap { position: relative; }
.adm-file-label {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 2px dashed #b8b1a3; border-radius: 8px;
  background: #fdfbf5; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.adm-file-label:hover, .adm-file-wrap:focus-within .adm-file-label {
  border-color: var(--gold); background: #fff;
}
.adm-file-icon { font-size: 28px; line-height: 1; }
.adm-file-text { display: grid; gap: 3px; }
.adm-file-text strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.adm-file-hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.adm-file {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.adm-image-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.adm-image-tile { position: relative; }
.adm-image-tile img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.adm-image-tile .rm {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; border: 0; cursor: pointer;
}

/* Repeatable rows (highlights / specs) */
.adm-repeat { display: grid; gap: 10px; }
.adm-repeat-row {
  display: grid; gap: 8px; align-items: end;
  padding: 12px; background: #fafafa; border: 1px solid var(--line); border-radius: 6px;
}
.adm-repeat-row.hl { grid-template-columns: 80px 1fr 1fr auto; }
.adm-repeat-row.kv { grid-template-columns: 1fr 1fr auto; }
@media (max-width: 640px) {
  .adm-repeat-row.hl, .adm-repeat-row.kv { grid-template-columns: 1fr; }
  .adm-repeat-row .adm-btn-sm { justify-self: end; }
}
.adm-repeat-row .adm-input { padding: 8px 10px; font-size: 13.5px; }
.adm-repeat-add { align-self: start; }

.adm-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-2); margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid var(--line);
}
.adm-section-label:first-of-type { border-top: 0; padding-top: 0; }

.adm-alert { padding: 12px 14px; border-radius: 4px; font-size: 13.5px; margin: 12px 0; font-weight: 500; }
.adm-alert.err { background: #fdecec; color: #7a1e1e; border: 1px solid #f2c8c8; }
.adm-alert.ok { background: #e8f5ea; color: #1e5a2e; border: 1px solid #b8dfc0; }

.adm-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Auth page */
.adm-auth {
  min-height: 100vh; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; padding: 24px; font-family: var(--font-sans);
}
.adm-auth-card {
  background: #1a1a19; border: 1px solid #2a2a28; border-radius: 8px;
  padding: 34px 30px; width: 100%; max-width: 420px;
}
.adm-auth-card h1 { font-family: var(--font-serif); font-size: 28px; margin: 0 0 4px; color: var(--cream); }
.adm-auth-card .subtitle { color: #B7A98A; font-size: 13.5px; margin-bottom: 24px; }
.adm-auth-card label { display: block; font-size: 13px; color: #B7A98A; margin-bottom: 6px; font-weight: 500; }
.adm-auth-card input {
  width: 100%; padding: 11px 13px; margin-bottom: 14px;
  background: #0F0F0E; border: 1px solid #333; border-radius: 4px;
  color: var(--cream); font: inherit; font-size: 14px;
}
.adm-auth-card input:focus { outline: 0; border-color: var(--gold); }
.adm-auth-card button.primary {
  width: 100%; padding: 12px; background: var(--gold); color: var(--ink);
  border: 0; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: var(--font-sans);
}
.adm-auth-card button.primary:hover { background: #b8934f; }
.adm-auth-card .toggle {
  background: none; border: 0; color: var(--gold); font-size: 13px; cursor: pointer;
  margin-top: 16px; padding: 0; font-family: var(--font-sans);
}
.adm-auth-card .msg { padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.adm-auth-card .msg.err { background: #3a1e1e; color: #f5c8c8; }
.adm-auth-card .msg.ok { background: #1e3a2b; color: #c8f5d5; }
