/* =====================================================================
   GDX — "Display case" theme
   Light, minimal, Apple-like surfaces · depth from light & shadow
   Racing red from the MHC logo · Geist type
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

:root {
  /* palette */
  --bg:        #F5F5F7;   /* porcelain */
  --card:      #FFFFFF;
  --ink:       #1D1D1F;   /* graphite */
  --muted:     #6E6E73;   /* steel */
  --line:      #E3E3E8;
  --line-soft: #EEEEF2;
  --red:       #D7141A;   /* racing red (logo) */
  --red-deep:  #A90F14;
  --stage-1:   #24242A;
  --stage-2:   #000000;

  --ok:   #1A8754;
  --warn: #B26A00;
  --bad:  #C4161C;
  --blue: #0A63D6;

  /* aliases kept for older styles / admin */
  --flame: linear-gradient(90deg, var(--red), var(--red-deep));
  --flame-red: var(--red); --flame-orange: var(--red); --flame-yellow: #FFD54A;
  --track: var(--red); --hw-blue: var(--blue);

  /* depth */
  --shadow-1: 0 1px 1px rgba(16,16,22,.04), 0 2px 6px rgba(16,16,22,.04);
  --shadow:   0 1px 1px rgba(16,16,22,.04), 0 10px 24px -10px rgba(16,16,22,.14), 0 28px 56px -32px rgba(16,16,22,.22);
  --shadow-lift: 0 2px 2px rgba(16,16,22,.04), 0 18px 36px -14px rgba(16,16,22,.22), 0 44px 80px -40px rgba(16,16,22,.32);
  --ring: 0 0 0 4px rgba(215,20,26,.16);

  --radius-xl: 32px; --radius: 22px; --radius-md: 16px; --radius-sm: 12px;
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; letter-spacing: -.005em;
  color: var(--ink); background: var(--bg);
  /* soft studio light from above — the page's only background "effect" */
  background-image:
    radial-gradient(1200px 520px at 50% -180px, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    radial-gradient(900px 420px at 100% 0%, rgba(215,20,26,.045), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main { flex: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
code { background: var(--line-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header: frosted glass ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,252,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.025em; line-height: 1; }
.logo .accent { color: inherit; }
.logo-img { width: 44px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); transition: transform .4s var(--ease); }
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 14.5px; color: #424245; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: rgba(0,0,0,.06); }
.cart-btn { position: relative; font-size: 17px; }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px #fff;
}

/* ---------- hero: the showroom ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding: 44px 0 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 72px 0 56px; } }
.hero h1 {
  font-weight: 800; font-size: clamp(42px, 6.4vw, 76px); line-height: .98; letter-spacing: -.045em; margin: 0 0 18px;
  max-width: 11ch;
}
.hero p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 30em; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #424245; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.badge.goa { color: var(--ink); }

.stage {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, var(--stage-1) 0%, var(--stage-2) 70%);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.08);
  transform-style: preserve-3d; perspective: 1000px;
}
.stage::before { /* spotlight cone */
  content: ""; position: absolute; inset: -20% 15% 25%; z-index: 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
  filter: blur(6px);
}
.stage::after { /* glossy floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.06);
}
.stage-object {
  position: absolute; z-index: 2; left: 12%; right: 12%; top: 12%; bottom: 26%;
  display: grid; place-items: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(40px);
  transition: transform .5s var(--ease);
}
.stage-object img { max-height: 100%; width: auto; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); }
.stage-object img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.stage-reflection {
  position: absolute; z-index: 1; left: 12%; right: 12%; bottom: 2%; height: 24%;
  transform: scaleY(-1); opacity: .18; filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%);
  display: grid; place-items: end center; overflow: hidden;
}
.stage-reflection img { max-height: 400%; width: auto; object-fit: contain; }
.stage-floor-shadow { position: absolute; z-index: 1; left: 22%; right: 22%; bottom: 22%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent); }
.stage-caption {
  position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px;
  display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #F5F5F7;
}
.stage-caption b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stage-caption span { color: rgba(245,245,247,.6); font-size: 13px; display: block; }
.stage-caption .price { color: #fff; font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .stage.intro .stage-object { animation: dropIn 1.1s var(--ease) both .15s; }
  .stage.intro::before { animation: lightOn 1.2s ease both; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-40px) translateZ(40px) rotateX(18deg); } to { opacity: 1; } }
  @keyframes lightOn { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- section heading ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 24px 0 18px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.035em; line-height: 1.05; margin: 0; font-weight: 700; }
.track { display: none; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: rgba(0,0,0,.045); border-radius: 999px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 500; font-size: 14px; color: #424245; cursor: pointer; transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.chip:hover { color: var(--ink); }
.chip.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); font-weight: 600; }
.search {
  flex: 1; min-width: 200px; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid transparent;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 17px;
  box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); transition: box-shadow .2s;
}
.sort { flex: 0 0 auto; min-width: 0; padding-left: 16px; background-image: none; appearance: auto; }
.search:focus, .input:focus { outline: none; box-shadow: var(--ring), 0 0 0 1px var(--red); }

/* ---------- product grid: display cases ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); perspective: 1400px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; } }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); will-change: transform;
}
.card::after { /* glass sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.55), transparent 45%);
  mix-blend-mode: soft-light;
}
.card:hover { --ty: -4px; box-shadow: var(--shadow-lift); }
.card:hover::after { opacity: 1; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(80% 70% at 50% 35%, #FFFFFF, #ECECF0 100%); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-brand { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.card-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -.012em; }
.card-series { font-size: 13px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.mrp { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.off { font-size: 12px; font-weight: 600; color: var(--red); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: -.005em;
  background: rgba(255,255,255,.82); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.tag.new { background: var(--red); color: #fff; }
.tag.sold { background: rgba(29,29,31,.85); color: #fff; }
.card.is-sold img { filter: grayscale(1) contrast(.9); opacity: .55; }
.card.skeleton .card-img, .card.skeleton .card-body span {
  background: linear-gradient(90deg, #EDEDF0 25%, #F7F7F9 50%, #EDEDF0 75%); background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear; border-radius: 8px;
}
.card.skeleton .card-body span { height: 12px; display: block; margin: 4px 0; }
.card.skeleton .card-body span + span { width: 60%; height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.2;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .2s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #E5222A, var(--red) 55%, #C21116);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(215,20,26,.6), 0 2px 4px rgba(215,20,26,.2);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -10px rgba(215,20,26,.65), 0 2px 4px rgba(215,20,26,.2); }
.btn-dark { color: #fff; background: linear-gradient(180deg, #3A3A3F, var(--ink)); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px rgba(0,0,0,.08) inset; }
.btn-ghost:hover { background: #FAFAFB; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-wa, .btn-wa-lg { background: linear-gradient(180deg, #27C063, #1BA552); color: #fff; box-shadow: 0 8px 20px -10px rgba(27,165,82,.6); }
.btn-wa-lg { font-size: 16px; padding: 14px 26px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 500; cursor: pointer; font-size: 14px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms & panels ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #424245; }
.input { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #FBFBFD; width: 100%; transition: box-shadow .2s, border-color .2s, background .2s; }
.input:hover { border-color: #D2D2D7; }
.input:focus { background: #fff; }
textarea.input { resize: vertical; min-height: 84px; }
.panel {
  background: rgba(255,255,255,.86); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow), 0 0 0 .5px rgba(0,0,0,.05);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.panel + .panel, .panel + section, section + section { margin-top: 18px; }
.panel-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.page-title { font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.045em; line-height: 1; margin: 40px 0 22px; }
.back { display: inline-block; margin: 24px 0 14px; font-weight: 500; font-size: 14.5px; color: var(--muted); }
.back:hover { color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 56px 16px; grid-column: 1 / -1; }
.notice { padding: 13px 16px; border-radius: var(--radius-md); background: #FFF8EC; box-shadow: 0 0 0 1px #F5E2BD inset; margin-bottom: 10px; font-size: 14px; }
.notice.bad { background: #FDEFEF; box-shadow: 0 0 0 1px #F4CACA inset; color: var(--bad); }
.form-error { color: var(--bad); font-size: 14px; font-weight: 500; margin: 4px 0 14px; }
.form-error a { text-decoration: underline; }
.two, .three { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } .three { grid-template-columns: 1fr 1fr 1fr; } }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.status.pending   { background: #FFF4DF; color: var(--warn); }
.status.confirmed { background: #E6F5EE; color: var(--ok); }
.status.shipped   { background: #E8F0FD; color: var(--blue); }
.status.delivered { background: #E6F5EE; color: var(--ok); }
.status.rejected, .status.cancelled { background: #FDECEC; color: var(--bad); }

/* ---------- product page ---------- */
.product { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 12px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: 88px; } }
.gallery-main {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(75% 65% at 50% 32%, #FFFFFF, #E9E9EE);
  box-shadow: var(--shadow-lift), 0 0 0 .5px rgba(0,0,0,.05);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px; }
.thumb { flex: 0 0 70px; height: 70px; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: #fff; cursor: pointer; box-shadow: var(--shadow-1), 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { box-shadow: 0 0 0 2px var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.details .card-brand { font-size: 14px; }
.product-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin: 6px 0 4px; }
.details .card-series { font-size: 15px; margin-bottom: 14px; display: block; }
.price-row.big .price { font-size: 32px; }
.price-row.big .mrp { font-size: 15px; }
.specs { list-style: none; padding: 0; margin: 22px 0; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); }
.specs li { display: flex; justify-content: space-between; padding: 13px 16px; font-size: 15px; }
.specs li + li { border-top: 1px solid var(--line-soft); }
.specs li span { color: var(--muted); }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; overflow: hidden; box-shadow: var(--shadow-1), 0 0 0 1px rgba(0,0,0,.08) inset; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 19px; cursor: pointer; color: #424245; }
.qty button:hover { background: rgba(0,0,0,.04); }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 34px; font-size: 16px; }
.qty.sm input { width: 30px; }
.desc { margin-top: 22px; color: #424245; font-size: 15.5px; }
.ship-note { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-md); background: #fff; display: grid; gap: 8px; font-size: 14px; color: #424245; box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); }
.share-btn { margin-top: 16px; }

/* ---------- cart & summary ---------- */
.cart-layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; } .summary { position: sticky; top: 88px; } }
.cart-row { display: grid; grid-template-columns: 82px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.cart-row:first-child { padding-top: 0; }
.cart-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb { width: 82px; height: 82px; border-radius: 16px; overflow: hidden; background: radial-gradient(80% 70% at 50% 35%, #fff, #ECECF0); box-shadow: 0 0 0 .5px rgba(0,0,0,.06); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.line-total { font-size: 16px; font-weight: 600; }
.summary .btn + .btn { margin-top: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; letter-spacing: -.02em; }
.sum-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.sum-item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #F0F0F3; }
#sumItems { border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; padding-bottom: 8px; }

/* ---------- checkout ---------- */
.steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 32px 0 22px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; font-size: 13px; font-weight: 600; flex: none; }
.steps li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; box-shadow: none; }
.steps li.done::after { background: var(--ink); }
.ship-hint { padding: 11px 14px; border-radius: var(--radius-sm); background: #EEF4FE; color: var(--blue); font-weight: 500; font-size: 14px; margin-bottom: 16px; }
.ship-hint.goa { background: #EAF7F0; color: var(--ok); }
.amount { color: var(--red); }
.pay-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 620px) { .pay-grid { grid-template-columns: 250px 1fr; align-items: start; } }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr { width: 250px; height: 250px; padding: 14px; background: #fff; border-radius: 24px; display: grid; place-items: center; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(0,0,0,.05); }
.qr img, .qr canvas { max-width: 100%; height: auto; }
.upi-app { display: none; }
@media (pointer: coarse) { .upi-app:not([hidden]) { display: inline-flex; } }
.pay-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.upi-id { padding: 12px 14px; border-radius: var(--radius-sm); background: #F5F5F7; font-size: 15px; margin-bottom: 6px; word-break: break-all; }
.upload { display: grid; place-items: center; min-height: 130px; padding: 16px; border: 1.5px dashed #CFCFD6; border-radius: var(--radius-md); background: #FBFBFD; cursor: pointer; text-align: center; font-weight: 500; color: #424245; transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--red); background: #FFF9F9; }
.upload.has-file { border-style: solid; border-color: var(--ok); background: #F3FBF7; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload img { max-height: 280px; border-radius: 10px; box-shadow: var(--shadow); }
.back-link { display: block; margin: 14px auto 0; }
.done-box { text-align: center; padding: 44px 24px; }
.done-box .done-ico { font-size: 52px; }
.done-box h2 { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin: 8px 0; }
.order-code { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; letter-spacing: .06em; padding: 12px 22px; border-radius: 16px; background: radial-gradient(120% 140% at 50% 0%, var(--stage-1), #000); color: #fff; margin: 6px 0 14px; box-shadow: var(--shadow-lift); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* ---------- tracking ---------- */
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.order-items { margin: 16px 0 6px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.order-card .btn { margin-top: 16px; }
.order-card .notice { margin-top: 16px; }
.timeline { list-style: none; padding: 0; margin: 20px 0 6px; display: grid; }
.timeline li { position: relative; padding: 0 0 20px 32px; color: var(--muted); font-weight: 500; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #D8D8DE; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 19px; bottom: 0; width: 2px; background: #E6E6EB; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before, .timeline li.done::after { background: var(--ok); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.current::before { background: var(--red); box-shadow: 0 0 0 5px rgba(215,20,26,.15); }
.recent-list { display: grid; gap: 8px; }
.recent { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; background: #fff; border: 0; border-radius: var(--radius-md); cursor: pointer; box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
.recent:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
#recent { margin-top: 30px; }

/* ---------- system check ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.checks li:last-child { border-bottom: 0; }
.checks .ico { font-size: 18px; }
.checks .detail { color: var(--muted); font-size: 13px; word-break: break-word; }

/* ---------- info pages ---------- */
.info h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 12px; }
.info ul, .info ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: #333336; }
.info .panel p:last-child { margin-bottom: 0; }
.info a:not(.btn) { color: var(--blue); font-weight: 500; }
.info-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 3px; }
.info-card .ico { font-size: 26px; margin-bottom: 6px; }
.info-card span { color: var(--muted); font-size: 14px; }
.info-card.goa { background: radial-gradient(120% 120% at 0% 0%, #fff, #F1F1F4); }
.contact-hero { text-align: center; padding: 36px 24px; }
.ico.big { font-size: 46px; }
.contact-lines { display: grid; gap: 7px; color: #333336; margin-top: 4px; }
.community { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.community img { width: 96px; height: 96px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.community h2 { margin-top: 0; }

/* ---------- footer (light, Apple-like) ---------- */
.site-footer { margin-top: 72px; background: #EDEDF0; color: #515154; font-size: 14px; border-top: 1px solid rgba(0,0,0,.05); }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--ink); }
.footer-grid { display: grid; gap: 28px; padding: 40px 20px 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-logo { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.15)); }
.footer-brand strong { font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.footer-note { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { margin: 0 0 2px; color: var(--ink); font-size: 13px; font-weight: 600; }
.footer-group { display: inline-flex; justify-content: center; background: linear-gradient(180deg, #27C063, #1BA552); color: #fff !important; padding: 10px 16px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(27,165,82,.7); }
.footer-credits { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 20px; border-top: 1px solid rgba(0,0,0,.07); font-size: 13px; }
.footer-credits a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
.footer-legal { padding: 0 20px 26px; font-size: 12px; color: #86868B; }

/* ---------- floating WhatsApp + toast ---------- */
.wa-float { position: fixed; right: 18px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, #2BCB69, #1BA552); display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 28px -8px rgba(27,165,82,.6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: translateY(-2px) scale(1.05); }
#toastBox { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: rgba(29,29,31,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; padding: 13px 18px; border-radius: 16px; font-weight: 500; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); transition: opacity .3s, transform .3s; }
.toast.ok::before { content: "● "; color: #30D158; }
.toast.warn::before { content: "● "; color: #FF9F0A; }
.toast.out { opacity: 0; transform: translateY(8px); }

@media (max-width: 560px) {
  .nav-links a.hide-sm { display: none; }
  .logo { font-size: 17px; }
  .logo-img { width: 40px; height: 40px; }
  .panel { padding: 20px; }
  .stage { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- shop menu ---------- */
.menu-chips { margin-bottom: 14px; max-width: 100%; width: max-content; }
.menu-chips .chip.is-empty { color: #A1A1A6; }
.sub-chips { background: transparent; padding: 0; gap: 8px; }
.sub-chips .chip { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; }
.sub-chips .chip.active { background: var(--ink); color: #fff; box-shadow: none; }
.chip-n { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 2px; }
.chip.active .chip-n { color: var(--muted); }
.sub-chips .chip.active .chip-n { color: rgba(255,255,255,.7); }
.details .notice { margin-top: 18px; }

/* =====================================================================
   Floating background scene (shop pages)
   ===================================================================== */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-layer { position: absolute; inset: -8%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.o1 { width: 62vmax; height: 62vmax; left: -18vmax; top: -24vmax;
  background: radial-gradient(closest-side, rgba(215,20,26,.13), rgba(215,20,26,0)); animation: drift1 34s ease-in-out infinite alternate; }
.o2 { width: 54vmax; height: 54vmax; right: -20vmax; top: 6vmax;
  background: radial-gradient(closest-side, rgba(120,140,170,.16), rgba(120,140,170,0)); animation: drift2 42s ease-in-out infinite alternate; }
.o3 { width: 46vmax; height: 46vmax; left: 22vw; bottom: -26vmax;
  background: radial-gradient(closest-side, rgba(255,120,60,.08), rgba(255,120,60,0)); animation: drift3 38s ease-in-out infinite alternate; }
.o4 { width: 24vmax; height: 24vmax; right: 18vw; top: 38vh;
  background: radial-gradient(closest-side, rgba(215,20,26,.07), rgba(215,20,26,0)); animation: drift4 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-14vw, 14vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-10vw, -12vh, 0) scale(1.2); } }
@keyframes drift4 { 50% { transform: translate3d(-8vw, -6vh, 0) scale(1.25); } to { transform: translate3d(4vw, 10vh, 0) scale(.85); } }
/* showroom floor: a perspective grid fading into the distance */
.bg-floor { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 70vh;
  background-image:
    linear-gradient(to right, rgba(29,29,31,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29,29,31,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 75%); mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 75%);
  animation: floorRun 18s linear infinite; }
@keyframes floorRun { to { background-position: 0 72px, 0 72px; } }
.bg-grain { position: absolute; inset: -50%; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { background-attachment: scroll; }
.site-header { z-index: 50; }

/* theme switch */
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #424245; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--ease); }
.theme-toggle:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.theme-toggle:active { transform: rotate(-20deg) scale(.92); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }

/* =====================================================================
   Dark theme — "night garage"
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C10; --card: #16171C; --ink: #F5F5F7; --muted: #9B9BA3;
  --line: #2B2C33; --line-soft: #212228;
  --blue: #5AA9FF; --ok: #3DD68C; --warn: #FFB547; --bad: #FF6B63;
  --shadow-1: 0 0 0 1px rgba(255,255,255,.05) inset, 0 2px 8px rgba(0,0,0,.4);
  --shadow: 0 0 0 1px rgba(255,255,255,.055) inset, 0 12px 30px -12px rgba(0,0,0,.75), 0 30px 60px -30px rgba(0,0,0,.85);
  --shadow-lift: 0 0 0 1px rgba(255,255,255,.07) inset, 0 20px 40px -14px rgba(0,0,0,.8), 0 0 60px -20px rgba(215,20,26,.35);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .o1 { background: radial-gradient(closest-side, rgba(215,20,26,.32), rgba(215,20,26,0)); }
:root[data-theme="dark"] .o2 { background: radial-gradient(closest-side, rgba(70,110,190,.26), rgba(70,110,190,0)); }
:root[data-theme="dark"] .o3 { background: radial-gradient(closest-side, rgba(255,90,40,.18), rgba(255,90,40,0)); }
:root[data-theme="dark"] .o4 { background: radial-gradient(closest-side, rgba(255,40,60,.2), rgba(255,40,60,0)); }
:root[data-theme="dark"] .bg-floor { background-image:
    linear-gradient(to right, rgba(255,70,70,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); }
:root[data-theme="dark"] .bg-grain { opacity: .07; mix-blend-mode: overlay; }

:root[data-theme="dark"] .site-header { background: rgba(14,15,20,.62); border-bottom-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .nav-links a, :root[data-theme="dark"] .theme-toggle { color: #C7C7CC; }
:root[data-theme="dark"] .nav-links a:hover, :root[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
:root[data-theme="dark"] .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
:root[data-theme="dark"] .cart-count { box-shadow: 0 0 0 2px #0B0C10; }
:root[data-theme="dark"] .logo-img { filter: drop-shadow(0 0 10px rgba(215,20,26,.35)); }

:root[data-theme="dark"] .hero p, :root[data-theme="dark"] .badge { color: #A8A8B0; }
:root[data-theme="dark"] .badge.goa { color: #fff; }
:root[data-theme="dark"] .stage { box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255,255,255,.08); }

:root[data-theme="dark"] .chips { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .chip { color: #C7C7CC; }
:root[data-theme="dark"] .chip:hover { color: #fff; }
:root[data-theme="dark"] .chip.active { background: #2C2D34; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 4px 12px rgba(0,0,0,.4); }
:root[data-theme="dark"] .menu-chips .chip.is-empty { color: #55565D; }
:root[data-theme="dark"] .sub-chips { background: transparent; }
:root[data-theme="dark"] .sub-chips .chip { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset; }
:root[data-theme="dark"] .sub-chips .chip.active { background: #F5F5F7; color: #111; }
:root[data-theme="dark"] .search { background-color: rgba(22,23,28,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; color: var(--ink); }
:root[data-theme="dark"] .search::placeholder, :root[data-theme="dark"] .input::placeholder { color: #6E6E76; }

:root[data-theme="dark"] .card { background: rgba(22,23,28,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-theme="dark"] .card-img { background: radial-gradient(80% 70% at 50% 35%, #2A2B31, #131418); }
:root[data-theme="dark"] .card::after { mix-blend-mode: overlay; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 45%); }
:root[data-theme="dark"] .card:hover { box-shadow: var(--shadow-lift); }
:root[data-theme="dark"] .tag { background: rgba(20,20,26,.72); color: #fff; }
:root[data-theme="dark"] .tag.new { background: var(--red); }
:root[data-theme="dark"] .off, :root[data-theme="dark"] .amount { color: #FF5A52; }
:root[data-theme="dark"] .card.skeleton .card-img, :root[data-theme="dark"] .card.skeleton .card-body span {
  background: linear-gradient(90deg, #1C1D22 25%, #26272D 50%, #1C1D22 75%); background-size: 200% 100%; }

:root[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,.07); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
:root[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.12); }
:root[data-theme="dark"] .btn-dark { background: linear-gradient(180deg, #FFFFFF, #DCDCE1); color: #111; box-shadow: 0 8px 20px -10px rgba(255,255,255,.35); }
:root[data-theme="dark"] .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 28px -8px rgba(215,20,26,.75); }
:root[data-theme="dark"] .link-btn, :root[data-theme="dark"] .info a:not(.btn) { color: var(--blue); }

:root[data-theme="dark"] .panel { background: rgba(22,23,28,.72); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06); }
:root[data-theme="dark"] .field label { color: #C7C7CC; }
:root[data-theme="dark"] .input { background: rgba(10,11,14,.7); border-color: #2E2F36; color: var(--ink); }
:root[data-theme="dark"] .input:hover { border-color: #3D3E46; }
:root[data-theme="dark"] .input:focus { background: #111216; }
:root[data-theme="dark"] select.input option, :root[data-theme="dark"] .sort option { background: #16171C; color: #F5F5F7; }
:root[data-theme="dark"] .notice { background: rgba(255,181,71,.1); box-shadow: 0 0 0 1px rgba(255,181,71,.25) inset; color: #FFD9A0; }
:root[data-theme="dark"] .notice.bad { background: rgba(255,107,99,.12); box-shadow: 0 0 0 1px rgba(255,107,99,.3) inset; color: #FF9A94; }
:root[data-theme="dark"] code { background: #24252B; }

:root[data-theme="dark"] .status.pending   { background: rgba(255,181,71,.14); }
:root[data-theme="dark"] .status.confirmed, :root[data-theme="dark"] .status.delivered { background: rgba(61,214,140,.14); }
:root[data-theme="dark"] .status.shipped   { background: rgba(90,169,255,.14); }
:root[data-theme="dark"] .status.rejected, :root[data-theme="dark"] .status.cancelled { background: rgba(255,107,99,.14); }

:root[data-theme="dark"] .gallery-main { background: radial-gradient(75% 65% at 50% 32%, #2A2B31, #101115); }
:root[data-theme="dark"] .thumb { background: #16171C; }
:root[data-theme="dark"] .specs, :root[data-theme="dark"] .ship-note, :root[data-theme="dark"] .recent,
:root[data-theme="dark"] .info-card, :root[data-theme="dark"] .qty { background: rgba(22,23,28,.85); color: var(--ink); }
:root[data-theme="dark"] .ship-note, :root[data-theme="dark"] .desc, :root[data-theme="dark"] .info ul, :root[data-theme="dark"] .info ol,
:root[data-theme="dark"] .contact-lines, :root[data-theme="dark"] .qty button { color: #C7C7CC; }
:root[data-theme="dark"] .qty button:hover { background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .info-card.goa { background: radial-gradient(120% 120% at 0% 0%, #23242A, #16171C); }

:root[data-theme="dark"] .cart-thumb { background: radial-gradient(80% 70% at 50% 35%, #2A2B31, #131418); }
:root[data-theme="dark"] .sum-item img { background: #1F2026; }
:root[data-theme="dark"] .steps li::before { background: #16171C; }
:root[data-theme="dark"] .steps li.active::before { background: #F5F5F7; color: #111; }
:root[data-theme="dark"] .steps li.done::after { background: #F5F5F7; }
:root[data-theme="dark"] .ship-hint { background: rgba(90,169,255,.12); }
:root[data-theme="dark"] .ship-hint.goa { background: rgba(61,214,140,.12); }
:root[data-theme="dark"] .upi-id { background: #1F2026; }
:root[data-theme="dark"] .upload { background: rgba(10,11,14,.6); border-color: #3A3B42; color: #C7C7CC; }
:root[data-theme="dark"] .upload:hover { background: rgba(215,20,26,.08); border-color: var(--red); }
:root[data-theme="dark"] .upload.has-file { background: rgba(61,214,140,.08); }
:root[data-theme="dark"] .qr { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px -18px rgba(0,0,0,.9); }  /* stays white so it scans */
:root[data-theme="dark"] .timeline li::before { background: #3A3B42; }
:root[data-theme="dark"] .timeline li::after { background: #2A2B31; }
:root[data-theme="dark"] .timeline li.done::before, :root[data-theme="dark"] .timeline li.done::after { background: var(--ok); }
:root[data-theme="dark"] .timeline li.current::before { background: var(--red); }

:root[data-theme="dark"] .site-footer { background: rgba(10,11,14,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #A1A1A8; border-top-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .site-footer a:hover { color: #fff; }
:root[data-theme="dark"] .footer-brand strong, :root[data-theme="dark"] .footer-col h4, :root[data-theme="dark"] .footer-credits a { color: #F5F5F7; }
:root[data-theme="dark"] .footer-credits a { text-decoration-color: rgba(255,255,255,.3); }
:root[data-theme="dark"] .footer-credits { border-top-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .footer-legal { color: #6E6E76; }
:root[data-theme="dark"] .footer-logo, :root[data-theme="dark"] .community img { filter: drop-shadow(0 0 18px rgba(215,20,26,.35)); }
:root[data-theme="dark"] .toast { background: rgba(245,245,247,.92); color: #111; }

@media (max-width: 560px) {
  .o1 { width: 90vmax; height: 90vmax; } .o2 { width: 80vmax; height: 80vmax; }
  .bg-floor { background-size: 48px 48px; }
}
@media (prefers-reduced-motion: reduce) { .orb, .bg-floor { animation: none !important; } }

/* ---------- Facebook links ---------- */
.fb-ico { flex: none; color: #1877F2; }
.fb-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; margin-top: 4px; }
.fb-link .fb-ico { width: 16px; height: 16px; }
.fb-inline { display: inline-flex; align-items: center; gap: 5px; vertical-align: -2px; }
.btn-fb { background: linear-gradient(180deg, #2D88FF, #1877F2); color: #fff; box-shadow: 0 8px 20px -10px rgba(24,119,242,.6); }
.btn-fb:hover { filter: brightness(1.06); }
:root[data-theme="dark"] .fb-ico { color: #4C9BFF; }

/* ---------- sellers on the shop ---------- */
.card-seller { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seller-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px;
  border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-1), 0 0 0 .5px rgba(0,0,0,.06); }
.seller-box > div { display: grid; gap: 1px; }
.seller-box b { font-size: 16px; letter-spacing: -.01em; }
.seller-box .btn { padding: 10px 16px; font-size: 14px; }
:root[data-theme="dark"] .seller-box { background: rgba(22,23,28,.85); }
.cart-seller { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 0 8px; margin-top: 8px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.cart-seller:first-child { margin-top: 0; padding-top: 0; }
.cart-seller + .cart-row { padding-top: 16px; }

/* ---------- checkout: one payment per seller ---------- */
.pay-intro .notice { margin-bottom: 14px; }
.pay-card + .pay-card { margin-top: 16px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.pay-head .panel-title { margin-bottom: 8px; }
.pay-items { margin: -2px 0 16px; }
.pay-card.is-placed { opacity: .75; }
.pay-card.is-placed .qr-wrap, .pay-card.is-placed .pay-steps { display: none; }
#payForm > .btn-block { margin-top: 18px; }
.sum-seller { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 10px 0 2px; }
.sum-seller:first-child { margin-top: 0; }
#doneCodes { display: grid; gap: 14px; justify-items: center; margin: 4px 0 10px; }
.done-order { display: grid; gap: 6px; justify-items: center; }
.done-order .order-code { margin: 0; }
.done-seller { font-weight: 600; }
.done-order .btn { padding: 9px 16px; font-size: 14px; }

/* =====================================================================
   Buyer accounts — header button, Google button, account page
   ===================================================================== */
.acct-btn { width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; overflow: hidden; color: #424245; }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-btn.signed-in { box-shadow: 0 0 0 2px var(--red); }
.acct-initial { width: 100%; height: 100%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; }
:root[data-theme="dark"] .acct-btn { color: #C7C7CC; }
.btn-google { background: #fff; color: #1F1F1F; box-shadow: 0 0 0 1px #DADCE0 inset, 0 1px 2px rgba(0,0,0,.06); font-weight: 600; gap: 10px; }
.btn-google:hover { background: #F8F9FA; }
:root[data-theme="dark"] .btn-google { background: #fff; color: #1F1F1F; }
.signin-card { text-align: center; padding: 36px 24px; }
.signin-card h2 { font-size: 24px; letter-spacing: -.03em; margin: 8px 0 6px; }
.signin-card p { color: var(--muted); max-width: 30em; margin: 0 auto 20px; }
.signin-card .btn-google { min-width: 260px; }
.signin-card .fine { font-size: 12.5px; margin: 16px auto 0; }
.signin-card .fine a { text-decoration: underline; }
.signin-ico { width: 64px; height: 64px; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.15)); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; cursor: pointer; margin: 2px 0 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.signed-as { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.035); margin-bottom: 16px; font-size: 14px; }
.signed-as img, .signed-as .acct-initial { width: 30px; height: 30px; border-radius: 50%; flex: none; }
:root[data-theme="dark"] .signed-as { background: rgba(255,255,255,.06); }
.account-head { display: flex; align-items: center; gap: 16px; }
.account-head .avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px #fff, 0 8px 20px -8px rgba(0,0,0,.4); }
.account-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-head .avatar .acct-initial { font-size: 26px; }
.account-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.acct-tabs { margin: 18px 0; }
.addr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.addr:last-child { border-bottom: 0; }
.addr-actions { display: flex; gap: 14px; align-items: start; }
.my-order + .my-order { margin-top: 14px; }
.my-order .order-head { margin-bottom: 6px; }
.danger-zone { border: 1px solid rgba(196,22,28,.25); }
.link-btn.danger { color: var(--bad); }
.signed-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.signed-cta .btn-google { padding: 10px 18px; }
.logo span { white-space: nowrap; }
.my-order .status, .order-card .status { text-transform: none; }
@media (max-width: 420px) {
  .nav-links a.hide-xs { display: none; }
  .nav { gap: 6px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.acct-btn):not(.cart-btn) { padding: 8px 10px; }
}
@media (max-width: 370px) {
  .logo { font-size: 15.5px; gap: 7px; }
  .logo-img { width: 34px; height: 34px; }
  .nav-links a:not(.acct-btn):not(.cart-btn) { padding: 8px 7px; font-size: 13.5px; }
}
@media (max-width: 340px) { .logo > span { display: none; } }

/* =====================================================================
   Auctions (auction.html)
   ===================================================================== */
.center { text-align: center; }
.auc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.auc-head .page-title { margin-bottom: 8px; }
.auc-lead { margin: 0; max-width: 520px; }
.auc-tabs { width: max-content; max-width: 100%; margin-bottom: 20px; }
.auc-card .card-title { margin-bottom: 2px; }
.auc-card-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 10px; }
.auc-card-row .price { font-size: 18px; }
.auc-k { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.auc-right { text-align: right; }
.auc-time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.auc-time.urgent { color: var(--red); }
.auc-time.ended { color: var(--muted); text-transform: capitalize; }
.auc-pill { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.06); color: var(--ink); }
.auc-pill.win, .auc-pill.won { background: #E6F5EE; color: var(--ok); }
.auc-pill.out { background: #FDECEC; color: var(--bad); }
.auc-bids .auc-pill { margin: 0 0 0 4px; }
.auc-rules { margin-top: 34px; }
.auc-rules summary { cursor: pointer; font-weight: 600; }
.auc-rules ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.auc-rules li + li { margin-top: 6px; }

.auc-photo img { object-fit: cover; }
.auc-panel { margin: 20px 0 10px; padding: 20px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow), 0 0 0 .5px rgba(0,0,0,.05); }
.auc-stats { display: flex; justify-content: space-between; gap: 16px; }
.auc-big { display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.auc-facts { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.auc-facts li { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0,0,0,.035); display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.auc-facts b { color: var(--ink); font-size: 15px; }
.auc-bid { margin-top: 6px; }
.auc-bid-row { display: flex; gap: 10px; margin-top: 6px; }
.auc-money { position: relative; flex: 1; }
.auc-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); }
.auc-money .input { padding-left: 30px; font-size: 18px; font-weight: 700; }
.auc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.auc-quick .chip { background: rgba(0,0,0,.05); }
.auc-bid + .btn, #binBtn { margin-top: 12px; }
.auc-banner { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(0,0,0,.045); font-size: 14.5px; margin-bottom: 12px; }
.auc-banner.win { background: #E6F5EE; color: var(--ok); font-weight: 600; }
.auc-banner.out { background: #FDECEC; color: var(--bad); font-weight: 600; }
.auc-result { text-align: center; padding: 18px 14px; border-radius: var(--radius-md); background: rgba(0,0,0,.035); }
.auc-result.won { background: linear-gradient(180deg, #FFF8E6, #FFFDF6); box-shadow: 0 0 0 1px #F5E2BD inset; }
.auc-result-ico { font-size: 34px; }
.auc-result h3 { margin: 4px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.auc-result p { margin: 0 0 10px; }
.auc-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.auc-signin { text-align: center; }
.auc-signin p { margin: 0 0 12px; font-weight: 500; }
.auc-share { margin: 4px 0 18px; }
.auc-h3 { font-size: 18px; margin: 18px 0 8px; letter-spacing: -.015em; }
.auc-bids { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); background: var(--card); }
.auc-bids li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; font-size: 14.5px; }
.auc-bids li + li { border-top: 1px solid var(--line-soft); }
.auc-bids li.top { background: rgba(26,135,84,.07); }
.auc-bids li.top b { color: var(--ok); }
.auc-bids li.me em { color: var(--muted); font-style: normal; }
.auc-bids b { font-variant-numeric: tabular-nums; }
.narrow-form { max-width: 680px; margin: 0 auto; }
.auc-ends { width: max-content; margin-bottom: 4px; }
textarea.input { resize: vertical; min-height: 84px; }
.auc-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(420px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift); }
.auc-dialog::backdrop { background: rgba(10,10,14,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.auc-dialog h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
.auc-dialog p { margin: 0 0 18px; }
.auc-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 520px) {
  .auc-head .btn { width: 100%; }
  .auc-bids li { grid-template-columns: 1fr auto; }
  .auc-bids li .small { display: none; }
}
:root[data-theme="dark"] .auc-panel, :root[data-theme="dark"] .auc-bids, :root[data-theme="dark"] .auc-dialog { background: rgba(22,23,28,.92); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="dark"] .auc-facts li, :root[data-theme="dark"] .auc-banner, :root[data-theme="dark"] .auc-result,
:root[data-theme="dark"] .auc-quick .chip, :root[data-theme="dark"] .auc-pill { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .auc-banner.win, :root[data-theme="dark"] .auc-pill.win, :root[data-theme="dark"] .auc-pill.won { background: rgba(26,135,84,.18); color: #5FD49A; }
:root[data-theme="dark"] .auc-banner.out, :root[data-theme="dark"] .auc-pill.out { background: rgba(215,20,26,.16); color: #FF7A72; }
:root[data-theme="dark"] .auc-result.won { background: linear-gradient(180deg, rgba(255,200,60,.14), rgba(255,200,60,.04)); box-shadow: 0 0 0 1px rgba(255,200,60,.25) inset; }
:root[data-theme="dark"] .auc-bids li + li { border-top-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .auc-bids li.top { background: rgba(26,135,84,.14); }
:root[data-theme="dark"] .auc-bids li.top b { color: #5FD49A; }
:root[data-theme="dark"] .auc-time.urgent { color: #FF5A52; }
.auc-late { padding: 10px 12px; margin-bottom: 10px; border-radius: var(--radius-sm); background: #FFF4DF; color: #8A5200; font-size: 14px; }
.auc-ext { display: block; font-size: 12px; font-weight: 600; color: var(--warn); }
:root[data-theme="dark"] .auc-late { background: rgba(255,159,10,.14); color: #FFC56B; }
:root[data-theme="dark"] .auc-ext { color: #FFC56B; }
