/* ==========================================================================
   BUELL HOUSE — mobile-first stylesheet
   Palette: warm off-white paper, ink-aubergine, royal purple, gold & silver
   ========================================================================== */

:root {
  --paper: #f4efe5;
  --paper-2: #fbf8f1;
  --paper-3: #ece5d6;
  --ink: #1c1426;
  --ink-soft: #52485f;
  --ink-faint: #8a8093;
  --purple: #4c1d95;
  --purple-deep: #2e1065;
  --purple-bright: #7c3aed;
  --gold-1: #8a6a2b;
  --gold-2: #c9a44c;
  --gold-3: #f0dfa8;
  --silver-1: #878d99;
  --silver-2: #c7ccd6;
  --silver-3: #eef0f4;
  --hairline: rgba(138, 106, 43, 0.30);
  --hairline-soft: rgba(28, 20, 38, 0.10);
  --shadow: 0 18px 50px -18px rgba(46, 16, 101, 0.22);
  --grad-gold: linear-gradient(108deg, var(--gold-1) 0%, var(--gold-2) 32%, var(--gold-3) 50%, var(--gold-2) 68%, var(--gold-1) 100%);
  --grad-silver: linear-gradient(108deg, var(--silver-1), var(--silver-2) 45%, var(--silver-3) 55%, var(--silver-2) 70%, var(--silver-1));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--purple); color: var(--paper-2); }

/* ---- paper grain over everything -------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- type helpers ------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-1);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--hairline); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 229, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 0.45rem; margin-right: auto; }
.brand-mark {
  font-size: 1rem;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 480; letter-spacing: 0.02em;
}
.header-nav { display: none; }
.header-nav a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0.4rem 0.75rem; position: relative;
}
.header-nav a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0;
  height: 1px; background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.header-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  background: none; border: 0; width: 2.2rem; height: 2.2rem;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-toggle span:last-child { width: 68%; }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { width: 100%; transform: translateY(-3.75px) rotate(-45deg); }

.cur-toggle {
  display: none; align-items: center; gap: 2px;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 2px;
}
.cur-toggle a {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem; border-radius: 999px; color: var(--ink-faint);
  transition: all 0.3s var(--ease);
}
.cur-toggle a.on { background: var(--ink); color: var(--paper-2); }
@media (min-width: 700px) { .cur-toggle { display: inline-flex; } }
body.menu-open .cur-toggle { visibility: hidden; }

.cart-link {
  position: relative; display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; color: var(--ink);
}
.cart-link svg { width: 1.35rem; height: 1.35rem; }
.cart-badge {
  position: absolute; top: -1px; right: -3px;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem;
  display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 600;
  color: var(--paper-2);
  background: var(--purple);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--paper);
}

/* ---- full-screen menu overlay ------------------------------------------ */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(100% 80% at 0% 110%, rgba(201, 164, 76, 0.22), transparent 55%),
    var(--purple-deep);
  color: var(--paper-2);
  display: flex; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
.menu-overlay-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.menu-big {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  font-weight: 380; line-height: 1.22;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
body.menu-open .menu-big { opacity: 1; transform: none; }
body.menu-open .menu-big:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .menu-big:nth-child(3) { transition-delay: 0.10s; }
body.menu-open .menu-big:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .menu-big:nth-child(5) { transition-delay: 0.20s; }
body.menu-open .menu-big:nth-child(6) { transition-delay: 0.25s; }
.menu-big:hover { color: var(--gold-3); }
.menu-small {
  margin-top: 2rem; display: flex; gap: 1.75rem; flex-wrap: wrap;
  opacity: 0; transition: opacity 0.5s var(--ease) 0.3s;
}
body.menu-open .menu-small { opacity: 1; }
.menu-small a {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver-2); border-bottom: 1px solid rgba(199, 204, 214, 0.35);
  padding-bottom: 2px;
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; }
body.menu-open .brand-name, body.menu-open .cart-link { color: var(--paper-2); }
body.menu-open .menu-toggle span { background: var(--paper-2); }

