/* Carbon Store — storefront
   Palette: pitch black, graphite, smoke lines, bone text, brushed gold. */

:root {
  --bg: #000;
  --surface: #0f0f10;
  --surface-2: #17171a;
  --line: #27272b;
  --line-strong: #3a3a40;
  --text: #eeeae2;
  --muted: #9a958c;
  --gold: #c9a24a;
  --gold-hi: #e8cd85;
  --gold-ink: #1a1405;
  --wa: #25d366;
  --danger: #e26d5a;
  --weave: rgba(255, 255, 255, .035);
  --shadow: 0 30px 70px rgba(0, 0, 0, .55);

  --f-display: "Michroma", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="light"] {
  --bg: #f4f2ed;
  --surface: #fff;
  --surface-2: #ebe8e1;
  --line: #ddd8cd;
  --line-strong: #c7c0b2;
  --text: #151413;
  --muted: #6a655d;
  --gold: #9c7a2b;
  --gold-hi: #c9a24a;
  --gold-ink: #fff;
  --weave: rgba(0, 0, 0, .04);
  --shadow: 0 30px 70px rgba(40, 30, 10, .18);
}

[dir="rtl"] {
  --f-display: "Alexandria", system-ui, sans-serif;
  --f-body: "Alexandria", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--gold-ink); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: var(--line-strong); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-wa:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

