/* =============================================================================
   G82K Professional Automotive Solutions — design system
   Mobile-first. No framework. CSS custom properties drive theming throughout.
   ============================================================================= */

/* ---------- Design tokens --------------------------------------------------- */
:root {
  --red: #d8252e;
  --red-dark: #a9322a;
  --teal: #078c93;
  --teal-dark: #075e66;
  --ink: #111111;
  --muted: #686868;
  --line: #dddddd;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --footer: #262626;
  --success: #1e8e3e;
  --warning: #b45309;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.22);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --font: Inter, Arial, Helvetica, sans-serif;
  --container: 1280px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 900px) { .shell { padding-inline: 24px; } }

.grid { display: grid; gap: 20px; }
.section { padding-block: 40px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 4px; }
.eyebrow {
  color: var(--teal); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem;
}

/* ---------- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.92rem; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; position: relative;
  transition: background-color 0.15s;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.icon-btn .badge {
  position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.88rem; }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field .error { font-size: 0.78rem; color: var(--red); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="search"], input[type="number"], select, textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; background: #fff; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7, 140, 147, 0.15); outline: none;
}
textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.checkbox-row input { width: auto; }

/* ---------- Header --------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #cfcfcf; font-size: 0.8rem;
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar a { color: #cfcfcf; transition: color 0.15s; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a:first-child { display: none; }
@media (min-width: 640px) { .topbar-links a:first-child { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-shell {
  display: flex; align-items: center; gap: 12px; height: var(--header-h);
  padding-inline: 16px; max-width: var(--container); margin-inline: auto;
}
@media (min-width: 900px) { .header-shell { padding-inline: 24px; gap: 20px; } }

.menu-button {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; flex-shrink: 0;
}
.menu-button span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s; }
@media (min-width: 1100px) { .menu-button { display: none; } }

.brand { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.brand-main { font-weight: 900; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-main sup { color: var(--red); font-size: 0.6em; }
.brand-sub { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: none; }
@media (min-width: 640px) { .brand-sub { display: block; } }

.search-form {
  flex: 1; display: none; position: relative;
}
@media (min-width: 760px) { .search-form { display: flex; align-items: center; } }
.search-form svg { position: absolute; left: 14px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search-form input {
  width: 100%; border-radius: 999px; padding-left: 42px; background: var(--soft); border-color: transparent;
}
.search-form input:focus { background: #fff; }

.search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto; z-index: 70; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.search-suggestions.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-suggestions a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.88rem;
  border-bottom: 1px solid var(--soft);
}
.search-suggestions a:hover { background: var(--soft); }
.search-suggestions img { width: 36px; height: 36px; object-fit: contain; background: var(--soft); border-radius: 6px; }
.search-suggestions .price { margin-left: auto; font-weight: 700; color: var(--red); }
.search-suggestions .empty { padding: 16px; text-align: center; color: var(--muted); font-size: 0.86rem; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.header-search-toggle { display: flex; }
@media (min-width: 760px) { .header-search-toggle { display: none; } }

.main-menu {
  display: none; border-top: 1px solid var(--line);
}
@media (min-width: 1100px) { .main-menu { display: flex; gap: 4px; max-width: var(--container); margin-inline: auto; padding-inline: 24px; } }
.main-menu > li { position: relative; }
.main-menu > li > a, .main-menu > li > button {
  display: flex; align-items: center; gap: 4px; padding: 12px 14px; font-weight: 600; font-size: 0.9rem;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.main-menu > li > a:hover, .main-menu > li.is-open > button { color: var(--red); border-color: var(--red); }
.main-menu chevron, .main-menu svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.main-menu > li.is-open svg { transform: rotate(180deg); }

/* ---------- Mega menu ---------------------------------------------------------- */
.mega-panel {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 24px;
  width: min(720px, 90vw); display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.main-menu > li.is-open .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mega-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 10px; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; transition: color 0.15s, transform 0.15s; }
.mega-col a:hover { color: var(--red); transform: translateX(2px); }
.mega-col a img, .mega-col a svg { width: 24px; height: 24px; }

/* ---------- Mobile menu (slide-in drawer) --------------------------------------- */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease);
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 95;
  transform: translateX(-100%); transition: transform 0.3s var(--ease); overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu ul { padding: 8px 0; }
.mobile-menu li { border-bottom: 1px solid var(--soft); }
.mobile-menu a, .mobile-menu button.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 16px; font-weight: 600; text-align: left;
}
.mobile-menu .acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); background: var(--soft); }
.mobile-menu li.is-open .acc-panel { max-height: 600px; }
.mobile-menu .acc-panel a { font-weight: 500; padding-left: 32px; font-size: 0.9rem; }
.mobile-menu .acc-trigger svg { width: 16px; height: 16px; transition: transform 0.2s; }
.mobile-menu li.is-open .acc-trigger svg { transform: rotate(180deg); }
@media (min-width: 1100px) { .mobile-menu, .mobile-menu-overlay { display: none; } }

