/* ==========================================================================
   STASHLY — Design System
   "The world's vault for digital products."
   ========================================================================== */

:root {
  --bg: #12141C;
  --surface: #1B1E29;
  --surface-2: #232739;
  --text: #F4F2EA;
  --text-2: #B9BBCB;
  --gold: #F2B705;
  --gold-dim: #8A7124;
  --teal: #4FD1C5;
  --coral: #FF6B5B;
  --border: #333852;

  --f-head: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius-card: 20px;
  --radius-sm: 10px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* faint vault-grid atmosphere across the whole site */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(242,183,5,0.05), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(79,209,197,0.045), transparent 42%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p { margin: 0; color: var(--text-2); line-height: 1.6; }
button { font-family: var(--f-body); cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.mono {
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
}

section { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d19c04);
  color: #14140f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(242,183,5,0.55); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ==========================================================================
   HEADER + MEGA MENU
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,20,28,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 40px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity .2s ease;
}
.logo:hover { opacity: .85; }
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  position: relative;
  flex-shrink: 0;
}
.logo .mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1.4px solid #14140f;
  border-radius: 3px;
  opacity: .55;
}

/* ---------- Primary nav / category toggle ---------- */
nav.primary-nav { display: flex; align-items: center; gap: 4px; }
nav.primary-nav > ul { display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-item > button {
  background: none; border: none; color: var(--text-2);
  font-size: 14.5px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s ease, background .2s ease;
}
.nav-item > button:hover, .nav-item.open > button { color: var(--text); background: var(--surface); }
.nav-item > button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-item svg { transition: transform .2s ease; }
.nav-item.open svg { transform: rotate(180deg); }

/* legacy anchor variant of the nav trigger, kept for parity with .nav-item > button */
.nav-item > a {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease, background .2s ease;
}
.nav-item > a:hover {
  color: var(--text);
  background: var(--surface);
}

/* ---------- Mega menu panel ---------- */
.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(920px, 92vw);
  max-height: min(560px, calc(100vh - 140px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  padding: 34px 34px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 34px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
}
.nav-item.open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* thin, unobtrusive scrollbar so the panel doesn't look like a plain browser list */
.mega-panel::-webkit-scrollbar { width: 8px; }
.mega-panel::-webkit-scrollbar-track { background: transparent; }
.mega-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.mega-panel::-webkit-scrollbar-thumb:hover { background: var(--text-2); }

/* each column is its own flex stack so the divider + spacing stay consistent
   regardless of how many subcategories a given category has */
.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* rotate a quiet accent color across columns so the grid doesn't read as one
   flat block of text — purely a wayfinding cue, not decoration for its own sake */
.mega-col { --mega-accent: var(--gold); }
.mega-col:nth-child(4n+2) { --mega-accent: var(--teal); }
.mega-col:nth-child(4n+3) { --mega-accent: var(--coral); }

/* category name: this is the piece that was getting lost — now a distinct
   mono/uppercase label with its own accent color and a hairline underneath,
   so it reads as a section head rather than another list item */
.mega-col h4 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mega-col h4 a,
.mobile-category h4 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mega-accent, var(--gold));
  transition: color .2s ease;
}
.mega-col h4 a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.mega-col h4 a:hover,
.mobile-category h4 a:hover {
  color: var(--text);
}

/* subcategory list: quieter than the header, still fully legible, with room
   to breathe so a 6-item column doesn't feel cramped against a 2-item one */
.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-col ul li a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color .18s ease;
}
.mega-col ul li a:hover {
  color: var(--text);
}

/* ---------- Header search ---------- */
.header-search-wrap {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--text-2);
  transition: border-color .2s ease;
}
.header-search:focus-within { border-color: var(--gold); }
.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
  width: 100%;
  font-family: var(--f-body);
}
.header-search input::placeholder { color: #6b6f85; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 150;
}
.search-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-group { margin-bottom: 6px; }
.search-group:last-child { margin-bottom: 0; }
.search-group-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 8px 10px 4px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background .15s ease;
}
.search-result-item:hover { background: var(--surface-2); }
.sr-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 13px;
}
.sr-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sr-name {
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.search-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Header actions (auth links, cart, mobile toggle) ---------- */
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: color .2s ease;
}
.icon-btn:hover { color: var(--gold); }
.cart-dot {
  position: absolute; top: -4px; right: -6px;
  background: var(--coral); color: #14140f;
  font-size: 9px; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
}
.lang-select {
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  background: none; border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 12px;
}
.signin-link { font-size: 14px; font-weight: 600; color: var(--text); transition: color .2s ease; }
.signin-link:hover { color: var(--gold); }