/* ==========================================================================
   Flash + layout shells
   ========================================================================== */
.flash {
  width: min(1200px, calc(100% - 2.2rem));
  margin: 1rem auto 0; padding: 0.8rem 1.1rem;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--paper-2); font-size: 0.92rem;
}
.flash-ok { border-color: rgba(76, 29, 149, 0.35); }
.flash-err { border-color: #b3563a; color: #8c3c24; }

.site-main { min-height: 62vh; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.1rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.1rem; }

.section { padding: 3.5rem 0; }
.section-head { margin-bottom: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.section-head h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); }
.section-head .see-all {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple); font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #241703;
  background: var(--grad-gold);
  background-size: 200% 100%;
  border: 0; border-radius: 999px;
  box-shadow: 0 10px 26px -12px rgba(138, 106, 43, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative; overflow: hidden;
  transition: background-position 0.9s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(138, 106, 43, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-purple {
  color: var(--paper-2);
  background: linear-gradient(108deg, var(--purple-deep), var(--purple) 45%, var(--purple-bright) 60%, var(--purple));
  background-size: 200% 100%;
  box-shadow: 0 10px 26px -12px rgba(46, 16, 101, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--gold-2); box-shadow: none; background: var(--paper-2); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--hairline);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-purple {
  width: 46vmax; height: 46vmax; top: -18vmax; right: -14vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), rgba(124, 58, 237, 0) 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-gold {
  width: 36vmax; height: 36vmax; bottom: -16vmax; left: -10vmax;
  background: radial-gradient(circle, rgba(201, 164, 76, 0.5), rgba(201, 164, 76, 0) 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vmax, 4vmax) scale(1.12); }
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(2.9rem, 11vw, 6rem);
  margin: 1.1rem 0 1.3rem;
}
.hero h1 em { font-style: italic; font-weight: 340; }
.hero-sub {
  max-width: 34rem; color: var(--ink-soft);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-est {
  margin-top: 3rem; display: flex; align-items: center; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint);
}
.hero-est::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ---- ticker ------------------------------------------------------------ */
.ticker {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-2);
  overflow: hidden; white-space: nowrap;
  padding: 0.65rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-block; animation: ticker 40s linear infinite; }
