/* ===================================================================
   Ratoomal's Ecommerce — Design System
   =================================================================== */

:root {
  /* Palette — warm heritage, more whitespace than the live site */
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #f1ecdf;
  --surface-alt: #ede6d3;
  --ink: #0f1e2b;
  --ink-2: #3b4a57;
  --muted: #6d7581;
  --muted-2: #97a0a9;
  --line: #e3ded0;
  --line-strong: #d0c8b4;
  --gold: #a5642b;
  --gold-dark: #7a481e;
  --gold-soft: #efdec8;
  --brown: #4a2e14;
  --ok: #2f7a4d;
  --ok-soft: #e4f0e8;
  --alert: #b64a2a;
  --alert-soft: #f6e6df;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 30, 43, .06);
  --shadow: 0 8px 24px rgba(15, 30, 43, .08);
  --shadow-lg: 0 20px 60px rgba(15, 30, 43, .14);

  /* Radius */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Layout */
  --container: 1280px;
  --header-h: 68px;
  --header-h-mobile: 56px;
  --bottomnav-h: 62px;

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--sans);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

body.has-bottomnav { padding-bottom: var(--bottomnav-h); }

img { max-width: 100%; display: block; }
main { padding-top: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: 0;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 30, 'opsz' 96;
}
h1 { font-variation-settings: 'SOFT' 30, 'opsz' 144; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
h4 { font-size: 1rem; }
p { margin: 0 0 .8em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; color: var(--gold); margin: 0 0 .4em; font-family: var(--sans); }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
  min-height: 44px; text-align: center; line-height: 1;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brown); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-link { background: none; color: var(--gold-dark); padding: 4px 0; min-height: 0; text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; min-height: 36px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 20px; height: var(--header-h); padding: 0 20px; max-width: var(--container); margin: 0 auto;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--gold-dark); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1; }
.brand-sub { font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-catalog { position: static; }
.nav-catalog::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) - 10px);
  height: 18px;
  display: none;
  z-index: 44;
}
.catalog-mega {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) - 1px);
  transform: translateX(-50%) translateY(0);
  width: min(1160px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility .14s ease;
  z-index: 45;
}
.nav-catalog:hover::after,
.nav-catalog:focus-within::after,
.nav-catalog.catalog-open::after { display: block; }
.nav-catalog:hover .catalog-mega,
.nav-catalog:focus-within .catalog-mega,
.nav-catalog.catalog-open .catalog-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.catalog-mega-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  padding: 26px;
}
.catalog-mega-feature {
  background: var(--surface-soft);
  border-radius: var(--r);
  padding: 22px;
}
.catalog-mega-feature h3 { margin-bottom: 8px; }
.catalog-mega-feature p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-bottom: 18px; }
.catalog-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
}
.catalog-mega-col { display: grid; align-content: start; gap: 8px; }
.catalog-mega-col a {
  padding: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.3;
}
.catalog-mega-col a:hover { color: var(--gold-dark); }
.catalog-mega-col .catalog-mega-title {
  color: var(--ink);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 2px;
}
.catalog-mega a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); position: relative; transition: background .15s ease;
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 1.8; }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: #fff; border-radius: 9px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.hamburger { display: none; }

/* Buyer status pill */
.buyer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
}
.buyer-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.buyer-pill.pending .dot { background: var(--alert); }
.buyer-pill.unlocked .dot { background: var(--ok); }
.buyer-pill.unlocked { background: var(--ok-soft); border-color: transparent; }

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-scrim { position: absolute; inset: 0; background: rgba(20,10,4,.4); }
.mobile-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 86vw);
  background: var(--surface); padding: 20px; overflow-y: auto;
  animation: slideRight .25s ease;
}
@keyframes slideRight { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-drawer-panel .brand-lockup { margin-bottom: 24px; }
.mobile-drawer-panel nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer-panel nav a {
  padding: 10px 12px; border-radius: var(--r); font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; font-size: .92rem; line-height: 1.2;
}
.mobile-drawer-panel nav a svg { width: 20px; height: 20px; flex: 0 0 20px; }
.mobile-drawer-panel nav a:hover, .mobile-drawer-panel nav a.active { background: var(--surface-soft); color: var(--ink); }
.mobile-catalog-menu {
  border-radius: var(--r);
  overflow: hidden;
}
.mobile-catalog-menu summary {
  list-style: none;
  padding: 10px 12px;
  border-radius: var(--r);
  font-weight: 700;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.mobile-catalog-menu summary::-webkit-details-marker { display: none; }
.mobile-catalog-menu summary svg { width: 20px; height: 20px; flex: 0 0 20px; }
.mobile-catalog-menu[open] summary { background: var(--surface-soft); color: var(--ink); }
.mobile-catalog-menu div {
  display: grid;
  gap: 2px;
  padding: 4px 0 8px 30px;
}
.mobile-drawer-panel nav .mobile-catalog-menu a {
  padding: 7px 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
}
.mobile-drawer-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; color: var(--muted);
}

/* Mobile bottom tab bar */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px; border-radius: 10px; color: var(--muted); font-size: .68rem; font-weight: 500;
  position: relative;
}
.bottom-nav a svg { width: 22px; height: 22px; stroke-width: 1.8; }
.bottom-nav a.active { color: var(--gold-dark); }
.bottom-nav a.active svg { stroke: var(--gold-dark); }
.bottom-nav a .badge {
  position: absolute; top: 2px; right: 20%; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: 8px; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ===== Floating WhatsApp bubble ===== */
.wa-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  transition: transform .15s ease;
}
.wa-bubble:hover { transform: scale(1.06); }
.wa-bubble svg { width: 28px; height: 28px; }
body.has-bottomnav .wa-bubble { bottom: calc(var(--bottomnav-h) + 16px); }

