/* ===========================================================
   JENESIS2 — Design System
   Direction: "Illuminated thread" — stitched-line motifs tie
   the garment (fashion) to the verse (faith). Deep indigo ink
   + brass + garnet on warm parchment, in place of the usual
   black/gold or cream/terracotta defaults.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --paper: #f7f2e7;
  --paper-deep: #efe7d6;
  --ink: #1b2440;
  --ink-soft: #2a3358;
  --brass: #b08d46;
  --brass-light: #cba764;
  --garnet: #8c2f39;
  --garnet-light: #a8434e;
  --thread: #d8c39c;
  --text: #26241e;
  --text-muted: #6b6459;
  --cream-text: #f7f2e7;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  /* Layout */
  --max: 1280px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--garnet); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Stitch-line signature motif ----------
   A running-stitch dashed rule used as the site's recurring
   device: section dividers, card frames, badge underlines. */
.stitch {
  border: none;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 16px);
  opacity: 0.7;
}
.stitch-frame {
  position: relative;
  border: 1px dashed var(--thread);
  border-radius: var(--radius);
}
.stitch-x::before, .stitch-x::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-top: 1px dashed var(--brass);
  border-left: 1px dashed var(--brass);
}
.stitch-x::before { top: -1px; left: -1px; }
.stitch-x::after { bottom: -1px; right: -1px; transform: rotate(180deg); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: var(--brass-light);
  text-align: center; padding: 9px 16px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 231, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--thread);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: 2px; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.logo-icon-img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.logo .mark { color: var(--garnet); font-style: italic; font-weight: 500; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--text-muted); text-decoration: none;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--garnet) 0 5px, transparent 5px 10px);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cart {
  background: var(--ink); color: var(--brass-light); border: none;
  padding: 10px 20px; font-family: var(--font-body); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.nav-cart:hover { background: var(--garnet); color: var(--paper); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 700; text-decoration: none;
  padding: 15px 34px; cursor: pointer; transition: all 0.25s ease;
  border-radius: var(--radius);
}
.btn-primary { background: var(--garnet); color: var(--paper); border: 1.5px solid var(--garnet); }
.btn-primary:hover { background: transparent; color: var(--garnet); }
.btn-dark { background: var(--ink); color: var(--brass-light); border: 1.5px solid var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border: 1.5px solid rgba(247,242,231,0.4); }
.btn-ghost-light:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Section header ---------- */
.eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--garnet); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: '✦ '; color: var(--brass); }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--garnet); font-weight: 400; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-top: 14px; line-height: 1.7; max-width: 520px; }

section { padding: 96px 0; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
  background: var(--ink); min-height: 88vh; position: relative;
}
.hero-copy {
  padding: 90px clamp(28px, 6vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brass-light); font-weight: 700; margin-bottom: 26px;
}
.hero-eyebrow::before { content: '✦ '; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 6vw, 78px); line-height: 1.02; color: var(--paper);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--brass-light); font-weight: 500; }
.hero-lede {
  font-size: 15px; line-height: 1.85; color: rgba(247,242,231,0.62);
  max-width: 400px; margin-top: 32px; font-weight: 300;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-cta {
  font-size: 14px; padding: 19px 42px; box-shadow: 0 10px 28px rgba(140,47,57,0.35);
}
.btn-hero-cta:hover { box-shadow: 0 10px 24px rgba(140,47,57,0.18); }
.nav-shop-btn { padding: 11px 22px; font-size: 11px; }

.hero-visual {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 30%, rgba(176,141,70,0.18), transparent 60%),
              linear-gradient(160deg, #232c4d 0%, #171f38 60%, #12182c 100%);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.verse-card {
  position: relative; z-index: 2; text-align: left; max-width: 380px;
  padding: 48px 40px; background: rgba(247,242,231,0.04);
  border: 1px dashed rgba(203,167,100,0.45);
}
.verse-card .quote-mark {
  font-family: var(--font-display); font-size: 90px; line-height: 0.6;
  color: var(--brass); opacity: 0.35; display: block; margin-bottom: 8px;
}
.verse-text {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 23px; line-height: 1.5; color: var(--paper); margin-bottom: 18px;
}
.verse-ref { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--brass-light); font-weight: 700; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--brass); display: flex; flex-wrap: wrap;
  justify-content: space-around; align-items: center; padding: 26px 40px;
}
.stat { text-align: center; padding: 6px 18px; }
.stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: #4a3410; font-weight: 700; margin-top: 6px; }

