/* ==========================================================
   EVMARKET — storefront styles (Rivian-inspired design)
   ========================================================== */
/* Self-hosted fonts: FiraGO (text) + Noto Sans Georgian variable (display, has Mtavruli caps) */
@font-face { font-family: 'FiraGO'; src: url('/fonts/FiraGO-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/FiraGO-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/FiraGO-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/FiraGO-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/FiraGO-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'EvebiDisplay'; src: url('/fonts/NotoSansGeorgian-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f2f1ee;
  --bg-2: #e9e7e2;
  --surface: #ffffff;
  --text: #121212;
  --muted: #6b6b6b;
  --line: #e3e1dc;
  --dark: #161717;
  --dark-2: #1f1f1f;
  --accent: #d13846;
  --accent-hover: #b82f3c;
  --accent-text: #ffffff;
  --danger: #d64545;
  --ok: #2f9e5f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --header-h: 64px;
  --font: 'FiraGO', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'FiraGO', 'Noto Sans Georgian', system-ui, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all .18s ease; white-space: nowrap;
  background: var(--dark); color: #fff;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #f4f4f4; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50;
  height: var(--header-h); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px 0 24px; gap: 24px;
}
.header .logo { display: flex; align-items: center; justify-self: start; grid-column: 1; }
.header .actions { justify-self: end; grid-column: 3; }
.header .logo img { height: 26px; width: auto; display: block; }
.footer .logo img { height: 22px; width: auto; display: block; }
.header .logo .bolt { width: 22px; height: 22px; background: var(--accent); border-radius: 6px; display: grid; place-items: center; }
.header .logo .bolt svg { width: 14px; height: 14px; }
.nav { display: flex; gap: 4px; justify-self: center; grid-column: 2; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; color: #333; transition: background .15s; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--bg-2); color: var(--text); }
.header .spacer { flex: 1; }
.header .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }
.mobile-nav { display: none; position: fixed; top: calc(var(--header-h) + 20px); left: 12px; right: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px; z-index: 49; flex-direction: column; }
.mobile-nav a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.mobile-nav a:hover { background: var(--bg-2); }
.mobile-nav.open { display: flex; }

main { padding-top: 0; }
.page { padding-top: calc(var(--header-h) + 40px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--dark) center/cover no-repeat; color: #fff; overflow: hidden;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 84px); font-weight: 700; max-width: 12ch; line-height: 1.02; }
.hero p { font-size: clamp(16px, 1.6vw, 20px); max-width: 52ch; margin: 22px 0 32px; color: rgba(255,255,255,.88); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.hero .stat span { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Showcase sections (R1S / R2 style) ---------- */
.showcase { position: relative; overflow: hidden; padding: 96px 0 72px; background: var(--bg); }
.showcase.alt { background: var(--bg-2); }
.showcase.dark { background: var(--dark); color: #fff; }
.showcase .backdrop {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  font-size: clamp(120px, 24vw, 360px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: var(--text); opacity: .07; white-space: nowrap; pointer-events: none; user-select: none;
}
.showcase.dark .backdrop { color: #fff; opacity: .06; }
.showcase .container { position: relative; z-index: 1; }
.showcase .visual { margin: 40px auto 36px; max-width: 980px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.showcase .visual img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.showcase .text { text-align: center; max-width: 720px; margin: 0 auto; }
.showcase .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.showcase.dark .eyebrow { color: rgba(255,255,255,.6); }
.showcase h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 8px; }
.showcase .lead { font-size: 18px; margin: 14px auto 0; color: var(--muted); max-width: 52ch; }
.showcase.dark .lead { color: rgba(255,255,255,.7); }
.showcase .cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.showcase .mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }

/* ---------- Brand strip ---------- */
.brand-strip { background: var(--dark); color: #fff; padding: 56px 0; }
.brand-strip .row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.brand-strip a { padding: 16px 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; transition: all .15s; }
.brand-strip a:hover { background: #fff; color: var(--text); }
.brand-strip h3 { text-align: center; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 24px; font-weight: 600; }

/* ---------- Feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 72px 0; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }

/* ---------- Catalog layout ---------- */
.catalog-hero { background: var(--dark) center/cover no-repeat; color: #fff; padding: calc(var(--header-h) + 80px) 0 60px; position: relative; }
.catalog-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.catalog-hero .container { position: relative; z-index: 1; }
.catalog-hero h1 { font-size: clamp(34px, 5vw, 62px); }
.catalog-hero p { margin-top: 12px; color: rgba(255,255,255,.8); max-width: 60ch; font-size: 17px; }
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding: 36px 0 80px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 24px); }
.filters h3 { font-size: 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border .15s;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--text); }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--text); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.cat-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
.cat-list button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; }
.cat-list button:hover { background: var(--bg); }
.cat-list button.active { background: var(--text); color: #fff; }
.cat-list .sub { padding-left: 24px; font-size: 13px; color: var(--muted); }
.cat-list .sub.active { color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 15px; }
.toolbar select { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.filters-toggle { display: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .media { position: relative; aspect-ratio: 4/3; background: var(--bg-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .media img { transform: scale(1.04); }
.card:hover .price .arrow { background: var(--accent); }
.card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--text); backdrop-filter: blur(6px); }
.badge.dark { background: rgba(20,20,20,.85); color: #fff; }
.badge.accent { background: var(--accent); color: var(--accent-text); }
.badge.ok { background: #dff5e7; color: #1b6b3d; }
.badge.warn { background: #fdecc8; color: #7a4c00; }
.badge.danger { background: #fbdcdc; color: #8a1f1f; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 17px; line-height: 1.3; }
.card .specs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 2px; }
.card .specs span::before { content: '•'; margin-right: 6px; opacity: .5; }
.card .specs span:first-child::before { content: ''; margin: 0; }
.card .price { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.card .price b { font-size: 20px; letter-spacing: -0.02em; }
.card .price .arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; }
.empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, #ececea 25%, #f6f6f4 50%, #ececea 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 300px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Detail page ---------- */
.detail { padding: calc(var(--header-h) + 48px) 0 80px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.gallery .main { border-radius: 24px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gallery .thumbs button { border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; background: var(--bg-2); aspect-ratio: 4/3; cursor: pointer; }
.gallery .thumbs button.active { border-color: var(--text); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 24px); }
.info .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info h1 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.info .price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.info .price small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-table div span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spec-table div b { font-weight: 600; font-size: 15px; }
.info .cta { display: flex; flex-direction: column; gap: 10px; }
.desc { margin-top: 36px; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.desc h2 { font-size: 20px; margin-bottom: 12px; }
.desc p { white-space: pre-line; color: #333; }
.related { margin-top: 56px; }
.related h2 { font-size: 26px; margin-bottom: 20px; }

/* ---------- Contact / simple pages ---------- */
.simple { padding: calc(var(--header-h) + 60px) 0 80px; }
.simple h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-card p { font-size: 20px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 72px 0 32px; margin-top: 0; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .big a { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: #fff; transition: color .15s; }
.footer .big a:hover { color: var(--accent); }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.85); font-size: 15px; }
.footer ul a:hover { color: #fff; text-decoration: underline; }
.footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px; }
.footer .logo { font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .showcase .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .info { position: static; }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .hero { min-height: 78vh; }
  .hero .stats { gap: 22px; }
  .tiles { grid-template-columns: 1fr; padding: 48px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
  .header { left: 8px; right: 8px; top: 8px; padding: 0 12px 0 16px; }
  .header .actions .btn { display: none; }
  .showcase { padding: 64px 0 48px; }
  .spec-table { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .field .row2 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Shop layout (Rivian Gear Shop style): catalog + product page
   ========================================================== */
body.shop-page { background: #fff; }
.shop-head { padding: calc(var(--header-h) + 56px) 0 28px; text-align: center; }
.shop-head .crumbs { justify-content: center; margin-bottom: 18px; font-size: 14px; }
.shop-head .crumbs b { color: var(--text); font-weight: 600; }
.shop-head h1 { font-size: clamp(32px, 4.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
.shop-bar { border-bottom: 1px solid #e6e6e6; }
.shop-bar .container { display: flex; justify-content: space-between; align-items: center; height: 56px; gap: 16px; }
.shop-bar .ftoggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: 15px; font-weight: 500; padding: 8px 0; }
.shop-bar .ftoggle svg { width: 14px; height: 14px; }
.shop-bar .right { display: flex; align-items: center; gap: 18px; font-size: 15px; color: var(--muted); }
.shop-bar .sortwrap { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.shop-bar .sortwrap select { border: 0; background: transparent; font-weight: 500; color: var(--text); padding: 6px 2px; cursor: pointer; outline: none; }
.shop { display: grid; grid-template-columns: 262px 1fr; gap: 56px; padding: 28px 0 90px; align-items: start; }
.shop.nofilters { grid-template-columns: 1fr; }
.shop.nofilters .facets { display: none; }
.facets { position: sticky; top: calc(var(--header-h) + 24px); }
.facet { border-bottom: 1px solid #e6e6e6; padding: 18px 0; }
.facet:first-child { padding-top: 6px; }
.facet > button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; font-weight: 500; }
.facet > button svg { width: 12px; height: 12px; transition: transform .2s; }
.facet.closed > button svg { transform: rotate(180deg); }
.facet .body { margin-top: 14px; }
.facet.closed .body { display: none; }
.facet label.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; cursor: pointer; }
.facet label.opt input { width: 16px; height: 16px; accent-color: var(--text); margin: 0; border-radius: 3px; }
.facet label.opt.sub { padding-left: 26px; font-size: 14px; }
.facet label.opt .n { color: var(--muted); }
.facet label.opt.disabled { color: #b5b5b5; }
.facet .reset { display: inline-block; margin-top: 10px; font-size: 14px; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.facet .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facet .range input, .facet input.text { width: 100%; padding: 9px 12px; border: 1px solid #d9d9d9; border-radius: 8px; outline: none; font-size: 14px; }
.facet .range input:focus, .facet input.text:focus { border-color: var(--text); }
.facet .more { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; }
.shop.nofilters .products { grid-template-columns: repeat(4, 1fr); }
.product { display: block; }
.product .tile { position: relative; aspect-ratio: 1 / 1; background: #f2f2f2; border-radius: 22px; overflow: hidden; }
.product .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product .tile img.contain { object-fit: contain; padding: 6%; }
.product:hover .tile img { transform: scale(1.03); }
.product .tile .tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; background: var(--accent); color: #fff; }
.product .tile .tag.grey { background: #fff; color: var(--text); }
.product .tile .tag.dark { background: var(--dark); color: #fff; }
.product .meta { padding: 14px 4px 0; }
.product .meta .kicker { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.product .meta h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.product .meta .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.product .meta .price { font-size: 16px; margin-top: 6px; font-weight: 500; }
.products .empty { grid-column: 1 / -1; background: #f7f7f7; }
.products .skeleton { aspect-ratio: 1 / 1; min-height: 0; border-radius: 22px; }

/* product page */
.pdp { padding: calc(var(--header-h) + 40px) 0 80px; }
.pdp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.pdp .stage { position: relative; background: #f2f2f2; border-radius: 22px; aspect-ratio: 1 / 1; overflow: hidden; }
.pdp .stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp .stage img.contain { object-fit: contain; padding: 6%; }
.pdp .stage .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; display: grid; place-items: center; }
.pdp .stage .nav.prev { left: 16px; } .pdp .stage .nav.next { right: 16px; }
.pdp .stage .nav svg { width: 16px; height: 16px; }
.pdp .thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pdp .thumbs button { width: 64px; height: 64px; border-radius: 10px; border: 2px solid transparent; background: #f2f2f2; padding: 0; overflow: hidden; cursor: pointer; }
.pdp .thumbs button.active { border-color: var(--text); }
.pdp .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .info { position: static; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.pdp .info .crumbs { margin-bottom: 22px; font-size: 13px; }
.pdp .info .crumbs b { color: var(--text); font-weight: 600; }
.pdp .info h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; margin: 0 0 10px; }
.pdp .info .price { font-size: 18px; font-weight: 500; }
.pdp .info .price small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.pdp .info .lead { margin: 26px 0 30px; color: #333; white-space: pre-line; }
.pdp .info ul.bullets { margin: 0 0 34px; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.pdp .info ul.bullets li { font-size: 15px; }
.pdp .info ul.bullets li span { color: var(--muted); }
.pdp .info .cta { display: flex; gap: 12px; flex-wrap: wrap; flex-direction: row; }
.pdp .info .cta .btn { min-width: 220px; padding: 15px 28px; }
.pdp .info .note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.pdp .related { margin-top: 80px; }
.pdp .related h2 { font-size: 24px; font-weight: 600; margin-bottom: 22px; }
.pdp .related .products { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .products, .shop.nofilters .products, .pdp .related .products { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop { gap: 32px; }
}
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; padding-top: 18px; }
  .facets { position: static; display: none; }
  .shop.mobile-open .facets { display: block; }
  .shop-head { padding-top: calc(var(--header-h) + 36px); }
  .shop-bar .container { height: auto; padding: 10px 16px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .products, .shop.nofilters .products, .pdp .related .products { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .product .tile { border-radius: 14px; }
  .product .meta h3 { font-size: 14px; }
  .pdp .info .cta .btn { min-width: 0; flex: 1; }
}

/* cars look better in 4:3 tiles; parts stay square like a gear shop */
body[data-catalog="transit"] .product .tile, body[data-catalog="new"] .product .tile,
#home-transit .product .tile, #home-new .product .tile,
body[data-kind="cars"] .product .tile, body[data-kind="cars"] .pdp .stage { aspect-ratio: 4 / 3; }
/* .tile is also used by the home-page feature boxes; neutralise that padding/shadow on product tiles */
.product .tile { padding: 0; box-shadow: none; }
.shop-bar .right > span:first-child { white-space: nowrap; }

/* ==========================================================
   Home page (shop style) — hero slider + sections
   ========================================================== */
body.home { background: #fff; }
.hero-slider { position: relative; background: #0d0f12; overflow: hidden; }
.hero-slider .slides { position: relative; aspect-ratio: 2.36 / 1; min-height: 520px; max-height: 88vh; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider .slide picture, .hero-slider .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slider .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,0) 75%); }
.hero-slider .copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-top: var(--header-h); }
.hero-slider .copy h1 { font-size: clamp(32px, 4.6vw, 62px); font-weight: 600; max-width: 14ch; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-slider .copy p { margin: 18px 0 26px; font-size: clamp(15px, 1.4vw, 19px); max-width: 46ch; color: rgba(255,255,255,.9); }
.hero-slider .copy .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slider .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.25); color: #fff; backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.hero-slider .arrow:hover { background: rgba(255,255,255,.95); color: var(--text); }
.hero-slider .arrow svg { width: 18px; height: 18px; }
.hero-slider .arrow.prev { left: 24px; } .hero-slider .arrow.next { right: 24px; }
.hero-slider .dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-slider .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: all .2s; }
.hero-slider .dots button.active { background: #fff; width: 26px; border-radius: 6px; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.quick a { background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; }
.quick a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.quick a span { font-weight: 600; font-size: 15px; }
.quick a b { font-size: 22px; font-weight: 600; color: var(--accent); }

.home-section { padding: 64px 0 0; }
.home-section:last-of-type { padding-bottom: 80px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.sec-head .eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.more-link { font-size: 15px; font-weight: 500; white-space: nowrap; padding-bottom: 6px; border-bottom: 1.5px solid transparent; }
.more-link:hover { border-color: var(--text); }
.products.four { grid-template-columns: repeat(4, 1fr); }

.brand-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brand-tiles a { background: #f2f2f2; border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.brand-tiles a:hover { background: #e9e9e9; }
.brand-tiles a b { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.brand-tiles a span { color: var(--muted); font-size: 14px; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 80px; }
.why-tile { background: #f7f7f7; border-radius: 18px; padding: 28px; }
.why-tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.why-tile .ico svg { width: 22px; height: 22px; }
.why-tile h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.why-tile p { color: var(--muted); font-size: 15px; }

@media (max-width: 1024px) {
  .products.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-slider .slides { aspect-ratio: auto; height: 78vh; min-height: 460px; }
  .hero-slider .slide::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.7) 100%); }
  .hero-slider .copy { justify-content: flex-end; padding-bottom: 64px; }
  .hero-slider .arrow { display: none; }
  .quick { grid-template-columns: 1fr; margin-top: 20px; }
  .quick a { padding: 14px 18px; box-shadow: none; }
  .brand-tiles, .why { grid-template-columns: 1fr; }
  .home-section { padding-top: 44px; }
}


/* ==========================================================
   Typography: bold, ALL CAPS display (Georgian Mtavruli) for nav, buttons, headings, labels
   ========================================================== */
.caps, .nav a, .mobile-nav a, .btn, h1, h2, h3, h4,
.showcase .eyebrow, .sec-head .eyebrow, .card .kicker, .product .meta .kicker, .product .meta h3,
.facet > button, .field label, .footer h4, .footer .big a, .footer .bottom, .tag, .badge,
.shop-bar .ftoggle, .shop-bar .right, .shop-head .crumbs, .crumbs, .quick a span, .brand-tiles b, .why-tile h3,
.pdp .info .price, .pdp .info ul.bullets li span, .product .meta .price, .tile h3, .contact-card h3, .hero .stat span,
.side nav a, .side .logo span, .topbar h1, th, .stat-card span, .panel h3, .modal h2, .slide-card .head b, .side .bottom a, .side .bottom button {
  font-family: var(--font-display);
  text-transform: uppercase;            /* Latin caps */
  font-feature-settings: "case" 1;      /* FiraGO: Georgian Mkhedruli -> Mtavruli caps (like Photoshop's All Caps) */
  font-weight: 700;
  letter-spacing: .01em;
}
.facet label.opt, .product .meta .sub, .hero-slider .copy p, .sec-banner p, .pdp .info ul.bullets li, .pdp .info .lead, .footer ul a, input, select, textarea { font-feature-settings: normal; }
.nav a { font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 9px 13px; color: var(--text); }
.mobile-nav a { font-size: 14px; letter-spacing: .02em; }
.btn { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.btn-lg { font-size: 14px; }
.btn-sm { font-size: 12px; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: .01em; line-height: 1.12; }
.hero-slider .copy h1 { font-size: clamp(28px, 4vw, 56px); font-weight: 800; letter-spacing: 0; max-width: 16ch; }
.hero-slider .copy p { font-family: var(--font); font-size: clamp(15px, 1.3vw, 18px); }
.shop-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.shop-head .crumbs, .crumbs { font-size: 12px; letter-spacing: .02em; font-weight: 600; }
.sec-head h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.sec-head .eyebrow, .showcase .eyebrow { font-size: 11px; letter-spacing: .06em; font-weight: 700; }
.more-link { font-family: var(--font-display); text-transform: uppercase; font-feature-settings: "case" 1; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.product .meta .kicker { font-size: 11px; letter-spacing: .02em; font-weight: 700; color: var(--muted); }
.product .meta h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.product .meta .sub { font-family: var(--font); text-transform: none; }
.product .meta .price { font-size: 15px; font-weight: 800; letter-spacing: .02em; margin-top: 8px; }
.tag, .badge { font-size: 11px; letter-spacing: .02em; font-weight: 700; }
.facet > button { font-size: 12px; letter-spacing: .02em; font-weight: 700; }
.facet label.opt { font-family: var(--font); text-transform: none; font-weight: 400; letter-spacing: 0; }
.facet .reset, .facet .more { font-family: var(--font-display); text-transform: uppercase; font-feature-settings: "case" 1; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid currentColor; }
.field label { font-size: 11px; letter-spacing: .02em; }
.shop-bar .ftoggle { font-size: 12px; letter-spacing: .02em; font-weight: 700; }
.shop-bar .right { font-size: 12px; letter-spacing: .02em; font-weight: 600; }
.shop-bar .sortwrap select { font-family: var(--font); font-size: 13px; font-weight: 600; }
.quick a span { font-size: 12px; letter-spacing: .02em; }
.quick a b { font-family: var(--font-display); font-weight: 800; }
.brand-tiles a b { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.why-tile h3 { font-size: 14px; letter-spacing: .02em; }
.pdp .info h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: .01em; }
.pdp .info .price { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.pdp .info ul.bullets li { font-family: var(--font); }
.pdp .info ul.bullets li span { font-size: 11px; letter-spacing: .02em; font-weight: 700; color: var(--muted); margin-right: 4px; }
.pdp .info .lead { font-family: var(--font); }
.pdp .related h2 { font-size: 20px; }
.footer h4 { font-size: 11px; letter-spacing: .06em; }
.footer .big a { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: .02em; }
.footer ul a { font-family: var(--font); }
.footer .bottom { font-size: 11px; letter-spacing: .02em; font-weight: 600; }
.simple h1 { font-weight: 800; }
.contact-card h3 { font-size: 11px; letter-spacing: .02em; }
.contact-card p { font-family: var(--font-display); font-weight: 700; }
/* admin */
.side nav a { font-size: 12px; letter-spacing: .02em; }
.side .bottom a, .side .bottom button { font-size: 11px; letter-spacing: .02em; }
.topbar h1 { font-size: 22px; font-weight: 800; }
th { font-size: 10px; letter-spacing: .02em; }
.stat-card b { font-family: var(--font-display); font-weight: 800; }
.stat-card span, .panel h3 { font-size: 11px; letter-spacing: .02em; }
.modal h2 { font-size: 16px; }
.slide-card .head b { font-size: 12px; letter-spacing: .02em; }
input, select, textarea { font-family: var(--font); }


/* ---------- Home sections: big banner + 2 products, alternating sides ---------- */
.sec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 18px; align-items: stretch; }
.sec-row .sec-banner { grid-column: 1 / 3; grid-row: 1; position: relative; border-radius: 22px; overflow: hidden; background: #1a1a1a center/cover no-repeat; min-height: 320px; display: flex; align-items: flex-end; color: #fff; transition: transform .25s; }
.sec-row.rev .sec-banner { grid-column: 3 / 5; }
.sec-row .sec-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.sec-row .sec-banner .txt { position: relative; z-index: 1; padding: 30px; max-width: 34ch; }
.sec-row .sec-banner h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: .01em; }
.sec-row .sec-banner p { font-family: var(--font); margin: 8px 0 16px; color: rgba(255,255,255,.88); font-size: 15px; }
.sec-row .sec-banner:hover { transform: translateY(-3px); }
#home-transit .product .tile, #home-new .product .tile { aspect-ratio: 1 / 1; }
@media (max-width: 1024px) {
  .sec-row { grid-template-columns: 1fr 1fr; }
  .sec-row .sec-banner, .sec-row.rev .sec-banner { grid-column: 1 / 3; grid-row: 1; min-height: 260px; }
}
@media (max-width: 480px) {
  .sec-row { gap: 14px 10px; }
  .sec-row .sec-banner { min-height: 220px; border-radius: 16px; }
  .sec-row .sec-banner .txt { padding: 20px; }
}

/* products carousel inside a section row; the banner stays fixed */
.sec-row .sec-track { grid-column: 3 / 5; grid-row: 1; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.sec-row .sec-track::-webkit-scrollbar { display: none; }
.sec-row.rev .sec-track { grid-column: 1 / 3; }
.sec-row .sec-track .product { flex: 0 0 calc(50% - 9px); scroll-snap-align: start; }
.sec-row .sec-track .empty { flex: 1 1 100%; }
.sec-arrows { display: flex; gap: 8px; }
.sec-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--text); background: #fff; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.sec-arrows button:hover:not([disabled]) { background: var(--text); color: #fff; }
.sec-arrows button[disabled] { opacity: .25; cursor: default; }
.sec-arrows button svg { width: 18px; height: 18px; }
@media (max-width: 1024px) {
  .sec-row .sec-track, .sec-row.rev .sec-track { grid-column: 1 / 3; grid-row: 2; }
}
@media (max-width: 480px) {
  .sec-row .sec-track { gap: 10px; }
  .sec-row .sec-track .product { flex-basis: calc(50% - 5px); }
  .sec-arrows button { width: 36px; height: 36px; }
}