/* ===== Header search ===== */
.header-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 40px; max-width: 480px; flex: 1;
  position: relative; margin: 0 20px;
}
.header-search::before {
  content: '⌕'; position: absolute; left: 14px; color: var(--muted); font-size: 1.1rem; font-weight: 700;
}
.header-search input { flex: 1; border: 0; background: transparent; outline: none; padding: 8px 0; font-size: .95rem; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.search-suggest-empty { padding: 18px; color: var(--muted); text-align: center; font-size: .9rem; }
.search-suggest-section { padding: 8px 0; border-bottom: 1px solid var(--line); }
.search-suggest-section:last-child { border-bottom: 0; }
.search-suggest-title { padding: 6px 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.search-suggest-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer;
}
.search-suggest-item:hover { background: var(--surface-soft); }
.search-suggest-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-soft); }
.search-suggest-item .name { font-size: .9rem; font-weight: 500; flex: 1; }
.search-suggest-item .code { font-size: .75rem; color: var(--muted); }

/* Mobile search sheet */
.search-sheet-trigger { display: none; }

/* ===== Announcement bar ===== */
.announce {
  background: linear-gradient(90deg, var(--gold) 0%, var(--brown) 100%);
  color: #fff; text-align: center;
  padding: 8px 20px; font-size: .8rem; letter-spacing: .04em;
}
.announce a { text-decoration: underline; }

