/* ============================================================
   ForgeExchange — Design System
   "Second-hand. First-class."
   ============================================================ */

:root {
  /* Palette */
  --paper:      #F4EFE7;   /* warm off-white */
  --paper-2:    #EBE4D8;
  --ink:        #17130F;   /* near-black, warm */
  --ink-2:      #3A322A;
  --muted:      #6E635704; /* fallback (unused) */
  --stone:      #857A6C;   /* muted text */
  --line:       #D8CFC0;   /* hairlines */
  --ember:      #D5502E;   /* molten accent */
  --ember-deep: #A93A1E;
  --copper:     #C08A3E;   /* gold/copper */
  --forge:      #1F5F4E;   /* deep green for trust */
  --card:       #FBF8F2;
  --white:      #FFFFFF;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1240px;
  --gap: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23,19,15,.06), 0 8px 30px rgba(23,19,15,.08);
  --shadow-lg: 0 20px 60px rgba(23,19,15,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.015em; font-optical-sizing: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Paper-grain texture overlay (editorial tactility) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#chrome, #app, #footer, #overlays { position: relative; z-index: 2; }

/* Editorial section kicker + index numeral */
.kicker { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.kicker::before { content: attr(data-n); font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 26px; height: 26px; display: inline-grid; place-items: center; }
.kicker.light { color: var(--copper); }
.kicker.light::before { color: var(--paper); border-color: #4a4136; }

/* ---------- Announcement bar ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  animation: slide 32s linear infinite;
}
.ticker span { opacity: .85; }
.ticker b { color: var(--copper); font-weight: 600; }
@keyframes slide { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Promoted ad ticker ---------- */
.ad-ticker { display: flex; align-items: stretch; height: 38px; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 13px; }
.ad-tag { flex: 0 0 auto; background: var(--ember); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 0 11px; display: flex; align-items: center; }
.ad-viewport { flex: 1; overflow: hidden; position: relative; }
.ad-track { display: inline-flex; gap: 34px; align-items: center; height: 100%; white-space: nowrap; padding-left: 24px; animation: slide 45s linear infinite; }
.ad-track:hover { animation-play-state: paused; }
.ad-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ad-item b { font-weight: 600; color: var(--ink); }
.ad-item:hover b { color: var(--ember); }
.ad-cta { flex: 0 0 auto; padding: 0 14px; font-weight: 600; color: var(--ember); background: var(--card); border-left: 1px solid var(--line); display: flex; align-items: center; white-space: nowrap; }
.ad-cta:hover { background: var(--paper); }
.ad-preview-box { display: flex; align-items: center; gap: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin: 6px 0 20px; }
@media (max-width: 620px) { .ad-cta span, .ad-cta { font-size: 12px; } .ad-tag { display: none; } }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(150deg, #241a12 0%, #0c0a08 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(23,19,15,.25);
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-mark.ring { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(0,0,0,.3); }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; }
.brand-name b { font-weight: 600; }
.brand-name span { color: var(--ember); }

.head-search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 44px; max-width: 520px;
  transition: border-color .2s, box-shadow .2s;
}
.head-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,19,15,.06); }
.head-search input { border: none; outline: none; flex: 1; background: none; font-size: 14.5px; color: var(--ink); }
.head-search svg { width: 17px; height: 17px; color: var(--stone); }

