:root {
  --bg: #070b14;
  --surface: #0f1626;
  --surface-2: #151e33;
  --text: #eef3ff;
  --muted: #8d9bb8;
  --accent: #3b82ff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(59, 130, 255, .12);
  --border: rgba(148, 170, 220, .14);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(900px 500px at 80% -10%, rgba(59,130,255,.16), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
header, footer, main { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 5; padding-top: 16px; padding-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  background: rgba(7, 11, 20, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .15s; }
nav a:hover { color: var(--text); }
main { flex: 1; padding-top: 32px; padding-bottom: 56px; }

/* Buttons */
.button {
  display: inline-block; background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; border: 0;
  padding: 12px 26px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; box-shadow: 0 6px 20px rgba(59,130,255,.3); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.button.small { padding: 7px 16px; font-size: .85rem; box-shadow: none; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(59,130,255,.45); }
.button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0 6px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  padding: 64px 48px; margin-bottom: 64px; border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(600px 300px at 90% 20%, rgba(34,211,238,.12), transparent 70%), var(--surface);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.035em;
  background: linear-gradient(135deg, #fff 30%, #9cc2ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 0 28px; font-size: 1.08rem; max-width: 46ch; }
.hero .eyebrow {
  display: inline-block; color: var(--accent-2) !important; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; font-weight: 700; margin: 0 0 18px; max-width: none;
}
.hero-art { color: var(--accent); filter: drop-shadow(0 12px 30px rgba(59,130,255,.35)); }
.hero-art svg { width: 100%; height: auto; }

/* Shop */
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
#search {
  font: inherit; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
}
#search::placeholder { color: var(--muted); }
#search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
#filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .85rem; font-weight: 500; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(59,130,255,.5); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.product h3 { margin: 4px 6px 2px; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.product p { color: var(--muted); font-size: .85rem; margin: 0 6px 16px; flex: 1; }
.product .tag, .product .row { margin-left: 6px; margin-right: 6px; }
.product strong { font-size: 1.15rem; letter-spacing: -.01em; }
.tag { font-size: .68rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pic {
  position: relative; background: linear-gradient(145deg, var(--surface-2), var(--bg)); border-radius: 12px; color: var(--accent);
  aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 14px; overflow: hidden;
}
.pic svg { width: 60%; height: 60%; }
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* Arrow pointing at the product in a photo (set `arrow: {x, y}` on a product) */
.arrow { position: absolute; transform: translate(-100%, -50%); font-size: 2rem; line-height: 1; color: #ff4d4d;
  text-shadow: 0 0 3px #fff, 0 0 6px #fff; pointer-events: none; }

/* Contact */
#contact {
  margin-top: 72px; padding: 40px 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; text-align: center;
}
#contact h2 { margin: 0 0 8px; letter-spacing: -.02em; }
#contact p { margin: 0; color: var(--muted); }
#contact a { color: var(--accent-2); font-weight: 600; }

/* Cart */
#cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--surface); border-left: 1px solid var(--border); padding: 24px;
  overflow-y: auto; box-shadow: -16px 0 40px rgba(0,0,0,.5); z-index: 10;
}
#cart[hidden] { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; letter-spacing: -.02em; }
#cart ul { list-style: none; padding: 0; }
#cart li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.total { text-align: right; font-size: 1.1rem; }
#cart .button { width: 100%; }
#cart-note { color: var(--muted); font-size: .9rem; }

footer { color: var(--muted); text-align: center; font-size: .8rem; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  nav { gap: 16px; }
}

/* Background picture: a modified Micro-B. Replace images/background.jpg with your own photo
   and it will show on top of the built-in drawing. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,11,20,.55), rgba(7,11,20,.88)),
    url("images/background.jpg") center / cover no-repeat,
    url("images/background.svg") center 70% / min(1100px, 95vw) no-repeat;
  opacity: .9;
}

/* Checkout dialog */
dialog { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text);
  width: min(520px, 94vw); padding: 24px; }
dialog::backdrop { background: rgba(3, 6, 12, .7); backdrop-filter: blur(4px); }
dialog h2, dialog h3 { margin: 0 0 8px; letter-spacing: -.01em; }
dialog h3 { margin-top: 18px; font-size: 1rem; color: var(--muted); }
#checkout-form { display: grid; gap: 12px; }
#checkout-form label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
#checkout-form input { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); }
#checkout-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.muted { color: var(--muted); margin: 0; }
.small-note { font-size: .8rem; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { font: inherit; font-size: .85rem; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text); transition: all .15s; }
.pay:hover { border-color: var(--accent); }
.pay.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
#checkout-note { color: var(--accent-2); font-size: .9rem; margin: 0; min-height: 1.2em; }

/* Item count by the cart */
.shop-count { font-size: .75rem; font-weight: 700; color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* U.S.-only shipping notice */
.notice { background: var(--accent); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }
footer { line-height: 1.8; }

.notice-2 { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }

/* Flash deal banner + prices */
.deal { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; text-align: center; font-weight: 800;
  letter-spacing: .02em; padding: 10px 16px; }
.deal[hidden] { display: none; }
.was { color: var(--muted); font-size: .85rem; }
.now { color: #fbbf24; font-size: 1.15rem; }

/* Thick silver borders on every box */
:root { --silver: #c4cad6; }
.product, .hero, #contact, dialog, .pic, #search {
  border: 3px solid var(--silver);
}
.product:hover { border-color: #f1f4fa; box-shadow: 0 0 0 1px var(--silver), 0 14px 34px rgba(0,0,0,.45); }
#cart { border-left: 3px solid var(--silver); }
.chip, .pay { border: 2px solid var(--silver); }
.chip.active { border-color: #f1f4fa; }
#checkout-form input { border: 2px solid var(--silver); }
.shop-count { border: 2px solid var(--silver); }

/* Opening animation */
#intro { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 6px;
  background: radial-gradient(700px 400px at 50% 55%, #10224a, #050810 70%); overflow: hidden; cursor: pointer;
  transition: opacity .6s ease, transform .6s ease; }
#intro.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
body.intro-on { overflow: hidden; }
#intro-car { width: min(420px, 70vw); color: var(--accent); filter: drop-shadow(0 0 24px rgba(59,130,255,.7));
  transform: translateX(-120vw); animation: drive 1.2s cubic-bezier(.2,.7,.2,1) .15s forwards, leave .7s cubic-bezier(.6,0,1,.6) 1.95s forwards; }
#intro-car svg { width: 100%; height: auto; display: block; }
.intro-title { font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 900; letter-spacing: .08em; opacity: 0;
  animation: rise .7s ease 1.15s forwards; }
.intro-title span { color: var(--accent); }
.intro-sub { color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; opacity: 0;
  animation: rise .7s ease 1.5s forwards; }
.intro-lines i { position: absolute; left: -40%; height: 3px; width: 40%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #7fb0ff, transparent); opacity: 0; animation: streak 1s linear infinite; }
.intro-lines i:nth-child(1) { top: 28%; animation-delay: .0s; }
.intro-lines i:nth-child(2) { top: 40%; animation-delay: .2s; width: 55%; }
.intro-lines i:nth-child(3) { top: 62%; animation-delay: .1s; }
.intro-lines i:nth-child(4) { top: 73%; animation-delay: .35s; width: 30%; }
.intro-lines i:nth-child(5) { top: 52%; animation-delay: .5s; width: 50%; }
@keyframes drive { 0% { transform: translateX(-120vw) skewX(-14deg); } 70% { transform: translateX(14px) skewX(-4deg); } 100% { transform: translateX(0) skewX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes streak { 0% { left: -45%; opacity: 0; } 20% { opacity: .9; } 100% { left: 110%; opacity: 0; } }

#intro .wheel { transform-box: view-box; animation: spin .45s linear infinite; }
#intro .buggy-body { animation: bounce .35s ease-in-out infinite alternate; }
#intro .dust { animation: dust .5s ease-out infinite; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes dust { from { opacity: .55; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(-22px) scale(1.6); } }
@keyframes leave { from { transform: translateX(0) skewX(0); } to { transform: translateX(130vw) skewX(-12deg); } }

.hero-art { filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }
#intro .dust { animation: dust .5s ease-out infinite; }

#intro .dust { color: var(--accent); }
.hero-art { filter: drop-shadow(0 12px 30px rgba(59,130,255,.35)); }

/* One shared buggy: tune the intro animation for its 64x40 drawing */
#intro { --hub: #050810; }
.hero-art { --hub: var(--bg); }
.logo-badge { --hub: #000; }
#intro .dust { transform-box: fill-box; transform-origin: center; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-.7px); } }
@keyframes dust { from { opacity: .55; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(-4px) scale(1.6); } }

/* Bigger buggy everywhere: original motion units, and a header logo version of it */
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes dust { from { opacity: .55; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(-22px) scale(1.6); } }
.logo-badge { --bg: #000; padding: 4px 8px; }
.logo-badge svg { width: 62px; height: 31px; }
.logo-badge svg ellipse { display: none; }
.logo-badge svg g[stroke] { stroke-width: 11; }

/* Logo = the animation buggy, standing still */
.logo-badge svg { width: 66px; height: 31px; }
.logo-badge .dust { display: none; }
.logo-badge svg g[stroke] { stroke-width: 9; }

/* Animation looks like the logo: buggy on black, blinking blue and white */
#intro { background: #000; }
#intro-car {
  color: #2a7bff;
  animation: drive 1.2s cubic-bezier(.2,.7,.2,1) .15s forwards,
             leave .7s cubic-bezier(.6,0,1,.6) 1.95s forwards,
             logo-blink 1s steps(1, end) infinite;
}

/* Product boxes at half size */
.grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 11px; }
.product { padding: 7px; border-width: 2px; border-radius: 10px; }
.pic { border-radius: 7px; margin-bottom: 7px; }
.product h3 { margin: 2px 3px; font-size: .72rem; line-height: 1.25; }
.product p { margin: 0 3px 8px; font-size: .62rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product .tag, .product .row { margin-left: 3px; margin-right: 3px; }
.tag { font-size: .55rem; letter-spacing: .06em; }
.product strong { font-size: .8rem; }
.product .row { flex-wrap: wrap; gap: 4px; }
.product .button.small { padding: 4px 8px; font-size: .62rem; }
.product:hover { transform: translateY(-2px); }
.was { font-size: .62rem; } .now { font-size: .8rem; }

/* Product boxes: 25% bigger than the half-size version */
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.product { padding: 9px; border-radius: 12px; }
.pic { margin-bottom: 9px; }
.product h3 { margin: 3px 4px; font-size: .9rem; }
.product p { margin: 0 4px 10px; font-size: .78rem; }
.product .tag, .product .row { margin-left: 4px; margin-right: 4px; }
.tag { font-size: .69rem; }
.product strong { font-size: 1rem; }
.product .button.small { padding: 5px 10px; font-size: .78rem; }
.was { font-size: .78rem; } .now { font-size: 1rem; }

/* Product boxes: another 25% bigger (150px -> about 190px) */
.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 17px; }
.product { padding: 11px; border-radius: 13px; }
.pic { margin-bottom: 11px; }
.product h3 { margin: 4px 5px; font-size: 1.05rem; }
.product p { margin: 0 5px 12px; font-size: .9rem; -webkit-line-clamp: 4; }
.product .tag, .product .row { margin-left: 5px; margin-right: 5px; }
.tag { font-size: .8rem; }
.product strong { font-size: 1.15rem; }
.product .button.small { padding: 6px 12px; font-size: .9rem; }
.was { font-size: .9rem; } .now { font-size: 1.15rem; }

/* Product boxes: 50% smaller, then 15% bigger (95px -> about 109px); text another 15% bigger */
.grid { grid-template-columns: repeat(auto-fill, minmax(109px, 1fr)); gap: 10px; }
.product { padding: 7px; border-radius: 9px; border-width: 1px; }
.pic { margin-bottom: 7px; border-radius: 6px; }
.product h3 { margin: 2px 3px; font-size: .72rem; line-height: 1.2; }
.product p { margin: 0 3px 7px; font-size: .63rem; line-height: 1.3; -webkit-line-clamp: 3; }
.product .tag, .product .row { margin-left: 3px; margin-right: 3px; }
.tag { font-size: .55rem; letter-spacing: .04em; }
.product strong { font-size: .79rem; }
.product .row { gap: 3px; }
.product .button.small { padding: 3px 7px; font-size: .63rem; }
.was { font-size: .63rem; } .now { font-size: .79rem; }

/* Product detail window */
.product { cursor: pointer; }
#product-dialog { width: min(820px, 95vw); padding: 22px; }
.pd-close { position: absolute; top: 10px; right: 14px; font-size: 1.2rem; z-index: 2; }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.pd-main { aspect-ratio: 4 / 3; margin: 0; }
.pd-main svg { width: 55%; height: 55%; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb { padding: 0; width: 64px; height: 48px; border: 2px solid var(--silver, #c4cad6); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info h2 { margin: 4px 0 8px; font-size: 1.4rem; line-height: 1.2; }
.pd-price { font-size: 1.6rem; margin-bottom: 12px; }
.pd-price .was { font-size: 1rem; } .pd-price .now { font-size: 1.6rem; }
.deal-pill { margin-left: 8px; background: linear-gradient(90deg,#f59e0b,#ef4444); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
#pd-desc { color: var(--text); line-height: 1.6; margin: 0 0 14px; }
#pd-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: .9rem; }
#pd-details dt { color: var(--muted); } #pd-details dd { margin: 0; }
@media (max-width: 700px) { .pd-grid { grid-template-columns: 1fr; } }

/* Drift car animation: the car slides at an angle and the tires pour out smoke */
#intro .car-tilt { transform-box: fill-box; transform-origin: 50% 85%; animation: slide-angle .9s ease-in-out infinite alternate; }
@keyframes slide-angle { from { transform: rotate(-3deg); } to { transform: rotate(-11deg); } }
#intro .smoke circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: smoke .9s ease-out infinite; }
#intro .smoke circle:nth-child(2) { animation-delay: .18s; }
#intro .smoke circle:nth-child(3) { animation-delay: .36s; }
#intro .smoke circle:nth-child(4) { animation-delay: .54s; }
#intro .smoke circle:nth-child(5) { animation-delay: .72s; }
@keyframes smoke { 0% { opacity: .85; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-46px, -16px) scale(2.8); } }
/* Header logo: same car, standing still with smoke trailing */
.logo-badge .smoke circle { opacity: .75; }

/* Navy blue buttons */
.button { background: linear-gradient(135deg, #1b3a8f, #0f2160); border: 1px solid rgba(140, 170, 255, .45); box-shadow: 0 6px 20px rgba(15, 33, 96, .55); }
.button:hover:not(:disabled) { background: linear-gradient(135deg, #2347aa, #14296f); box-shadow: 0 8px 26px rgba(30, 64, 175, .6); }
.chip.active { background: #14296f; border-color: #8caaff; color: #fff; }

/* Gray background */
:root {
  --bg: #2b2f38;
  --surface: #353a45;
  --surface-2: #3f4552;
  --muted: #b4bccd;
  --border: rgba(200, 210, 230, .22);
}
body { background: var(--bg); }
header { background: rgba(43, 47, 56, .88); }
.hero { background: linear-gradient(135deg, #3a4150, #303541); }

/* Navy blue logo on a light badge so it stands out on the gray */
.logo-badge { background: #e4e8ef; color: #14296f; animation: logo-navy 1s steps(1, end) infinite; --bg: #e4e8ef; }
@keyframes logo-navy { 0% { color: #14296f; } 50% { color: #3b6bff; } }
@media (prefers-reduced-motion: reduce) { .logo-badge { animation: none; } }

/* Maroon-red outlines instead of chrome */
:root { --silver: #e11d2e; } /* Micro-B: red border lines */
.product:hover { border-color: #d6314a; box-shadow: 0 0 0 1px #9b1b30, 0 14px 34px rgba(0,0,0,.45); }
.chip.active { border-color: #d6314a; }

/* Side button: shows how many items are in the selected category */
#count-widget { position: fixed; right: 0; top: 40%; z-index: 50; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 8px; }
#count-btn { background: var(--accent); color: #fff; border: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; margin-right: 8px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
#count-panel { background: #fff; color: #111; padding: 12px 16px; border-radius: 10px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.35); white-space: nowrap; }
#count-panel[hidden] { display: none; }
.shop-count[hidden] { display: none; }

/* RC car switcher */
.cars { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.car-tab { font: inherit; font-weight: 700; font-size: 1.05rem; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 2px solid var(--silver); }
.car-tab:hover { color: var(--text); border-color: var(--accent); }
.car-tab.active { background: var(--accent); border-color: #f1f4fa; color: #fff; }

/* Hover and selected outlines follow the car's color */
.product:hover, .chip.active, .car-tab.active { border-color: #ff4d5e; }
.product:hover { box-shadow: 0 0 0 1px #e11d2e, 0 14px 34px rgba(0,0,0,.45); }

/* Sliders Track: candy orange outlines */
body.car-track { --silver: #ff8c1a; }
body.car-track .product:hover, body.car-track .chip.active, body.car-track .car-tab.active { border-color: #ffb866; }
body.car-track .product:hover { box-shadow: 0 0 0 1px #ff8c1a, 0 14px 34px rgba(0,0,0,.45); }
body.car-track .car-tab.active, body.car-track .chip.active { background: #ff8c1a; color: #2a1200; text-shadow: none; }

/* Merch tab: teal outlines */
body.car-merch { --silver: #14d4c0; }
body.car-merch .product:hover, body.car-merch .chip.active, body.car-merch .car-tab.active { border-color: #7ff0e2; }
body.car-merch .product:hover { box-shadow: 0 0 0 1px #14d4c0, 0 14px 34px rgba(0,0,0,.45); }
body.car-merch .car-tab.active, body.car-merch .chip.active { background: #14d4c0; color: #032622; text-shadow: none; }

/* Thank you tab: chrome navy outlines */
body.car-thanks { --silver: #2f5bd6; --chrome: linear-gradient(135deg, #f4f6fb 0%, #9aa3b5 28%, #ffffff 48%, #8a93a6 70%, #e9edf5 100%); }
body.car-thanks .car-tab.active { background: linear-gradient(135deg, #7f9bea 0%, #2f5bd6 40%, #14307f 62%, #dfe4ee 100%); border-color: #f4f6fb; color: #fff; }
body.car-thanks .product:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #7f889b, 0 0 18px rgba(47,91,214,.6); }
.thanks { text-align: center; padding: 72px 24px; background: var(--surface); border: 3px solid var(--silver); border-radius: 24px; }
.thanks h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.02em; }
.thanks p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.thanks a { color: var(--accent-2); font-weight: 700; }
.thanks[hidden] { display: none; }

/* Item counts: the whole-car count on top, the category count underneath */
.counts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }


/* LBRC: candy pink outlines */
body.car-lbrc { --silver: #ff2d95; }
body.car-lbrc .product:hover, body.car-lbrc .chip.active, body.car-lbrc .car-tab.active { border-color: #ff8cc4; }
body.car-lbrc .product:hover { box-shadow: 0 0 0 1px #ff2d95, 0 14px 34px rgba(0,0,0,.45); }
body.car-lbrc .car-tab.active, body.car-lbrc .chip.active { background: #ff2d95; color: #2b0618; }


/* Top box (the one with the buggy or vehicle): candy blue paint outline on every tab */
.hero { border-color: #0a6cff; box-shadow: 0 0 0 1px #0a6cff, 0 0 22px rgba(10,108,255,.45); }

/* Thank you tab: all the vehicles in a row under the text */
.hero-all { display: flex; align-items: flex-end; gap: 10px; }
.hero-all svg { width: 33%; height: auto; min-width: 0; }
body.car-thanks .hero { grid-template-columns: 1fr; text-align: center; }
body.car-thanks .hero p { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .hero-all { flex-wrap: wrap; } .hero-all svg { width: 31%; } }

/* Opening animation: one drifting car */
#intro-car { width: min(480px, 88vw); }

/* Header logo: the vehicle takes the current tab's candy color, on a black badge so every color shows */
.logo-badge { background: #000; color: var(--silver); animation: none; --bg: #000; border-radius: 8px; }

/* The big vehicle at the top matches the logo: the current tab's candy color */
.hero-art { color: var(--silver); filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--silver) 40%, transparent)); }

/* Candy + a little chrome on every tab: a faint silver edge and a glossy shine, not a heavy ring */
body[class*="car-"] .product, body[class*="car-"] .chip, body[class*="car-"] .car-tab,
body[class*="car-"] #search, body[class*="car-"] .thanks {
  box-shadow: 0 0 0 1px rgba(223,228,238,.4), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -10px 18px -12px rgba(255,255,255,.12); }
body[class*="car-"] .product:hover {
  border-color: color-mix(in srgb, var(--silver) 60%, white);
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), inset 0 1px 0 rgba(255,255,255,.4), 0 0 18px color-mix(in srgb, var(--silver) 55%, transparent), 0 14px 34px rgba(0,0,0,.45); }
body[class*="car-"] .chip.active, body[class*="car-"] .car-tab.active {
  background: linear-gradient(160deg, color-mix(in srgb, var(--silver) 60%, white) 0%, var(--silver) 40%, color-mix(in srgb, var(--silver) 78%, black) 100%);
  border-color: color-mix(in srgb, var(--silver) 40%, white); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4);
  box-shadow: 0 0 0 1px rgba(223,228,238,.4), inset 0 1px 0 rgba(255,255,255,.6), 0 0 12px color-mix(in srgb, var(--silver) 50%, transparent); }

/* Top-left: logo with the total number of items in the whole shop underneath */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.total-items { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--silver); padding-left: 2px; }


/* Intro tagline: a full sentence, so normal case and tighter spacing */
.intro-sub { text-transform: none; letter-spacing: .06em; font-size: clamp(.9rem, 3.2vw, 1.15rem); text-align: center; padding: 0 16px; }


.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pd-sizes[hidden] { display: none; }

/* Intro animation: candy blue */
#intro-car { color: #1fb6ff; filter: drop-shadow(0 0 24px rgba(31,182,255,.75));
  animation: drive 1.2s cubic-bezier(.2,.7,.2,1) .15s forwards,
             leave .7s cubic-bezier(.6,0,1,.6) 1.95s forwards; }
#intro .intro-title, #intro .intro-title span { color: #fff; }
#intro .intro-sub { color: #fff; }
#intro .dust, #intro .smoke { color: #6fd6ff; }
.intro-lines i { background: linear-gradient(90deg, transparent, #1fb6ff, transparent); }

/* Shine on the site colors (not the intro): glossy sweep on active tabs and chips, glowing buttons and logo */
.car-tab.active, .chip.active {
  background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%);
  background-size: 250% 100%; background-repeat: no-repeat;
  animation: shine-sweep 2.4s linear infinite;
  box-shadow: 0 0 14px 1px currentColor; }
@keyframes shine-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.button:not(:disabled) { animation: button-glow 1.8s ease-in-out infinite alternate; }
@keyframes button-glow { from { box-shadow: 0 6px 20px rgba(59,130,255,.35); } to { box-shadow: 0 6px 30px rgba(111,170,255,.85), 0 0 14px rgba(180,210,255,.6); } }
.logo-badge { box-shadow: 0 0 16px rgba(111,170,255,.55); }
.product:hover { box-shadow: 0 0 22px 2px var(--silver), 0 14px 34px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .car-tab.active, .chip.active, .button { animation: none; } }