/* ===== Home hero ===== */
.hero {
  padding: 60px 0 40px;
  background:
    radial-gradient(ellipse at top right, var(--gold-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-copy .eyebrow { font-size: .78rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.hero-tagline { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1.6em; max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface-soft); box-shadow: var(--shadow-lg);
  background-image: url('../img/home/hero-collage.webp');
  background-position: center;
  background-size: cover;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,4,0) 55%, rgba(20,10,4,.12) 100%);
}
.hero-badges {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px;
  font-size: .82rem; color: var(--muted);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges span::before { content: '◇'; color: var(--gold); }

/* ===== Section headers ===== */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-head a { color: var(--gold-dark); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.section-head a::after { content: ' →'; }

/* ===== Category tiles (home + category landing) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-tile {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-soft); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,30,43,.02) 0%, rgba(15,30,43,.16) 48%, rgba(15,30,43,.68) 100%);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 1; }
.cat-tile h3,
.cat-tile .cat-count { position: relative; z-index: 2; }
.cat-tile h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cat-tile .cat-count { color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 500; }
.cat-tile.compact { aspect-ratio: 1/1; padding: 14px; }
.cat-tile.compact h3 { font-size: 1rem; }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
  align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.trust-item strong { display: block; color: var(--ink); font-weight: 600; }
.trust-item small { display: block; color: var(--muted); font-size: .76rem; }
.trust-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark);
  display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0;
}
.trust-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  color: inherit;
}

/* ===== Product cards ===== */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 24px 16px;
  width: 100%;
}
.product-grid.dense { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 20px 12px; }

.pc {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  position: relative;
  background: transparent;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.pc-image-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}
.pc-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  background: var(--surface-soft); overflow: hidden;
  transition: box-shadow .2s ease;
  flex: 0 0 auto;
}
/* Fallback for browsers that don't support aspect-ratio (very rare now) */
@supports not (aspect-ratio: 1 / 1) {
  .pc-media { height: 0; padding-bottom: 100%; }
}
.pc:hover .pc-media { box-shadow: var(--shadow); }
.pc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  padding: 0;
  background: transparent;
}
.pc-media .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-family: var(--serif); font-size: 2rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--surface-alt));
}
.pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: var(--ink); color: var(--bg); letter-spacing: .04em; text-transform: uppercase;
}
.pc-badge.ready { background: var(--ok); }
.pc-badge.mto { background: var(--gold-dark); }
.pc-clearance-ribbon {
  position: absolute; top: 10px; left: -34px; z-index: 3;
  width: 126px; padding: 5px 0; transform: rotate(-35deg);
  background: #9a3412; color: #fff8ed;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  text-align: center; font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.pc-wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.pc-wish:hover { background: #fff; color: var(--alert); }
.pc-wish.active { color: var(--alert); background: #fff; }
.pc-wish svg { width: 18px; height: 18px; }
.pc-wish.active svg { fill: var(--alert); stroke: var(--alert); }

.pc-quickadd {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  background: var(--ink); color: var(--bg);
  padding: 9px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pc:hover .pc-quickadd { opacity: 1; transform: translateY(0); }
@media (hover: none) { .pc-quickadd { display: none; } }

.pc-body { padding: 4px 2px 0; }
.pc-title {
  font-size: .92rem; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; min-height: 2.7em; margin: 0 0 4px;
  text-decoration: none;
}
.pc-title:hover { color: var(--gold-dark); }
.pc-meta { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; color: var(--muted); }
.pc-price {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  line-height: 1.3; min-height: 1.3em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-price.locked { color: var(--muted); font-weight: 500; font-style: italic; font-size: .88rem; }
.pc-price.clearance {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; min-height: 1.55em;
  white-space: normal; overflow: visible; text-overflow: clip;
}
.pc-price-sale { color: #9a3412; font-weight: 800; }
.pc-price-was { color: var(--muted); text-decoration: line-through; font-size: .78rem; font-weight: 500; }
.pc-price-off {
  color: #9a3412; background: #fff1d6; border-radius: 999px;
  padding: 1px 6px; font-size: .68rem; font-weight: 800;
}
.pc-sizes { font-size: .78rem; color: var(--muted); line-height: 1.3; min-height: 1.3em; }
.pc-code { font-size: .7rem; color: var(--muted-2); letter-spacing: .06em; }

/* Skeleton */
.pc-skel .pc-media { background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface-alt) 50%, var(--surface-soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.pc-skel .pc-body { display: flex; flex-direction: column; gap: 6px; }
.pc-skel .skel-line { height: 12px; border-radius: 6px; background: var(--surface-soft); }
.pc-skel .skel-line.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Shop layout ===== */
.shop-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  padding: 32px 0;
}
.shop-filters {
  position: sticky; top: calc(var(--header-h) + 20px); align-self: start;
  max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  padding-right: 8px;
}
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.filter-list li a, .filter-list li button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 6px 10px; border-radius: 8px; font-size: .88rem; color: var(--ink-2);
  text-align: left; background: none; border: 0;
}
.filter-list li a:hover, .filter-list li button:hover { background: var(--surface-soft); color: var(--ink); }
.filter-list li a.active, .filter-list li button.active { background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; }
.filter-list li .count { color: var(--muted-2); font-size: .75rem; font-weight: 500; }

.shop-main { min-width: 0; }
.shop-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
  flex-wrap: wrap;
}
.shop-bar .count { color: var(--muted); font-size: .88rem; }
.shop-bar select { padding: 8px 32px 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .88rem; }
.shop-mobile-tools { display: none !important; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px; font-size: .82rem; color: var(--ink-2); font-weight: 500;
}
.chip .close { color: var(--muted); font-size: 1.1rem; line-height: 1; padding-left: 2px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* Mobile filter sheet */
.filter-sheet {
  position: fixed; inset: 0; z-index: 70; display: none;
}
.filter-sheet.open { display: block; }
.filter-sheet-scrim { position: absolute; inset: 0; background: rgba(20,10,4,.4); }
.filter-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px; overflow: hidden;
  animation: slideUp .25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.filter-sheet-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.filter-sheet-head h3 { margin: 0; }
#mobileFilters { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: 2px; }
.filter-sheet-footer {
  display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px;
  background: var(--surface); flex-shrink: 0; position: relative; z-index: 2;
}

/* Empty & load more */
.empty {
  padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.load-more-wrap { text-align: center; padding: 32px 0; }

/* ===== Breadcrumbs ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 20px 0 8px; font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted-2); }
.crumbs .current { color: var(--ink); font-weight: 500; }

/* ===== Product detail ===== */
.pdp {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  padding: 20px 0 48px;
}
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.pdp-main-img {
  position: relative;
  aspect-ratio: 1 / 1; height: auto; min-height: 0; border-radius: var(--r-lg); overflow: hidden;
  background: transparent; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 0;
  cursor: zoom-in;
}
.pdp-main-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.pdp-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; aspect-ratio: 1/1; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0; display: grid; place-items: center; overflow: hidden;
  cursor: pointer;
}
.pdp-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { min-width: 0; }
.pdp-code { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pdp-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 12px; }
.pdp-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.pdp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pdp-price-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin: 20px 0;
}
.pdp-price-block.locked { background: var(--surface-alt); border-color: var(--gold-soft); }
.pdp-price-range { font-size: 1.4rem; font-weight: 700; font-family: var(--serif); color: var(--ink); }
.pdp-price-range.clearance { color: #9a3412; }
.pdp-price-was { color: var(--muted); text-decoration: line-through; font-size: 1rem; margin-left: 8px; font-family: var(--sans); font-weight: 600; }
.pdp-clearance-note {
  display: inline-flex; align-items: center; margin-top: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: #fff1d6; color: #9a3412;
  font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.pdp-price-locked { display: flex; align-items: center; gap: 10px; color: var(--gold-dark); font-weight: 600; }
.pdp-price-locked .lock-icon { width: 20px; height: 20px; }
.pdp-price-note { color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* Size table */
.size-table { width: 100%; margin: 20px 0; }
.size-table-head, .size-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.size-table-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom-color: var(--line-strong); padding: 8px 4px; }
.size-row .size-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-weight: 500; color: var(--ink);
}
.size-stock-note,
.cart-stock-note {
  display: inline-flex; align-items: center; width: fit-content;
  border: 1px solid rgba(154, 52, 18, .25); border-radius: 999px;
  background: #fff7e6; color: #9a3412;
  padding: 2px 7px; font-size: .68rem; font-weight: 800;
  letter-spacing: .01em; line-height: 1.2;
}
.size-row .size-price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.size-row .size-price.locked { color: var(--muted); font-weight: 400; font-size: .85rem; }
.size-row .size-price.clearance {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  color: #9a3412;
}
.size-price .price-was { color: var(--muted); text-decoration: line-through; font-size: .74rem; font-weight: 500; }
.size-price .price-now { font-weight: 800; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px;
  overflow: hidden; background: var(--surface);
}
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); font-size: 1.1rem; }
.qty button:hover:not(:disabled) { background: var(--surface-soft); }
.qty button:disabled { color: var(--muted-2); cursor: not-allowed; }
.qty input { width: 42px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-actions { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 160px; }

.unit-toggle {
  display: inline-flex; background: var(--surface-soft); border-radius: 999px; padding: 3px; margin-left: 8px;
}
.unit-toggle button { padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.unit-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; background: rgba(20, 10, 4, .9);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 1.6rem;
}

/* ===== Cart page ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 20px 0 60px; }
.cart-items-list { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.cart-item-thumb {
  width: 108px; aspect-ratio: 1/1; border-radius: var(--r-sm);
  background: var(--surface-soft); overflow: hidden; display: grid; place-items: center; padding: 6px;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { min-width: 0; }
.cart-item-body h4 { margin: 0 0 4px; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.cart-item-body .cart-item-code { font-size: .78rem; color: var(--muted); letter-spacing: .08em; margin-bottom: 12px; }
.cart-sizes { display: flex; flex-direction: column; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.cart-sizes-head,
.cart-size-row {
  display: grid; grid-template-columns: minmax(90px, 1fr) 150px 128px 42px; gap: 14px; align-items: center;
}
.cart-sizes-head {
  padding: 9px 0 7px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.cart-sizes-head span:nth-child(2),
.cart-sizes-head span:nth-child(3) { text-align: center; }
.cart-size-row {
  padding: 11px 0; font-size: .9rem; border-bottom: 1px solid var(--line);
}
.cart-size-row:last-child { border-bottom: 0; }
.cart-size-row .qty { justify-self: center; }
.cart-size-row .size {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  color: var(--ink-2); font-weight: 600;
  min-width: 0;
}
.cart-size-row .price {
  color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 0; text-align: right; justify-self: end;
}
.cart-size-row .price.locked { color: var(--muted); font-weight: 400; font-size: .82rem; font-style: italic; }
.cart-size-row .price.clearance {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #9a3412;
  line-height: 1.15;
}
.cart-price-now { font-weight: 850; font-size: .95rem; }
.cart-price-was { color: var(--muted); text-decoration: line-through; font-size: .74rem; font-weight: 600; }
.cart-remove {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: inline-grid; place-items: center; justify-self: end;
  color: var(--muted); background: var(--surface); font-size: 1.1rem; line-height: 1;
  box-shadow: var(--shadow-sm); transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.cart-remove:hover,
.cart-remove:focus-visible {
  color: var(--alert); border-color: rgba(174, 61, 28, .45); background: var(--alert-soft);
  transform: translateY(-1px);
}
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-actions .subtotal {
  min-width: 112px; text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums;
}
.cart-item-actions .subtotal span {
  display: block; margin-bottom: 4px; color: var(--muted); font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.cart-item-actions .subtotal.locked { font-size: .82rem; font-weight: 500; color: var(--muted); }

.cart-summary {
  position: sticky; top: calc(var(--header-h) + 20px); align-self: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px;
}
.cart-summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row.total { padding-top: 16px; border-top: 1px solid var(--line-strong); border-bottom: 0; font-size: 1.1rem; font-weight: 700; }
.min-warn {
  background: var(--alert-soft); color: var(--alert); border-radius: var(--r);
  padding: 10px 12px; font-size: .82rem; margin: 12px 0; display: flex; gap: 8px;
}
.min-warn::before { content: '!'; font-weight: 900; }

.enq-preview {
  background: var(--surface-soft); border-radius: var(--r); padding: 14px 16px; margin: 16px 0;
  font-family: 'Courier New', ui-monospace, monospace; font-size: .78rem; color: var(--ink-2);
  max-height: 200px; overflow-y: auto; white-space: pre-wrap; line-height: 1.5;
}
.wa-preview {
  margin: 12px 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #efeae2;
}
.wa-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 10px 14px;
}
.wa-preview-head .wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.wa-preview-head .wa-who { flex: 1; min-width: 0; line-height: 1.15; }
.wa-preview-head .wa-name { font-weight: 600; font-size: .88rem; letter-spacing: .01em; }
.wa-preview-head .wa-status { font-size: .68rem; opacity: .8; }
.wa-preview-head .wa-icons { display: flex; gap: 14px; opacity: .9; font-size: 1rem; }
.wa-preview-body {
  padding: 14px 12px;
  background-color: #efeae2;
  background-image:
    radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 22px 22px, 32px 32px;
  background-position: 0 0, 11px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-height: 360px;
  overflow-y: auto;
}
.wa-msg {
  position: relative;
  max-width: 90%;
  background: #d9fdd3;
  color: #111b21;
  border-radius: 12px 4px 12px 12px;
  padding: 8px 12px 20px;
  font-size: .82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-wrap: anywhere;
}
.wa-msg::after {
  content: '';
  position: absolute;
  top: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid #d9fdd3;
  border-bottom: 8px solid transparent;
}
.wa-msg .wa-meta {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: .62rem;
  color: #667781;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.wa-msg .wa-meta .wa-ticks { color: #53bdeb; font-weight: 700; letter-spacing: 0; }
.wa-msg strong { font-weight: 700; color: #111b21; }
.enq-ref { display: inline-block; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 6px; font-family: 'Courier New', monospace; font-size: .8rem; letter-spacing: .04em; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .field > span:first-child { font-size: .78rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: .92rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field.error input, .field.error select { border-color: var(--alert); }
.field .hint { font-size: .76rem; color: var(--muted); }
.field .err { font-size: .76rem; color: var(--alert); }

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ===== Profile ===== */
.profile-readonly { margin-top: 22px; }
.profile-view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.profile-view-head h3 { margin-bottom: 4px; }
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-detail {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--r);
  padding: 14px 16px;
  min-width: 0;
}
.profile-detail span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-detail strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-detail-wide { grid-column: 1 / -1; }

/* ===== Admin ===== */
.admin-page { padding-top: 36px; }
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.admin-dashboard { display: grid; gap: 16px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs button {
  padding: 12px 16px;
  border-radius: var(--r) var(--r) 0 0;
  font-weight: 800;
  color: var(--muted);
}
.admin-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
  background: var(--surface);
}
.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.admin-table th {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  background: var(--surface-soft);
}
.admin-table small { color: var(--muted); }
.admin-status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--surface);
}
.admin-status.active {
  border-color: rgba(45, 127, 80, .28);
  background: #e8f4ed;
  color: #1d7548;
}
.admin-status.pending {
  border-color: rgba(178, 105, 42, .28);
  background: #f8ecd8;
  color: var(--gold-dark);
}
.admin-status.expired,
.admin-status.revoked,
.admin-status.rejected,
.admin-status.deleted {
  border-color: rgba(123, 63, 44, .22);
  background: #f7e8e2;
  color: #803a26;
}
.admin-status.renewal-requested {
  border-color: rgba(45, 91, 127, .22);
  background: #e7f0f6;
  color: #275a7a;
}
.admin-status.very-hot {
  border-color: rgba(127, 44, 20, .24);
  background: #f9e4d8;
  color: #8a3119;
}
.admin-status.hot {
  border-color: rgba(178, 105, 42, .28);
  background: #f8ecd8;
  color: #92531c;
}
.admin-status.warm {
  border-color: rgba(168, 138, 91, .28);
  background: #f5efdf;
  color: #765b2d;
}
.admin-status.cold {
  border-color: rgba(105, 119, 130, .2);
  background: #eef2f3;
  color: #4c5b65;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.admin-actions select,
.admin-search-row input,
.admin-filterbar input,
.admin-filterbar select {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  padding: 9px 10px;
  font: inherit;
}
.admin-actions .danger {
  color: #803a26;
  border-color: rgba(123, 63, 44, .24);
}
.admin-customer-cell {
  display: grid;
  gap: 3px;
  min-width: 150px;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.ok {
  color: #1d7548;
  font-weight: 700;
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-kpis div {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-soft);
  padding: 12px;
}
.admin-kpis span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-kpis strong { color: var(--ink); font-size: 1.02rem; }
.admin-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(140px, .7fr));
  gap: 10px;
  margin-bottom: 16px;
}
.admin-busy {
  cursor: progress;
}
.admin-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
.admin-loader::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  animation: spin .75s linear infinite;
}
.admin-loader.big {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-soft);
  padding: 18px;
  width: 100%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.admin-search-row {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.admin-search-row input { flex: 1; min-width: 0; }
.activity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.activity-summary div {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-soft);
  padding: 12px;
}
.activity-summary span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  margin-bottom: 4px;
}
.activity-summary strong { color: var(--ink); }
.admin-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-summary-grid section {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}
.admin-summary-grid h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.admin-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.admin-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-list strong { font-size: .9rem; }
.admin-list span { color: var(--muted); font-size: .78rem; }
.admin-raw-log {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.admin-raw-log summary {
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 800;
}
.admin-raw-log .admin-table-wrap { margin-top: 12px; }
.admin-modal-card { max-width: 1040px; }
.admin-access-tools,
.admin-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.admin-control-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 14px;
  margin: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.admin-control-panel.suggested {
  background: var(--surface-soft);
}
.admin-control-panel label,
.admin-control-panel strong {
  display: block;
}
.admin-control-panel label {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  margin-bottom: 6px;
}
.admin-control-panel select,
.admin-control-panel input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  padding: 10px;
  font: inherit;
}
.admin-control-panel .muted {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-size: .84rem;
}
.admin-access-tools {
  margin: 0;
  align-items: center;
}
.admin-note-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-soft);
  padding: 14px;
  margin: 14px 0;
  display: grid;
  gap: 8px;
}
.admin-note-box label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.admin-note-box textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  padding: 10px;
  font: inherit;
  resize: vertical;
}
.admin-detail-section {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0;
  margin-top: 12px;
  overflow: hidden;
}
.admin-detail-section > summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
  border-bottom: 1px solid transparent;
}
.admin-detail-section[open] > summary {
  border-bottom-color: var(--line);
  background: var(--surface-soft);
}
.admin-detail-section > .muted,
.admin-detail-section > .admin-list,
.admin-detail-section > .admin-product-list,
.admin-detail-section > .admin-table-wrap {
  margin: 14px;
}
.admin-product-list {
  display: grid;
  gap: 10px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  background: var(--surface);
}
.admin-product-img {
  width: 74px;
  aspect-ratio: 1;
  border-radius: calc(var(--r) - 2px);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.admin-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.admin-product-row strong { display: block; font-size: .92rem; }
.admin-product-row span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.admin-product-money {
  text-align: right;
  min-width: 90px;
}
.admin-product-money strong,
.admin-product-money span { color: var(--ink); }

/* ===== Cards & panels ===== */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px;
}
.panel + .panel { margin-top: 20px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: var(--surface-soft);
  padding: 48px 0 24px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.site-footer p, .site-footer li { color: var(--muted-2); font-size: .88rem; line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-mark { background: var(--surface); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .76rem;
  color: var(--muted-2);
}

/* ===== Buyer gate modal ===== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,10,4,.5); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-scrim.open { display: flex; }
.modal-card {
  background: var(--surface); border-radius: var(--r-xl);
  max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 28px; position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; color: var(--muted);
}
.modal-close:hover { background: var(--surface-soft); color: var(--ink); }

/* Toast */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-bottomnav .toast { bottom: calc(var(--bottomnav-h) + 20px); }

/* Locked-price state helpers */
.lock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-soft); color: var(--gold-dark);
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}