/* ==========================================================================
   HERO — "THE VAULT"
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.vault-rings {
  position: absolute;
  top: 50%; left: 72%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.55;
}
.vault-rings svg { width: 100%; height: 100%; animation: rotateRings 90s linear infinite; }
@keyframes rotateRings { to { transform: rotate(360deg); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 560px;
}
.hero-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  margin: 18px 0 22px;
}
.hero-copy h1 .accent { color: var(--gold); }
.hero-copy > p.lead {
  font-size: 17.5px;
  max-width: 460px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 54px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--f-head);
  font-size: 22px;
  color: var(--text);
}
.hero-stats .stat span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Card fan visual ---------- */
.card-fan {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard {
  position: absolute;
  width: 260px;
  height: 164px;
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.vcard::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, transparent 50%, rgba(242,183,5,0.35) 50%);
  border-radius: 0 16px 0 0;
}
.vcard .vc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard .vc-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.vcard .vc-name { font-family: var(--f-head); font-size: 17px; margin-top: 4px; }
.vcard .vc-barcode { display: flex; gap: 2px; align-items: flex-end; height: 20px; opacity: .8; }
.vcard .vc-barcode span { width: 2px; background: currentColor; opacity: .7; }
.vcard .vc-amount { font-family: var(--f-mono); font-size: 20px; font-weight: 600; }

.vcard.c1 { transform: translate(-150px, -70px) rotate(-13deg); z-index: 1; color: var(--teal); }
.vcard.c2 { transform: translate(30px, -130px) rotate(-4deg) scale(1.06); z-index: 3; color: var(--gold); }
.vcard.c3 { transform: translate(150px, -30px) rotate(9deg); z-index: 2; color: var(--coral); }
.vcard.c4 { transform: translate(-60px, 90px) rotate(6deg); z-index: 2; color: var(--gold); }
.vcard.c5 { transform: translate(120px, 130px) rotate(-8deg); z-index: 1; color: var(--teal); }
.card-fan:hover .vcard { transform: var(--hover-t, none); }
.vcard.c1:hover, .vcard.c2:hover, .vcard.c3:hover, .vcard.c4:hover, .vcard.c5:hover { transform: translateY(-10px) scale(1.05); z-index: 5; }

/* ==========================================================================
   RESPONSIVE — mega menu / header specific
   ========================================================================== */
@media (max-width: 1080px) {
  .mega-panel { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 22px; }
}
/* ==========================================================================
   PERFORATED TICKET CARD — signature component
   ========================================================================== */
.ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
}
.ticket:hover {
  transform: translateY(-6px);
  border-color: rgba(242,183,5,0.4);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.55);
}
.ticket .ticket-face {
  padding: 26px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticket .perf {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
  margin: 0 0;
}
.ticket .perf::before, .ticket .perf::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--bg);
  border-radius: 50%;
}
.ticket .perf::before { left: -34px; }
.ticket .perf::after { right: -34px; }
.ticket .ticket-stub {
  padding: 14px 24px;
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket .stub-code { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2); display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.ticket .stub-code span { width: 2px; background: var(--text-2); opacity: .6; }
.ticket .stub-price { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--gold); }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section { padding: 92px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-top: 12px; max-width: 560px; }
.section-head .view-all { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 6px; transition: color .2s ease; }
.section-head .view-all:hover { color: var(--gold); }

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.cat-card::after {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--cat-glow, var(--gold)) 0%, transparent 70%);
  opacity: 0.16;
  border-radius: 50%;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--cat-glow, var(--gold)); }
.cat-card .cat-icon { color: var(--cat-glow, var(--gold)); }
.cat-card h3 { font-size: 16.5px; margin-top: 14px; }
.cat-card span.cat-count { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); }

/* ---------- Product grid (trending) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ticket .prod-glyph {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  color: var(--prod-color, var(--gold));
}
.ticket .prod-name { font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.ticket .prod-cat { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Why Stashly ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.why-item {
  background: var(--surface);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-item .why-num { font-family: var(--f-mono); font-size: 11px; color: var(--gold); }
.why-item h3 { font-size: 17px; }
.why-item p { font-size: 13.5px; }

/* ---------- Featured collections ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.collection-card {
  border-radius: var(--radius-card);
  padding: 30px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  transition: transform .3s ease;
}
.collection-card:hover { transform: translateY(-5px); }
.collection-card .coll-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--coll-color, var(--gold)); }
.collection-card h3 { font-size: 21px; margin-top: 10px; line-height: 1.2; }
.collection-card .coll-count { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); }
.collection-card .coll-orb {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: var(--coll-color, var(--gold)); opacity: .13; filter: blur(10px);
  bottom: -60px; right: -60px;
}

/* ---------- Brand wall ---------- */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.brand-cell {
  background: var(--surface);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  color: var(--text-2);
  transition: color .25s ease, background .25s ease;
}
.brand-cell:hover { color: var(--text); background: var(--surface-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--f-head);
  font-size: 15.5px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--gold); font-size: 20px; transition: transform .25s ease; flex-shrink: 0; margin-left: 20px; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 26px 24px; font-size: 14.5px; max-width: 620px; }

