/* ============================================================
   Nomadique Glow — storefront styles
   Buildless. System fonts, theme-aware, no external assets.
   ============================================================ */

:root {
  --bg:        #f7f2ea;
  --bg-deep:   #efe6d8;
  --surface:   #fffdfa;
  --surface-2: #f2eadd;
  --text:      #241f1a;
  --muted:     #7d7267;
  --accent:    #b96f4f;
  --accent-ink:#9c5739;
  --accent-soft:#e8c4ae;
  --sage:      #7d8a72;
  --border:    #e4d9c8;
  --ok:        #4a7a52;
  --radius:    16px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow-sm: 0 1px 2px rgba(36,31,26,.04), 0 4px 12px rgba(36,31,26,.05);
  --shadow:    0 2px 6px rgba(36,31,26,.06), 0 18px 44px rgba(36,31,26,.10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14110d;
    --bg-deep:   #1b1712;
    --surface:   #1f1a14;
    --surface-2: #272119;
    --text:      #f2ebe0;
    --muted:     #a1978a;
    --accent:    #d98f68;
    --accent-ink:#eaa982;
    --accent-soft:#5c3d2c;
    --sage:      #9aa88e;
    --border:    #332b21;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
    --shadow:    0 2px 6px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 50% at 85% -5%, color-mix(in srgb, var(--accent-soft) 55%, transparent) 0%, transparent 60%),
    radial-gradient(50% 45% at 5% 8%, color-mix(in srgb, var(--sage) 18%, transparent) 0%, transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  display: flex; flex-direction: column; min-height: 100vh;
  position: relative;
}
/* subtle film grain over everything */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: var(--grain); opacity: .035; mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .05; } }
body > * { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--muted); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(36,31,26,.10), 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s ease, background .16s ease;
  text-decoration: none;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(36,31,26,.12), 0 14px 28px color-mix(in srgb, var(--accent) 36%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-ink); }
.btn.block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand-mark {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--text);
  letter-spacing: .005em; display: inline-flex; align-items: center; gap: .5ch;
}
.brand-mark::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--accent-soft), var(--accent) 70%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.brand-mark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { color: var(--text); font-size: .95rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .22s ease;
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { right: 0; }
.nav-spacer { flex: 1; }
.cart-link { position: relative; color: var(--text); font-weight: 600; }
.cart-badge {
  position: absolute; top: -9px; right: -14px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: none; align-items: center; justify-content: center;
}
.cart-badge.show { display: inline-flex; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { display: flex; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-meta div { font-size: .86rem; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--text); font-weight: 600; }

.hero-stage { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.hero-stage::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--accent-soft) 90%, transparent), color-mix(in srgb, var(--bg-deep) 90%, transparent) 68%);
  filter: blur(2px);
}
.hero-stage .art { position: relative; width: 62%; filter: drop-shadow(0 26px 40px rgba(36,31,26,.22)); }
.hero-tag {
  position: absolute; right: 2%; bottom: 12%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-stage { max-width: 380px; margin: 0 auto; }
}

/* ---------- marquee / trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; padding: 22px 24px;
  font-size: .88rem; color: var(--muted); letter-spacing: .02em; }
.trust span { display: inline-flex; align-items: center; gap: .55ch; }
.trust span::before { content: "✦"; color: var(--accent); }

/* ---------- product art (drawn in code, stands in for photography) ---------- */
.art svg { width: 100%; height: auto; display: block; }

