/* ============================================================
   The Relist — Homepage Styles
   Brand: TT Chocolates · #F5600E · #F2C1F1 · #F4ECBE · #86C6F2
   ============================================================ */

/* ── TT Chocolates Font ──────────────────────────────────── */
@font-face {
  font-family: 'TT Chocolates';
  src: url('../fonts/TT_Chocolates_Regular.woff2') format('woff2'),
       url('../fonts/TT_Chocolates_Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'TT Chocolates';
  src: url('../fonts/TT_Chocolates_Medium.woff2') format('woff2'),
       url('../fonts/TT_Chocolates_Medium.woff')  format('woff');
  font-weight: 500 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'TT Chocolates';
  src: url('../fonts/TT_Chocolates_DemiBold.woff2') format('woff2'),
       url('../fonts/TT_Chocolates_DemiBold.woff')  format('woff');
  font-weight: 700 800;
  font-style: normal;
  font-display: optional;
}

/* ── Variables ───────────────────────────────────────────── */
:root {
  --orange:       #F5600E;
  --orange-light: #FEE4D8;
  --orange-dark:  #C44A09;
  --pink:         #F2C1F1;
  --pink-light:   #FAE8FA;
  --yellow:       #F4ECBE;
  --yellow-dark:  #E8D98C;
  --blue:         #86C6F2;
  --blue-light:   #DAEEF9;
  --off-white:    #FFFFF7;
  --black:        #000000;
  --gray-900:     #111111;
  --gray-700:     #333333;
  --gray-500:     #666666;
  --gray-400:     #888888;
  --gray-200:     #DDDDDD;
  --gray-100:     #F5F5F0;
  --surface:      #FFFFFF;
  --border:       #E8E8E0;

  --font: 'TT Chocolates', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h:     80px;
  --max-w:     1280px;
  --pad-x:     clamp(20px, 4vw, 48px);
  --section-y: clamp(40px, 6vw, 72px);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 8px 28px rgba(0,0,0,.11);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);

  --t: .2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Section base ────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }

/* ── Section headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-header.centered { flex-direction: column; align-items: center; text-align: center; }

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  margin-top: 6px;
  max-width: 480px;
}
.section-sub.light  { color: rgba(255,255,255,.7); }
.section-sub.wider  { max-width: 600px; }

.section-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: var(--pink);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.section-link:hover { background: #e8a8e7; color: var(--black); }

/* ── Star helpers ────────────────────────────────────────── */
.sf { color: #FBBF24; }
.se { color: var(--gray-200); }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: var(--off-white);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  flex-shrink: 0;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 30px; width: auto; }
.logo-default  { display: block; }
.logo-scrolled { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--orange); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-sign-in {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--t);
}
.nav-sign-in:hover { color: var(--orange); }

.btn-nav-pill {
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
}
.btn-nav-pill:hover { background: var(--orange-dark); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; /* shown only on mobile via media query below */
}

.nav-drawer a {
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--t);
}
.nav-drawer a:hover { color: var(--orange); }

.nav-drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Cart button in mobile drawer */
.nav-drawer-cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 0;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--t);
}
.nav-drawer-cart-btn:hover { color: var(--orange); }

.nav-drawer-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  padding: 0 5px;
  line-height: 1;
}

.btn-drawer-pill {
  display: inline-block;
  background: var(--orange) !important;
  color: #fff !important;
  border-bottom: none !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-full);
  text-align: center;
  margin-top: 8px;
}

/* ── Nav search button ───────────────────────────────────── */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--gray-700);
  transition: color var(--t);
  border-radius: var(--radius-sm);
}
.nav-search-btn:hover { color: var(--orange); }

/* ── Nav search panel ────────────────────────────────────── */
.nav-search-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  z-index: 199;
  box-shadow: var(--shadow-md);
}
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 8px 8px 18px;
  transition: border-color var(--t);
  position: relative;
}
.nav-search-form:focus-within { border-color: var(--orange); }
.nav-search-form > svg { color: var(--gray-400); flex-shrink: 0; }
.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-900);
  min-width: 0;
}
.nav-search-input::placeholder { color: var(--gray-400); }
.nav-search-close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--gray-500);
  border-radius: 50%;
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.nav-search-close:hover { background: var(--gray-100); color: var(--black); }