/* ---------- Newsletter ---------- */
.newsletter {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 56px 60px;
  background: radial-gradient(circle at 15% 20%, rgba(242,183,5,0.08), transparent 55%), var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter h2 { font-size: 28px; max-width: 380px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 420px; min-width: 280px; }
.newsletter-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 14px 20px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14px;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--gold); }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 13.5px;
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--teal);
  border: 1px solid rgba(79,209,197,0.3);
  background: rgba(79,209,197,0.06);
  padding: 8px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.footer-trust-badge svg { flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col-lead {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-crypto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.footer-crypto-chips span {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 7px;
}
.footer-crypto-chips span:last-child {
  color: var(--gold);
  border-color: rgba(242,183,5,0.35);
  background: rgba(242,183,5,0.06);
}

.footer-fact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-fact-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.footer-fact-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.footer-address {
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-phone svg { color: var(--gold); flex-shrink: 0; }

.footer-since {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: .02em;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges span { border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 30px; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); padding: 26px 0 0; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); }

.product-hero { padding: 40px 0 100px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: flex-start; }

/* floating giant card */
.stage {
  position: sticky;
  top: 120px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(242,183,5,0.16), transparent 65%);
  filter: blur(10px);
}
.big-card {
  position: relative;
  width: 380px;
  height: 240px;
  border-radius: 22px;
  background: linear-gradient(150deg, #2a2f45, #1B1E29 60%);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -25px rgba(0,0,0,0.7);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: floatCard 6s ease-in-out infinite;
  overflow: hidden;
}
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(-2deg);} 50% { transform: translateY(-16px) rotate(1deg);} }
.big-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 90px; height: 90px;
  background: linear-gradient(135deg, transparent 50%, rgba(242,183,5,0.4) 50%);
}
.big-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  background-size: 220% 220%;
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 200% 0; } 100% { background-position: -50% 100%; } }
.big-card .bc-top { display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.big-card .bc-brand { font-family: var(--f-head); font-size: 20px; font-weight: 700; }
.big-card .bc-type { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.big-card .bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; z-index: 1; }
.big-card .bc-barcode { display: flex; gap: 2px; align-items: flex-end; height: 30px; }
.big-card .bc-barcode span { width: 2px; background: var(--teal); opacity: .75; }
.big-card .bc-amount { font-family: var(--f-mono); font-size: 26px; font-weight: 700; color: var(--gold); }
.big-card .bc-mid { z-index: 1; margin: 6px 0; }
.big-card .bc-name { font-family: var(--f-head); font-size: 15px; font-weight: 600; color: var(--text); }
.big-card .bc-cat { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-top: 3px; }
.big-card .bc-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.big-card .bc-delivery { font-family: var(--f-mono); font-size: 9.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }

.big-card .bc-cat-sep {
  opacity: .4;
  margin: 0 4px;
}


.stage-thumbs { position: absolute; bottom: -30px; display: flex; gap: 10px; }
.stage-thumbs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.stage-thumbs .dot.active { background: var(--gold); }

/* purchase panel */
.buy-panel h1 { font-size: 34px; margin: 14px 0 10px; }
.rating-row { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; margin-bottom: 22px; }
.rating-row .stars { color: var(--gold); letter-spacing: 2px; }
.buy-panel > p.desc { font-size: 15px; max-width: 520px; margin-bottom: 32px; }

.field-group { margin-bottom: 24px; }
.field-group label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 11px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all .2s ease;
}
.pill.active, .pill:hover { border-color: var(--gold); color: var(--text); background: var(--surface-2); }
.pill.amount-pill { font-family: var(--f-mono); font-weight: 600; }

.email-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 14.5px;
  outline: none;
}
.email-input:focus { border-color: var(--gold); }
.field-hint { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }

.notice-row { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.notice-chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--teal);
  border: 1px solid rgba(79,209,197,0.3);
  background: rgba(79,209,197,0.06);
  padding: 9px 14px; border-radius: 100px;
}
.notice-chip.coral { color: var(--coral); border-color: rgba(255,107,91,0.3); background: rgba(255,107,91,0.06); }

.price-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  gap: 20px;
  flex-wrap: wrap;
}
.price-box .price-tot span { display: block; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 6px; }
.price-box .price-tot b { font-family: var(--f-head); font-size: 30px; }
.price-box .price-tot .old { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); text-decoration: line-through; margin-left: 8px; }
.price-box .btn-primary { padding: 17px 34px; font-size: 15px; }