.head-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.pill-select {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white);
  height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: border-color .2s;
}
.pill-select:hover { border-color: var(--ink); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--white); position: relative; transition: border-color .2s, transform .1s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--ember); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--paper);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn { white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.eyebrow svg { width: 14px; height: 14px; }
.link-more svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pill-select svg { width: 13px; height: 13px; opacity: .6; }
.seller-card > svg { width: 20px; height: 20px; color: var(--stone); flex: 0 0 auto; }
.trust .ti svg { width: 26px; height: 26px; }
.ticker svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.empty-cart svg { width: 40px; height: 40px; color: var(--line); margin: 0 auto; }
.cart-line svg { width: 14px; height: 14px; vertical-align: -2px; }
.badge svg { width: 12px; height: 12px; flex: 0 0 auto; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(23,19,15,.25); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-deep); }
.btn-ghost { border: 1px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* ---------- Nav strip ---------- */
.nav-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-strip .wrap { display: flex; gap: 26px; align-items: center; height: 46px; overflow-x: auto; }
.nav-strip a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-strip a:hover { color: var(--ink); border-color: var(--ember); }
.nav-strip a.hot { color: var(--ember); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ember);
  background: color-mix(in srgb, var(--ember) 12%, transparent); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(46px, 6.6vw, 94px); margin: 24px 0 0; line-height: .96; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ember); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats .n { font-family: var(--serif); font-size: 30px; }
.hero-stats .l { font-size: 12.5px; color: var(--stone); letter-spacing: .02em; }

.hero-art { position: relative; height: 460px; }
.hero-card {
  position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--white); background: var(--paper-2);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.a { width: 62%; height: 74%; left: 0; top: 6%; z-index: 2; transform: rotate(-3deg); }
.hero-card.b { width: 46%; height: 56%; right: 2%; top: 0; z-index: 3; transform: rotate(3deg); }
.hero-card.c { width: 44%; height: 46%; right: 8%; bottom: 0; z-index: 4; transform: rotate(-2deg); }
.hero-badge {
  position: absolute; z-index: 6; bottom: 8%; left: 40%;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 0 4px rgba(55,214,122,.25); }

/* ---------- Section head ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section-head p { color: var(--stone); margin: 8px 0 0; font-size: 15px; }
.link-more { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--ember); padding-bottom: 2px; }

/* ---------- Category rail ---------- */
.cat-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; text-align: left; transition: transform .16s var(--ease), border-color .2s, box-shadow .2s;
}
.cat:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.cat .emoji { font-size: 26px; }
.cat .name { font-weight: 600; font-size: 14px; margin-top: 12px; }
.cat .count { font-size: 12px; color: var(--stone); }