/* ---------- Hero / carousel ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-top: 20px;
  background: linear-gradient(120deg, var(--ink), #2b2b2b);
}
.hero-track { display: flex; transition: transform 0.5s var(--ease); }
.hero-slide {
  min-width: 100%; display: grid; align-items: center; gap: 20px; padding: 40px 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .hero-slide { grid-template-columns: 1.1fr 0.9fr; padding: 56px 48px; } }
.hero-copy .eyebrow { color: #6fe0e6; }
.hero-copy h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; margin: 10px 0 14px; line-height: 1.15; }
.hero-copy p { color: #d8d8d8; margin-bottom: 22px; max-width: 46ch; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 320px; }
.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.left { left: 16px; } .hero-arrow.right { right: 16px; }
.hero-arrow svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background-color 0.2s, width 0.2s; }
.hero-dots button.is-active { background: #fff; width: 22px; border-radius: 4px; }

/* ---------- USP strip ------------------------------------------------------------ */
.usp-strip { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
@media (min-width: 760px) { .usp-strip { grid-template-columns: repeat(4, 1fr); } }
.usp-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.usp-item svg { width: 28px; height: 28px; stroke: var(--teal); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.usp-item strong { display: block; font-size: 0.88rem; }
.usp-item span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Category tiles -------------------------------------------------------- */
.category-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
.category-tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.category-tile .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center;
}
.category-tile img { width: 34px; height: 34px; }
.category-tile strong { font-size: 0.92rem; }
.category-tile span { font-size: 0.76rem; color: var(--muted); }

/* ---------- Product cards ---------------------------------------------------------- */
.product-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb {
  position: relative; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.35s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card .badge-pill {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
}
.badge-sale { background: var(--red); }
.badge-new { background: var(--teal); }
.badge-out { background: var(--muted); }
.product-card .wishlist-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.product-card .wishlist-toggle:hover { transform: scale(1.08); }
.product-card .wishlist-toggle svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; transition: fill 0.15s, stroke 0.15s; }
.product-card .wishlist-toggle.is-active svg { fill: var(--red); stroke: var(--red); }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-label { font-size: 0.7rem; color: var(--teal); font-weight: 700; text-transform: uppercase; }
.product-card .name { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.product-card .name a::after { content: ""; position: absolute; inset: 0; }
.product-card .rating { display: flex; align-items: center; gap: 4px; font-size: 0.76rem; color: var(--muted); }
.product-card .stars svg { width: 13px; height: 13px; fill: #f5b301; stroke: none; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-card .price { font-weight: 800; color: var(--red); font-size: 1.02rem; }
.product-card .price-was { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.product-card .stock { font-size: 0.76rem; }
.stock.in { color: var(--success); } .stock.out { color: var(--muted); }
.product-card .add-row { display: flex; gap: 8px; margin-top: 8px; }
.product-card .add-row .btn { flex: 1; }

/* ---------- Quantity selector ------------------------------------------------------ */
.qty-selector {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.qty-selector button { width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700; transition: background-color 0.15s; }
.qty-selector button:hover { background: var(--soft); }
.qty-selector input { width: 44px; height: 36px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }

/* ---------- Filters ------------------------------------------------------------------ */
.shop-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 240px 1fr; } }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.filters h3 { font-size: 0.95rem; margin-bottom: 14px; }
.filter-group { border-bottom: 1px solid var(--soft); padding-bottom: 14px; margin-bottom: 14px; }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.86rem; }
.filter-option input { width: auto; }
.filter-price-row { display: flex; gap: 8px; align-items: center; }
.filter-price-row input { width: 100%; }
.filters-mobile-toggle { display: flex; }
.filters { display: none; }
@media (min-width: 900px) { .filters-mobile-toggle { display: none; } .filters { display: block; } }
.filters.is-open { display: block; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { font-size: 0.86rem; color: var(--muted); }
.toolbar select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); padding: 5px 10px; border-radius: 999px; font-size: 0.8rem; }
.filter-chip button svg { width: 12px; height: 12px; }

/* ---------- Pagination --------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; border: 1px solid transparent;
}
.pagination a:hover { border-color: var(--line); }
.pagination .is-current { background: var(--red); color: #fff; }
.pagination .is-disabled { color: var(--muted); pointer-events: none; }

/* ---------- Breadcrumbs --------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); padding-block: 14px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* ---------- Product detail -------------------------------------------------------------- */
.pdp-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp-layout { grid-template-columns: 1fr 1fr; } }
.gallery-main {
  aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--soft); position: relative; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; transition: transform 0.3s var(--ease); transform-origin: center; }