/* detail tabs */
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.detail-tabs button {
  background: none; border: none; color: var(--text-2);
  font-family: var(--f-head); font-size: 14.5px; font-weight: 500;
  padding: 14px 4px; margin-right: 30px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.detail-tabs button.active, .detail-tabs button:hover { color: var(--text); border-color: var(--gold); }
.tab-panel { display: none; max-width: 760px; }
.tab-panel.active { display: block; }
.tab-panel p { margin-bottom: 16px; font-size: 14.5px; }
.tab-panel ol, .tab-panel ul.plain { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; margin-bottom: 16px; }
.tab-panel li { font-size: 14.5px; color: var(--text-2); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 0; font-size: 13.5px; }
.spec-table td:first-child { color: var(--text-2); font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; width: 220px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .category-grid, .product-grid, .why-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .card-fan { height: 380px; order: -1; }
  .product-hero { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: 340px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  nav.primary-nav, .header-search { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .header-row { padding: 14px 20px; }
  .category-grid, .product-grid, .why-grid, .collection-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .newsletter { padding: 40px 26px; flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; }
  .price-box { flex-direction: column; align-items: stretch; }
  .price-box .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media (max-width: 900px) {

    .mobile-menu-btn {
        display: flex;
    }

    nav.primary-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .header-row {
        padding: 14px 18px;
        gap: 14px;
    }

    .logo {
        font-size: 18px;
    }

}
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 78px;
    right: 0;

    width: 320px;
    max-width: 90vw;
    height: calc(100vh - 78px);

    overflow-y: auto;

    background: var(--surface);

    border-left: 1px solid var(--border);

    padding: 24px;

    transform: translateX(100%);

    transition: transform .25s ease;

    z-index: 200;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;

    color: var(--text);

    padding: 12px 0;

    border-bottom: 1px solid var(--border);
}

.mobile-category {
    margin-top: 24px;
}

.mobile-category h4 {
    color: var(--gold);

    font-size: 12px;

    margin-bottom: 12px;

    text-transform: uppercase;
}

@media (max-width: 900px) {

    .mobile-menu-btn {
        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 4px;

        width: 42px;
        height: 42px;

        border: 1px solid var(--border);

        border-radius: 10px;

        background: var(--surface);
    }

    .mobile-menu-btn span {
        width: 18px;
        height: 2px;

        background: var(--text);
    }

    nav.primary-nav,
    .header-search {
        display: none;
    }

    .header-row {
        padding: 16px 20px;
    }
}

/* ===== Cart item price box (scoped, doesn't clash with product page .price-box) ===== */

.cart-item .prod-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

.cart-item .cart-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.cart-item .price-box {
    border: none;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cart-item .original-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.cart-item .usd-price {
    font-size: 13px;
    color: var(--text-2);
    opacity: .8;
}

.cart-summary {
    margin-top: 32px;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 18px;
}

.cart-summary .summary-row strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
}

.cart-summary .checkout-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 0;
}

.checkout-btn {
    padding-left: 36px;
    padding-right: 36px;
}

.btn-danger {
    background: var(--coral);
    color: #14140f;
    border-color: var(--coral);
}

.checkout-product-card{

    padding:24px;

    margin-bottom:18px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    background:
    rgba(255,255,255,.03);

}



.checkout-product-header{

    display:flex;

    align-items:center;

    gap:15px;

}



.checkout-product-header h3{

    margin:0;

    font-size:18px;

}



.product-icon{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    background:
    rgba(255,255,255,.08);

    font-size:20px;

}



.product-id{

    opacity:.6;

    font-size:13px;

}




.checkout-options{

    margin-top:20px;

    display:flex;

    flex-direction:column;

    gap:10px;

}



.option-row{

    display:flex;

    justify-content:space-between;

    padding:10px 14px;

    border-radius:10px;

    background:
    rgba(0,0,0,.15);

}



.option-row span{

    opacity:.7;

}





.checkout-product-footer{

    margin-top:22px;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.08);


    display:flex;

    justify-content:space-between;

    align-items:center;

}



.quantity-box{

    display:flex;

    gap:8px;

    flex-direction:column;

    opacity:.8;

}




.checkout-price-box{

    text-align:right;

}



.checkout-price-box strong{

    display:block;

    font-size:18px;

}



.checkout-price-box small{

    opacity:.7;

    font-size:14px;

}

/* =========================================
   AUTH
========================================= */

.auth-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;
}

.auth-card {

    width: 100%;

    max-width: 520px;

    background: #171923;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 24px;

    padding: 40px;
}

.auth-brand {

    text-align: center;

    margin-bottom: 30px;
}

.auth-logo {

    color: #60a5fa;

    font-size: 14px;

    letter-spacing: 6px;

    font-weight: 700;

    margin-bottom: 20px;
}

.auth-brand h1 {

    font-size: 34px;

    margin-bottom: 10px;
}

.auth-brand p {

    color: #94a3b8;
}

.auth-error {

    background: rgba(239,68,68,.12);

    border: 1px solid rgba(239,68,68,.25);

    padding: 14px;

    border-radius: 12px;

    margin-bottom: 20px;
}

.auth-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 24px;
}

.auth-tab {

    flex: 1;

    height: 52px;

    border: none;

    border-radius: 12px;

    background: #0f172a;

    color: #94a3b8;

    cursor: pointer;

    transition: .2s;
}

.auth-tab.active {

    background: #2563eb;

    color: white;
}

.auth-form {

    display: none;

    flex-direction: column;

    gap: 16px;
}

.auth-form.active {

    display: flex;
}

