/* ============================================================
   SHAHNISA — Design System
   Concept: "Woven from Shadow" — grounded in bakhiya, chikankari's
   signature shadow-work stitch, worked from the reverse of sheer
   fabric so the motif falls in silhouette on the front.
   ============================================================ */

@font-face { font-family: 'Italiana'; src: url('../assets/fonts/Italiana-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Work Sans'; src: url('../assets/fonts/WorkSans.ttf'); font-weight: 300 800; }
@font-face { font-family: 'Work Sans'; src: url('../assets/fonts/WorkSans-Italic.ttf'); font-weight: 300 800; font-style: italic; }
@font-face { font-family: 'Space Mono'; src: url('../assets/fonts/SpaceMono-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Space Mono'; src: url('../assets/fonts/SpaceMono-Bold.ttf'); font-weight: 700; }

:root {
  /* Color — grounded in mulmul cotton, shadow-work ink, and brass jewellery */
  --bone: #efeae0;        /* base ground, handloom cotton */
  --ivory-deep: #e4dfd2;  /* alternate section surface */
  --mist: #e2e6dc;        /* card / divider surface, pale sage-grey */
  --white: #fffdf9;
  --ink: #1e241f;         /* "shadow" — deep bottle-green black, primary dark */
  --ink-soft: #3a423a;
  --ink-muted: #6c7268;
  --ink-faint: #9a9c8f;
  --gold: #a9803f;        /* brass accent — CTAs, price, focus */
  --gold-deep: #8a6830;
  --rose: #a6524b;        /* sparing accent — sale tags, alerts */
  --rose-deep: #8a423c;
  --line: rgba(30,36,31,0.13);
  --line-soft: rgba(30,36,31,0.08);

  --display: 'Italiana', 'Georgia', serif;
  --sans: 'Work Sans', 'Helvetica Neue', sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;

  --radius-sm: 3px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 12px rgba(30,36,31,0.08);
  --shadow-md: 0 12px 34px rgba(30,36,31,0.14);
  --shadow-lg: 0 24px 60px rgba(30,36,31,0.22);
  --ease: 0.35s cubic-bezier(0.4,0,0.2,1);
  --container: 1280px;
}

/* ── Reset ─────────────────────────────────────────────────── */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable both-edges; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 0.9rem;
}
.on-dark { color: var(--bone); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--bone); }
.price { font-family: var(--mono); font-weight: 700; }
.price .compare { font-weight: 400; color: var(--ink-faint); text-decoration: line-through; margin-right: 0.5em; }

section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.section-head p { color: var(--ink-muted); max-width: 32rem; margin-top: 0.5rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-outline-light { border-color: rgba(239,234,224,0.5); color: var(--bone); }
.btn-outline-light:hover { background: var(--bone); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.68rem; }
.btn-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Header / Nav ──────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative; /* containing block for .account-page-wordmark below */
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links { display: flex; gap: 2rem; min-width: 0; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--ink); transition: width var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.wordmark {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Centered on the nav bar itself (not just between the nav-links and the
   icon cluster) so it stays dead-center regardless of how wide either
   side is — same on mobile, since .nav-inner's own width doesn't change,
   only what's visible on either side of the wordmark does. */
.nav-inner .wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; min-width: 0; margin-left: auto; }
/* The hamburger opens the same slide-out panel at every screen size —
   it's now the only way to reach Search, since the header no longer
   carries a search icon of its own (account access moved into the
   cart drawer instead — see .cart-empty in main.js). */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); transition: var(--ease); transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; top: 0; z-index: 1200;
  background: var(--bone);
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem) 2rem;
  transform: translateX(100%);
  transition: transform var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.mobile-nav a, .mobile-nav-search {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--display);
  font-size: 1.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .wordmark { font-size: 1.4rem; }
}