/* ===== How-to-order ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }

.flow-list {
  --badge: 60px;
  --flow-line: var(--line-strong);
  list-style: none;
  padding: 0;
  margin: 40px 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-list::before {
  content: '';
  position: absolute;
  top: calc(var(--badge) / 2 - 1px);
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed var(--flow-line);
  z-index: 0;
}
.flow-list::after {
  content: '';
  position: absolute;
  top: calc(var(--badge) / 2 - 6px);
  right: calc(12.5% - 10px);
  width: 0;
  height: 0;
  border-left: 10px solid var(--flow-line);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}
.flow-badge {
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 5px solid var(--bg);
  box-shadow: 0 6px 18px rgba(165,100,43,.28);
}
.flow-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.flow-desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 26ch;
}

/* ===== Contact page ===== */
.contact-hero {
  text-align: center;
  padding: 30px 24px 40px;
  background: radial-gradient(ellipse at top, var(--gold-soft) 0%, transparent 60%);
  border-radius: var(--r-xl);
  margin-top: 12px;
  margin-bottom: 40px;
}
.contact-hero h1 { margin-bottom: 8px; }
.contact-hero p { color: var(--muted); max-width: 46ch; margin: 0 auto; font-size: 1.02rem; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-card-icon img { width: 64px; height: 64px; display: block; }
.contact-card-icon.wa,
.contact-card-icon.mail,
.contact-card-icon.phone { background: transparent; }
.contact-card h3 {
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
}
.contact-card strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
  display: block;
  line-height: 1.25;
}
.contact-card small { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.hours-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-lg);
  margin: 0 0 32px;
}
.hours-strip .hours-title {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 0 0 4px;
}
.hours-item { text-align: center; padding: 6px 4px; border-radius: 8px; }
.hours-item small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.hours-item strong {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--ink);
  font-weight: 600;
}
.hours-item.closed strong { color: var(--muted); font-weight: 500; font-style: italic; }
.hours-item.today { background: var(--surface); box-shadow: var(--shadow-sm); }
.hours-item.today small { color: var(--gold-dark); }
.address-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.address-info { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.address-info h3 { margin: 0 0 4px; }
.address-info .info-block { display: flex; gap: 14px; align-items: flex-start; }
.address-info .info-block-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.address-info .info-block h4 {
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 4px;
}
.address-info .info-block p { margin: 0; font-size: .94rem; color: var(--ink); line-height: 1.55; }
.address-info .info-block small { color: var(--muted); font-size: .8rem; }
.address-map {
  position: relative;
  min-height: 380px;
  background: var(--surface-soft);
}
.address-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.address-map .map-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
}
.address-map .map-badge:hover { background: var(--surface-soft); }