.auth-form input {

    height: 56px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,.08);

    background: #0f172a;

    color: white;

    padding: 0 18px;

    font-size: 15px;
}

.auth-form button {

    height: 56px;

    border: none;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: .2s;
}

.auth-form button:hover {

    transform: translateY(-2px);
}


.user-menu {

    display: flex;

    align-items: center;

    gap: 14px;
}

.user-name {

    color: white;

    font-weight: 600;
}

.logout-link {

    color: #94a3b8;

    text-decoration: none;

    transition: .2s;
}

.logout-link:hover {

    color: white;
}

.order-link {

    color: inherit;

    text-decoration: none;

    font-weight: 600;

}

.order-link:hover {

    text-decoration: underline;

}

/* ===========================
   ACCOUNT
=========================== */

.account-page {

    padding: 70px 0 100px;

}

.account-header {

    margin-bottom: 40px;

}

.account-tabs {

    display: flex;

    gap: 12px;

    margin-bottom: 35px;

    flex-wrap: wrap;

}

.account-tab {

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-2);

    padding: 12px 22px;

    border-radius: 999px;

    cursor: pointer;

    transition: .2s;

}

.account-tab.active {

    background: var(--gold);

    color: #111;

}

.account-panel {

    display: none;

}

.account-panel.active {

    display: block;

}

.account-grid {

    display: grid;

    grid-template-columns: repeat(
        2,
        1fr
    );

    gap: 20px;

}

.account-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 24px;

}

.account-card h2 {

    margin-bottom: 20px;

}

.info-row {

    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid rgba(
        255,
        255,
        255,
        .06
    );

}

.referral-box {

    display: flex;

    gap: 10px;

    margin-top: 18px;

}

.referral-box input {

    flex: 1;

    background: var(--surface-2);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 12px;

    color: white;

}

.referral-box button {

    padding: 0 18px;

    border: none;

    border-radius: 10px;

    background: var(--gold);

    font-weight: 700;

}

.account-orders {

    margin-top: 30px;

}

.orders-table {

    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    border-radius: 18px;

}

.orders-table th {

    text-align: left;

    padding: 18px;

    background: var(--surface);

}

.orders-table td {

    padding: 18px;

    border-top: 1px solid rgba(
        255,
        255,
        255,
        .05
    );

}

.orders-table tr {

    background: var(--surface-2);

}

@media (max-width: 900px) {

    .account-grid {

        grid-template-columns: 1fr;

    }

    .orders-table {

        display: block;

        overflow-x: auto;

    }

}

.payment-qr-box {

    margin-top: 22px;

    display: flex;

    justify-content: center;
}

.payment-qr {

    width: 180px;

    height: 180px;

    padding: 12px;

    border-radius: 18px;

    background: #fff;

    border: 1px solid rgba(255,255,255,.08);
}

/* ==========================================================================
   STASHLY — Homepage trust & conversion layer
   Add this file after style.css in index.html
   ========================================================================== */

/* ---------- Live activity ticker ---------- */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}
.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(79, 209, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0); }
}
.ticker-text { transition: opacity 0.35s ease; }
.ticker-text.fade { opacity: 0; }
.ticker-text b { color: var(--text); font-weight: 500; }

/* ---------- How it works ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card { position: relative; }
.step-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 22px;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { font-size: 14px; max-width: 300px; }

/* ---------- Protection / guarantee banner ---------- */
.protection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 44px;
}
.protection-left { display: flex; align-items: center; gap: 22px; }
.protection-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
}
.protection-seal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(242, 183, 5, 0.4);
  border-radius: 50%;
}
.protection-copy h3 { font-size: 20px; margin-bottom: 6px; }
.protection-copy p { font-size: 13.5px; max-width: 380px; }
.protection-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.protection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 15px;
  background: var(--bg);
}
.protection-badge svg { color: var(--teal); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonial-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.testimonial-summary .ts-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.testimonial-summary .ts-score { font-family: var(--f-head); font-size: 20px; }
.testimonial-summary .ts-count { font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14.5px; color: var(--text); line-height: 1.65; }
.testimonial-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13px;
  color: #14140f;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.testimonial-meta { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); }

/* ---------- Product rating (trending grid) ---------- */
.ticket .prod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 3px;
}
.ticket .prod-rating .stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .steps-row { grid-template-columns: 1fr; gap: 34px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .protection-banner { padding: 30px 26px; flex-direction: column; align-items: flex-start; }
  .protection-badges { width: 100%; }
}
/* ==========================================================================
   STASHLY — Categories Directory (editorial ledger layout)
   Add this file after style.css. Independent of category.css / browse.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.directory-hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.directory-hero .dh-ghost-num {
  position: absolute;
  top: -60px;
  right: -10px;
  font-family: var(--f-head);
  font-size: clamp(220px, 26vw, 420px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.directory-hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  max-width: 820px;
  margin: 20px 0 22px;
}
.directory-hero p.lead {
  font-size: 17.5px;
  max-width: 520px;
  color: var(--text-2);
}
.directory-hero .dh-meta {
  display: flex;
  gap: 48px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.directory-hero .dh-meta .stat b {
  display: block;
  font-family: var(--f-head);
  font-size: 24px;
  color: var(--text);
}
.directory-hero .dh-meta .stat span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Layout: sticky index nav + grouped ledger ---------- */
.directory-layout {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 64px;
  align-items: start;
  padding: 10px 0 110px;
}

