/* =========================================================
   RoDeshi — Design System
   Soft warm-white canvas. Three greens carry the brand:
     Forest #2C3E35 (signature), Olive #3F4B15 (depth), Moss #6E763F (detail)
   Type: Cormorant Garamond (heritage / editorial) + Instrument Sans (modern / functional)
   Full rules: TYPOGRAPHY.md
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* Canvas */
  --bg: #F4F0E7;          /* soft warm white: easy on the eyes, never stark */
  --bg-alt: #ECE7DA;      /* quiet stone band */
  --surface: #FAF8F3;     /* raised: cards, inputs, dropdowns */

  /* The three greens */
  --forest: #2C3E35;
  --forest-hover: #22312A;
  --olive: #3F4B15;
  --moss: #6E763F;

  /* Ink */
  --ink: #1F2A24;         /* main text, green-black */
  --ink-soft: #5B6259;    /* secondary text */
  --cream: #EDECD5;       /* text on green */
  --cream-soft: rgba(237, 236, 213, 0.72);

  /* Signals (small doses) */
  --warn: #8A4B2F;        /* low stock, errors */
  --live: #A2402F;        /* live now */

  --line: rgba(31, 42, 36, 0.12);
  --line-strong: rgba(31, 42, 36, 0.28);
  --line-on-dark: rgba(237, 236, 213, 0.18);

  /* Legacy names still used in some page markup */
  --clay: var(--forest); --clay-hover: var(--forest-hover);
  --peach: var(--cream); --ivory: var(--surface); --white: var(--surface);
  --charcoal: var(--ink); --warm-gray: var(--ink-soft);
  --bg-deep: var(--bg-alt); --sand: var(--bg-alt);
  --copper: var(--moss); --leaf: var(--moss); --burgundy: var(--warn);

  /* Type families */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: var(--serif); --font-sans: var(--sans);

  /* Type scale (see TYPOGRAPHY.md for the named scale) */
  --t-micro: 0.6875rem;     /* badges */
  --t-tiny: 0.75rem;        /* nav, buttons, labels (caps) */
  --t-small: 0.8125rem;     /* fine print */
  --t-small-md: 0.9375rem;  /* descriptions, support body */
  --t-medium: 1.0625rem;    /* body lead */
  --t-medium-lg: 1.3rem;    /* product names, summaries */
  --t-large: clamp(1.6rem, 2.2vw, 1.95rem);        /* section titles */
  --t-xl: clamp(2rem, 3vw, 2.6rem);                /* page titles */
  --t-display: clamp(2.3rem, 3.6vw, 3.1rem);       /* feature titles */
  --t-hero: clamp(2.7rem, 5vw, 4.1rem);            /* homepage hero only */

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius-s: 2px;
  --radius-m: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scrollbar: thin and quiet, no arrow buttons.
   Chrome/Edge/Safari use the ::-webkit rules; Firefox gets the standard properties. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(44, 62, 53, 0.28); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(44, 62, 53, 0.5); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(44, 62, 53, 0.35) transparent; }
}

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select, textarea { font-family: var(--sans); font-size: inherit; color: var(--ink); }
::selection { background: var(--forest); color: var(--cream); }
[hidden] { display: none !important; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 1.5px solid var(--moss); outline-offset: 3px; }
.skip-link { position: absolute; top: -48px; left: 12px; z-index: 999; background: var(--forest); color: var(--cream); padding: 12px 18px; transition: top 200ms var(--ease); }
.skip-link:focus { top: 12px; }

/* Breadcrumbs and overline labels are intentionally off site-wide */
.breadcrumb, .eyebrow { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }

.band-deep, .section-sand { background: var(--bg-alt); }
.band-green, .band-forest, .section-dark, .section-clay { background: var(--forest); color: var(--cream); }
.band-olive { background: var(--olive); color: var(--cream); }
.band-green :is(h1,h2,h3,h4), .band-forest :is(h1,h2,h3,h4), .band-olive :is(h1,h2,h3,h4) { color: var(--cream); }