@media (max-width: 900px) {
  .flow-list { grid-template-columns: 1fr; margin: 24px 0; }
  .flow-list::before {
    top: 0;
    bottom: 0;
    left: calc(var(--badge) / 2 - 1px);
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--flow-line);
  }
  .flow-list::after {
    top: auto;
    bottom: calc(-1 * (var(--badge) / 2) + 4px);
    left: calc(var(--badge) / 2 - 6px);
    right: auto;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--flow-line);
    border-bottom: 0;
  }
  .flow-step {
    display: grid;
    grid-template-columns: var(--badge) 1fr;
    column-gap: 18px;
    row-gap: 4px;
    text-align: left;
    padding: 0 0 26px;
    align-items: start;
  }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-badge { margin: 0; grid-row: 1 / 3; align-self: start; }
  .flow-title { margin-top: 6px; }
  .flow-desc { max-width: 100%; margin: 0; }
}

@media (max-width: 780px) {
  .address-panel { grid-template-columns: 1fr; }
  .address-info { padding: 24px; gap: 18px; }
  .address-map { min-height: 260px; order: -1; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 32px 0 34px; }
  .hero-grid { display: flex; flex-direction: column; gap: 24px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-bottom: -10px; }
  .hero-copy h1 { order: 2; margin-bottom: -2px; }
  .hero-visual {
    order: 3;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    background-position: center;
  }
  .hero-tagline { order: 4; }
  .hero-actions { order: 5; }
  .hero-badges { order: 6; }
  .pdp { grid-template-columns: 1fr; gap: 24px; padding: 12px 0 40px; }
  .pdp-gallery { position: static; }
  .pdp-main-img { height: auto; min-height: 0; aspect-ratio: 1/1; padding: 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .shop-filters { display: none; }
  .shop-mobile-tools { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .activity-summary,
  .admin-summary-grid { grid-template-columns: 1fr 1fr; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filterbar { grid-template-columns: 1fr 1fr; }
  .admin-filterbar input { grid-column: 1 / -1; }
  .admin-control-panel { grid-template-columns: 1fr; }
  .admin-modal-card { max-width: 92vw; }
}

@media (max-width: 720px) {
  .site-header .header-inner { grid-template-columns: auto auto; justify-content: space-between; height: var(--header-h-mobile); gap: 8px; padding: 0 14px; }
  .site-header .header-inner > .row { flex-wrap: nowrap; gap: 8px !important; }
  .header-search { display: none; }
  .search-sheet-trigger { display: grid; }
  .main-nav { display: none; }
  .hamburger { display: grid; }
  .site-header .brand-lockup { gap: 0; }
  .site-header .brand-lockup > div:not(.brand-mark) { display: none; }
  .site-header .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
  .site-header .icon-btn { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: none; }
  .buyer-pill { display: none; }
  .buyer-pill.mobile-show { display: inline-flex; font-size: .7rem; padding: 4px 8px; }
  .bottom-nav { display: grid; }
  .wa-bubble { display: none; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 10px; }
  .product-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-title { font-size: .85rem; min-height: 2.4em; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-view-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .profile-view-head .btn { width: 100%; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-sizes-head { display: none; }
  .cart-size-row {
    grid-template-columns: 1fr auto 38px;
    grid-template-areas:
      "size qty remove"
      "price price remove";
    gap: 8px 10px;
    padding: 12px 0;
  }
  .cart-size-row .size { grid-area: size; }
  .cart-size-row .qty { grid-area: qty; justify-self: end; }
  .cart-size-row .price { grid-area: price; justify-self: start; text-align: left; }
  .cart-size-row .price.clearance { align-items: flex-start; }
  .cart-remove { grid-area: remove; align-self: center; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item-thumb { width: 80px; }
  .pdp-actions .btn { min-width: 120px; }
  .pdp-main-img { padding: 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual {
    max-width: none;
  }
  .hero-tagline { order: 4; }
  .hero-actions { order: 5; }
  .hero-badges { order: 6; }
  .hero { padding: 28px 0 32px; }
  .hero h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-strip { padding: 18px 0; }
  .admin-page { padding: 22px 0; }
  .admin-head,
  .admin-panel-head,
  .admin-summary-head,
  .admin-search-row { flex-direction: column; }
  .admin-tabs { overflow-x: auto; }
  .activity-summary,
  .admin-summary-grid { grid-template-columns: 1fr; }
  .admin-kpis,
  .admin-filterbar { grid-template-columns: 1fr; }
  .admin-control-panel { grid-template-columns: 1fr; }
  .admin-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }
  .admin-product-img { width: 64px; }
  .admin-product-money {
    grid-column: 2;
    text-align: left;
    min-width: 0;
  }
  .admin-modal-card {
    width: min(100%, 680px);
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 8px; }
  .product-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 8px; }
  .pc-title { font-size: .82rem; }
}

/* Utility */
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.spacer { flex: 1; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 20px; }
.text-c { text-align: center; }

/* --- Product page: Related + Recently viewed as horizontal browsing strips ---
   .product-grid uses !important on display:grid, so these overrides must also
   use !important to win the cascade for #relatedGrid + #recentlyViewedGrid. */
#relatedGrid,
#recentlyViewedGrid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px !important;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong, #d0c8b4) transparent;
}
#relatedGrid::-webkit-scrollbar,
#recentlyViewedGrid::-webkit-scrollbar { height: 8px; }
#relatedGrid::-webkit-scrollbar-track,
#recentlyViewedGrid::-webkit-scrollbar-track { background: transparent; }
#relatedGrid::-webkit-scrollbar-thumb,
#recentlyViewedGrid::-webkit-scrollbar-thumb {
  background: var(--line-strong, #d0c8b4);
  border-radius: 4px;
}
#relatedGrid::-webkit-scrollbar-thumb:hover,
#recentlyViewedGrid::-webkit-scrollbar-thumb:hover { background: var(--muted, #6d7581); }
#relatedGrid > *,
#recentlyViewedGrid > * {
  flex: 0 0 auto !important;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  #relatedGrid > *,
  #recentlyViewedGrid > * { width: 156px !important; max-width: 156px !important; min-width: 156px !important; }
  #relatedGrid, #recentlyViewedGrid { gap: 10px !important; }
}

/* --- Carousel arrows for horizontal strips (product-page related & recent) --- */
.carousel-wrap { position: relative; }
.carousel-btn {
  position: absolute;
  top: calc(50% - 22px);       /* offset for cards' caption area below image */
  z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15,30,43,.15), 0 1px 3px rgba(15,30,43,.08);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, transform .12s, background .15s, box-shadow .15s;
}
.carousel-btn:hover {
  background: var(--surface-soft, #f1ecdf);
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(15,30,43,.20);
}
.carousel-btn svg { width: 18px; height: 18px; display: block; }
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }
.carousel-btn.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 720px) {
  .carousel-btn { display: none; }
}