.directory-nav {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.directory-nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0 11px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  border-left: 2px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.directory-nav a .dn-num { color: var(--text-2); opacity: 0.6; transition: color .2s ease; }
.directory-nav a:hover { color: var(--text); border-color: var(--text-2); }
.directory-nav a.active { color: var(--text); border-color: var(--gold); }
.directory-nav a.active .dn-num { color: var(--gold); opacity: 1; }

/* ---------- Grouped sections ---------- */
.directory-groups { display: flex; flex-direction: column; }
.directory-group {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 112px;
}
.directory-group:first-child { padding-top: 0; }
.directory-group:last-child { border-bottom: none; padding-bottom: 0; }

.dg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.dg-head .dg-title { display: flex; align-items: baseline; gap: 16px; }
.dg-head .dg-num { font-family: var(--f-mono); font-size: 14px; color: var(--gold); }
.dg-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.dg-head .dg-meta { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Ledger rows ---------- */
.directory-rows { display: flex; flex-direction: column; }
.directory-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 16px;
  border-radius: 14px;
  border-top: 1px solid var(--border);
  transition: background 0.25s ease, transform 0.25s ease;
}
.directory-rows .directory-row:first-child { border-top: none; }
.directory-row:hover {
  background: var(--surface);
  transform: translateX(6px);
}

.dr-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--row-glow, var(--gold));
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.directory-row:hover .dr-icon {
  background: var(--bg);
  border-color: var(--row-glow, var(--gold));
}

.dr-body { flex: 1; min-width: 0; }
.dr-body h3 { font-size: 18px; margin-bottom: 5px; }
.dr-body p { font-size: 13.5px; max-width: 520px; }

.dr-count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.dr-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.directory-row:hover .dr-arrow {
  background: var(--row-glow, var(--gold));
  border-color: var(--row-glow, var(--gold));
  color: #14140f;
  transform: translateX(3px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .directory-layout { grid-template-columns: 1fr; gap: 8px; }
  .directory-nav {
    position: sticky;
    top: 64px;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    background: rgba(18,20,28,0.92);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    z-index: 5;
    margin-bottom: 20px;
    scrollbar-width: none;
  }
  .directory-nav::-webkit-scrollbar { display: none; }
  .directory-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 14px;
    white-space: nowrap;
  }
  .directory-nav a:hover, .directory-nav a.active { border-color: var(--gold); }
}
@media (max-width: 620px) {
  .directory-hero .dh-ghost-num { display: none; }
  .directory-hero .dh-meta { gap: 30px; }
  .directory-row { flex-wrap: wrap; row-gap: 12px; }
  .dr-body { order: 3; flex-basis: 100%; }
  .dr-arrow { display: none; }
}

/* ==========================================================================
   STASHLY — Categories page (group cards)
   Add this file after style.css. Independent of category.css / browse.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.directory-hero {
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.directory-hero .dh-ghost-num {
  position: absolute;
  top: -60px;
  right: -10px;
  font-family: var(--f-head);
  font-size: clamp(220px, 26vw, 420px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.directory-hero h1 {
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  max-width: 760px;
  margin: 20px 0 22px;
}
.directory-hero p.lead {
  font-size: 17.5px;
  max-width: 540px;
  color: var(--text-2);
}
.directory-hero .dh-meta {
  display: flex;
  gap: 48px;
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 680px;
  flex-wrap: wrap;
}
.directory-hero .dh-meta .stat b {
  display: block;
  font-family: var(--f-head);
  font-size: 24px;
  color: var(--text);
}
.directory-hero .dh-meta .stat span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Group cards grid ---------- */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 10px 0 110px;
}

.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 34px 32px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.group-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grp-color, var(--gold));
}
.group-card:hover {
  transform: translateY(-6px);
  border-color: var(--grp-color, var(--gold));
  box-shadow: 0 34px 64px -28px rgba(0, 0, 0, 0.6);
}

.gc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.gc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grp-color, var(--gold));
  transition: background 0.3s ease, border-color 0.3s ease;
}
.group-card:hover .gc-icon {
  background: var(--bg);
  border-color: var(--grp-color, var(--gold));
}
.gc-index {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  opacity: 0.55;
}

.gc-title h2 { font-size: 24px; margin-bottom: 8px; }
.gc-title p { font-size: 13.5px; color: var(--text-2); max-width: 360px; }

.gc-divider { height: 1px; background: var(--border); }