/* =========================================================
   TYPOGRAPHY — roles, not just sizes
   Serif upright  = titles (heritage, confidence)
   Serif italic   = summaries & intros (the brand's voice)
   Sans caps      = navigation, buttons, labels (quiet structure)
   Sans sentence  = descriptions, support, forms (clear, trustworthy)
   ========================================================= */
h1, .h1 { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); line-height: 1.08; letter-spacing: 0.005em; }
h2, .h2 { font-family: var(--serif); font-weight: 500; font-size: var(--t-large); line-height: 1.12; letter-spacing: 0.005em; }
h3, .h3 { font-family: var(--serif); font-weight: 600; font-size: var(--t-medium-lg); line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 600; font-size: var(--t-small-md); line-height: 1.35; letter-spacing: 0.01em; }

.t-hero { font-size: var(--t-hero); line-height: 1.04; }
.t-display { font-size: var(--t-display); line-height: 1.06; }

/* Summary voice: serif italic */
.summary, .lede, .page-head p, .section-title p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: var(--t-medium-lg); line-height: 1.45; color: var(--ink-soft);
}
/* Description voice: sans */
.body-copy, .desc { font-family: var(--sans); font-size: var(--t-small-md); line-height: 1.75; color: var(--ink-soft); }
.fine { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.55; }
.label, .caps { font-family: var(--sans); font-size: var(--t-tiny); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

.section-title { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.section-title p { margin: 12px auto 0; max-width: 42ch; }
.band-green .section-title p, .band-forest .section-title p, .band-olive .section-title p { color: var(--cream-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; font-family: var(--sans); font-size: var(--t-tiny); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; border-radius: var(--radius-s);
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-hover); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: var(--surface); }
.btn-ghost-dark { background: transparent; color: var(--cream); border-color: rgba(237,236,213,0.5); }
.btn-ghost-dark:hover { border-color: var(--cream); background: rgba(237,236,213,0.08); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-text { padding: 0 0 3px; font-size: var(--t-tiny); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid currentColor; background: none; display: inline-block; }
.btn-text:hover { color: var(--moss); }
.btn-sm { padding: 11px 20px; font-size: var(--t-micro); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Top strip ---------- */
.top-strip { background: var(--forest); color: var(--cream); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.top-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px var(--gutter); }
.top-strip-msg { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; flex: 1; }
.top-strip-msg .sep { opacity: 0.45; }
.top-strip-social { display: flex; gap: 14px; align-items: center; }
.top-strip-social a { display: inline-flex; opacity: 0.85; }
.top-strip-social a:hover { opacity: 1; }
.top-strip-social svg { width: 15px; height: 15px; }
.top-strip-spacer { width: 44px; }
.msg-mobile { display: none; }
@media (max-width: 760px) {
  .top-strip-social, .top-strip-spacer, .msg-desktop { display: none; }
  .msg-mobile { display: block; text-align: center; white-space: nowrap; }
  .top-strip { font-size: 10px; letter-spacing: 0.12em; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(244,240,231,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); gap: 16px; }
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-mark { display: flex; align-items: center; gap: 10px; justify-self: center; }
.logo-mark .emblem { height: 46px; width: auto; }
.logo-mark .wordmark { height: 34px; width: auto; margin-top: 4px; color: var(--forest); }
.wordmark-script { display: block; overflow: visible; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.icon-btn { background: none; border: none; padding: 7px; display: inline-flex; position: relative; color: var(--forest); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.3; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--forest); color: var(--cream); font-size: 10px; font-weight: 600; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: inline-flex; }

.nav-row { border-top: 1px solid var(--line); display: none; }
.main-nav ul { display: flex; justify-content: center; gap: clamp(22px, 3vw, 42px); }
.main-nav > ul > li { position: relative; }
.main-nav a, .main-nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 15px 0; background: none; border: none; position: relative;
  font-family: var(--sans); font-size: var(--t-tiny); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.main-nav .nav-trigger svg { width: 10px; height: 10px; transition: transform 260ms var(--ease); }
.main-nav a.is-sale { color: var(--olive); }
.main-nav > ul > li > a::after, .main-nav .nav-trigger::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav li:hover > .nav-trigger::after, .main-nav [aria-current="page"]::after { transform: scaleX(1); }
.nav-drop { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(31,42,36,0.35); padding: 12px 0; opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms; z-index: 70; }
.main-nav li:hover > .nav-drop, .main-nav li:focus-within > .nav-drop, .main-nav li.is-open > .nav-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.main-nav li:hover > .nav-trigger svg, .main-nav li.is-open > .nav-trigger svg { transform: rotate(180deg); }
.nav-drop a { display: block; padding: 10px 24px; }
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: var(--bg); color: var(--moss); }
.nav-drop .drop-all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink-soft); }
@media (min-width: 1000px) { .nav-row { display: block; } .menu-toggle { display: none; } }
@media (max-width: 999px) { .logo-mark .emblem { height: 38px; } .logo-mark .wordmark { height: 28px; } .header-actions .hide-mobile { display: none; } }

/* ---------- Account menu ---------- */
.acct-wrap { position: relative; }
.acct-menu { position: absolute; top: calc(100% + 8px); right: -8px; min-width: 190px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(31,42,36,0.35); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; z-index: 75; }
.acct-wrap.is-open .acct-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.acct-menu a { display: block; padding: 11px 20px; font-size: var(--t-tiny); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.acct-menu a:hover, .acct-menu a:focus-visible { background: var(--bg); color: var(--moss); outline: none; }

/* ---------- Live pill + schedule ---------- */
.live-wrap { position: relative; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: transparent; border-radius: 30px; padding: 7px 14px; font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--forest); }
.live-pill.is-on { border-color: var(--live); color: var(--live); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex-shrink: 0; }
.live-dot.is-on, .live-pill.is-on .live-dot { background: var(--live); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-menu { position: absolute; top: calc(100% + 10px); left: 0; width: 290px; background: var(--forest); color: var(--cream); border-radius: var(--radius-m); box-shadow: 0 24px 50px -22px rgba(31,42,36,0.6); padding: 22px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms; z-index: 80; }
.live-wrap:hover .live-menu, .live-wrap:focus-within .live-menu, .live-wrap.is-open .live-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.live-menu h4 { font-family: var(--serif); font-weight: 600; font-size: var(--t-medium-lg); color: var(--cream); letter-spacing: 0; margin-bottom: 4px; }
.live-menu .fine { color: var(--cream-soft); }
.live-slots { margin: 16px 0 18px; border-top: 1px solid var(--line-on-dark); }
.live-slots li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-on-dark); font-size: var(--t-small-md); }
.live-slots li .tag { font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.live-menu .btn { width: 100%; }
.live-text-short { display: none; }
@media (max-width: 560px) {
  .live-pill .live-text { display: none; }
  .live-pill .live-text-short { display: inline; }
  .live-pill { padding: 6px 10px; gap: 6px; font-size: 10px; }
  .live-menu { left: -44px; width: min(300px, calc(100vw - 32px)); }
  .logo-mark .emblem { height: 32px; } .logo-mark .wordmark { height: 24px; margin-top: 4px; } .logo-mark { gap: 6px; }
  .header-row { gap: 8px; padding-left: 14px; padding-right: 14px; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(31,42,36,0.45); opacity: 0; transition: opacity var(--dur) var(--ease); }
.mobile-nav[data-open="true"] .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel { position: absolute; top: 0; left: 0; height: 100%; width: min(380px, 88vw); background: var(--bg); padding: 18px var(--gutter) 40px; transform: translateX(-100%); transition: transform var(--dur) var(--ease); overflow-y: auto; }
.mobile-nav[data-open="true"] .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 22px; }
.mobile-nav-head .wordmark { height: 30px; width: auto; color: var(--forest); }
.mobile-nav-panel a, .mobile-sub-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 2px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
.mobile-sub-trigger svg { width: 14px; height: 14px; transition: transform 260ms var(--ease); }
.mobile-sub[data-open="true"] .mobile-sub-trigger svg { transform: rotate(180deg); }
.mobile-sub-list { display: none; padding: 4px 0 8px 14px; }
.mobile-sub[data-open="true"] .mobile-sub-list { display: block; }
.mobile-sub-list a { font-family: var(--sans); font-size: var(--t-tiny); letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 2px; }
.mobile-nav-panel a.is-sale { color: var(--olive); }
.mobile-live { margin-top: 26px; background: var(--forest); color: var(--cream); padding: 20px; border-radius: var(--radius-m); }
.mobile-live h4 { font-family: var(--serif); font-size: var(--t-medium-lg); font-weight: 600; color: var(--cream); }
.mobile-live a.btn { border: none; font-family: var(--sans); font-size: var(--t-micro); justify-content: center; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 95; background: var(--bg); visibility: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
.search-overlay[data-open="true"] { visibility: visible; opacity: 1; }
.search-overlay-inner { max-width: 760px; margin: 0 auto; padding: 110px var(--gutter) 40px; }
.search-field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--forest); padding-bottom: 14px; color: var(--forest); }
.search-field input { flex: 1; border: none; background: none; font-family: var(--serif); font-size: var(--t-xl); font-weight: 500; }
.search-field input:focus { outline: none; }
.search-close { position: absolute; top: 28px; right: var(--gutter); }
.search-suggest { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.search-suggest a { border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 30px; font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; }
.search-suggest a:hover { border-color: var(--forest); background: var(--forest); color: var(--cream); }

/* ---------- Logistics row ---------- */
.logistics-row { border-top: 1px solid var(--line); background: var(--bg-alt); }
.logistics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.logistics-grid div { padding: 28px 18px; text-align: center; border-right: 1px solid var(--line); }
.logistics-grid div:last-child { border-right: none; }
.logistics-grid strong { display: block; font-family: var(--serif); font-size: var(--t-medium-lg); font-weight: 600; color: var(--forest); }
.logistics-grid span { font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 760px) {
  .logistics-grid { grid-template-columns: 1fr 1fr; }
  .logistics-grid div:nth-child(2) { border-right: none; }
  .logistics-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); }
.footer-top { padding: var(--section-y) var(--gutter) 52px; display: grid; gap: 44px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-brand .wordmark { height: 46px; width: auto; margin-bottom: 18px; color: var(--cream); }
.footer-brand p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--t-medium-lg); color: var(--cream-soft); max-width: 26ch; line-height: 1.4; }
.footer-col h4 { font-family: var(--sans); font-size: var(--t-micro); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(237,236,213,0.55); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li > span { font-size: var(--t-small-md); color: rgba(237,236,213,0.9); }
.footer-col li > span.soft { color: var(--cream-soft); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-on-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 200ms; }
.footer-social a:hover { border-color: var(--cream); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--line-on-dark); padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: var(--t-small); color: rgba(237,236,213,0.55); }
.footer-payments span { border: 1px solid var(--line-on-dark); border-radius: 2px; padding: 3px 8px; font-size: var(--t-micro); letter-spacing: 0.06em; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Photo placeholders (no AI or stock images — real photos go here) ---------- */
.ph { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(165deg, #E6E0D2 0%, #D9D1BF 100%); color: rgba(31,42,36,0.45); transition: transform 900ms var(--ease); }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 18%, rgba(250,248,243,0.55), transparent 60%); }
.ph-dark { background: linear-gradient(165deg, #3A5046 0%, var(--forest) 100%); color: rgba(237,236,213,0.5); }
.ph-dark::before { background: radial-gradient(120% 80% at 30% 18%, rgba(237,236,213,0.12), transparent 60%); }
.ph-label { position: relative; z-index: 1; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 16px; font-weight: 500; }
.ph-square { aspect-ratio: 1/1; } .ph-portrait { aspect-ratio: 3/4; } .ph-tall { aspect-ratio: 4/5; } .ph-wide { aspect-ratio: 16/9; } .ph-cinema { aspect-ratio: 21/9; }

/* ---------- Product card ----------
   Category: sans caps, Micro · Name: serif, Medium-Large · Price: sans, Small-Medium */
.pcard { display: block; }
.pcard-media { position: relative; overflow: hidden; margin-bottom: 16px; border-radius: var(--radius-s); }
.pcard:hover .pcard-media .ph { transform: scale(1.035); }
.pcard-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--forest); color: var(--cream); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; padding: 5px 10px; }
.pcard-badge.sale { background: var(--olive); }
.pcard-badge.soldout { background: var(--surface); color: var(--ink-soft); }
.pcard-wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(250,248,243,0.9); border: none; display: grid; place-items: center; color: var(--moss); padding: 0; transition: background 200ms var(--ease), transform 200ms var(--ease), color 200ms; }
.pcard-wish:hover { background: var(--surface); color: var(--forest); transform: scale(1.06); }
.pcard-wish[aria-pressed="true"] { color: var(--forest); }
.pcard-wish svg { width: 17px; height: 17px; display: block; }
.pcard-meta { font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pcard-name { font-family: var(--serif); font-size: var(--t-medium-lg); font-weight: 600; line-height: 1.2; margin-bottom: 6px; color: var(--ink); }
.pcard-price { font-size: var(--t-small-md); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--forest); }
.pcard-price .was { color: var(--ink-soft); text-decoration: line-through; font-weight: 400; margin-right: 8px; }
.pcard-price .sale { color: var(--olive); font-weight: 600; }
.pcard-swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatch-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(31,42,36,0.2); }

/* ---------- Grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; } }
@media (max-width: 460px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { position: relative; overflow: hidden; display: block; color: var(--cream); }
.cat-tile .ph { aspect-ratio: 3/4.2; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31,45,38,0.62) 0%, rgba(31,45,38,0) 50%); }
.cat-tile:hover .ph { transform: scale(1.035); }
.cat-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; }
.cat-tile-body h3 { color: var(--cream); font-size: var(--t-large); font-weight: 500; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Jewelry shelf ---------- */
.jewel-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.jewel-tile { display: block; text-align: center; }
.jewel-tile .ph { aspect-ratio: 1/1; margin-bottom: 18px; background: linear-gradient(165deg, #55612C 0%, #37420F 100%); }
.jewel-tile .ph::before { background: radial-gradient(120% 80% at 30% 18%, rgba(237,236,213,0.14), transparent 60%); }
.jewel-tile:hover .ph { transform: scale(1.03); }
.jewel-tile h3 { color: var(--cream); font-weight: 500; font-size: var(--t-large); }
@media (max-width: 700px) { .jewel-shelf { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--forest); }
.rail-nav button:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.rail-nav button svg { width: 16px; height: 16px; }
.rail-nav button[disabled] { opacity: 0.3; pointer-events: none; }
@media (min-width: 780px) { .rail-nav { display: flex; } }
.rail { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 10px; margin-bottom: -10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 auto; width: 268px; scroll-snap-align: start; }
@media (max-width: 600px) { .rail-item { width: 68vw; } }
.rail-progress { height: 1px; background: var(--line); margin-top: 22px; position: relative; overflow: hidden; }
.rail-progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: var(--moss); transition: transform 200ms var(--ease); }

/* ---------- Page header ---------- */
.page-head { text-align: center; padding: clamp(44px, 6vw, 84px) 0 clamp(26px, 4vw, 44px); }
.page-head h1 { color: var(--forest); }
.page-head p { margin: 12px auto 0; max-width: 42ch; }

/* ---------- Shop ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 34px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.shop-toolbar { display: flex; gap: 12px; align-items: center; }
.select-field { border: 1px solid var(--line-strong); background-color: var(--surface); padding: 10px 36px 10px 14px; border-radius: var(--radius-s); font-size: var(--t-small); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232C3E35' stroke-width='1.2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 16px; border-radius: var(--radius-s); font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
.filter-btn svg { width: 15px; height: 15px; }
.sub-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line-strong); border-radius: 30px; padding: 9px 18px; font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; background: transparent; color: var(--forest); }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.empty-state, .error-state { text-align: center; padding: 90px 20px; }
.empty-state h3, .error-state h3 { margin-bottom: 10px; }
.empty-state p, .error-state p { color: var(--ink-soft); margin-bottom: 24px; }
.skeleton { background: linear-gradient(100deg, var(--bg-alt) 30%, #F1ECE1 50%, var(--bg-alt) 70%); background-size: 300% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- Product detail ----------
   Name: serif Extra Large · Price: sans Medium · Description: sans Small-Medium · Labels: sans caps Tiny */
.pdp-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(28px, 4vw, 56px); }
@media (max-width: 980px) { .pdp-grid { grid-template-columns: 1fr; } }
.pdp-gallery-main { overflow: hidden; margin-bottom: 12px; border-radius: var(--radius-s); position: relative; }
.pdp-gallery-main .pcard-wish { top: 16px; right: 16px; width: 42px; height: 42px; }
.pdp-gallery-main .pcard-wish svg { width: 19px; height: 19px; }
.pdp-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { width: 78px; flex-shrink: 0; overflow: hidden; border: 1px solid transparent; padding: 0; background: none; }
.pdp-thumb[aria-current="true"] { border-color: var(--forest); }
.pdp-info { position: sticky; top: 150px; align-self: start; }
@media (max-width: 980px) { .pdp-info { position: static; } }
.pdp-meta { font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.pdp-title { margin-bottom: 12px; font-size: var(--t-xl); color: var(--forest); }
.pdp-price { font-size: var(--t-medium); font-weight: 500; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.pdp-price .was { color: var(--ink-soft); text-decoration: line-through; font-weight: 400; margin-right: 10px; }
.pdp-price .sale { color: var(--olive); font-weight: 600; }
.pdp-desc { font-family: var(--sans); font-size: var(--t-small-md); line-height: 1.75; color: var(--ink-soft); margin-bottom: 26px; max-width: 44ch; }

.option-block { margin-bottom: 22px; }
.option-label { display: flex; justify-content: space-between; font-size: var(--t-tiny); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.option-label button { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); font-size: var(--t-tiny); letter-spacing: 0.12em; background: none; border: none; text-transform: uppercase; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; background: transparent; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.size-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { min-width: 54px; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-s); font-size: var(--t-small); color: var(--ink); }
.size-btn:hover:not([disabled]) { border-color: var(--forest); }
.size-btn[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--cream); }
/* Sold-out sizes: faded with a fine diagonal, no strike-through through the letters */
.size-btn[disabled] { color: rgba(31,42,36,0.3); border-color: var(--line); cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-strong) 50%, transparent calc(50% + 0.5px)); }
.qty-field { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-s); }
.qty-field button { width: 42px; height: 44px; background: none; border: none; font-size: 16px; color: var(--forest); }
.qty-field button[disabled] { opacity: 0.3; }
.qty-field input { width: 40px; text-align: center; border: none; background: none; font-size: var(--t-small-md); }
.pdp-cta { display: flex; gap: 12px; margin: 26px 0 12px; }
.pdp-cta .btn { flex: 1; }
.stock-note.low { color: var(--warn); }
.stock-note.ok { color: var(--moss); }
.pdp-perks { border-top: 1px solid var(--line); margin-top: 26px; }
.perk-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small-md); }
.perk-row svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--moss); }
.perk-row strong { display: block; font-weight: 600; color: var(--forest); }
.perk-row span.muted { color: var(--ink-soft); }