.gallery-main.is-zoomed img { transform: scale(1.9); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button {
  width: 64px; height: 64px; flex-shrink: 0; border: 2px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--soft); transition: border-color 0.15s;
}
.gallery-thumbs button.is-active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pdp-info h1 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; margin-bottom: 8px; }
.pdp-info .sku-row { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.pdp-info .price-row { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.pdp-info .price { font-size: 1.8rem; font-weight: 900; color: var(--red); }
.pdp-info .price-was { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.pdp-info .fitment-box { background: var(--soft); border-radius: var(--radius); padding: 14px; font-size: 0.88rem; margin: 16px 0; }
.pdp-info .fitment-box strong { display: block; margin-bottom: 4px; }
.pdp-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pdp-actions .btn-primary { flex: 1; min-width: 180px; }

.tabs { margin-top: 40px; border-top: 1px solid var(--line); }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-list button {
  padding: 14px 18px; font-weight: 700; font-size: 0.9rem; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-list button.is-active { color: var(--ink); border-color: var(--red); }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.is-active { display: block; animation: fadeIn 0.25s var(--ease); }

.review { border-bottom: 1px solid var(--soft); padding: 16px 0; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.review-stars svg { width: 14px; height: 14px; fill: #f5b301; stroke: none; }
.review-author { font-weight: 700; font-size: 0.88rem; }
.review-date { font-size: 0.78rem; color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.rating-summary .avg { font-size: 2.4rem; font-weight: 900; }

/* ---------- Related products / carousel row -------------------------------------------- */
.related-scroller { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.related-scroller .product-card { min-width: 220px; scroll-snap-align: start; }

/* ---------- Cart / drawer --------------------------------------------------------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.cart-line-product { display: flex; align-items: center; gap: 12px; }
.cart-line-product img { width: 56px; height: 56px; object-fit: contain; background: var(--soft); border-radius: 6px; padding: 6px; }
.cart-line-product .name { font-weight: 600; font-size: 0.9rem; }
.cart-remove { color: var(--muted); font-size: 0.8rem; text-decoration: underline; margin-top: 4px; }
.cart-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; }
.cart-summary .row.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 64px; height: 64px; stroke: var(--line); fill: none; stroke-width: 1.4; margin-bottom: 16px; }

.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90; opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease);
}
.cart-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #fff; z-index: 95;
  transform: translateX(100%); transition: transform 0.3s var(--ease); display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: 16px; }
.drawer-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.drawer-line img { width: 56px; height: 56px; object-fit: contain; background: var(--soft); border-radius: 6px; padding: 6px; }
.drawer-line .meta { flex: 1; }
.drawer-line .meta .name { font-size: 0.86rem; font-weight: 600; }
.drawer-line .meta .price { font-size: 0.82rem; color: var(--red); font-weight: 700; }
.drawer-line .remove-line { font-size: 0.76rem; color: var(--muted); text-decoration: underline; }

/* ---------- Toast notifications ---------------------------------------------------------- */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: 0.86rem; display: flex; align-items: center; gap: 10px; min-width: 220px;
  animation: toastIn 0.25s var(--ease);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--red-dark); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Auth pages ------------------------------------------------------------------- */
.auth-shell { max-width: 440px; margin-inline: auto; padding-block: 48px; }
.auth-shell h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-shell .sub { color: var(--muted); margin-bottom: 24px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.88rem; }
.auth-switch a { color: var(--red); font-weight: 700; }
.form-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.86rem; margin-bottom: 16px; }
.form-msg.error { background: #fdecea; color: var(--red-dark); }
.form-msg.success { background: #e6f4ea; color: var(--success); }

/* ---------- Account dashboard -------------------------------------------------------------- */
.account-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .account-layout { grid-template-columns: 240px 1fr; } }
.account-nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; height: fit-content; }
.account-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; }
.account-nav a:hover { background: var(--soft); }
.account-nav a.is-active { background: var(--red); color: #fff; }
.account-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card strong { display: block; font-size: 1.5rem; font-weight: 900; }
.stat-card span { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 4px; font-weight: 700; text-align: left; }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); color: var(--muted); }
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 16px; }

/* ---------- Newsletter ----------------------------------------------------------------------- */
.newsletter { background: var(--ink); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; color: #fff; }
.newsletter h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: #cfcfcf; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin-inline: auto; flex-direction: column; }
@media (min-width: 500px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input { flex: 1; }

/* ---------- Footer --------------------------------------------------------------------------- */
.site-footer { background: var(--footer); color: #bdbdbd; margin-top: 56px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h4 { color: #fff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 9px; font-size: 0.86rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-main { color: #fff; }
.footer-brand p { font-size: 0.86rem; margin-top: 12px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background-color 0.15s; }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px; text-align: center; font-size: 0.78rem; }
.footer-bottom .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Misc pages (about/contact/faq hero blocks) ---------------------------------------- */
.page-hero { background: var(--soft); padding-block: 36px; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.info-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-card svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.6; margin-bottom: 10px; }

.value-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { text-align: center; padding: 18px 10px; }
.value-card svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 1.5; margin: 0 auto 10px; }

/* ---------- Loading / skeleton states --------------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--soft) 25%, #ececec 37%, var(--soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.page-loading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 200; transition: width 0.2s var(--ease), opacity 0.3s; }

/* ---------- 404 --------------------------------------------------------------------------------- */
.not-found { text-align: center; padding: 80px 20px; }
.not-found .code { font-size: 5rem; font-weight: 900; color: var(--line); }

/* ---------- Utility animations -------------------------------------------------------------------- */
.fade-up { animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.container-narrow { max-width: 760px; margin-inline: auto; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