/* ── Live search dropdown ────────────────────────────────── */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.ls-results {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.ls-result-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-900);
  transition: background var(--t);
}
.ls-result-link:hover { background: var(--gray-100); }
.ls-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  overflow: hidden;
}
.ls-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-price { font-size: 13px; color: var(--orange); font-weight: 700; }
.ls-empty {
  margin: 0;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}
.ls-view-all {
  display: block;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  transition: background var(--t);
}
.ls-view-all:hover { background: var(--gray-100); color: var(--orange); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  background: var(--off-white);
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  overflow: visible;
  position: relative;
}

/* Subtle background blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: .4;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Left content */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-heading {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-heading em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Search bar */
.hero-search {
  margin: 0 auto 32px;
  max-width: 920px;
  position: relative;
}
.hero-search-inner {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 18px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.hero-search-inner:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,96,14,.1), var(--shadow-sm);
}

.search-icon { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--gray-900);
  background: transparent;
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--gray-400); }

.search-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }

.hero-search-select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--gray-500);
  font-weight: 500;
  cursor: pointer;
  padding: 0 4px;
  white-space: nowrap;
  max-width: 140px;
}

.hero-search-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), transform var(--t);
  flex-shrink: 0;
}
.hero-search-btn:hover { background: var(--orange-dark); transform: scale(1.02); }

/* Tags */
.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tag-label { font-size: 13px; font-weight: 600; color: var(--gray-400); }
.hero-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  transition: all var(--t);
}
.hero-tag:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 210px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 20px rgba(245,96,14,.35);
}
.btn-primary-lg:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,96,14,.4);
}

.btn-primary-lg--pink {
  background: var(--pink);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(242,193,241,.5);
}
.btn-primary-lg--pink:hover {
  background: #e8a8e7;
  box-shadow: 0 8px 28px rgba(242,193,241,.6);
}

.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 14px 4px;
  border-bottom: 2px solid var(--gray-200);
  transition: color var(--t), border-color var(--t);
}
.btn-ghost-lg:hover { color: var(--orange); border-color: var(--orange); }

/* Right visual: card grid */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 440px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--rot));
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hero-card-img {
  height: 120px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}
.hero-card { background-color: var(--surface); }
.hero-card .hero-card-img { background-color: var(--bg); }

/* Individual card background colors via inline --bg var */
.hero-card { --bg: var(--pink); }

.hero-card-emoji { font-size: 44px; line-height: 1; }

.hero-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.hero-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card-price  { font-size: 14px; font-weight: 700; color: var(--orange); }
.hero-card-heart  { font-size: 16px; color: var(--gray-300); cursor: pointer; transition: color var(--t); }
.hero-card:hover .hero-card-heart { color: var(--orange); }

/* Orange logo pill */
.hero-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.hero-logo-pill img { display: block; height: 28px; width: auto; }

/* Values section star header */
.values-star-header {
  text-align: center;
  margin-bottom: 24px;
}