/* real product photos fill their frame */
.card-img, .pdp-media, .cart-row .thumb { position: relative; overflow: hidden; }
img.pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-media img.pimg { object-fit: contain; padding: 6%; }
.soon { font-size: .9rem; font-weight: 600; color: var(--muted); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a:hover { text-decoration: none; }
.card-img {
  aspect-ratio: 1/1; display: grid; place-items: center; padding: 16%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent 62%),
    var(--surface-2);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.card:hover .card-img { transform: scale(1.04); }
.card-img .art { width: 68%; filter: drop-shadow(0 12px 18px rgba(36,31,26,.16)); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-body .name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.card-body .price { font-weight: 700; margin-top: auto; padding-top: 8px; }
.pill { display: inline-block; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.dots { display: flex; gap: 5px; margin-top: 2px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.oos { color: var(--muted); font-size: .82rem; font-weight: 500; }

/* ---------- philosophy band ---------- */
.band { background: color-mix(in srgb, var(--surface) 62%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.band-item .num { font-family: var(--serif); font-size: 1.05rem; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; margin-bottom: 14px; }
.band-item p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 800px) { .band-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 26px; align-items: start; }
.pdp-media {
  aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: grid; place-items: center; padding: 15%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent-soft) 65%, transparent), transparent 64%), var(--surface-2);
}
.pdp-media .art { width: 72%; filter: drop-shadow(0 22px 32px rgba(36,31,26,.2)); }
.pdp .price { font-size: 1.6rem; font-weight: 700; }
.field { margin: 24px 0; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 10px; }
.shades { display: flex; flex-wrap: wrap; gap: 10px; }
.shade {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 16px 9px 11px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s ease, background .15s ease;
}
.shade .dot { width: 13px; height: 13px; }
.shade[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 600; }
.shade:disabled { opacity: .4; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { background: transparent; border: 0; color: var(--text); width: 42px; height: 42px; font-size: 1.15rem; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 40px; text-align: center; font-weight: 600; }
.ingredients { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.ingredients ul { columns: 2; gap: 24px; padding-left: 18px; font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; gap: 28px; } .ingredients ul { columns: 1; } }

/* ---------- cart ---------- */
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border); }
.cart-row .thumb { width: 84px; height: 84px; border-radius: var(--radius-sm); display: grid; place-items: center; padding: 12px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 65%), var(--surface-2); }
.cart-row .thumb .art { width: 70%; }
.cart-row .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .84rem; text-decoration: underline; padding: 0; }
.cart-row .rm:hover { color: var(--accent-ink); }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.summary .line { display: flex; justify-content: space-between; margin: 9px 0; }
.summary .total { font-weight: 700; font-size: 1.18rem; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; gap: 30px; } }
.ship-hint { font-size: .85rem; color: var(--ok); margin: 4px 0 0; }
.ship-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--accent)); transition: width .4s ease; }

/* ---------- prose / legal ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.7em; }
.prose .placeholder { background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 2px 6px; border-radius: 4px; }

/* ---------- interior page header ---------- */
.page-head { padding: 74px 0 44px; border-bottom: 1px solid var(--border); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { font-size: 1.12rem; color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.about-grid p { margin-top: 0; }
.about-stage { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  border: 1px solid var(--border); display: grid; place-items: center; padding: 18%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 66%), var(--surface-2); }
.about-stage .art { width: 62%; filter: drop-shadow(0 22px 34px rgba(36,31,26,.2)); }
.pull { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--text);
  border-left: 2px solid var(--accent); padding-left: 22px; margin: 34px 0; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .about-stage { max-width: 340px; } }

/* ---------- faq accordion ---------- */
.faq-list { max-width: 780px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.14rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; font-weight: 300; color: var(--accent); transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list .answer { padding: 0 44px 24px 0; color: var(--muted); margin: 0; }

/* ---------- contact / info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.info-card .big { font-family: var(--serif); font-size: 1.5rem; color: var(--text); display: block; margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: color-mix(in srgb, var(--surface) 80%, transparent); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding: 56px 0 40px; }
.footer-grid h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.footer-grid a { display: block; color: var(--text); padding: 5px 0; font-size: .93rem; }
.footer-legal { border-top: 1px solid var(--border); padding: 20px 0; font-size: .8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- misc ---------- */
.notice { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .9rem; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .28s cubic-bezier(.2,.8,.3,1); z-index: 50; font-size: .9rem; font-weight: 500; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