.gc-subcats-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 12px;
  display: block;
}
.gc-subcat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-subcat-list span {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 100px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.group-card:hover .gc-subcat-list span { color: var(--text); border-color: var(--border); }

.gc-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}
.gc-stats { font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }
.gc-stats b { color: var(--text); font-weight: 600; }
.gc-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.group-card:hover .gc-arrow {
  background: var(--grp-color, var(--gold));
  border-color: var(--grp-color, var(--gold));
  color: #14140f;
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .groups-grid { grid-template-columns: 1fr; }
  .directory-hero .dh-ghost-num { display: none; }
  .directory-hero .dh-meta { gap: 30px; }
  .group-card { padding: 30px 26px 26px; }
}
/* ==========================================================================
   STASHLY — Category & Subcategory pages
   Append this file after style.css
   ========================================================================== */

/* ---------- Category hero ---------- */
.category-hero {
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.category-hero .ch-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}
.category-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.category-hero p.ch-desc { max-width: 560px; font-size: 15px; }
.category-hero .ch-stats { display: flex; gap: 30px; }
.category-hero .ch-stats .stat b { display: block; font-family: var(--f-head); font-size: 21px; }
.category-hero .ch-stats .stat span { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }

/* ---------- Subcategory grid (shown on category page) ---------- */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.subcat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.subcat-card::after {
  content: "";
  position: absolute; top: -30%; right: -20%;
  width: 130px; height: 130px;
  background: radial-gradient(circle, var(--sc-glow, var(--gold)) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
}
.subcat-card:hover { transform: translateY(-4px); border-color: var(--sc-glow, var(--gold)); }
.subcat-card .sc-icon { color: var(--sc-glow, var(--gold)); }
.subcat-card .sc-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.subcat-card .sc-count { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2); }

/* ---------- Shop layout: sidebar + product grid ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: flex-start;
}

.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.filter-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-sidebar-head h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}
.filter-clear {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--coral);
  background: none; border: none;
}
.filter-group h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2);
  margin-bottom: 14px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}
.filter-check:last-child { margin-bottom: 0; }
.filter-check input { accent-color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
.filter-check:hover { color: var(--text); }
.filter-check .fc-count { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--text-2); }

.price-range-row { display: flex; align-items: center; gap: 8px; }
.price-range-row input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 12.5px;
  outline: none;
}
.price-range-row input:focus { border-color: var(--gold); }
.price-range-row span { color: var(--text-2); font-family: var(--f-mono); font-size: 12px; }

.filter-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill-group .pill { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Toolbar: result count + sort ---------- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}
.shop-toolbar .result-count { font-size: 13.5px; color: var(--text-2); }
.shop-toolbar .result-count b { color: var(--text); font-weight: 600; }
.sort-row { display: flex; align-items: center; gap: 10px; }
.sort-row label { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.sort-select {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 100px;
  padding: 10px 16px;
  outline: none;
}
.sort-select:focus { border-color: var(--gold); }

/* active filter chips above product grid */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.active-filter-chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 8px 7px 14px;
  border-radius: 100px;
}
.active-filter-chip button {
  background: none; border: none; color: var(--text-2);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.active-filter-chip button:hover { background: var(--coral); color: #14140f; }

/* product grid used inside shop layout (3-up instead of 4-up) */
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 54px;
}
.pagination button {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pagination button.active { background: var(--gold); color: #14140f; border-color: var(--gold); }
.pagination button:hover:not(.active):not(:disabled) { border-color: var(--gold); color: var(--text); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .page-dots {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: relative; top: 0; }
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .subcat-grid { grid-template-columns: 1fr; }
  .product-grid.cols-3 { grid-template-columns: 1fr; }
  .category-hero { align-items: flex-start; }
  .category-hero .ch-stats { gap: 20px; }
}
/* ==========================================================================
   STASHLY — Browse flow (All Categories → Category → Subcategory)
   Append this file after category.css
   ========================================================================== */

/* ---------- Compact hero variant (used on category/subcategory pages) ---------- */
.category-hero.compact { padding: 36px 0 30px; }

/* ---------- Simple filter bar (search + group pills) ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.page-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 18px;
  color: var(--text-2);
}
.page-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 13.5px;
  width: 100%;
}
.page-search input::placeholder { color: #6b6f85; }

.group-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.pill-solid.active {
  background: var(--gold);
  color: #14140f;
  border-color: var(--gold);
}

/* ---------- Flat grid: all 25 categories ---------- */
.flat-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
}
.cat-card .cc-group {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
  display: block;
}
.cat-card.hidden { display: none; }

/* ---------- Simple result toolbar (sort + brand pills, no sidebar) ---------- */
.simple-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.brand-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Directory card (refined variant of .cat-card for the categories page) ---------- */
.cat-card.directory {
  padding-top: 26px;
}
.cat-card.directory::after { display: none; }
.cat-card.directory::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-glow, var(--gold));
  border-radius: 20px 20px 0 0;
  opacity: 0.9;
}
.cat-card.directory .cc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cat-card.directory .cc-index {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-2);
  opacity: 0.55;
}
.cat-card.directory .cc-group {
  margin-bottom: 0;
}
.cat-card.directory h3 { font-size: 15.5px; margin-top: 16px; }

