/* =============================================================
   CYCLING WORLD — Main Stylesheet (dark premium theme)
   ============================================================= */
:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #151518;
  --surface-2: #1c1c20;
  --surface-3: #25252a;
  --line: #2a2a30;
  --line-2: #3a3a42;
  --text: #f5f5f6;
  --text-2: #d4d4d8;
  --muted: #9a9aa3;
  --accent: #ff5a1f;
  --accent-2: #ff7a3d;
  --accent-dark: #d9430f;
  --red: #ef3b3b;
  --green: #22c55e;
  --amber: #f5b301;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --container: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
mark { background: var(--accent); color: #111; padding: 0 .2em; border-radius: 3px; }
u { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-outline:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-ghost { background: transparent; color: var(--text-2); padding: .6em 1em; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #22c55e; transform: translateY(-2px); }
.btn-danger { background: transparent; border-color: rgba(239, 59, 59, .5); color: #ff8080; }
.btn-danger:hover { background: rgba(239, 59, 59, .12); border-color: var(--red); }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 10, 11, .78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(10, 10, 11, .95); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.brand-text b { color: var(--accent); font-weight: 700; margin-left: 4px; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; font-family: var(--font-display); font-size: 1.02rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  border-radius: 6px; position: relative; transition: color .2s;
}
.main-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-search { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; transition: border-color .2s; }
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input { background: none; border: 0; outline: 0; width: 150px; padding: 8px 0; font-size: .9rem; }
.nav-search button { background: none; border: 0; cursor: pointer; color: var(--muted); width: 34px; height: 34px; display: grid; place-items: center; }
.nav-search button svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background: #070708;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 7, 8, .95) 0%, rgba(7, 7, 8, .7) 40%, rgba(7, 7, 8, .1) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-content { max-width: 680px; padding: 80px 0 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .25em; font-size: .9rem; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92; margin-bottom: 24px; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero p.lead { font-size: 1.12rem; max-width: 540px; color: #c9c9cf; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { position: absolute; left: 0; right: 0; bottom: 34px; }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); padding: 0; max-width: calc(var(--container) - 48px); }
.hero-stat { background: rgba(14, 14, 16, .75); padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.hero-stat svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.hero-stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 90px 0 60px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 90, 31, .18), transparent 60%), var(--bg-2); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 12px; }
.page-hero p { max-width: 640px; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.section-head p { margin: 8px 0 0; max-width: 560px; }
.kicker { font-family: var(--font-display); color: var(--accent); letter-spacing: .25em; text-transform: uppercase; font-size: .85rem; font-weight: 600; margin-bottom: 8px; display: block; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: .95rem; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 22px; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .1) 60%); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile h3 { font-size: 1.7rem; margin: 0 0 4px; }
.cat-tile span { font-size: .85rem; color: var(--text-2); }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: fadeUp .5s var(--ease) both;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, #1d1d22, #0f0f12); overflow: hidden; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.badge { position: absolute; top: 14px; left: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(6px); z-index: 2; }
.badge-tersedia { background: rgba(34, 197, 94, .18); color: #4ade80; border: 1px solid rgba(34, 197, 94, .4); }
.badge-habis { background: rgba(239, 59, 59, .18); color: #ff8080; border: 1px solid rgba(239, 59, 59, .4); }
.badge-preorder { background: rgba(245, 179, 1, .16); color: #fcd34d; border: 1px solid rgba(245, 179, 1, .4); }
.badge-featured { left: auto; right: 14px; background: var(--accent); color: #fff; }
.badge.static { position: static; display: inline-block; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-meta { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.product-meta span + span::before { content: '•'; margin-right: 8px; color: var(--line-2); }
.product-title { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; margin: 0 0 8px; letter-spacing: .02em; }
.product-title a:hover { color: var(--accent); }
.product-specs { font-size: .85rem; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.price small { display: block; font-family: var(--font); font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.card-actions { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: all .25s; color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); }
.icon-btn.wa:hover { background: #1fa855; border-color: #1fa855; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Skeleton / Loading / Empty ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 400px; border: 1px solid var(--line); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state svg { width: 54px; height: 54px; color: var(--line-2); margin: 0 auto 14px; }
.empty-state h3 { color: var(--text); font-size: 1.5rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(239, 59, 59, .4); background: rgba(239, 59, 59, .08); color: #ffb4b4; }

/* ---------- Feature banner ---------- */
.feature-banner { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(120deg, #141417, #1e120c); border: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 380px; }
.feature-banner .fb-text { padding: 56px; position: relative; z-index: 1; }
.feature-banner h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.feature-banner .fb-media { height: 100%; position: relative; }
.feature-banner .fb-media img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); }

/* ---------- Video section ---------- */
.video-section { position: relative; }
.video-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(0, 0, 0, .55); padding: 20px; }
.video-empty p { color: #fff; }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s; animation: fadeUp .5s var(--ease) both; }
.article-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.article-card .ac-media { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.article-card .ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card:hover .ac-media img { transform: scale(1.06); }
.article-card .ac-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.article-card h3 a:hover { color: var(--accent); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.article-date { font-size: .8rem; color: var(--muted); margin-top: auto; }
.article-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.article-content h2 { font-size: 2rem; margin-top: 1.6em; }
.article-content h3 { font-size: 1.5rem; margin-top: 1.4em; }
.article-content p { color: var(--text-2); }
.article-content ul, .article-content ol { color: var(--text-2); padding-left: 1.3em; }
.article-cover { border-radius: 20px; overflow: hidden; margin: 0 auto 40px; max-width: 1000px; aspect-ratio: 16/8; background: var(--surface); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Chips / filter pills ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .88rem; color: var(--text-2); transition: all .2s; font-weight: 500; }
.chip:hover { border-color: var(--text); color: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Catalog layout ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.filters h3 { font-size: 1.1rem; letter-spacing: .1em; margin: 0 0 12px; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .92rem; color: var(--text-2); }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .result-count { color: var(--muted); font-size: .92rem; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-toggle { display: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, .18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a9aa3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.select option { background: var(--surface); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .78rem; color: var(--muted); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #1d1d22, #0c0c0e); border: 1px solid var(--line); aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.gallery-nav:hover { background: var(--accent); }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-nav svg { width: 20px; height: 20px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface); opacity: .6; transition: all .2s; }
.thumbs button.active, .thumbs button:hover { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-info .ref { font-size: .78rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.pd-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 6px 0 10px; }
.pd-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 18px 0 6px; }
.pd-stock { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.pd-actions { display: grid; gap: 10px; margin: 24px 0; }
.quick-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.quick-specs div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.quick-specs span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.quick-specs strong { font-size: .95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; color: var(--text); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, .02); }
table.spec th { width: 38%; background: var(--surface); }

/* ---------- Steps (ol) ---------- */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text-2); }
ol.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 90, 31, .15); border: 2px solid var(--accent); }

/* ---------- Profile ---------- */
.profile-hero { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.avatar-frame { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #222, #111); border: 1px solid var(--line); }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.avatar-frame::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); }
.avatar-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 7rem; color: var(--accent); }
.bio-table { margin-top: 24px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .3s, transform .3s var(--ease); }
.info-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.info-card .ic-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 90, 31, .12); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.info-card .ic-icon svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.5rem; }
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; text-transform: none; color: #fff; border-left: 4px solid var(--accent); padding-left: 24px; font-weight: 500; }
.audio-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.audio-card audio { width: 100%; margin-top: 12px; }

/* ---------- School ---------- */
.school-banner { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 21/8; background: linear-gradient(135deg, #1b1b20, #0e0e10); border: 1px solid var(--line); }
.school-banner img { width: 100%; height: 100%; object-fit: cover; }
.school-id { display: flex; align-items: center; gap: 22px; margin-top: -60px; position: relative; padding: 0 28px; flex-wrap: wrap; }
.school-logo { width: 120px; height: 120px; border-radius: 22px; background: var(--surface); border: 4px solid var(--bg); display: grid; place-items: center; overflow: hidden; flex: none; }
.school-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h2, .panel h3 { font-size: 1.8rem; }

/* ---------- Education (bike types) ---------- */
.edu-list { display: grid; gap: 28px; }
.edu-item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 80px); }
.edu-item:nth-child(even) .edu-media { order: 2; }
.edu-media { min-height: 340px; background: var(--surface-2); position: relative; overflow: hidden; }
.edu-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.edu-item:hover .edu-media img { transform: scale(1.05); }
.edu-body { padding: 40px; }
.edu-body h3 { font-size: 2.2rem; }
.edu-body h4 { font-family: var(--font); text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; color: var(--accent); margin: 18px 0 8px; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.comp-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.comp-card .cc-media { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.comp-card .cc-media img { width: 100%; height: 100%; object-fit: cover; }
.comp-card .cc-body { padding: 22px; }
.comp-card h3 { font-size: 1.6rem; }
.sticky-sub { position: sticky; top: var(--header-h); z-index: 50; background: rgba(10, 10, 11, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sticky-sub .chips { padding: 12px 0; overflow-x: auto; flex-wrap: nowrap; }
.sticky-sub .chip { flex: none; }

/* ---------- About / contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .3s; word-break: break-word; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .ic-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 90, 31, .12); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ic-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 4px; letter-spacing: .06em; }
.contact-card p { margin: 0; font-size: .95rem; }
.contact-card a:hover { color: var(--accent); }
.invalid-email { color: var(--amber); font-size: .8rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #070708; border-top: 1px solid var(--line); padding-top: 72px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h3 { font-size: 1.05rem; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); transition: color .2s; font-size: .93rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: .93rem; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.contact-list li { display: flex; gap: 10px; color: var(--muted); font-size: .93rem; word-break: break-word; }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Floating WA & toast ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -8px rgba(31, 168, 85, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.toast-wrap { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 1000; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); font-size: .92rem; animation: toastIn .35s var(--ease); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--accent); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-search input { width: 110px; }
  .main-nav a { padding: 8px 8px; font-size: .95rem; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(8, 8, 9, .98); display: block; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; padding: 24px; }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1.6rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--accent); }
  body.nav-open { overflow: hidden; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 200; border-radius: 0; max-height: none; transform: translateX(-105%); transition: transform .35s var(--ease); top: 0; }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .filter-toggle { display: inline-flex; }
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-info { position: static; }
  .profile-hero { grid-template-columns: 1fr; }
  .avatar-frame { max-width: 360px; }
  .info-grid, .comp-grid, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner .fb-media { height: 280px; order: -1; }
  .feature-banner .fb-media img { mask-image: linear-gradient(0deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(0deg, transparent, #000 40%); }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .nav-search { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 70px 0 40px; }
  .hero::before { background: linear-gradient(0deg, rgba(7, 7, 8, 1) 15%, rgba(7, 7, 8, .55) 60%, rgba(7, 7, 8, .3)); }
  .hero-bg img { object-position: 65% center; }
  .hero-stats { position: static; padding-bottom: 30px; }
  .hero-stats .container { margin: 0 18px; width: auto; }
  .hero-stat { padding: 14px; }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-title { font-size: 1.08rem; }
  .price { font-size: 1.15rem; }
  .product-specs { display: none; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .card-actions { justify-content: flex-end; }
  .icon-btn { width: 36px; height: 36px; }
  .info-grid, .comp-grid, .contact-cards, .two-col, .story-block, .form-grid { grid-template-columns: 1fr; }
  .edu-item { grid-template-columns: 1fr; }
  .edu-item:nth-child(even) .edu-media { order: 0; }
  .edu-media { min-height: 230px; }
  .edu-body { padding: 24px; }
  .feature-banner .fb-text { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .school-banner { aspect-ratio: 16/9; }
  .school-id { margin-top: -40px; padding: 0 12px; }
  .school-logo { width: 90px; height: 90px; }
  .quick-specs { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 26px; }
}
@media (max-width: 420px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 14px; }
  .cat-tile h3 { font-size: 1.2rem; }
  .brand-text { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
