/* Theme: Autoxion "Performance Store" key visual: deep navy, electric blue glow, chrome lettering. */
:root {
  --bg: #02050d;
  --panel: #081430;
  --panel-2: #0d1f48;
  --line: rgba(64, 140, 255, .24);
  --text: #eef3fb;
  --muted: #9db0d0;
  --accent: #2f8cff;
  --accent-2: #7cc4ff;
  --accent-ink: #ffffff;
  --glow: 0 0 0 1px rgba(47, 140, 255, .55), 0 0 24px rgba(47, 140, 255, .45);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dbe4f1 45%, #9fb0c8 70%, #e9eff8 100%);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(30, 90, 220, .35), transparent 60%), radial-gradient(900px 500px at 100% 40%, rgba(20, 60, 170, .18), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: "Exo 2", system-ui, sans-serif; font-style: italic; font-weight: 800; letter-spacing: .01em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); margin: .3em 0; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); margin: 2.2rem 0 1rem; }
section { scroll-margin-top: 72px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { border-bottom: 1px solid rgba(47, 140, 255, .4); box-shadow: 0 1px 18px rgba(47, 140, 255, .18); background: rgba(2, 5, 13, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.top nav { display: flex; gap: 6px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 8px 10px; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current="page"] { background: var(--panel); color: var(--accent); }
@media (max-width: 420px) { .top .logo img { width: 112px; } .top nav { gap: 0; } .top nav a { font-size: .85rem; padding: 8px 7px; } }

/* Common bits */
.crumbs { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
.kicker { color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; margin: 0; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.meta { color: var(--muted); font-size: .85rem; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { font-weight: 600; font-size: .9rem; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; background: linear-gradient(180deg, #4aa3ff, #1f6fe6); color: var(--accent-ink); padding: 10px 20px; border-radius: 10px; border: 1px solid #5aaeff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 6px 20px rgba(47, 140, 255, .35); }
.btn:hover { filter: brightness(1.1); box-shadow: 0 6px 26px rgba(47, 140, 255, .55); }
.btn.ghost { background: rgba(8, 20, 48, .6); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; border-radius: 8px; }

/* Home */
/* Hero: the key visual as a banner (logo stays in frame), copy underneath, centred */
.hero { margin: 16px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 40px rgba(47, 140, 255, .18); background: linear-gradient(180deg, rgba(8, 20, 48, .2), rgba(2, 5, 13, .95)); text-align: center; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 48%; }
@media (min-width: 760px) { .hero-img { aspect-ratio: 16 / 7; } }
.hero-copy { padding: 4px 20px 28px; max-width: 720px; margin: 0 auto; }
.hero-copy p { color: var(--muted); }
.hero .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Vehicle picker: square key-visual tiles, 3ch apart, centred */
.pick { scroll-margin-top: 64px; text-align: center; }
.pick .panel { text-align: left; }
/* Fixed column counts so 6 tiles always split evenly: 2x3, 3x2, 6x1 */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 3ch; justify-content: center; margin: 0 auto; }
@media (min-width: 600px) { .tabs { grid-template-columns: repeat(3, minmax(0, 160px)); } }
@media (min-width: 1000px) { .tabs { grid-template-columns: repeat(6, minmax(0, 160px)); } }
.tabs button { position: relative; aspect-ratio: 1; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; font: 800 italic 1rem/1.15 "Exo 2", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  background: linear-gradient(0deg, rgba(2, 5, 13, .95) 0%, rgba(2, 5, 13, .55) 38%, rgba(2, 5, 13, .1) 70%), url(/assets/thumb/autoxion-theme.jpg) center / cover; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tabs button:hover { transform: translateY(-2px); border-color: rgba(47, 140, 255, .7); }
.tabs button[aria-selected="true"] { border-color: var(--accent); box-shadow: var(--glow); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 6px; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 380px) { .tabs button { font-size: .9rem; } }
.js .panel-title { display: none; }
.panel { margin-top: 12px; }
.tip { background: var(--panel); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; color: var(--muted); font-size: .92rem; margin: 0; }
.tip strong { color: var(--text); }

.trust { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 8px; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; }
.trust strong { font-size: .95rem; }
.trust span { color: var(--muted); font-size: .85rem; }

/* Product cards: 2 columns on phones */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.card[hidden] { display: none; }
.card-main { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; padding-bottom: 8px; }
.card-img { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.noimg { color: #5b6b8a; font-size: .85rem; }
.card .meta { padding: 10px 12px 0; font-size: .75rem; }
.card h3 { font-size: .95rem; margin: 4px 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { color: var(--muted); font-size: .85rem; margin: 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 699px) { .card-desc { display: none; } }
.card-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.card-actions .btn { flex: 1; padding: 6px 8px; white-space: nowrap; }
/* On phones the whole card already opens the detail page; keep one clear Shopee button. */
@media (max-width: 699px) { .card-actions .btn.ghost { display: none; } }

/* Catalog filter */
.filters { position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); }
.filters input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.filters input::placeholder { color: #6f80a3; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--text); font-size: .9rem; white-space: nowrap; }
.chips a:hover { border-color: var(--accent); }
.chips a[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; box-shadow: 0 0 14px rgba(47, 140, 255, .45); }
.chips.other { margin-top: 32px; }
.empty { color: var(--muted); padding: 24px 0; }

/* Guides */
.guides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; padding-bottom: 16px; }
.guide:hover { border-color: var(--accent); box-shadow: var(--glow); }
.guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide .kicker, .guide strong, .guide span:not(.kicker) { margin: 0 16px; }
.guide .kicker { margin-top: 10px; }
.guide span:not(.kicker) { color: var(--muted); font-size: .9rem; }

.band { background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 32px 0; }
.band h2 { margin-top: 0; }

/* Product page */
.phero { display: grid; gap: 24px; margin: 16px 0; }
.phero-img { background: #fff; border-radius: var(--radius); padding: 12px; }
@media (min-width: 760px) { .phero { grid-template-columns: 1fr 1fr; align-items: center; } }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; width: 38%; }
section figure { margin: 0; }
section figure img { max-height: 280px; width: auto; margin: 0 auto; background: #fff; border-radius: 8px; padding: 8px; }
section figure + figure { margin-top: 16px; }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 6px; }

.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin: 8px 0; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

.buybar { display: none; }
@media (max-width: 759px) {
  .buybar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 10, 20, .96); border-top: 1px solid var(--line); }
  .buybar span { flex: 1; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .has-buybar .foot { padding-bottom: 88px; }
}

/* Article */
.post-body { max-width: 760px; }
.post-body .cover { border-radius: var(--radius); margin: 16px 0; width: 100%; max-height: 380px; object-fit: cover; }
.post-body .note { background: var(--panel); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 6px; }
.video { position: relative; aspect-ratio: 9 / 16; max-width: 340px; margin: 16px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot h3 { color: var(--text); font-size: .95rem; margin: 0 0 8px; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
