/* ==========================================================================
   FIERRO AUTO PARTS — storefront design system
   Dark, cold, carbon. Cyan/violet accent over near-black graphite.
   ========================================================================== */

:root {
  --bg:        #06080c;
  --bg-2:      #0a0e15;
  --surface:   #10141d;
  --surface-2: #161c28;
  --surface-3: #1d2534;
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #e9edf5;
  --text-2:    #a8b3c6;
  --muted:     #6f7c93;

  --accent:    #00d4ff;
  --accent-2:  #7b5cff;
  --accent-3:  #c8f000;
  --danger:    #ff4d4d;
  --ok:        #2ee6a8;
  --warn:      #ffb020;

  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  --glow: 0 0 0 1px rgba(0, 212, 255, .28), 0 18px 50px -18px rgba(0, 212, 255, .45);

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  --nav-h: 68px;

  --font: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient cold light behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%,  rgba(0, 212, 255, .10), transparent 65%),
    radial-gradient(760px 480px at 92% 4%,   rgba(123, 92, 255, .09), transparent 62%),
    radial-gradient(1000px 600px at 50% 108%, rgba(0, 212, 255, .05), transparent 70%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap { width: min(1360px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.wrap-narrow { width: min(980px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }

/* ------------------------------ typography ------------------------------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .7; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 46px); text-transform: uppercase; }
.section-head p { color: var(--text-2); max-width: 56ch; margin: 10px 0 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* ------------------------------- topbar ---------------------------------- */

.ticker {
  background: linear-gradient(90deg, rgba(0,212,255,.10), rgba(123,92,255,.10));
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.ticker-track { display: flex; gap: 60px; padding: 8px 0; white-space: nowrap; animation: slide 42s linear infinite; width: max-content; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
.ticker-track b { color: var(--accent); font-weight: 600; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* --------------------------------- nav ----------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 12, .82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 9px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  color: #04070d;
  box-shadow: 0 8px 24px -8px rgba(0, 212, 255, .8);
}
.brand-text { line-height: 1; }
.brand-text b { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .1em; display: block; }
.brand-text small { font-size: 8.5px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color .18s, background .18s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  border-radius: 10px; cursor: pointer; color: var(--text-2);
  transition: .18s;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.06); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #04070d;
  border-radius: 10px; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

/* -------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: .2s; white-space: nowrap;
  background: transparent;
}
.btn-primary { background: var(--grad); color: #04070d; box-shadow: 0 14px 34px -14px rgba(0,212,255,.75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(0,212,255,.9); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,.07); }
.btn-dark { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-dark:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* --------------------------------- hero ---------------------------------- */

.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.6vw, 96px);
  text-transform: uppercase;
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 17px; color: var(--text-2); max-width: 52ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hero-stats div { background: var(--bg-2); padding: 18px 20px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 27px; font-weight: 800; }
.hero-stats span { font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual .frame {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-visual .frame img { width: 100%; }
.hero-tag {
  position: absolute; left: -14px; bottom: 30px;
  background: rgba(10,14,21,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 13px 18px; box-shadow: var(--shadow);
}
.hero-tag b { display: block; font-family: var(--display); font-size: 15px; }
.hero-tag span { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------- marquee --------------------------------- */

.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  padding: 26px 0;
}
.strip-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip-item { display: flex; align-items: center; gap: 13px; }
.strip-item svg { flex-shrink: 0; color: var(--accent); }
.strip-item b { display: block; font-size: 12.5px; letter-spacing: .06em; }
.strip-item span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------ brand cards ------------------------------ */

section { padding: 84px 0; position: relative; z-index: 1; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; transition: .3s;
}
.brand-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bc, var(--grad)); opacity: .09; transition: opacity .3s;
}
.brand-card::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.045) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .7s;
}
.brand-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.brand-card:hover::before { opacity: .17; }
.brand-card:hover::after { transform: translateX(100%); }
.brand-card > * { position: relative; z-index: 1; }
.brand-card h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 6px; }
.brand-card .loc { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.brand-card p { color: var(--text-2); font-size: 13.5px; margin: 0 0 20px; }
.brand-card .count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.brand-card .go { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }

/* ----------------------------- product cards ----------------------------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,.4); box-shadow: 0 24px 50px -26px rgba(0,212,255,.5); }
.card-media { position: relative; aspect-ratio: 8 / 5; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(6,8,12,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); color: var(--text-2);
}
.badge.hot { background: var(--grad); color: #04070d; border-color: transparent; }
.badge.low { color: var(--warn); border-color: rgba(255,176,32,.4); }
.badge.out { color: var(--danger); border-color: rgba(255,77,77,.4); }
.badge-r { left: auto; right: 12px; }

.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-brand { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.card h3 { font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.card h3 a:hover { color: var(--accent); }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.card-meta span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: 10.5px; font-weight: 500; color: var(--muted); display: block; letter-spacing: .1em; text-transform: uppercase; }
.price s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; font-family: var(--font); }

/* ------------------------------- collection ------------------------------ */

.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(32px, 5vw, 62px); text-transform: uppercase; margin: 14px 0 12px; }
.page-head p { color: var(--text-2); max-width: 62ch; margin: 0; }
.crumbs { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 9px; }
.crumbs a:hover { color: var(--accent); }

.shop { display: grid; grid-template-columns: 268px 1fr; gap: 34px; padding: 38px 0 90px; align-items: start; }

.filters { position: sticky; top: calc(var(--nav-h) + 20px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px; }
.filter-group { border-top: 1px solid var(--line); padding: 18px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h4 { font-family: var(--font); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; font-weight: 700; }
.filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); transition: .15s; }
.filter-opt:hover { background: rgba(255,255,255,.04); color: var(--text); }
.filter-opt.on { background: rgba(0,212,255,.1); color: var(--accent); font-weight: 600; }
.filter-opt em { font-style: normal; font-size: 10.5px; color: var(--muted); font-family: var(--mono); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { font-size: 12.5px; color: var(--muted); }
.toolbar .count b { color: var(--text); }

.field {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 14px; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.14); }
.field::placeholder { color: var(--muted); }
select.field { cursor: pointer; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f7c93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
.field-sm { padding: 8px 12px; font-size: 13px; width: auto; }

label.lbl { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 600; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 20px; font-size: 11.5px;
  border: 1px solid rgba(0,212,255,.35); background: rgba(0,212,255,.09); color: var(--accent);
  cursor: pointer;
}
.chip:hover { background: rgba(0,212,255,.18); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination button { min-width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-2); font-size: 13px; }
.pagination button.on { background: var(--grad); color: #04070d; border-color: transparent; font-weight: 700; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

/* --------------------------------- PDP ----------------------------------- */

.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; padding: 38px 0 80px; align-items: start; }
.pdp-media { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); position: sticky; top: calc(var(--nav-h) + 20px); }
.pdp-media img { width: 100%; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.pdp-thumbs button { background: var(--bg-2); border: 0; padding: 0; cursor: pointer; aspect-ratio: 8/5; overflow: hidden; opacity: .5; transition: .2s; }
.pdp-thumbs button.on, .pdp-thumbs button:hover { opacity: 1; }

.pdp-info h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; margin: 12px 0 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 20px 0; }
.pdp-price .now { font-family: var(--display); font-size: 40px; font-weight: 800; }
.pdp-price s { color: var(--muted); font-size: 17px; }
.pdp-price .save { color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 130px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.opt-list { display: grid; gap: 9px; margin: 8px 0 22px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; transition: .18s; font-size: 13.5px;
}
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--accent); background: rgba(0,212,255,.07); box-shadow: 0 0 0 1px rgba(0,212,255,.25); }
.opt .delta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.opt.on .delta { color: var(--accent); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 46px; background: transparent; border: 0; cursor: pointer; color: var(--text-2); font-size: 17px; }
.qty button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.qty input { width: 52px; height: 46px; text-align: center; background: transparent; border: 0; font-weight: 700; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  padding: 17px 0; cursor: pointer; list-style: none;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; color: var(--accent); font-size: 18px; }
.accordion details[open] summary::after { content: '−'; }
.accordion .acc-body { padding-bottom: 20px; color: var(--text-2); font-size: 13.5px; white-space: pre-line; }
.accordion ul { margin: 0; padding-left: 18px; }
.accordion li { margin-bottom: 7px; }

/* ------------------------------ cart drawer ------------------------------ */

.drawer-scrim {
  position: fixed; inset: 0; background: rgba(3,5,8,.72); backdrop-filter: blur(4px);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  z-index: 91; transform: translateX(100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .1em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--surface); }

.line-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.line-item img { border-radius: 8px; border: 1px solid var(--line); }
.line-item h4 { font-family: var(--font); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.line-item .li-meta { font-size: 11px; color: var(--muted); margin: 4px 0 8px; }
.line-item .li-foot { display: flex; align-items: center; justify-content: space-between; }
.li-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0; }
.li-remove:hover { color: var(--danger); }
.qty-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qty-mini button { width: 26px; height: 26px; background: transparent; border: 0; cursor: pointer; color: var(--text-2); }
.qty-mini button:hover { background: rgba(255,255,255,.07); }
.qty-mini span { width: 30px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.totals { display: grid; gap: 9px; font-size: 13px; margin-bottom: 16px; }
.totals div { display: flex; justify-content: space-between; color: var(--text-2); }
.totals div.grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; color: var(--text); font-size: 17px; font-weight: 700; font-family: var(--display); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { margin: 0 auto 18px; opacity: .35; }

/* ------------------------------- checkout -------------------------------- */

.checkout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; padding: 38px 0 90px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 11px; }
.panel h3 i { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #04070d; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }

.pay-opt {
  display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: .18s; background: var(--surface-2); align-items: flex-start;
}
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt.on { border-color: var(--accent); background: rgba(0,212,255,.07); }
.pay-opt .dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; margin-top: 2px; transition: .18s; }
.pay-opt.on .dot { border-color: var(--accent); box-shadow: inset 0 0 0 3.5px var(--accent); }
.pay-opt b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.pay-opt span { font-size: 12px; color: var(--muted); }

.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.summary-item img { border-radius: 6px; border: 1px solid var(--line); }
.summary-item .si-name { line-height: 1.35; }
.summary-item .si-name small { color: var(--muted); display: block; font-size: 11px; }

.alert { padding: 13px 16px; border-radius: 9px; font-size: 13px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-err { border-color: rgba(255,77,77,.4); background: rgba(255,77,77,.09); color: #ffb3b3; }
.alert-ok  { border-color: rgba(46,230,168,.4); background: rgba(46,230,168,.08); color: #9df3d6; }
.alert-info{ border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.07); color: #a9e9ff; }
.alert-warn{ border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); color: #ffd995; }

/* ---------------------------- order / status ----------------------------- */

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 20px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; border: 1px solid;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-paid, .s-fulfilled     { color: var(--ok);     border-color: rgba(46,230,168,.35);  background: rgba(46,230,168,.08); }
.s-pending, .s-unfulfilled{ color: var(--warn);   border-color: rgba(255,176,32,.35);  background: rgba(255,176,32,.08); }
.s-deposit_paid, .s-in_production { color: var(--accent); border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.08); }
.s-refunded, .s-cancelled { color: var(--danger); border-color: rgba(255,77,77,.35);   background: rgba(255,77,77,.08); }
.s-shipped                { color: var(--accent-2); border-color: rgba(123,92,255,.4); background: rgba(123,92,255,.1); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline-item b { font-size: 12.5px; display: block; }
.timeline-item span { font-size: 11.5px; color: var(--muted); }

/* -------------------------------- footer --------------------------------- */

footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 66px 0 30px; margin-top: 40px; position: relative; z-index: 1;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.foot-grid h5 { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { font-size: 13px; color: var(--text-2); }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { color: var(--text-2); font-size: 13px; max-width: 40ch; margin: 16px 0 20px; }
.newsletter { display: flex; gap: 8px; max-width: 340px; }
.foot-legal {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px;
  padding: 26px 0; margin-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.8;
}
.foot-legal b { color: var(--text-2); }
.foot-legal a { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.foot-bottom a { color: var(--text-2); }
.foot-bottom a:hover { color: var(--accent); }
@media (max-width: 820px) { .foot-legal { grid-template-columns: 1fr; gap: 18px; } }

/* -------------------------------- legal ---------------------------------- */

.legal { padding: 46px 0 90px; }
.legal h2 {
  font-family: var(--font); font-size: 15px; font-weight: 700;
  letter-spacing: .04em; margin: 38px 0 12px; color: var(--text);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 26px; }
.legal h3 { font-family: var(--font); font-size: 13.5px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 14px; line-height: 1.85; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal b { color: var(--text); }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal-meta {
  font-size: 12px !important; color: var(--muted) !important;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 13px 16px; background: var(--surface);
}
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13.5px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.legal th { color: var(--muted); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--bg-2); }

/* ------------------------------- utilities ------------------------------- */

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card { height: 340px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  padding: 13px 20px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow);
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

/* ------------------------------ responsive ------------------------------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .shop, .pdp, .checkout { grid-template-columns: 1fr; }
  .filters, .pdp-media, .summary { position: static; }
  .brand-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .nav-toggle { display: grid; }
  .hero { padding: 56px 0; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 56px 0; }
}