.ticker span {
  font-family: var(--font-display);
  font-size: 0.85rem; font-style: italic; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0 1.4rem;
}
.ticker b {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 500;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Category panels
   ========================================================================== */
.cat-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 0.9rem; overflow-x: auto; padding: 0.2rem 1.1rem 1.2rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-card {
  scroll-snap-align: center;
  position: relative; overflow: hidden;
  border-radius: 18px; min-height: 15rem;
  padding: 1.4rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card .cat-idx {
  position: absolute; top: 0.6rem; right: 1rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 4.6rem; font-weight: 300; opacity: 0.18; line-height: 1;
}
.cat-card h3 { font-family: var(--font-display); font-weight: 420; font-size: 1.45rem; }
.cat-card p { font-size: 0.86rem; opacity: 0.82; margin-top: 0.3rem; max-width: 24rem; }
.cat-card .cat-go {
  margin-top: 0.9rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}
.cat-go::after { content: "\2192"; transition: transform 0.35s var(--ease); }
.cat-card:hover .cat-go::after { transform: translateX(5px); }

/* material skins */
.mat-gold     { background: linear-gradient(150deg, #3a2c10, #8a6a2b 48%, #c9a44c 78%, #8a6a2b); }
.mat-silver   { background: linear-gradient(150deg, #23262e, #565c68 50%, #9aa1ae 80%, #565c68); }
.mat-purple   { background: linear-gradient(150deg, #170a33, #4c1d95 55%, #7c3aed 88%, #4c1d95); }
.mat-amethyst { background: linear-gradient(150deg, #2c0f45, #6b21a8 50%, #c9a44c 130%); }
.mat-ivory    { background: linear-gradient(150deg, #494032, #7d715c 50%, #b3a68c 85%, #7d715c); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.cat-card::after { /* sheen sweep */
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(12deg) translateX(-140%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}
.cat-card:hover::after { transform: rotate(12deg) translateX(480%); }

/* ==========================================================================
   Product cards / grid
   ========================================================================== */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.product-card {
  background: var(--paper-2);
  border: 1px solid var(--hairline-soft);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--hairline);
}
.product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-3); }
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .product-thumb img { transform: scale(1.045); }
.sold-tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-2); background: var(--ink); border-radius: 999px;
}
.product-info { padding: 0.85rem 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.product-cat {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--purple);
}
.product-name {
  font-family: var(--font-display); font-weight: 440;
  font-size: 1rem; line-height: 1.28; flex: 1;
}
.product-price { font-size: 0.92rem; font-weight: 600; margin-top: 0.25rem; }
.product-price small { font-weight: 500; color: var(--ink-faint); font-size: 0.68rem; letter-spacing: 0.06em; }

/* ---- shop filter chips -------------------------------------------------- */
.chip-row { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.85rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 0.5rem 1.05rem;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.05em;
  border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ink-soft); background: transparent;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold-2); }
.chip.active { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp { display: flex; flex-direction: column; gap: 1.8rem; padding: 1.6rem 0 3.5rem; }
.pdp-media {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow);
  position: relative;
}
.pdp-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); margin: 0.5rem 0 0.9rem; }
.pdp-price { font-size: 1.5rem; font-family: var(--font-display); font-weight: 480; }
.pdp-price small { font-size: 0.8rem; font-family: var(--font-body); color: var(--ink-faint); letter-spacing: 0.06em; }
.pdp-desc { color: var(--ink-soft); margin: 1.1rem 0 1.5rem; max-width: 36rem; }
.pdp-details { border-top: 1px solid var(--hairline); margin-top: 1.6rem; }
.pdp-details .row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.88rem;
}
.pdp-details .row dt { color: var(--ink-faint); }
.pdp-details .row dd { text-align: right; font-weight: 500; }
.stock-dot { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; }
.stock-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8f5f; box-shadow: 0 0 0 3px rgba(63, 143, 95, 0.18); }
.stock-dot.out::before { background: #b3563a; box-shadow: 0 0 0 3px rgba(179, 86, 58, 0.16); }
.pdp-fineprint { margin-top: 1.4rem; font-size: 0.78rem; color: var(--ink-faint); }
.pdp-fineprint a { border-bottom: 1px solid var(--hairline); }

/* ==========================================================================
   Cart / checkout / orders
   ========================================================================== */
.cart-list { display: flex; flex-direction: column; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto;
  gap: 0.95rem; align-items: center;
  padding: 1.05rem 0; border-bottom: 1px solid var(--hairline-soft);
}
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--hairline-soft); }
.cart-item .ci-name { font-family: var(--font-display); font-weight: 440; line-height: 1.3; }
.cart-item .ci-meta { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.15rem; }
.cart-item .ci-price { font-weight: 600; white-space: nowrap; }
.qty-form { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.45rem; }
.qty-form input {
  width: 3.2rem; padding: 0.3rem 0.4rem; text-align: center;
  border: 1px solid var(--hairline); border-radius: 8px; background: var(--paper-2);
  font: inherit; font-size: 0.85rem;
}
.link-danger { font-size: 0.75rem; color: #8c3c24; border-bottom: 1px solid rgba(140, 60, 36, 0.3); background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; }
.cart-summary {
  margin-top: 1.6rem; padding: 1.4rem;
  background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 16px;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.92rem; }
.cart-summary .row.total { font-size: 1.1rem; font-weight: 600; border-top: 1px solid var(--hairline); margin-top: 0.6rem; padding-top: 0.8rem; }
.cart-summary .fine { font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.9rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty .big { font-size: clamp(1.6rem, 6vw, 2.3rem); margin-bottom: 1rem; }

/* ---- order status timeline ---------------------------------------------- */
.order-card {
  background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem; margin-bottom: 1.1rem;
}
.order-card .oc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.order-card .oc-id { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.order-card .oc-date { font-size: 0.78rem; color: var(--ink-faint); }
.order-items { margin: 0.8rem 0; font-size: 0.88rem; color: var(--ink-soft); }
.order-items li { list-style: none; padding: 0.2rem 0; }
.status-pill {
  display: inline-block; padding: 0.28rem 0.85rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.st-pending   { background: rgba(138, 106, 43, 0.14); color: var(--gold-1); }
.st-paid      { background: rgba(76, 29, 149, 0.12); color: var(--purple); }
.st-processing{ background: rgba(76, 29, 149, 0.12); color: var(--purple); }
.st-shipped   { background: rgba(63, 143, 95, 0.14); color: #2d6b47; }
.st-completed { background: rgba(63, 143, 95, 0.14); color: #2d6b47; }
.st-cancelled { background: rgba(28, 20, 38, 0.09); color: var(--ink-soft); }
.st-refunded  { background: rgba(179, 86, 58, 0.13); color: #8c3c24; }

/* ---- forms --------------------------------------------------------------- */
.form-card {
  background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 1.7rem; max-width: 30rem;
}
.form-card label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.input {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--paper); font: inherit; font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.12); }

/* ---- success page --------------------------------------------------------- */
.success-hero { text-align: center; padding: 4rem 1rem 2.5rem; }
.success-hero .mark { font-size: 2.6rem; }
.success-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: 0.8rem 0; }
.success-hero p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto; }

/* ==========================================================================
   Prose (policies)
   ========================================================================== */
.prose { padding: 2.5rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 0.4rem; }
.prose .updated { color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 2rem; }
.prose h2 {
  font-family: var(--font-display); font-weight: 460; font-size: 1.35rem;
  margin: 2.2rem 0 0.7rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline);
}
.prose p, .prose li { color: var(--ink-soft); font-size: 0.95rem; }
.prose p { margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 0.9rem; }
.prose li { margin-bottom: 0.45rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(201, 164, 76, 0.14), transparent 50%),
    var(--purple-deep);
  color: var(--silver-2);
  border-top: 1px solid var(--gold-1);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.1rem 2rem;
  display: flex; flex-direction: column; gap: 2.2rem;
}
.footer-brand .brand-mark { font-size: 1.2rem; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--paper-2); margin-left: 0.4rem; }
.footer-tag { font-style: italic; font-family: var(--font-display); font-size: 0.95rem; margin-top: 0.5rem; opacity: 0.75; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col h4 {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 0.4rem; font-weight: 600;
}
.footer-col a { font-size: 0.88rem; opacity: 0.85; transition: color 0.3s, opacity 0.3s; }
.footer-col a:hover { color: var(--gold-3); opacity: 1; }
.footer-fine {
  border-top: 1px solid rgba(201, 164, 76, 0.22);
  padding: 1.2rem 1.1rem 2rem;
}
.footer-fine p { max-width: 1200px; margin: 0 auto; font-size: 0.72rem; opacity: 0.65; line-height: 1.7; }
.footer-fine a { border-bottom: 1px solid rgba(199, 204, 214, 0.4); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 700px) {
  .menu-toggle { display: none; }
  .header-nav { display: flex; gap: 0.3rem; margin-right: 0.5rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .cat-row {
    grid-auto-flow: row; grid-auto-columns: unset;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    max-width: 1200px; margin: 0 auto;
    padding: 0.2rem 1.1rem 1.2rem;
  }
  .section { padding: 4.5rem 0; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; padding-top: 2.5rem; }
  .cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
  .cart-summary { margin-top: 0; position: sticky; top: 5.5rem; }
}

@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-row { grid-template-columns: repeat(5, 1fr); }
  .cat-card { min-height: 19rem; }
  .cat-card .cat-idx { font-size: 5.4rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .hero { padding: 7rem 0 7.5rem; }
}