.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 18px 2px; font-size: var(--t-tiny); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; text-align: left; color: var(--forest); }
.accordion-trigger svg { width: 14px; height: 14px; transition: transform 260ms var(--ease); flex-shrink: 0; }
.accordion-item[data-open="true"] .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease); }
.accordion-item[data-open="true"] .accordion-panel { max-height: 600px; }
.accordion-panel-inner { padding: 0 2px 20px; font-size: var(--t-small-md); color: var(--ink-soft); line-height: 1.75; }
.accordion-panel-inner a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.modal-overlay[data-open="true"] { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31,42,36,0.5); opacity: 0; transition: opacity var(--dur) var(--ease); }
.modal-overlay[data-open="true"] .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; max-width: 620px; margin: 7vh auto; background: var(--bg); border-radius: var(--radius-m); padding: 40px; max-height: 86vh; overflow-y: auto; width: calc(100% - 32px); transform: translateY(16px); opacity: 0; transition: all var(--dur) var(--ease); }
.modal-overlay[data-open="true"] .modal-panel { transform: translateY(0); opacity: 1; }
.modal-close { position: absolute; top: 18px; right: 18px; }
.size-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: var(--t-small-md); }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.size-table th { font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 92; visibility: hidden; }
.cart-drawer[data-open="true"] { visibility: visible; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(31,42,36,0.45); opacity: 0; transition: opacity var(--dur) var(--ease); }
.cart-drawer[data-open="true"] .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--dur) var(--ease); }
.cart-drawer[data-open="true"] .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); border-bottom: 1px solid var(--line); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.cart-line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line .ph { width: 86px; height: 110px; flex-shrink: 0; }
.cart-line-body { flex: 1; }
.cart-line-name { font-family: var(--serif); font-size: var(--t-medium-lg); font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.cart-line-meta { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 10px; }
.cart-line-foot { display: flex; justify-content: space-between; align-items: center; }
.cart-line-remove { font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; background: none; border: none; padding: 0; }
.cart-drawer-foot { padding: 20px var(--gutter) 26px; border-top: 1px solid var(--line); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: var(--t-small-md); font-weight: 600; margin-bottom: 12px; }

/* ---------- Cart / checkout ---------- */
.cart-page-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .cart-page-grid { grid-template-columns: 1fr; } }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; position: sticky; top: 150px; }
.summary-row { display: flex; justify-content: space-between; font-size: var(--t-small-md); padding: 10px 0; color: var(--ink-soft); }
.summary-row.total { color: var(--forest); font-weight: 600; font-size: var(--t-medium); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.fulfil-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 640px) { .fulfil-toggle { grid-template-columns: 1fr; } }
.fulfil-option { border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 18px; text-align: left; background: var(--surface); }
.fulfil-option[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: var(--bg-alt); }
.fulfil-option strong { display: block; font-family: var(--serif); font-size: var(--t-medium-lg); font-weight: 600; margin-bottom: 2px; color: var(--forest); }
.fulfil-option span { font-size: var(--t-small); color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-s); padding: 13px 14px; font-size: var(--t-small-md); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--forest); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Help / account / tracking (support voice: sans) ---------- */
.help-search { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.help-search h1 { color: var(--forest); }
.help-search input { width: 100%; padding: 17px 24px; border: 1px solid var(--line-strong); border-radius: 40px; font-size: var(--t-small-md); margin-top: 24px; background: var(--surface); }
.help-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 780px) { .help-topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .help-topics { grid-template-columns: 1fr; } }
.help-topic { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; background: var(--surface); display: block; transition: border-color 200ms; }
a.help-topic:hover { border-color: var(--forest); }
.help-topic svg { width: 22px; height: 22px; margin-bottom: 16px; color: var(--moss); }
.help-topic h4 { margin-bottom: 6px; color: var(--forest); }
.help-topic p { font-size: var(--t-small-md); color: var(--ink-soft); line-height: 1.6; }
.account-panel { max-width: 480px; margin: 0 auto; }
.divider-or { display: flex; align-items: center; gap: 14px; margin: 34px 0 20px; color: var(--ink-soft); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.16em; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.track-result { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; margin-top: 30px; background: var(--surface); }
.track-steps { display: flex; justify-content: space-between; margin: 28px 0 8px; position: relative; }
.track-steps::before { content: ''; position: absolute; top: 9px; left: 18px; right: 18px; height: 1px; background: var(--line); }
.track-step { text-align: center; flex: 1; position: relative; z-index: 1; }
.track-step .dot { width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); margin: 0 auto 10px; }
.track-step.done .dot { background: var(--forest); border-color: var(--forest); }
.track-step p { font-size: var(--t-small); color: var(--ink-soft); }
.track-step.done p { color: var(--ink); font-weight: 500; }

.text-center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 780px) { .hide-mobile { display: inline-flex; } .acct-wrap.hide-mobile { display: block; } }