.icon-btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover, .pill-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg, .pill-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.announce {
  background: var(--gold); color: var(--gold-ink);
  text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold);
  font: 400 16px/1 "Michroma", sans-serif;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%);
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); }
.brand-name { font: 400 15px/1 var(--f-display); letter-spacing: .04em; }
.main-nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.main-nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-accent { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-size: 12px; line-height: 20px; text-align: center;
}
.cart-btn.bump .cart-count { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

/* ---------- Car silhouette ---------- */
.car-svg { width: 100%; height: auto; overflow: visible; }
.car-svg .car-glass { fill: rgba(10, 10, 12, .55); }
.car-svg .car-wheel circle { fill: #0a0a0a; }
.car-svg .car-wheel .car-rim { fill: #8b8b90; }

/* ---------- Carbon texture ---------- */
.carbon-weave {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--weave) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, var(--weave) 0 6px, transparent 6px 12px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; min-height: calc(100svh - 110px); padding-block: 64px;
}
.hero-title {
  margin: 0; font: 400 clamp(40px, 6.2vw, 84px)/1.02 var(--f-display);
  letter-spacing: -.01em; max-width: 11ch;
}
[dir="rtl"] .hero-title { font-weight: 800; line-height: 1.15; letter-spacing: 0; }
.hero-text { margin: 28px 0 0; max-width: 46ch; font-size: 18px; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-specs {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px;
  margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-specs dt { font: 400 15px/1.2 var(--f-display); color: var(--gold); }
.hero-specs dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* The wall: the one memorable moment of the page */
.hero-wall {
  position: relative; justify-self: center;
  height: min(640px, calc(100svh - 190px)); min-height: 420px; aspect-ratio: 5 / 6; max-width: 100%;
}
.wall-light {
  position: absolute; inset: -10% -20% auto; height: 70%;
  background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
  filter: blur(10px);
}
.frame {
  position: absolute; margin: 0; inset-inline-start: 4%; top: 2%; width: 56%; aspect-ratio: 2 / 3;
  padding: 12px; background: #050505; border: 1px solid #2a2a2e; box-shadow: var(--shadow);
  animation: hang 1.1s var(--ease) both;
}
[data-theme="light"] .frame { background: #fff; border-color: #d8d2c5; }
.frame-inner { position: relative; height: 100%; overflow: hidden; background: #ece7dc; }
.frame-inner img { width: 100%; height: 100%; object-fit: cover; }
.frame-art { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px; color: #121212; }
.frame-kicker { font-size: 11px; color: #6d675d; }
.frame-name { font: 400 clamp(13px, 1.4vw, 17px)/1.25 "Michroma", sans-serif; }
.hero-car { color: #0b4a2e; transform: scale(1.15); }

.sculpture { position: absolute; inset-inline-end: 0; bottom: 19%; width: 54%; animation: hang 1.1s .15s var(--ease) both; }
.sculpture-car { position: relative; z-index: 1; color: #a3201c; margin: 0 8% -6%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
.carbon-plate {
  height: 26px; border: 1px solid color-mix(in srgb, var(--gold) 40%, #000);
  background: repeating-linear-gradient(45deg, #1d1d20 0 7px, #0b0b0c 7px 14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.vin-plate {
  position: absolute; inset-inline-start: 0; bottom: 0; width: 76%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: color-mix(in srgb, var(--gold) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  animation: rise .9s .35s var(--ease) both;
}
.vin-plate div { background: var(--surface); padding: 10px 12px; }
.vin-plate span { display: block; font-size: 11px; color: var(--muted); }
.vin-plate b { display: block; font-weight: 600; font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes hang { from { opacity: 0; transform: translateY(-14px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 40px; }
.section-title { margin: 0; font: 400 clamp(28px, 3.6vw, 46px)/1.1 var(--f-display); }
[dir="rtl"] .section-title { font-weight: 800; }
.section-sub { margin: 12px 0 0; color: var(--muted); max-width: 56ch; }

/* ---------- Shop ---------- */
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; gap: 6px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; color: var(--muted);
}
.chip small { font-weight: 400; opacity: .7; margin-inline-start: 4px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { position: relative; display: block; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input {
  height: 40px; width: 260px; padding-inline: 40px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.search input:focus { outline: none; border-color: var(--gold); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { display: flex; flex-direction: column; }
.product-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0;
  border: 1px solid var(--line); background: var(--surface); overflow: hidden; border-radius: var(--r-sm);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-media:hover img { transform: scale(1.04); }
.product-media:hover { border-color: var(--line-strong); }
.placeholder-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 14%;
}
/* Posters: a mini print on cream paper inside a dark mat */
.placeholder-art:not(.is-model) { background: #ece7dc; box-shadow: inset 0 0 0 14px var(--surface-2); color: #1d1d1f; }
/* Sculptures: gold car on a carbon plate */
.placeholder-art.is-model { color: var(--gold); background: radial-gradient(70% 50% at 50% 45%, color-mix(in srgb, var(--gold) 12%, transparent), transparent), var(--surface); }
.placeholder-art.is-model::after {
  content: ""; display: block; width: 112%; height: 12px; margin-top: -3%;
  background: repeating-linear-gradient(45deg, #26262a 0 5px, #0c0c0c 5px 10px);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.placeholder-art .car-svg { position: relative; z-index: 1; }
.placeholder-art.is-model .car-svg { filter: drop-shadow(0 8px 8px rgba(0,0,0,.5)); }
.tag {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 2px;
}
.product-body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.product-meta { margin: 0; font-size: 13px; color: var(--muted); }
.product-name { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.product-price { font-size: 18px; font-weight: 700; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); color: var(--muted); }

/* ---------- Builder ---------- */
.builder { background: var(--surface); }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.segmented button { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.segmented button.is-on { background: var(--gold); color: var(--gold-ink); }
.builder-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.preview-col { position: sticky; top: 96px; }

.builder-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
.field output { color: var(--gold); font-weight: 700; margin-inline-start: 6px; }
.field input:not([type="range"]):not([type="color"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
input[type="range"] { accent-color: var(--gold); width: 100%; height: 46px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button {
  flex: 1 1 auto; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
  font-size: 14px; font-weight: 600; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
}
.opts button small { font-weight: 400; font-size: 11px; color: var(--muted); }
.opts button:hover { border-color: var(--line-strong); }
.opts button.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--bg)); color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .swatch-custom {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  border: 2px solid var(--line); background: var(--sw);
  box-shadow: inset 0 0 0 2px var(--surface);
}
.swatches button.is-on { border-color: var(--gold); transform: scale(1.08); }
.swatch-custom { position: relative; display: grid; place-items: center; background: var(--bg); cursor: pointer; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch-custom span { font-weight: 700; color: var(--muted); }
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upload-btn { cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; }
.buy-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-sm);
}
.buy-label { display: block; font-size: 13px; color: var(--muted); }
.buy-price { font-size: 26px; font-weight: 700; }

/* Poster preview */
.poster-stage {
  padding: clamp(18px, 4vw, 40px); background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.poster {
  --car: #c9a24a;
  width: min(100%, 440px); aspect-ratio: 1 / 1.414;
  display: flex; flex-direction: column; padding: 0 26px 18px;
  background: #f7f5f0; color: #121212; box-shadow: 0 0 0 10px #050505, var(--shadow);
  position: relative; overflow: hidden; direction: ltr; text-align: left;
}
[data-theme="light"] .poster { box-shadow: 0 0 0 10px #1b1b1b, var(--shadow); }
.poster.finish-gloss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 48%, transparent 60%); pointer-events: none; }
.poster.finish-canvas { background-color: #f1ebdd; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px); }
.poster-bar { height: 8px; margin: 0 -26px 22px; background: var(--car); }
.poster-head { display: grid; gap: 4px; }
.poster-head span { font-size: 11px; color: #6d675d; }
.poster-head strong { font: 400 clamp(16px, 2.4vw, 24px)/1.15 "Michroma", sans-serif; }
.poster-color { display: inline-flex; align-items: center; gap: 6px; }
.poster-color i { width: 10px; height: 10px; border-radius: 50%; background: var(--car); border: 1px solid rgba(0,0,0,.15); }
.poster-color em { font-style: normal; }
.poster-art { flex: 1; display: grid; place-items: center; min-height: 0; position: relative; }
.poster-car { width: 92%; color: var(--car); filter: drop-shadow(0 16px 18px rgba(0,0,0,.25)); }
.poster-art img { position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: cover; }
.poster-text { text-align: center; font-size: clamp(14px, 2vw, 20px); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.poster-text:empty { display: none; }
.poster-text.top { margin-bottom: 16px; }
.poster-text.bottom { margin: 6px 0 14px; }
.poster-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(0,0,0,.12); padding-top: 8px; font-size: 9px; color: #8a8478; }

/* Model preview */
.model-stage {
  position: relative; aspect-ratio: 4 / 3.2; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 8% 10% 12%;
  background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--gold) 14%, transparent), transparent), var(--bg);
  border: 1px solid var(--line);
}
.model-badge { position: absolute; top: 16px; inset-inline-start: 16px; font-size: 13px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); }
.model-car { --car: #a3201c; position: relative; z-index: 1; width: 82%; color: var(--car); margin-bottom: -5%; transition: transform .5s var(--ease); filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.model-plate {
  width: 100%; height: 54px; display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, #000); box-shadow: 0 20px 40px rgba(0,0,0,.45);
  font-size: 12px; color: rgba(255,255,255,.7);
}
.plate-carbon { background: repeating-linear-gradient(45deg, #202024 0 8px, #0a0a0b 8px 16px); }
.plate-matte { background: #0d0d0e; }
.plate-alcantara { background: #2c2b2a radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 4px 4px; }
.model-mount { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- Made in Jordan ---------- */
.made { overflow: hidden; }
.made-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.made-text { margin: 20px 0 0; color: var(--muted); max-width: 54ch; font-size: 17px; }
.made-stats { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.made-stats div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.made-stats dt { font: 400 17px/1.2 var(--f-display); color: var(--gold); }
.made-stats dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 700; padding-top: 16px; border-top: 2px solid var(--gold); }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 38ch; margin: 18px 0 0; }
.site-footer h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.socials { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-base { margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Drawer & modals ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open, .modal.is-open { visibility: visible; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; backdrop-filter: blur(3px); }
.is-open > .scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--surface); border-inline-start: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s var(--ease);
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; align-content: start; gap: 14px; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.cart-item { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 68px; height: 80px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: 6px; color: var(--muted); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .car-svg { width: 100%; }
.cart-name { font-weight: 600; font-size: 14px; line-height: 1.3; margin: 0; }
.cart-opts { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.totals { margin: 0 0 12px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.totals dd { margin: 0; color: var(--text); font-weight: 600; }
.totals .grand { font-size: 17px; color: var(--text); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .grand dt { font-weight: 700; }
.totals.compact .grand { border: 0; }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0; }
.center { text-align: center; }

.modal { display: grid; place-items: center; padding: 16px; }
.modal-panel {
  position: relative; width: min(100%, 920px); max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .25s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: var(--surface); }
.modal-product { display: grid; grid-template-columns: 1fr 1fr; }
.pm-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 40px 32px 32px; display: flex; flex-direction: column; }
.pm-spec { margin: 0; color: var(--muted); font-size: 13px; }
.pm-info h2 { margin: 8px 0 0; font-size: 26px; line-height: 1.2; }
.pm-desc { color: var(--muted); }
.pm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.pm-facts div { border: 1px solid var(--line); padding: 10px 12px; }
.pm-facts dt { font-size: 12px; color: var(--muted); }
.pm-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.pm-buy { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pm-price { font-size: 28px; font-weight: 700; }

.modal-checkout { width: min(100%, 560px); padding: 36px 32px 28px; }
.modal-checkout h2 { margin: 0 0 22px; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.span-2 { grid-column: span 2; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.form-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.order-ok { text-align: center; padding: 10px 0; }
.ok-mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--gold); }
.ok-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.order-no { font: 400 22px/1.3 "Michroma", sans-serif; color: var(--gold); margin: 6px 0; letter-spacing: .03em; }
.ok-actions { display: grid; gap: 10px; margin-top: 24px; }

.toast {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; z-index: 80;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: opacity .25s, translate .25s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Track page ---------- */
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin: 32px 0 24px; }
.track-result { border: 1px solid var(--line); background: var(--surface); padding: 28px; margin-bottom: 28px; border-radius: var(--r-sm); }
.track-head { display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.track-head p { margin: 0; }
.timeline { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 9px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline .dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.timeline .is-done .dot, .timeline .is-current .dot { border-color: var(--gold); background: var(--gold); }
.timeline .is-done::before, .timeline .is-current::before { background: var(--gold); }
.timeline .is-current .dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent); }
.timeline .is-current .tl-label { color: var(--text); font-weight: 700; }
.timeline time { font-size: 11px; }
.tracking-line { margin: 0 0 20px; }
.track-items-title { font-size: 15px; margin: 24px 0 10px; }
.track-items { list-style: none; padding: 0; margin: 0; }
.track-items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.notice { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2); margin: 22px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 56px; gap: 40px; }
  .hero-wall { height: auto; min-height: 0; width: min(100%, 520px); }
  .builder-grid, .made-grid { grid-template-columns: 1fr; gap: 32px; }
  .preview-col { position: static; }
  .modal-product { grid-template-columns: 1fr; }
  .pm-media { aspect-ratio: 16 / 11; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-row { gap: 10px; height: 64px; }
  .brand-name, .cart-label { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 16px; }
  .product-buy { flex-wrap: wrap; }
  .shop-tools, .search, .search input { width: 100%; }
  .chips { overflow-x: auto; }
  .hero-specs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-text { font-size: 16px; }
  .row-2, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .made-stats div { grid-template-columns: 1fr; gap: 4px; }
  .track-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 20px 1fr auto; justify-items: start; text-align: start; align-items: center; gap: 12px; }
  .timeline li::before { display: none; }
  .modal-checkout { padding: 32px 20px 22px; }
  .vin-plate { width: 78%; }
  .buy-bar { flex-wrap: wrap; }
  .buy-bar .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
