/* =========================================================================
   AUDIO TRADERS — Marketplace design system
   Light, high-energy storefront. Brand red #7C4DFF + black, Saira/Inter type.
   Shared across all marketplace pages.
   ========================================================================= */

:root {
  /* brand */
  --red: #7C4DFF;
  --red-hot: #C04BFF;
  --red-ink: #6D28D9;      /* red text on light bg */
  --red-wash: #F0EBFF;     /* red tint surface */

  /* neutrals (light theme) */
  --ink: #15101F;          /* near-black text */
  --ink-2: #4b433f;        /* secondary text */
  --ink-3: #857b76;        /* muted / meta */
  --paper: #F3F1F7;        /* page background */
  --surface: #ffffff;      /* cards */
  --surface-2: #FAF8F7;    /* subtle panels */
  --line: rgba(23,18,15,.12);
  --line-2: rgba(23,18,15,.07);

  /* semantic */
  --ok: #17924e;
  --ok-wash: #e7f4ec;
  --warn: #b7791f;
  --star: #F5A623;

  --display: "Saira Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(23,18,15,.06), 0 1px 3px rgba(23,18,15,.05);
  --shadow: 0 6px 18px -6px rgba(23,18,15,.18);
  --shadow-lg: 0 22px 50px -18px rgba(23,18,15,.32);
  --radius: 14px;
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-weight: 700; font-size: 12px; color: var(--red-ink); }
h1,h2,h3 { margin: 0; }
.section-title { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 11px; cursor: pointer;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  transition: transform .12s ease, box-shadow .2s ease, background .18s ease, border-color .18s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--red); box-shadow: 0 10px 24px -10px rgba(124,77,255,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { --bg: var(--red-hot); box-shadow: 0 16px 30px -12px rgba(124,77,255,.85); }
.btn-dark { --bg: var(--ink); --fg: #fff; }
.btn-dark:hover { --bg: #000; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-ghost:hover { --bg: var(--surface-2); border-color: var(--ink-3); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2);
}
.badge.cond { text-transform: none; }
.badge[data-cond="New"] { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.badge[data-cond="Like New"] { background: #eaf3ff; color: #1d6fd4; border-color: transparent; }
.badge[data-cond="Used – Good"] { background: #fff4e5; color: #b7791f; border-color: transparent; }
.badge[data-cond="Used – Fair"] { background: #f3eefc; color: #7b53c6; border-color: transparent; }
.badge[data-cond="For Parts"] { background: #f1f1f1; color: #6b6560; border-color: transparent; }
.badge.verify { background: var(--ok-wash); color: var(--ok); border-color: transparent; }
.badge.ship { background: var(--red-wash); color: var(--red-ink); border-color: transparent; }
.badge.pickup { background: #eef6f0; color: #2c7a4d; border-color: transparent; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Rating stars ---------- */
.stars { --p: 100%; display: inline-block; position: relative; font-size: 13px; line-height: 1; letter-spacing: 1px; }
.stars::before { content: "★★★★★"; color: var(--line); }
.stars::after { content: "★★★★★"; color: var(--star); position: absolute; left: 0; top: 0; width: var(--p); overflow: hidden; white-space: nowrap; }
.rating-row { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.rating-row b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand-logo { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { height: 34px; width: auto; }
.header-search { flex: 1 1 auto; position: relative; max-width: 620px; }
.header-search input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 44px 0 40px; font-size: 14.5px; background: var(--surface-2); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.header-search input:focus { outline: none; border-color: var(--red); background: #fff; }
.header-search .s-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.header-search .s-btn { position: absolute; right: 5px; top: 5px; height: 32px; width: 34px; border: 0; border-radius: 7px; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-nav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.sell { color: var(--red-ink); font-weight: 600; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* category strip under header */
.cat-strip { border-bottom: 1px solid var(--line); background: var(--surface); }

/* ---- Dancing-EQ video background for hero banners ---- */
/* center-ish vertical framing shows the dancing bar tops at any width (at wide
   desktop, bottom-anchoring crops the tops and only the static base shows). */
.hero-eq-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; pointer-events: none; }
.cat-strip .container { display: flex; flex-wrap: wrap; gap: 1px 4px; padding-top: 2px; padding-bottom: 2px; }
.cat-strip a { padding: 11px 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-strip a:hover { color: var(--ink); border-color: var(--red); }

/* =========================================================================
   Listing cards + grids
   ========================================================================= */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(23,18,15,.18); }

.card-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card-media .ph { position: absolute; inset: 0; }
.card-media .fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: all .15s; z-index: 2;
}
.card-media .fav:hover { color: var(--red); transform: scale(1.08); }
.card-media .media-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.card-price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; color: var(--ink); margin-top: auto; letter-spacing: -.01em; }
.card-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-seller { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.list-view .grid { grid-template-columns: 1fr; }
.list-view .card { flex-direction: row; }
.list-view .card-media { width: 240px; flex: 0 0 240px; aspect-ratio: 4/3; }
.list-view .card-body { flex: 1; }

/* placeholder listing image (branded, since we have no photos yet) */
/* A listing's real photo. Fills the same box as the .ph-tile placeholder so
   cards keep a uniform height whether or not the seller uploaded photos. */
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.ph-tile { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; overflow: hidden; }
.ph-tile .ph-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; }
.ph-tile .ph-brand { position: relative; text-align: center; padding: 10px; }
.ph-tile .ph-icon { display: block; margin: 0 auto 8px; opacity: .95; }
.ph-tile .ph-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; line-height: 1; }
.ph-tile .ph-model { font-size: 11px; opacity: .8; margin-top: 4px; letter-spacing: .04em; }

/* =========================================================================
   Layout: browse (filters + results)
   ========================================================================= */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding: 26px 0 60px; }
.filters { position: sticky; top: calc(var(--header-h) + 14px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.filter-opt input { accent-color: var(--red); width: 16px; height: 16px; }
.filter-opt:hover { color: var(--ink); }
.filter-opt .n { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13px; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head .count { font-size: 14px; color: var(--ink-2); }
.results-head .count b { color: var(--ink); }
.toolbar { display: flex; align-items: center; gap: 10px; }
.select { height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 34px 0 12px; font-size: 13.5px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23857b76' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; color: var(--ink); cursor: pointer; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-toggle button { border: 0; background: var(--surface); padding: 9px 11px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.view-toggle button.active { background: var(--ink); color: #fff; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; }
.pill-x button { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 16px; height: 16px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 11px; }

/* =========================================================================
   Home hero + category tiles
   ========================================================================= */
.shop-hero { background: #120b1e; color: #fff; position: relative; overflow: hidden; }
.shop-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14,10,26,.9) 0%, rgba(14,10,26,.52) 42%, rgba(14,10,26,.12) 72%, rgba(14,10,26,.42) 100%); }
.shop-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 120% at 100% 0%, rgba(124,77,255,.26), transparent 55%); pointer-events: none; }
.shop-hero .container { position: relative; z-index: 2; padding: clamp(28px, 5vw, 54px) 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.shop-hero h1 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(30px, 5vw, 52px); line-height: .96; letter-spacing: -.01em; }
.shop-hero h1 .accent { color: var(--red-hot); }
.shop-hero p { color: rgba(255,255,255,.8); font-size: clamp(15px, 1.6vw, 17px); margin: 16px 0 24px; max-width: 46ch; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; }
.hero-stats .s b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; display: block; }
.hero-stats .s span { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px; backdrop-filter: blur(6px); }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 18px 16px; display: flex; align-items: center; gap: 12px;
  transition: transform .15s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow-sm);
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--red); }
.cat-tile .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--red-wash); color: var(--red-ink); display: grid; place-items: center; flex: 0 0 auto; }
.cat-tile .t { font-weight: 600; font-size: 14.5px; }
.cat-tile .c { font-size: 12px; color: var(--ink-3); }

.section { padding: clamp(30px, 4vw, 50px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head a { font-size: 14px; color: var(--red-ink); font-weight: 600; }

.trust-band { background: var(--ink); color: #fff; }
.trust-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ic { color: var(--red-hot); flex: 0 0 auto; margin-top: 2px; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { font-size: 13px; color: rgba(255,255,255,.65); }

/* =========================================================================
   Listing detail
   ========================================================================= */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 24px 0 50px; align-items: start; }
.gallery .main { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs button { width: 74px; height: 60px; border-radius: 9px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; position: relative; background: var(--surface-2); padding: 0; }
.gallery .thumbs button.active { border-color: var(--red); }

.pdp-info h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.pdp-brand { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.pdp-price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 42px; letter-spacing: -.01em; margin: 12px 0 4px; }
.pdp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); box-shadow: var(--shadow-sm); margin-top: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; color: var(--ink-2); }
.qty input { width: 46px; height: 40px; border: 0; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ship-est { display: flex; gap: 10px; align-items: center; margin: 14px 0; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; }
.ship-est input { width: 96px; height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; font-size: 13px; }

.seller-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 18px; background: var(--surface); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; flex: 0 0 auto; overflow: hidden; }
.avatar .av-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Order tracking progress ---- */
.tracker { display: flex; align-items: center; margin: 12px 0 4px; max-width: 420px; }
.trk-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.trk-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); color: var(--ink-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.trk-step.done .trk-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.trk-step.cur .trk-dot { background: var(--red); border-color: var(--red); color: #fff; }
.trk-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.trk-step.done .trk-label, .trk-step.cur .trk-label { color: var(--ink); font-weight: 600; }
.trk-line { flex: 1; height: 2px; background: var(--line); margin: 0 6px 16px; }
.trk-line.done { background: var(--ok); }
.track-num { font-size: 13px; color: var(--ink-2); }
.track-num a { color: var(--red-ink); font-weight: 600; }
.avatar.lg { width: 76px; height: 76px; font-size: 30px; }

.pdp-section { border-top: 1px solid var(--line); padding: 26px 0; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-grid div { background: var(--surface); padding: 12px 14px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.spec-grid div span:first-child { color: var(--ink-3); }
.spec-grid div span:last-child { font-weight: 600; text-align: right; }

.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

/* =========================================================================
   Cart & checkout
   ========================================================================= */
.two-col-cart { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; padding: 26px 0 60px; }
.seller-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; overflow: hidden; }
.seller-group-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); font-size: 13.5px; }
.line-item { display: flex; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line-2); }
.line-item:last-child { border-bottom: 0; }
.line-item .li-media { width: 108px; height: 82px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; position: relative; background: var(--surface-2); }
.line-item .li-body { flex: 1; min-width: 0; }
.line-item .li-title { font-weight: 600; font-size: 15px; }
.line-item .li-price { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; }
.li-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.li-remove { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; }
.li-remove:hover { color: var(--red); }
.group-ship { padding: 12px 18px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; background: var(--surface-2); border-top: 1px solid var(--line-2); }

.summary { position: sticky; top: calc(var(--header-h) + 14px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; box-shadow: var(--shadow-sm); }
.summary h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 20px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--ink-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; color: var(--ink); font-weight: 700; }
.sum-row.total b { font-family: var(--display); font-style: italic; font-size: 26px; }

.empty { text-align: center; padding: 70px 20px; }
.empty .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; margin: 0 auto 18px; }

/* checkout steps */
.steps { display: flex; gap: 8px; margin: 20px 0 26px; }
.step { flex: 1; text-align: center; font-size: 12.5px; color: var(--ink-3); padding-bottom: 10px; border-bottom: 3px solid var(--line); font-weight: 600; }
.step.active { color: var(--ink); border-color: var(--red); }
.step.done { color: var(--ok); border-color: var(--ok); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--red); }
.input, textarea.input, select.input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
  font-size: 15px; font-family: var(--ui); color: var(--ink); background: var(--surface); transition: border-color .15s;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, textarea.input:focus, select.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(124,77,255,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; box-shadow: var(--shadow-sm); }
.pay-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 30px; }
.site-footer .container { padding: 46px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot-grid h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.foot-grid a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,.7); }
.foot-grid a:hover { color: #fff; }
.foot-logo img { height: 30px; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding: 16px 0 0; }
.crumb a:hover { color: var(--ink); }
.crumb span { opacity: .5; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 10px; opacity: 0; transition: all .28s cubic-bezier(.2,.8,.2,1); z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--red-hot); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-wrap { display: none; }
  .filters-wrap.open { display: block; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .two-col-cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .shop-hero .container { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .trust-band .container { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-search { display: none; }
  .header-search.mobile { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); max-width: none; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
  .header-nav .nav-label { display: none; }
  .header-nav .nav-link { padding: 9px; }
  .mobile-search-btn { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .list-view .card { flex-direction: column; }
  .list-view .card-media { width: 100%; flex: none; }
}
@media (min-width: 721px) { .mobile-search-btn { display: none; } }
@media (max-width: 520px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

/* ===== RAINBOW WAVE ===== */
@keyframes at-hue  { to { filter: hue-rotate(360deg); } }
@keyframes at-slide{ to { background-position: 300% 50%; } }
.hero-eq-bg { animation: at-hue 8s linear infinite; }
.brand-logo img, .foot-logo img { animation: at-hue 8s linear infinite; }
.btn-primary {
  background-image: linear-gradient(90deg,#ff3b6b,#ff9e00,#ffe600,#3ddc84,#00c2ff,#4b6bff,#b14bff,#ff3bd0,#ff3b6b) !important;
  background-size: 300% 100% !important; animation: at-slide 5s linear infinite;
  box-shadow: 0 10px 26px -10px rgba(150,80,255,.55) !important;
}
.shop-hero h1 .accent {
  background: linear-gradient(90deg,#ff3b6b,#ff9e00,#ffe600,#3ddc84,#00c2ff,#4b6bff,#b14bff,#ff3bd0,#ff3b6b);
  background-size:300% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
  padding-right:.08em; animation: at-slide 6s linear infinite;
}
.site-header::before {
  content:""; display:block; height:4px;
  background:linear-gradient(90deg,#ff3b6b,#ff9e00,#ffe600,#3ddc84,#00c2ff,#4b6bff,#b14bff,#ff3bd0,#ff3b6b);
  background-size:300% 100%; animation: at-slide 5s linear infinite;
}