/* ---------- Subcategory tab filter (used on the category products page) ---------- */
.subcat-tabs {
  display: flex;
  flex-wrap: wrap;      /* به‌جای اسکرول افقی، بشکنه به خط بعد */
  gap: 4px 0;
  overflow-x: visible;   /* دیگه لازم نیست اسکرول کنه */
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  scrollbar-width: none;
}
.subcat-tabs::-webkit-scrollbar { display: none; }
.subcat-tabs a {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14.5px;
  padding: 15px 2px;
  margin-right: 32px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.subcat-tabs a .tab-count {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 100px;
  padding: 2px 8px;
  transition: color .2s ease, background .2s ease;
}
.subcat-tabs a.active { color: var(--text); border-color: var(--gold); }
.subcat-tabs a.active .tab-count { color: #14140f; background: var(--gold); }
.subcat-tabs a:hover:not(.active) { color: var(--text); }

/* ---------- Empty state (shown by filter JS when nothing matches) ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  color: var(--text-2);
  font-size: 14px;
  display: none;
}
.empty-state.show { display: block; }

@media (max-width: 620px) {
  .filter-bar, .simple-filter-bar { flex-direction: column; align-items: stretch; }
  .flat-category-grid { grid-template-columns: repeat(2, 1fr); }
}

.option-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section.has-divider {
  border-top: 1px solid var(--border);
}

/* ===== Customer Inputs / Recipient Blocks ===== */

.customer-inputs {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.customer-inputs h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin: 0 0 12px;
    font-weight: 600;
}

.recipient-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.recipient-block:last-child {
    margin-bottom: 0;
}

.recipient-label {
    display: inline-block;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--gold);
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid rgba(255, 200, 87, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.input-group label span {
    color: var(--coral);
    margin-left: 3px;
}

.input-group .customer-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.input-group .customer-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group .customer-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.35);
}

.input-group .customer-input[required] {
    border-left: 2px solid rgba(255, 200, 87, 0.4);
}

.field-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 4px 0 0;
}

select.customer-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
@media (max-width: 768px) {

    .cart-item .cart-meta {
        align-items: center;
        text-align: center;
    }

    .cart-item .price-box {
        align-items: center;
    }

    .cart-summary .summary-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cart-summary .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.site-header {
  position: relative;
  z-index: 100;
}

.mega-panel {
  z-index: 200;
}
/* ==========================================================================
   REFERRAL REWARD BANNER (GTA VI)
   ========================================================================== */
.referral-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, rgba(242,183,5,0.08), rgba(79,209,197,0.04) 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 54px 56px;
  overflow: hidden;
}
.referral-banner::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(242,183,5,0.18), transparent 70%);
  pointer-events: none;
}

.referral-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid rgba(255,107,91,0.35);
  background: rgba(255,107,91,0.08);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.referral-badge svg { flex-shrink: 0; }

.referral-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 560px;
}
.referral-copy h2 .accent { color: var(--gold); }

.referral-lead {
  font-size: 15.5px;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.referral-lead b { color: var(--text); }

.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.referral-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.referral-step .rs-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.referral-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 460px;
}
.referral-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.referral-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d19c04);
  border-radius: 100px;
  transition: width .4s ease;
}
.referral-progress-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.referral-progress-label b { color: var(--gold); font-size: 14px; }

.referral-cta { padding: 16px 32px; font-size: 15px; }

/* reward "card" visual — echoes the hero .vcard motif for consistency */
.referral-visual { display: flex; align-items: center; justify-content: center; }
.referral-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 8 / 5;
  border-radius: 20px;
  background: linear-gradient(150deg, #2a2f45, #1B1E29 65%);
  border: 1px solid var(--border);
  box-shadow: 0 34px 70px -24px rgba(0,0,0,0.65);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: floatCard 6s ease-in-out infinite;
}
.referral-card .rc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-2);
}
.referral-card .rc-slots { color: var(--coral); }
.referral-card .rc-title {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}
.referral-card .rc-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: -8px;
}
.referral-card .rc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.referral-card .rc-barcode { display: flex; gap: 2px; align-items: flex-end; height: 26px; color: var(--gold); opacity: .85; }
.referral-card .rc-barcode span { width: 2px; background: currentColor; }
.referral-card .rc-req {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .referral-banner { grid-template-columns: 1fr; padding: 40px 32px; }
  .referral-visual { order: -1; margin-bottom: 10px; }
  .referral-card { max-width: 260px; }
}

/* ==========================================================================
   SECTION HEAD — centered variant (used by FAQ)
   Fixes the previous inline-style approach, which didn't actually center
   the h2's box (max-width + no auto margins = it hugged the left side
   even though the text inside it was centered).
   ========================================================================== */
.section-head.centered {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.section-head.centered .eyebrow {
  margin: 0 auto;
}
.section-head.centered h2 {
  margin-left: auto;
  margin-right: auto;
}