/* ── Cart drawer ───────────────────────────────────────────── */
.overlay-backdrop {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(30,36,31,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}
.overlay-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1400;
  width: min(420px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.2rem; }
.cart-account-row { text-align: center; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft);
}
.cart-line-thumb { width: 72px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; }
.cart-line-name { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.cart-line-meta { font-size: 0.76rem; color: var(--ink-muted); margin-top: 0.2rem; }
.cart-line-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qty-stepper button { width: 26px; height: 26px; font-size: 0.9rem; }
.qty-stepper span { min-width: 24px; text-align: center; font-family: var(--mono); font-size: 0.8rem; }
.cart-line-remove { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-top: 0.6rem; border-bottom: 1px solid currentColor; align-self: flex-start; }
.cart-line-price { font-family: var(--mono); font-size: 0.88rem; font-weight: 700; text-align: right; white-space: nowrap; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }
.cart-drawer-foot { padding: 1.4rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 1rem; }
.cart-subtotal strong { font-family: var(--mono); }
.cart-note { font-size: 0.72rem; color: var(--ink-muted); text-align: center; margin-top: 0.7rem; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast-stack {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1600; display: flex; flex-direction: column; gap: 0.6rem; align-items: center;
}
.toast {
  background: var(--ink); color: var(--bone);
  font-size: 0.82rem; padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Search overlay ────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--bone);
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
  padding: clamp(1.5rem, 6vw, 4rem);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-top { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.search-overlay-inner { max-width: 640px; margin: 0 auto; }
.search-input-row { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.8rem; }
.search-input-row input { flex: 1; border: none; background: none; font-family: var(--display); font-size: 1.7rem; }
.search-input-row input::placeholder { color: var(--ink-faint); }
.search-results { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.search-result-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem; border-radius: var(--radius-sm); transition: background var(--ease); }
.search-result-row:hover { background: var(--ivory-deep); }
.search-result-thumb { width: 48px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.search-result-name { font-size: 0.92rem; font-weight: 600; }
.search-result-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-muted); }
.search-empty { color: var(--ink-muted); font-size: 0.9rem; margin-top: 1.5rem; }

/* ── Footer ────────────────────────────────────────────────── */
footer.site-footer { background: var(--ink); color: var(--bone); padding: 4.5rem 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .wordmark { text-align: left; color: var(--bone); }
.footer-brand p { color: rgba(239,234,224,0.65); font-size: 0.88rem; margin-top: 1.1rem; max-width: 260px; line-height: 1.7; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.3rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(239,234,224,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.86rem; color: rgba(239,234,224,0.75); transition: color var(--ease); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  border-top: 1px solid rgba(239,234,224,0.14);
  padding: 1.6rem 0 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.76rem; color: rgba(239,234,224,0.55);
}
.payment-icons { display: flex; gap: 0.6rem; }
.payment-icons span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em;
  border: 1px solid rgba(239,234,224,0.25); border-radius: 3px; padding: 0.25rem 0.5rem;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ── Product card + placeholder "pattern card" ────────────── */
.product-card { display: block; position: relative; }
.product-media {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mist);
}
.product-tag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.32rem 0.6rem; border-radius: 2px;
}
.product-tag.new { background: var(--ink); color: var(--bone); }
.product-tag.sale { background: var(--rose); color: var(--white); }
.quick-add {
  position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; z-index: 2;
  opacity: 0; transform: translateY(6px);
  transition: var(--ease);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-info { padding-top: 0.9rem; }
.product-info .stitch-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.product-info h3 { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; color: var(--ink); margin: 0.25rem 0 0.35rem; }
.product-info .price { font-size: 0.9rem; }

/* Pattern-card placeholder: used everywhere a real product photo will
   eventually go. Shows the stitch name as line art instead of a blank
   box, so the placeholder itself carries brand information. */
.pattern-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(155deg, var(--mist) 0%, var(--ivory-deep) 100%);
  position: relative;
}
.pattern-card svg { width: 46%; height: 46%; color: var(--ink); opacity: 0.5; }
.pattern-card .stitch-name {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.pattern-card::after {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(30,36,31,0.14);
}

/* ── Utilities ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ============================================================
   SHARED COMMERCE COMPONENTS
   Used across shop.html, product.html, checkout.html, account.html
   ============================================================ */

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-muted); margin-bottom: 1.75rem;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

/* ── Rating stars ──────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 0.86rem; }
.rating-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--ink-muted); }

/* ── Forms ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); }
.field .optional { color: var(--ink-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; background: var(--white); font-family: var(--sans); font-size: 0.92rem;
  transition: border-color var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { font-size: 0.72rem; color: var(--rose-deep); display: none; }
.field.has-error input, .field.has-error select { border-color: var(--rose-deep); }
.field.has-error .field-error { display: block; }
.field-hint { font-size: 0.72rem; color: var(--ink-muted); }
.check-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.84rem; color: var(--ink-soft); }
.check-row input { width: auto; margin-top: 0.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.radio-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; cursor: pointer; transition: var(--ease); margin-bottom: 0.75rem;
}
.radio-card:hover { border-color: var(--ink-faint); }
.radio-card.selected { border-color: var(--ink); background: var(--ivory-deep); }
.radio-card-left { display: flex; align-items: center; gap: 0.85rem; }
.radio-card input { width: auto; }
.radio-card .label { font-size: 0.9rem; font-weight: 600; }
.radio-card .sub { font-size: 0.76rem; color: var(--ink-muted); margin-top: 0.15rem; }
.radio-card .amount { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; }

.tab-row { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.7rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; transition: var(--ease);
}
.tab-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 5rem 1.5rem; color: var(--ink-muted); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--ink-faint); }
.empty-state h3 { color: var(--ink); margin-bottom: 0.6rem; }
.empty-state .btn { margin-top: 1.5rem; }

/* ── Shop / catalog layout ─────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.facets { position: sticky; top: 100px; }
.facet-group { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.facet-group:first-child { padding-top: 0; }
.facet-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.facet-list { display: flex; flex-direction: column; gap: 0.7rem; }
.facet-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-size: 0.86rem; color: var(--ink-soft); text-align: left; width: 100%;
  transition: color var(--ease);
}
.facet-list button:hover, .facet-list button.active { color: var(--ink); font-weight: 600; }
.facet-list .count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); }
.facet-colors { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  position: relative; cursor: pointer;
}
.color-swatch.active::after {
  content: ''; position: absolute; inset: -4px; border: 1.5px solid var(--ink); border-radius: 50%;
}
.facet-sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-chip {
  min-width: 38px; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.76rem; font-weight: 600; text-align: center; transition: var(--ease);
}
.size-chip:hover { border-color: var(--ink-faint); }
.size-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.clear-filters { font-size: 0.76rem; color: var(--gold-deep); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.result-count { font-size: 0.86rem; color: var(--ink-muted); }
.sort-select { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; }
.sort-select select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem 0.8rem; background: var(--white); font-family: var(--sans); }
.mobile-filter-toggle { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.active-chip {
  display: flex; align-items: center; gap: 0.4rem; font-size: 0.76rem;
  background: var(--ivory-deep); border-radius: 100px; padding: 0.4rem 0.5rem 0.4rem 0.85rem;
}
.active-chip button { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .facets {
    position: fixed; inset: 0; top: 0; z-index: 1350; background: var(--white);
    padding: 1.4rem clamp(1.25rem,4vw,3rem) 2rem; overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--ease);
  }
  .facets.open { transform: translateX(0); }
  .facets-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .mobile-filter-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600;
    margin-bottom: 1.25rem;
  }
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 0.82rem; transition: var(--ease);
}
.pagination button.active { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Product detail page ──────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 0.9fr 1fr; gap: 3.5rem; }
.pdp-gallery-main { aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; }
.pdp-thumbs { display: flex; gap: 0.75rem; }
.pdp-thumb { width: 72px; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--ease); }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-info .stitch-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-deep); }
.pdp-info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.4rem 0 0.7rem; }
.pdp-price { font-size: 1.3rem; margin-bottom: 1.5rem; }
.variant-group { margin-bottom: 1.6rem; }
.variant-label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.75rem; }
.variant-label .selected-value { color: var(--ink-muted); font-weight: 400; }
.size-guide-link { font-size: 0.76rem; color: var(--gold-deep); border-bottom: 1px solid currentColor; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.qty-stepper.lg button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty-stepper.lg span { min-width: 34px; font-size: 0.9rem; }
.pdp-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.trust-row { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.84rem; color: var(--ink-soft); }
.trust-item svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }

.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; font-size: 0.92rem; font-weight: 600; text-align: left;
}
.accordion-trigger svg { width: 16px; height: 16px; transition: transform var(--ease); flex-shrink: 0; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--ease); }
.accordion-panel-inner { padding-bottom: 1.3rem; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.75; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.checkout-steps { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.checkout-steps .step.active { color: var(--ink); font-weight: 700; }
.checkout-steps .sep { opacity: 0.4; }
.checkout-section { margin-bottom: 2.5rem; }
.checkout-section h2 { font-size: 1.15rem; margin-bottom: 1.3rem; font-family: var(--sans); font-weight: 700; }
.demo-notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--ivory-deep); border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 2rem; line-height: 1.6;
}
.demo-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold-deep); }

.order-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.75rem; position: sticky; top: 100px; }
.order-summary h2 { font-size: 1.05rem; margin-bottom: 1.4rem; }
.summary-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.9rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line-soft); }
.summary-line-thumb { width: 56px; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.summary-line-thumb .qty-badge {
  position: absolute; top: -6px; right: -6px; background: var(--ink); color: var(--bone);
  width: 18px; height: 18px; border-radius: 50%; font-size: 0.62rem; display: flex; align-items: center; justify-content: center;
}
.summary-line-name { font-size: 0.86rem; font-weight: 600; }
.summary-line-meta { font-size: 0.74rem; color: var(--ink-muted); margin-top: 0.2rem; }
.summary-line-price { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.promo-row { display: flex; gap: 0.6rem; margin: 1.4rem 0; }
.promo-row input { flex: 1; }
.summary-totals { display: flex; flex-direction: column; gap: 0.65rem; padding-top: 0.5rem; }
.summary-totals .row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); }
.summary-totals .row.discount { color: var(--rose-deep); }
.summary-totals .row.total { font-size: 1.05rem; font-weight: 700; color: var(--ink); padding-top: 0.8rem; border-top: 1px solid var(--line); margin-top: 0.4rem; }
.summary-totals .row.total span:last-child { font-family: var(--mono); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 2rem; }
  .order-summary { position: static; order: -1; }
}

/* ── Confirmation ──────────────────────────────────────────── */
.confirm-hero { text-align: center; max-width: 560px; margin: 0 auto 3rem; }
.confirm-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--bone); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.confirm-check svg { width: 28px; height: 28px; }
.confirm-order-id { font-family: var(--mono); font-size: 0.9rem; color: var(--gold-deep); margin-top: 0.75rem; }
.confirm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.confirm-step { text-align: center; padding: 1.5rem; }
.confirm-step .num { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-family: var(--mono); font-size: 0.85rem; }
.confirm-step h4 { font-size: 0.92rem; margin-bottom: 0.4rem; }
.confirm-step p { font-size: 0.8rem; color: var(--ink-muted); }
@media (max-width: 700px) { .confirm-steps { grid-template-columns: 1fr; } }

/* ── Account ───────────────────────────────────────────────── */
.auth-card { max-width: 420px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2.5rem; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
.account-nav { display: flex; flex-direction: column; gap: 0.3rem; }
.account-nav button { text-align: left; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--ink-muted); }
.account-nav button.active { background: var(--ivory-deep); color: var(--ink); }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-row-id { font-family: var(--mono); font-weight: 700; font-size: 0.88rem; }
.order-row-date { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.2rem; }
.order-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--ivory-deep); padding: 0.35rem 0.7rem; border-radius: 100px; color: var(--gold-deep); }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; } .account-nav { flex-direction: row; flex-wrap: wrap; } }