/* ---------- Collection chips (New / Pre-Owned / Refurbished …) ---------- */
.collection-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.collection-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .16s var(--ease); }
.collection-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; text-align: left; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--paper-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.badge-row { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.badge.cond { background: var(--forge); color: #fff; }
.badge.auth { background: var(--ink); color: var(--copper); display: inline-flex; align-items: center; gap: 4px; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 999px;
  background: color-mix(in srgb, var(--white) 85%, transparent); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .12s, background .2s;
}
.fav:hover { background: var(--white); transform: scale(1.08); }
.fav svg { width: 16px; height: 16px; }
.fav.on svg { fill: var(--ember); color: var(--ember); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: 12px; color: var(--stone); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.card-title { font-family: var(--serif); font-size: 17px; line-height: 1.15; }
.card-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--stone); margin-top: 2px; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-price .now { font-weight: 700; font-size: 18px; }
.card-price .was { font-size: 13px; color: var(--stone); text-decoration: line-through; }
.card-seller { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.avatar { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; background: var(--paper-2); }
.verified { color: var(--forge); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.verified svg { width: 13px; height: 13px; }

/* ---------- Editorial drop (feature) ---------- */
.feature-drop { display: grid; grid-template-columns: 1.12fr .88fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.fd-media { position: relative; min-height: 460px; background: var(--paper-2); overflow: hidden; }
.fd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-drop:hover .fd-media img { transform: scale(1.04); }
.fd-media .badge-row { top: 20px; left: 20px; }
.fd-serial { position: absolute; bottom: 18px; left: 20px; font-family: var(--serif); font-size: 13px; color: var(--paper); background: rgba(23,19,15,.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.fd-body { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.fd-body .card-brand { font-size: 13px; }
.fd-body h3 { font-size: clamp(30px, 3.6vw, 48px); margin: 12px 0 16px; line-height: 1; }
.fd-body h3 em { font-style: italic; color: var(--ember); font-weight: 400; }
.fd-body p { color: var(--ink-2); font-size: 15px; max-width: 42ch; margin: 0 0 22px; }
.fd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.fd-price .now { font-family: var(--serif); font-size: 34px; }
.fd-price .was { text-decoration: line-through; color: var(--stone); }
.fd-price .save { background: color-mix(in srgb, var(--forge) 14%, transparent); color: var(--forge); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.fd-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--stone); margin-bottom: 26px; flex-wrap: wrap; }
.fd-meta b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .feature-drop { grid-template-columns: 1fr; } .fd-media { min-height: 300px; } .fd-body { padding: 30px; } }

/* ---------- Retailer / Shops ---------- */
.badge.shop { background: var(--copper); color: #241a12; display: inline-flex; align-items: center; gap: 4px; }
.badge.shop svg { width: 12px; height: 12px; }
.verified.retailer { color: var(--copper); }
.avatar-mono { display: inline-grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 11px; letter-spacing: -.01em; }

.shops-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.shops-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 16px 0 12px; }
.shops-hero .lead { color: var(--ink-2); font-size: 17px; max-width: 52ch; margin: 0; }

.shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; display: block; }
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.shop-banner { aspect-ratio: 16/7; background: var(--paper-2); overflow: hidden; }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shop-card:hover .shop-banner img { transform: scale(1.05); }
.shop-card-body { padding: 0 18px 18px; position: relative; }
.shop-logo { width: 52px; height: 52px; border-radius: 13px; display: inline-grid; place-items: center; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 20px; margin-top: -26px; border: 3px solid var(--card); box-shadow: var(--shadow); position: relative; z-index: 2; }
.shop-logo.lg { width: 92px; height: 92px; border-radius: 22px; font-size: 36px; border-width: 4px; }
.shop-card-main { margin-top: 12px; }
.shop-card-name { font-family: var(--serif); font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-card-name .verified { font-size: 12px; }
.shop-card-meta { color: var(--stone); font-size: 13px; margin-top: 4px; }
.shop-card-foot { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--stone); }
.shop-card-foot .stars { display: inline-flex; align-items: center; gap: 4px; color: var(--copper); font-weight: 600; }
.shop-card-foot .stars svg { width: 13px; height: 13px; }

.storefront { padding-bottom: 20px; }
.storefront-banner { height: clamp(180px, 26vw, 320px); background: var(--paper-2); overflow: hidden; }
.storefront-banner img { width: 100%; height: 100%; object-fit: cover; }
.storefront-head { display: flex; gap: 24px; align-items: flex-start; margin-top: -46px; position: relative; z-index: 2; flex-wrap: wrap; }
.storefront-info { flex: 1; min-width: 260px; padding-top: 52px; }
.storefront-info h1 { font-size: clamp(28px, 3.4vw, 40px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.storefront-info h1 .verified { font-size: 13px; }
.storefront-meta { color: var(--stone); font-size: 14px; margin: 8px 0 10px; }
.storefront-info p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.storefront-actions { display: flex; gap: 10px; padding-top: 56px; }

.retail-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.retail-benefits div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--card); }
.retail-benefits b { display: block; font-size: 14px; margin-bottom: 4px; }
.retail-benefits span { color: var(--stone); font-size: 12.5px; }

.apply-done { text-align: center; padding: 40px 20px; }
.apply-check { width: 64px; height: 64px; border-radius: 999px; background: color-mix(in srgb, var(--forge) 14%, transparent); color: var(--forge); display: inline-grid; place-items: center; margin-bottom: 20px; }
.apply-check svg { width: 30px; height: 30px; }
.apply-done h2 { font-size: 30px; }
.apply-done p { color: var(--ink-2); max-width: 46ch; margin: 12px auto 24px; }

@media (max-width: 1080px) { .shops-grid { grid-template-columns: repeat(2, 1fr); } .retail-benefits { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .shops-grid { grid-template-columns: 1fr; } .storefront-actions { padding-top: 12px; } .storefront-info { padding-top: 12px; } }

/* ---------- Trust band ---------- */
.trust { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 48px; margin: 40px auto; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust h3 { font-size: 19px; margin-bottom: 8px; }
.trust .ti { color: var(--copper); }
.trust p { color: #C9BEAE; font-size: 13.5px; margin: 0; }
.trust-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; flex-wrap: wrap; gap: 16px; }
.trust-top h2 { color: var(--paper); font-size: 34px; max-width: 16ch; }
.trust-top p { color: #C9BEAE; max-width: 40ch; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--card); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 34px; color: var(--ember); display: block; margin-bottom: 14px; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--stone); font-size: 13.5px; margin: 0; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 40px 0; }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.pd-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; }
.pd-thumbs img.active { border-color: var(--ink); }
.pd-info h1 { font-size: 34px; margin: 6px 0 0; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pd-price .now { font-size: 30px; font-weight: 700; }
.pd-price .was { text-decoration: line-through; color: var(--stone); }
.pd-price .save { background: color-mix(in srgb, var(--forge) 14%, transparent); color: var(--forge); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.spec div { background: var(--card); padding: 12px 16px; }
.spec .k { font-size: 11.5px; color: var(--stone); text-transform: uppercase; letter-spacing: .05em; }
.spec .v { font-weight: 600; font-size: 14px; margin-top: 2px; }
.pd-actions { display: flex; gap: 12px; margin: 22px 0 16px; }
.escrow-note { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--forge) 8%, transparent); border: 1px solid color-mix(in srgb, var(--forge) 25%, transparent); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.escrow-note svg { color: var(--forge); flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.seller-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 22px; background: var(--card); }
.seller-card .avatar { width: 48px; height: 48px; }
.stars { color: var(--copper); font-size: 13px; letter-spacing: 1px; }
.breadcrumb { font-size: 13px; color: var(--stone); padding: 20px 0 0; display: flex; gap: 8px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Sell flow ---------- */
.sell-wrap { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.progress { display: flex; gap: 8px; margin-bottom: 30px; }
.progress .seg { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.progress .seg.on { background: var(--ember); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--stone); font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,19,15,.06); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: all .18s; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--stone); background: var(--card); transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 4%, var(--card)); }
.sell-hero { text-align: center; margin-bottom: 36px; }
.sell-hero h1 { font-size: 42px; }
.sell-hero p { color: var(--stone); font-size: 16px; margin-top: 12px; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(23,19,15,.42); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--paper);
  z-index: 100; transform: translateX(100%); transition: transform .34s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.cart-item .ci-title { font-family: var(--serif); font-size: 16px; }
.cart-item .ci-meta { font-size: 12px; color: var(--stone); }
.cart-item .ci-price { font-weight: 700; margin-top: 6px; }
.cart-item .rm { font-size: 12px; color: var(--stone); border-bottom: 1px solid var(--line); margin-top: 6px; align-self: flex-start; }
.cart-item .rm:hover { color: var(--ember); border-color: var(--ember); }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.cart-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.cart-line.total { font-weight: 700; font-size: 18px; margin: 12px 0 16px; font-family: var(--serif); }
.empty-cart { text-align: center; color: var(--stone); padding: 60px 20px; }

/* ---------- Seller profile ---------- */
.profile-head { display: flex; gap: 24px; align-items: center; padding: 40px 0 30px; flex-wrap: wrap; }
.profile-head .avatar { width: 92px; height: 92px; border: 3px solid var(--white); box-shadow: var(--shadow); }
.profile-head h1 { font-size: 32px; }
.profile-stats { display: flex; gap: 30px; margin-top: 12px; }
.profile-stats .n { font-family: var(--serif); font-size: 22px; }
.profile-stats .l { font-size: 12px; color: var(--stone); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); margin-top: 60px; padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: #B7AC9C; font-size: 13.5px; max-width: 34ch; margin: 16px 0 0; }
.foot-col h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin: 0 0 14px; }
.foot-col a { display: block; color: #C9BEAE; font-size: 13.5px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 46px; padding-top: 22px; border-top: 1px solid #3A322A; font-size: 12.5px; color: #8A7F6F; flex-wrap: wrap; gap: 12px; }
.pay-badges { display: flex; gap: 10px; align-items: center; opacity: .8; font-size: 12px; }

/* ---------- Account menu ---------- */
.acct-btn { overflow: hidden; padding: 0; }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.acct-menu {
  position: fixed; z-index: 120; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px;
}
.acct-menu .am-head { font-size: 12px; color: var(--stone); padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-weight: 600; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); }
.acct-menu a:hover, .acct-menu button:hover { background: var(--paper-2); }
.acct-menu button { color: var(--ember); }

/* ---------- Auth modal ---------- */
.auth-card {
  position: fixed; z-index: 110; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(420px, 92vw); max-height: 92vh; overflow-y: auto; background: var(--paper);
  border-radius: 22px; box-shadow: var(--shadow-lg); padding: 34px 30px 30px; animation: pop .28s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.auth-x { position: absolute; top: 16px; right: 16px; border: none; background: none; }
.auth-brand { margin-bottom: 16px; }
.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.auth-brand .brand-mark svg { width: 30px; height: 30px; }
.auth-card h3 { font-size: 26px; }
.auth-sub { color: var(--stone); font-size: 14px; margin: 8px 0 20px; }
.auth-tabs { display: flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--stone); }
.auth-tabs button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.auth-err { color: var(--ember); font-size: 13px; min-height: 18px; margin-bottom: 4px; }
.auth-or { text-align: center; position: relative; margin: 18px 0; }
.auth-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-or span { position: relative; background: var(--paper); padding: 0 12px; color: var(--stone); font-size: 12px; }

/* ---------- Sell auth banner ---------- */
.sell-auth { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--forge) 8%, transparent); border: 1px solid color-mix(in srgb, var(--forge) 25%, transparent); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 24px; }
.sell-auth svg { width: 18px; height: 18px; color: var(--forge); flex: 0 0 auto; margin-top: 1px; }
.sell-auth.demo { background: color-mix(in srgb, var(--ember) 8%, transparent); border-color: color-mix(in srgb, var(--ember) 22%, transparent); }
.sell-auth.demo svg { color: var(--ember); }
.sell-auth button { color: var(--forge); font-weight: 700; border-bottom: 1.5px solid currentColor; }
.photo-count { display: block; margin-top: 10px; color: var(--ember); font-weight: 600; font-size: 13px; }

/* ---------- Orders ---------- */
.order-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.order-main { flex: 1; }
.order-title { font-family: var(--serif); font-size: 18px; }
.order-sub { font-size: 13px; color: var(--stone); margin-top: 3px; }
.order-status { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.order-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.order-actions .btn { height: 38px; padding: 0 16px; font-size: 13px; }
.order-note { font-size: 12.5px; color: var(--stone); font-style: italic; }

/* ---------- Wallet ---------- */
.wallet-card { background: linear-gradient(135deg, #241a12, #0c0a08); color: var(--paper); border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
.wallet-bal { display: flex; flex-direction: column; gap: 6px; }
.wl-label { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #b7ac9c; }
.wl-amount { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--paper); }
.wallet-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.wallet-actions .btn-ghost { background: transparent; color: var(--paper); border-color: #4a4136; }
.wallet-actions .btn-ghost:hover { border-color: var(--paper); }
.wl-tx { font-weight: 700; font-size: 16px; white-space: nowrap; }
.wl-tx.cr { color: var(--forge); }
.wl-tx.db { color: var(--ink); }

/* ---------- Trade-in quote ---------- */
.tradein-quote { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px solid var(--line); background: color-mix(in srgb, var(--forge) 6%, var(--card)); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 20px; }
.tq-main { display: flex; flex-direction: column; gap: 4px; }
.tq-label { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.tq-amount { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--forge); }

/* ---------- BNPL ---------- */
.bnpl-cta { margin-top: 12px; }
.fx-modal { position: fixed; z-index: 110; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, 92vw); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px 28px; }
.bnpl-x { position: absolute; top: 14px; right: 14px; border: none; }
.bnpl-title { font-family: var(--serif); font-size: 25px; }
.bnpl-sub { color: var(--stone); font-size: 13.5px; margin: 6px 0 20px; }
.bnpl-months { display: flex; gap: 8px; margin-bottom: 20px; }
.bnpl-months .chip { flex: 1; text-align: center; }
.bnpl-breakdown { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.bnpl-breakdown > div { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.bnpl-breakdown > div:last-child { border-bottom: none; }
.bnpl-breakdown span { color: var(--ink-2); }
.bnpl-breakdown b { font-size: 15px; }
.bnpl-total { background: var(--card); }
.bnpl-total b { font-family: var(--serif); font-size: 18px; }
.bnpl-note { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--stone); font-size: 12px; margin-top: 12px; }
.bnpl-note svg { width: 13px; height: 13px; }

.fin-plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 20px; margin-bottom: 16px; }
.fin-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.fin-head span { color: var(--stone); font-size: 13px; }
.fin-inst { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fin-inst:last-child { border-bottom: none; }
.fin-seq { font-weight: 600; font-size: 14px; }
.fin-due { font-size: 12.5px; color: var(--stone); }
.fin-right { display: flex; align-items: center; gap: 14px; }
.fin-amt { font-weight: 700; }
.paid-tag { color: var(--forge); font-weight: 700; font-size: 13px; }

/* ---------- Seller dashboard ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 16px 18px; }
.kpi-val { font-family: var(--serif); font-size: 26px; line-height: 1; }
.kpi-label { font-size: 12px; color: var(--stone); margin-top: 8px; letter-spacing: .02em; }
.dash-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-card-head h3 { font-family: var(--serif); font-size: 19px; display: flex; align-items: center; gap: 8px; }
.dash-card-head h3 svg { width: 17px; height: 17px; color: var(--ember); }
.dash-card-head span { color: var(--stone); font-size: 13px; }
.dash-empty { color: var(--stone); font-size: 13.5px; padding: 24px 0; text-align: center; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dash-row:last-child { border-bottom: none; }
.dash-row-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-lead { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; }
.demand-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.demand-cat { width: 130px; flex: 0 0 auto; color: var(--ink-2); }
.demand-bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.demand-bar div { height: 100%; background: linear-gradient(90deg, var(--copper), var(--ember)); border-radius: 999px; }
.demand-n { width: 60px; text-align: right; color: var(--stone); flex: 0 0 auto; }
.insight-tip { font-size: 13px; color: var(--stone); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .demand-cat { width: 90px; } }

/* ---------- Reviews ---------- */
.star-input { display: flex; gap: 6px; margin-bottom: 16px; }
.star-input .star { font-size: 34px; line-height: 1; color: var(--line); background: none; border: none; transition: color .12s, transform .1s; }
.star-input .star.on { color: var(--copper); }
.star-input .star:hover { transform: scale(1.12); }
.review-ta { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-size: 14px; min-height: 90px; resize: vertical; margin-bottom: 16px; }
.review-ta:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,19,15,.06); }
.review-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.review-head .stars { color: var(--copper); letter-spacing: 1px; }
.review-date { color: var(--stone); font-size: 12.5px; }
.review-item p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

/* ---------- Trust tiers & Forge Credit ---------- */
.tier-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.tier-badge.sm { font-size: 11px; padding: 2px 8px; }
.tier-badge.t-verified { color: var(--stone); }
.tier-badge.t-trusted { color: var(--copper); background: color-mix(in srgb, var(--copper) 12%, transparent); border-color: transparent; }
.tier-badge.t-premium { color: var(--ember); background: color-mix(in srgb, var(--ember) 12%, transparent); border-color: transparent; }
.tier-badge.t-certified { color: var(--forge); background: color-mix(in srgb, var(--forge) 14%, transparent); border-color: transparent; }

.dash-card.standing .standing-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; }
.standing-tier { display: flex; flex-direction: column; gap: 10px; }
.standing-tier .tier-badge { font-size: 15px; padding: 7px 14px; align-self: flex-start; }
.standing-sub { color: var(--stone); font-size: 13px; }
.sn-label { font-size: 13.5px; margin-bottom: 10px; }
.sn-metric { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.prog { display: flex; align-items: center; gap: 10px; }
.prog-bar { flex: 1; height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.prog-bar div { height: 100%; background: linear-gradient(90deg, var(--copper), var(--ember)); }
.prog span { font-size: 11.5px; color: var(--stone); width: 44px; text-align: right; }
.dash-card.credit .insight-lead { font-size: 14.5px; }

.credit-card { background: linear-gradient(135deg, #1f5f4e, #143f34); color: var(--paper); border-radius: 20px; padding: 26px 28px; margin-bottom: 20px; }
.credit-top { display: flex; flex-direction: column; gap: 4px; }
.cc-label { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: #b9d8cd; }
.cc-amt { font-family: var(--serif); font-size: 40px; line-height: 1; }
.credit-meta { font-size: 12.5px; color: #b9d8cd; margin-top: 14px; }
@media (max-width: 720px) { .dash-card.standing .standing-row { grid-template-columns: 1fr; } .sn-metric { grid-template-columns: 100px 1fr; } }

/* ---------- Rewards ---------- */
.points-card { background: linear-gradient(135deg, #c08a3e, #8a5a1e); color: #fff; border-radius: 20px; padding: 26px 28px; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.pc-top { display: flex; flex-direction: column; gap: 4px; }
.pc-label { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: #f3e2c8; }
.pc-amt { font-family: var(--serif); font-size: 42px; line-height: 1; }
.pc-meta { font-size: 12.5px; color: #f3e2c8; margin-top: 10px; }
.pc-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pc-input { flex: 1; min-width: 160px; border: none; border-radius: 999px; padding: 12px 16px; font-size: 14px; font-family: inherit; }
.pc-actions .btn-ember { background: #17130f; }
.earn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.earn { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--card); }
.earn-i { font-size: 22px; }
.earn b { display: block; font-size: 14px; }
.earn span { color: var(--stone); font-size: 12.5px; }
.refer-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px dashed var(--copper); border-radius: var(--radius); padding: 18px 20px; background: color-mix(in srgb, var(--copper) 7%, var(--card)); flex-wrap: wrap; }
.refer-copy b { font-size: 15px; } .refer-copy span { display: block; color: var(--stone); font-size: 13px; margin-top: 2px; }
.refer-link { display: flex; gap: 8px; align-items: center; }
.refer-link input { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 12.5px; width: 240px; max-width: 52vw; background: var(--white); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  z-index: 200; box-shadow: var(--shadow-lg); transition: transform .34s var(--ease); display: flex; gap: 10px; align-items: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: #37d67a; width: 18px; height: 18px; }

/* ---------- Filters (browse) ---------- */
.browse { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 30px 0 60px; }
.filters { position: sticky; top: 130px; align-self: start; }
.filter-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-group h4 { font-family: var(--sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.filter-opt input { accent-color: var(--ember); width: 15px; height: 15px; }
.browse-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.browse-top h1 { font-size: 30px; }
.browse-top .count { color: var(--stone); font-size: 14px; }
.sort-select { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 500; }

/* ---------- Utility ---------- */
.flag { font-size: 14px; line-height: 1; }
.hide { display: none !important; }
.fade-in { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none;} }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-rail { grid-template-columns: repeat(3, 1fr); }
  .trust-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .pd { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-rail { grid-template-columns: repeat(2, 1fr); }
  .head-search { display: none; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .hero { padding: 40px 0 20px; }
  .trust { padding: 30px 22px; }
  .trust-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 40px 0; }
}
.mobile-search { display: none; }
@media (max-width: 720px) { .mobile-search { display: flex; margin: 12px 0 0; } }