/* ---------- Product grid ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.filter-chip {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  padding: 9px 18px; border: 1px solid var(--thread); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s; border-radius: 999px;
}
.filter-chip:hover { border-color: var(--garnet); color: var(--garnet); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--brass-light); }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px;
}
.product-card {
  background: transparent; cursor: pointer; text-decoration: none; color: inherit;
  display: block; position: relative;
}
.product-media {
  aspect-ratio: 4/5; overflow: hidden; position: relative;
  background: var(--paper-deep); border: 1px solid var(--thread);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-media .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 46px; opacity: 0.25;
}
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--garnet); color: var(--paper);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  padding: 5px 11px; z-index: 2;
}
.product-view {
  position: absolute; inset-inline: 12px; bottom: 12px;
  background: var(--ink); color: var(--brass-light); text-align: center;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  padding: 11px; opacity: 0; transform: translateY(8px);
  transition: all 0.25s ease;
}
.product-card:hover .product-view { opacity: 1; transform: translateY(0); }
.product-info { padding: 16px 2px 0; }
.product-tag { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.product-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.product-price { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--garnet); font-weight: 500; }

.state-block { text-align: center; padding: 70px 20px; }
.state-block .icon { font-size: 38px; margin-bottom: 16px; }
.state-block h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 10px; color: var(--ink); }
.state-block p { color: var(--text-muted); max-width: 460px; margin: 0 auto; font-size: 14px; line-height: 1.7; }
.state-block .actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.spinner {
  width: 34px; height: 34px; border: 2px solid var(--thread); border-top-color: var(--garnet);
  border-radius: 50%; margin: 0 auto 18px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Panels on ink background ---------- */
.panel-dark { background: var(--ink); }
.panel-dark .section-title { color: var(--paper); }
.panel-dark .section-sub { color: rgba(247,242,231,0.55); }

/* ---------- Mission / feature blocks ---------- */
.mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.mission-text p { font-size: 14.5px; line-height: 1.9; color: var(--text-muted); margin-bottom: 16px; }
.pull-verse {
  border-left: 2px dashed var(--brass); padding-left: 22px; margin: 26px 0;
}
.pull-verse p { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.pull-verse cite { font-size: 10px; letter-spacing: 2.5px; color: var(--garnet); text-transform: uppercase; font-weight: 700; font-style: normal; }

.value-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card { background: var(--paper); padding: 30px 24px; text-align: left; }
.value-card .num { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 14px; margin-bottom: 10px; }
.value-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.value-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  padding: 34px 26px; text-align: center; border-right: 1px dashed rgba(216,195,156,0.25);
}
.feature-item:last-child { border-right: none; }
.feature-item .fi-icon { font-size: 24px; margin-bottom: 14px; display: block; }
.feature-item h5 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--brass-light); margin-bottom: 8px; }
.feature-item p { font-size: 12px; color: rgba(247,242,231,0.45); line-height: 1.6; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.t-card { background: var(--paper-deep); padding: 38px 30px; position: relative; }
.t-card.featured { background: var(--ink); }
.t-stars { color: var(--garnet); font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.t-card.featured .t-stars { color: var(--brass-light); }
.t-text { font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 22px; }
.t-card.featured .t-text { color: var(--paper); }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--garnet); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.t-name { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink); }
.t-card.featured .t-name { color: var(--paper); }
.t-role { font-size: 10px; letter-spacing: 1.5px; color: var(--garnet); text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.t-card.featured .t-role { color: var(--brass-light); }

/* ---------- Newsletter / CTA ---------- */
.cta-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center;
}
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: var(--brass-light); }
.nl-row { display: flex; gap: 0; }
.nl-input {
  flex: 1; padding: 15px 18px; border: 1px dashed rgba(216,195,156,0.4);
  background: rgba(247,242,231,0.04); color: var(--paper); font-family: var(--font-body);
  font-size: 13px; outline: none;
}
.nl-input::placeholder { color: rgba(247,242,231,0.3); }
.nl-row .btn { border-radius: 0; }
.nl-note { font-size: 11px; color: rgba(247,242,231,0.35); }