/* Core values grid */
.core-values-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 48px 0 20px;
}
.core-values-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.core-value-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.core-value-icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.core-value-card h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.core-value-card p {
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .core-values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════════ */
.ticker {
  background: var(--pink);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--black);
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticker-item img {
  display: block;
  flex-shrink: 0;
  align-self: center;
  margin: 0 20px;
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════════════════════════
   BRAND STORY BAND
══════════════════════════════════════════════════════════ */
.brand-story-band {
  background: var(--yellow);
  padding: 44px 0 52px;
  position: relative;
  overflow: hidden;
}

.brand-story-band::before,
.brand-story-band::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  background: url('../images/icons/Re_SunkistOrange.svg') center / contain no-repeat;
  opacity: 0.92;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.brand-story-band::before {
  left: clamp(-72px, -4vw, -32px);
}

.brand-story-band::after {
  right: clamp(-72px, -4vw, -32px);
}

.brand-story-box {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  background: var(--blue);
  padding: 30px;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.brand-story-box::before {
  content: none;
}

.brand-story-box p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: clamp(16px, 1.7vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-family: var(--font);
  color: var(--black);
}

/* ══════════════════════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════════════════════ */
.stats-band {
  background: var(--orange);
  padding: 44px 0;
}
.stats-band .container {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 100px);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat-icon { font-size: 28px; line-height: 1; }
.stat-number {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

/* ══════════════════════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════════════════════ */
.categories-section { background: var(--off-white); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-bg);
  opacity: 0;
  transition: opacity var(--t);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.category-card:hover::before { opacity: .25; }

.cat-emoji {
  font-size: 28px;
  width: 48px; height: 48px;
  background: var(--cat-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cat-name  { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.cat-count { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.cat-arrow { font-size: 16px; color: var(--gray-400); flex-shrink: 0; position: relative; z-index:1; transition: color var(--t), transform var(--t); }
.category-card:hover .cat-arrow { color: var(--orange); transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════
   LISTINGS
══════════════════════════════════════════════════════════ */
.listings-section { background: var(--off-white); }

.listings-header {
  flex-wrap: wrap;
  row-gap: 16px;
}
.listings-header > div:first-child { flex: 1; min-width: 200px; }

.listings-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  gap: 2px;
}
.l-tab {
  background: none;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
  font-family: var(--font);
}
.l-tab.active {
  background: var(--surface);
  color: var(--gray-900);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-emoji { font-size: 60px; line-height: 1; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-hot  { background: var(--orange); color: #fff; }
.badge-deal { background: var(--black);  color: #fff; }
.badge-new  { background: var(--blue);   color: var(--black); }

.condition-pill {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  color: var(--gray-700);
}

.product-info { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }

.product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price   { font-size: 20px; font-weight: 700; color: var(--orange); letter-spacing: -0.5px; }
.product-was     { font-size: 13px; color: var(--gray-400); text-decoration: line-through; }
.product-savings {
  font-size: 11px; font-weight: 700;
  background: #D4EDDA; color: #1A7A37;
  padding: 2px 7px; border-radius: var(--radius-full);
}

.product-seller-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.seller-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--gray-900);
  flex-shrink: 0;
}
.seller-nm  { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.check-ico  { width: 13px; height: 13px; color: var(--orange); flex-shrink: 0; }
.seller-loc { font-size: 12px; color: var(--gray-400); }

.product-cta-btn {
  display: block;
  text-align: center;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius);
  margin-top: 6px;
  transition: background var(--t), transform var(--t);
}
.product-cta-btn:hover { background: var(--orange); transform: translateY(-1px); }

.browse-all-row {
  text-align: center;
  margin-top: 36px;
}
.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  border: 2px solid var(--black);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  transition: all var(--t);
}
.btn-outline-lg:hover { background: var(--black); color: #fff; }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════ */
.hiw-section { background: var(--yellow); }

.hiw-tabs {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
}

.hiw-tabs-inner {
  display: inline-flex;
  background: rgba(0,0,0,.08);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.hiw-tab {
  background: none;
  border: none;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,.5);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--t);
  white-space: nowrap;
}
.hiw-tab.active {
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hiw-steps.hiw-hidden { display: none; }

.hiw-step {
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.8);
}

.hiw-emoji {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
}
.hiw-num {
  font-size: 60px;
  font-weight: 700;
  color: rgba(0,0,0,.06);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
  letter-spacing: -2px;
  pointer-events: none;
}
.hiw-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.hiw-text {
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.65;
}

.hiw-cta-row {
  text-align: center;
  margin-top: 40px;
}

/* ══════════════════════════════════════════════════════════
   VALUES
══════════════════════════════════════════════════════════ */
.values-section { background: var(--off-white); }

.values-section .container {
  display: block;
}

.value-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--v-bg);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--v-bg);
  border-radius: var(--radius-lg);
}
.value-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.value-text {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   SELLERS
══════════════════════════════════════════════════════════ */
.sellers-section { background: var(--pink-light); }

.sellers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.seller-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1.5px solid rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.seller-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.seller-card-top { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  color: var(--gray-900);
  flex-shrink: 0;
}
.seller-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seller-card-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.check-ico-dark { width: 15px; height: 15px; flex-shrink: 0; }
.seller-stars-row { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.seller-rating-num { font-size: 12px; font-weight: 600; color: var(--gray-500); }

.seller-bio { font-size: 13px; color: var(--gray-500); line-height: 1.55; flex: 1; }
.seller-meta-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-400); font-weight: 500;
}
.meta-dot { color: var(--gray-300); }
.seller-badges-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seller-badge-chip {
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.seller-visit-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  transition: all var(--t);
  margin-top: auto;
}
.seller-visit-btn:hover { background: var(--black); color: #fff; }

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials-section {
  background: var(--black);
  padding: var(--section-y) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t), border-color var(--t);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}

.t-stars { font-size: 16px; color: #FBBF24; }
.t-quote {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  flex: 1;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--gray-900);
  flex-shrink: 0;
}
.t-author-info { display: flex; flex-direction: column; gap: 2px; }
.t-author-info strong { font-size: 14px; font-weight: 700; color: #fff; }
.t-author-info span  { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ══════════════════════════════════════════════════════════
   SELL CTA
══════════════════════════════════════════════════════════ */
.sell-section {
  background: var(--black);
  padding: var(--section-y) 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sell-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.sell-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,96,14,.15);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.sell-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.sell-sub {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.sell-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.sell-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,.8);
}
.perk-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-sell-cta {
  display: inline-flex;
  align-items: center;
  padding: 15px 36px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 30px rgba(245,96,14,.4);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-sell-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(245,96,14,.5);
}

.sell-image-wrap {
  flex-shrink: 0;
  width: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.sell-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--yellow);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  color: rgba(0,0,0,.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.5);
  transition: all var(--t);
}
.social-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.social-link svg { width: 16px; height: 16px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(0,0,0,.55);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--black); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,.1);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy  { font-size: 13px; color: rgba(0,0,0,.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(0,0,0,.4);
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--black); }

/* ══════════════════════════════════════════════════════════
   FADE-IN ANIMATION
══════════════════════════════════════════════════════════ */
/* Only hide when JS has initialised — prevents blank flash on load */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .categories-grid  { grid-template-columns: repeat(2, 1fr); }
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .sellers-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .hiw-steps        { gap: 18px; }
  .sell-inner       { grid-template-columns: 1fr; gap: 40px; }
  .sell-image-wrap  { width: 100%; max-width: 480px; }
  .footer-top       { grid-template-columns: 1fr; gap: 36px; }
  .footer-links     { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-actions  { display: none; }
  .nav-hamburger { display: flex; }
  /* Cart btn always visible — sits between nav-actions and hamburger */
  .nav-cart-btn { display: flex; }

  /* Mobile drawer — slides in from top */
  .nav-drawer {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--pad-x) 28px;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .25s ease, visibility .25s ease;
    visibility: hidden;
    z-index: 199;
    box-shadow: var(--shadow-md);
  }
  .nav-drawer.open { transform: translateY(0); visibility: visible; }

  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-width: 0; }
  .hero-inner > * { min-width: 0; }
  .hero-visual { display: none; }
  .hero-heading { letter-spacing: -1px; }

  .hero-search-inner {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 14px 14px 10px;
    gap: 10px;
  }
  .search-divider { display: none; }
  .hero-search-select { display: none; }
  .search-icon { order: 0; flex-shrink: 0; width: 20px; height: 20px; }
  .hero-search-input {
    flex: 1;
    order: 1;
    width: auto;
    font-size: 16px; /* prevents iOS auto-zoom */
    min-width: 0;
    padding: 6px 0;
  }
  .hero-search-btn {
    width: 100%;
    order: 2;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
  }

  .hero-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    /* fade out the right edge to hint at more content */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
  .hero-tags::-webkit-scrollbar { display: none; }
  .hero-tag { flex-shrink: 0; }
  .tag-label { flex-shrink: 0; }

  .brand-story-band {
    padding: 26px 0 30px;
  }
  .brand-story-band::before,
  .brand-story-band::after {
    width: 170px;
    height: 170px;
    opacity: 0.2;
  }
  .brand-story-band::before {
    left: -76px;
  }
  .brand-story-band::after {
    right: -76px;
  }
  .brand-story-box {
    min-height: 180px;
    border-radius: 18px;
    padding: 30px;
  }
  .brand-story-box p {
    font-size: clamp(14px, 3.8vw, 19px);
    line-height: 1.5;
  }

  .categories-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hiw-steps        { grid-template-columns: 1fr; gap: 14px; }
  .values-section .container { grid-template-columns: 1fr; }
  .sellers-grid     { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .stats-band .container { gap: 24px; }

  .listings-header { flex-direction: column; align-items: flex-start; }
  .listings-tabs   { overflow-x: auto; scrollbar-width: none; width: 100%; }
  .listings-tabs::-webkit-scrollbar { display: none; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Small phones (≤ 480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .products-grid   { grid-template-columns: 1fr; }
  .footer-links    { grid-template-columns: 1fr; }
  .hero-ctas       { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .section-header  { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   NAV CART BUTTON
═══════════════════════════════════════════════════════════ */
.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-cart-btn:hover { background: rgba(0,0,0,.06); }

.nav-cart-count {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--off-white);
  pointer-events: none;
  line-height: 1;
}
.nav-cart-count[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════
   CART OVERLAY
═══════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--off-white);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 40px rgba(0,0,0,.14);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e8e8e4;
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}
.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cart-drawer-close:hover { background: rgba(0,0,0,.06); color: var(--black); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

/* Empty state */
.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 0;
  text-align: center;
}
.cart-empty-state svg { color: #ccc; }
.cart-empty-state p {
  font-family: var(--font);
  font-size: 0.95rem;
  color: #999;
  margin: 0;
}
.btn-cart-shop {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-cart-shop:hover { background: #2a2a2a; }

/* Cart item */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebebeb;
}
.cart-item-img {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0e8;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.6rem;
  color: #bbb;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
}
.cart-item-qty {
  font-family: var(--font);
  font-size: 0.78rem;
  color: #999;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  flex-shrink: 0;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: #e53e3e; }

/* Drawer footer */
.cart-drawer-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #e8e8e4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cart-drawer-footer[hidden] { display: none; }
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  padding-bottom: 10px;
  border-bottom: 1px dashed #e8e8e4;
}
.cart-subtotal strong { font-weight: 800; font-size: 1.1rem; }
.btn-cart-checkout {
  display: block;
  text-align: center;
  background: var(--black);
  color: #fff !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.btn-cart-checkout:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-cart-view {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--black) !important;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #e8e8e4;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-cart-view:hover { border-color: var(--black); background: rgba(0,0,0,.03); }

.cart-loading {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
  font-family: var(--font);
  font-size: 0.9rem;
}

/* ════════════════════════════════════════════════════════
   RECENTLY SOLD (cards, badge, shop/home sections, product notice)
════════════════════════════════════════════════════════ */

.is-sold img { filter: grayscale(0.85); opacity: 0.6; }
.is-sold .listing-card-title,
.is-sold .listing-price,
.is-sold .product-title,
.is-sold .product-price { color: var(--gray-500); }
.is-sold .listing-card-cta { background: var(--gray-100); color: var(--gray-500); }
.is-sold:hover { transform: none; }

.sold-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--black);
  color: #fff;
}

.recently-sold-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.recently-sold-title { font-size: 22px; font-weight: 700; color: var(--gray-900); margin: 0 0 4px; }
.recently-sold-sub   { font-size: 14px; color: var(--gray-500); margin: 0 0 20px; }

.sold-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gray-100);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gray-700);
}
.sold-notice strong { color: var(--gray-900); }
.sold-notice a { color: var(--orange); font-weight: 600; }