/* ---------- Footer ---------- */
footer { background: #14192c; padding: 64px 0 30px; color: rgba(247,242,231,0.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--paper); letter-spacing: 1px; margin-bottom: 6px; }
.footer-brand .mark { color: var(--garnet-light); font-style: italic; }
.footer-tag { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass-light); margin-bottom: 16px; }
.footer-desc { font-size: 12.5px; line-height: 1.8; max-width: 280px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px; border: 1px dashed rgba(216,195,156,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  color: rgba(247,242,231,0.5); text-decoration: none; transition: all 0.2s;
}
.social-btn:hover { border-color: var(--brass-light); color: var(--brass-light); }
.footer-col-title { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: var(--brass-light); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 12.5px; text-decoration: none; color: rgba(247,242,231,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--brass-light); }
.footer-bottom {
  border-top: 1px dashed rgba(216,195,156,0.15); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px;
}
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badge { background: rgba(247,242,231,0.06); padding: 4px 10px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 11px; letter-spacing: 1px; color: var(--text-muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--garnet); }

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 44px 0 96px;
}
.pd-media { position: sticky; top: 100px; }
.pd-media-main { aspect-ratio: 1; background: var(--paper-deep); border: 1px solid var(--thread); overflow: hidden; }
.pd-media-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 70px; height: 70px; border: 1px solid var(--thread); overflow: hidden; cursor: pointer; background: var(--paper-deep); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--garnet); }
.pd-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 14px; }
.pd-title { font-family: var(--font-display); font-size: clamp(28px,3.4vw,42px); font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.1; }
.pd-price { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--garnet); font-weight: 500; margin-bottom: 22px; }
.pd-desc { font-size: 14px; line-height: 1.85; color: var(--text-muted); margin-bottom: 28px; }
.pd-field { margin-bottom: 22px; }
.pd-field label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pd-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-opt {
  padding: 9px 16px; border: 1px solid var(--thread); background: transparent;
  font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.pd-opt.active, .pd-opt:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pd-actions { display: flex; gap: 12px; margin-top: 30px; }
.pd-meta-list { list-style: none; margin-top: 30px; border-top: 1px dashed var(--thread); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pd-meta-list li { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 8px; }
.pd-meta-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- About page extras ---------- */
.timeline-free { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 40px; }
.tf-card { padding: 30px; border: 1px dashed var(--thread); }
.tf-card .yr { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 15px; margin-bottom: 10px; }
.tf-card h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.tf-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--thread); background: var(--paper);
  font-family: var(--font-body); font-size: 13px; outline: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--garnet); }
.contact-info-card { background: var(--ink); padding: 40px; color: var(--paper); }
.contact-info-card h4 { font-family: var(--font-display); font-size: 20px; margin-bottom: 20px; color: var(--paper); }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 18px; font-size: 13px; color: rgba(247,242,231,0.7); }
.contact-info-row strong { color: var(--brass-light); display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 3px; }

/* ---------- Founder story ---------- */
.founder-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.founder-portrait {
  padding: 50px 34px; text-align: center; background: var(--paper-deep);
}
.founder-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--ink); color: var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
}
.founder-sig { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.founder-role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--garnet); font-weight: 700; }
.founder-copy p { font-size: 14.5px; line-height: 1.9; color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(27,36,64,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 200;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--paper); z-index: 201; box-shadow: -12px 0 30px rgba(27,36,64,0.15);
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px dashed var(--thread);
}
.cart-drawer-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.cart-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--text-muted); }
.cart-empty span { font-size: 32px; display: block; margin-bottom: 12px; }
.cart-empty p { margin-bottom: 18px; font-size: 13px; }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--thread); position: relative; }
.cart-item-media {
  width: 64px; height: 64px; flex-shrink: 0; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 20px;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.cart-item-variant { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.qty-stepper { display: flex; align-items: center; gap: 10px; border: 1px solid var(--thread); padding: 3px 10px; }
.qty-stepper button { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--ink); width: 16px; }
.qty-stepper span { font-size: 12px; min-width: 14px; text-align: center; }
.cart-item-price { font-family: var(--font-display); font-style: italic; color: var(--garnet); font-size: 13px; }
.cart-item-remove { position: absolute; top: 16px; right: 0; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px; }
.cart-drawer-foot { padding: 20px 24px 26px; border-top: 1px dashed var(--thread); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.cart-note { font-size: 11px; color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Track order page ---------- */
.track-box { max-width: 560px; margin: 0 auto; }
.track-result { margin-top: 40px; border: 1px dashed var(--thread); padding: 30px; }
.track-status-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  padding: 6px 14px; background: var(--garnet); color: var(--paper); margin-bottom: 16px;
}
.track-status-badge.delivered { background: #3d6b4a; }
.track-status-badge.shipped { background: var(--brass); color: var(--ink); }
.track-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--thread); font-size: 13px; }
.track-row:last-child { border-bottom: none; }
.track-row strong { color: var(--ink); }
.track-events { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.track-event { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-muted); }
.track-event time { color: var(--brass); font-weight: 600; white-space: nowrap; }

/* ===========================================================
   Motion layer — cinematic scroll storytelling & micro-interactions.
   Purely additive: works alongside js/motion.js. Respects
   prefers-reduced-motion (see rule near the top of this file).
   =========================================================== */

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* Hero entrance (plays immediately, not scroll-triggered) */
.hero-in {
  opacity: 0; transform: translateY(18px);
  animation: heroIn 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Hero: slow-shifting warm light + floating dust */
.hero-visual { background-size: 160% 160%; animation: heroGlow 14s ease-in-out infinite alternate; transition: transform 0.2s ease-out; }
@keyframes heroGlow {
  0%   { background-position: 20% 20%; }
  100% { background-position: 80% 60%; }
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-particles span {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: rgba(203,167,100,0.5);
  animation-name: dustRise; animation-timing-function: ease-in; animation-iteration-count: infinite;
}
@keyframes dustRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  100% { transform: translateY(-420px) translateX(14px); opacity: 0; }
}
.verse-card { transition: transform 0.2s ease-out; }

/* Product / value / testimonial card tilt + deepened hover shadow */
.product-card, .value-card, .t-card {
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
}
.product-card:hover, .value-card:hover, .t-card:hover {
  box-shadow: 0 26px 46px -18px rgba(27,36,64,0.28);
}

/* Light sweep across product artwork on hover */
.product-media { position: relative; }
.product-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.product-card:hover .product-media::after { transform: translateX(120%); }

/* Frosted quick-view overlay (glassmorphism) */
.product-view {
  background: rgba(27,36,64,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Universal button lift */
.btn { transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

/* Cursor glow (desktop only, injected by motion.js) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,70,0.16), transparent 70%);
  pointer-events: none; z-index: 5; opacity: 0; transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-visual { animation: none !important; }
  .hero-particles { display: none !important; }
  .product-card, .value-card, .t-card { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 360px; }
  .mission, .cta-split, .product-detail, .contact-grid, .founder-row { grid-template-columns: 1fr; gap: 40px; }
  .pd-media { position: static; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px dashed rgba(216,195,156,0.25); }
  .t-grid, .timeline-free { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-shop-btn { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .stat-strip { gap: 18px; }
  .value-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
