/* Ehsaan Traders — Light full-width dealership (Shopify-style) */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --navy: #0b3a6e;
  --navy-2: #0f4c81;
  --accent: #e85d04;
  --accent-soft: #fff1e7;
  --green: #0f9d58;
  --green-soft: #e8f8ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --max: 1600px;
  --header-h: 96px;
  --topbar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
  min-width: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 3.5rem));
  margin-inline: auto;
}
.container-wide {
  width: min(1720px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.full-bleed { width: 100%; }
.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 .5rem;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin: 0 0 1.75rem; max-width: 42rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Top bar + header — fixed chrome, transform-only hide (no absolute↔fixed flicker) */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  backface-visibility: hidden;
}
/* Slide topbar off-screen; header stays flush to top — no layout jump */
body.is-scrolled .site-chrome {
  transform: translate3d(0, calc(-1 * var(--topbar-h)), 0);
}

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
  height: var(--topbar-h);
  box-sizing: border-box;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: var(--topbar-h);
  padding: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.topbar a { color: #dbeafe; }

.site-header {
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: visible;
}
.site-header .header-inner {
  overflow: visible;
}
body.is-scrolled .site-header,
body:not(.page-home) .site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.is-scrolled .brand-name,
body.is-scrolled .nav > a,
body.is-scrolled .menu-label,
body:not(.page-home) .brand-name,
body:not(.page-home) .nav > a,
body:not(.page-home) .menu-label { color: var(--navy); }
body.is-scrolled .brand-sub,
body:not(.page-home) .brand-sub { color: var(--muted); }
body.is-scrolled .nav > a:hover,
body.is-scrolled .nav > a.active,
body:not(.page-home) .nav > a:hover,
body:not(.page-home) .nav > a.active { color: var(--accent); }
body.is-scrolled .action-pill,
body:not(.page-home) .action-pill {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
}
body.is-scrolled .action-pill .icon-btn,
body:not(.page-home) .action-pill .icon-btn {
  color: var(--navy);
  background: transparent;
  border-color: transparent;
}
body.is-scrolled .action-pill .icon-btn:hover,
body:not(.page-home) .action-pill .icon-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
body.is-scrolled .menu-toggle,
body:not(.page-home) .menu-toggle {
  color: var(--navy);
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
}

/* Reserve space under fixed chrome (home hero stays full-bleed underneath) */
body:not(.page-home) main {
  padding-top: calc(var(--topbar-h) + var(--header-h));
  transition: padding-top .32s cubic-bezier(.22, 1, .36, 1);
}
body:not(.page-home).is-scrolled main {
  padding-top: var(--header-h);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  padding: .25rem 0;
}
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  max-width: 100%;
  transition: transform .3s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
  height: clamp(2.75rem, 6vw, 4.25rem);
  width: auto;
  max-width: 72px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
  transition: color .3s ease;
}
.brand-sub {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-top: .05rem;
  transition: color .3s ease;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--display);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .75rem;
}
.footer-logo {
  height: 4.25rem;
  width: auto;
  max-width: 140px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(.85rem, 1.6vw, 1.75rem);
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}
.nav > a {
  position: relative;
  font-size: clamp(.88rem, 1.05vw, 1rem);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  padding: .35rem 0;
  letter-spacing: 0.01em;
  transition: color .25s ease;
  flex-shrink: 0;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav > a:hover::after,
.nav > a.active::after { transform: scaleX(1); }
.nav > a:hover, .nav > a.active { color: #fff; }

.has-mega {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav .nav-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy) !important;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-weight: 800;
  font-size: clamp(.82rem, 1vw, .92rem);
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav .nav-shop::after { display: none; }
.nav .nav-shop:hover,
.nav .nav-shop.active,
.nav .nav-shop:focus-visible {
  background: #fff;
  color: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  outline: none;
}
body.is-scrolled .nav .nav-shop,
body:not(.page-home) .nav .nav-shop {
  background: #fff;
  color: var(--navy) !important;
  border-color: var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
}
body.is-scrolled .nav .nav-shop:hover,
body.is-scrolled .nav .nav-shop.active,
body:not(.page-home) .nav .nav-shop:hover,
body:not(.page-home) .nav .nav-shop.active {
  color: var(--accent) !important;
  border-color: #fff;
}
/* Invisible hover bridge so the menu doesn't close while moving to categories */
.has-mega::after {
  content: "";
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 100%;
  height: 1.25rem;
  z-index: 119;
}
.mega {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease 0.12s, visibility .18s ease 0.12s;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
  z-index: 120;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.mega a {
  display: block;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: .92rem;
  transition: background .2s ease, transform .2s ease;
}
.mega a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.mega a span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: .2rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .28rem .35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.action-pill .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.action-pill .icon-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  color: var(--accent);
}
.action-pill .icon-btn .badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.action-pill .icon-btn .badge[hidden] {
  display: none !important;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 999px;
  padding: .65rem .95rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .75rem;
  transition: transform .2s ease, background .2s ease;
}
.menu-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,.2); }
.menu-toggle .burger {
  width: 18px; height: 12px;
  display: grid;
  gap: 3px;
}
.menu-toggle .burger span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.is-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open .burger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle { display: none; }

/* Fullscreen menu overlay (Revoo-like) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 30, 58, .96);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.menu-overlay[hidden] {
  display: none !important;
}
.menu-overlay.open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}
.menu-overlay-inner {
  width: min(900px, 100%);
  transform: translateY(24px);
  transition: transform .4s ease;
}
.menu-overlay.open .menu-overlay-inner { transform: translateY(0); }
.menu-overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.menu-overlay a {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  padding: .35rem 0;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: color .2s ease;
}
.menu-overlay.open a {
  animation: menuIn .45s ease forwards;
}
.menu-overlay a:hover { color: var(--accent); }
.menu-overlay a:nth-child(1) { animation-delay: .05s; }
.menu-overlay a:nth-child(2) { animation-delay: .1s; }
.menu-overlay a:nth-child(3) { animation-delay: .15s; }
.menu-overlay a:nth-child(4) { animation-delay: .2s; }
.menu-overlay a:nth-child(5) { animation-delay: .25s; }
.menu-overlay a:nth-child(6) { animation-delay: .3s; }
.menu-overlay a:nth-child(7) { animation-delay: .35s; }
.menu-overlay a:nth-child(8) { animation-delay: .4s; }
@keyframes menuIn {
  to { opacity: 1; transform: translateY(0); }
}
.menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* Hero slider — full bleed Revoo-like */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: min(88vh, 760px);
  overflow: hidden;
  background: #0b0f14;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.08) 68%),
    var(--slide-img) right center / cover no-repeat,
    linear-gradient(135deg, #eef4fb, #f8fafc);
  transform: scale(1.06);
  transition: transform 6.5s ease-out, opacity .8s ease;
  opacity: 0;
}
/* Full-bleed promo art — no side bars; mild zoom so product/text stay in frame */
.slide.slide-promo .slide-bg {
  inset: 0;
  background:
    var(--slide-img) center center / cover no-repeat,
    #0b0f14;
  transform: scale(1.025);
  transform-origin: center center;
}
.slide.slide-promo.active .slide-bg {
  opacity: 1;
  transform: scale(1);
}
.slide.active .slide-bg {
  opacity: 1;
  transform: scale(1);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 4.5rem) 0 5.5rem;
  width: min(var(--max), calc(100% - 3.5rem));
  margin-inline: auto;
  max-width: 680px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}
.slide.slide-promo .slide-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(88vh, 760px);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4.25rem;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
  max-width: none;
  width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}
.slide.slide-promo .slide-kicker,
.slide.slide-promo h1,
.slide.slide-promo p {
  display: none;
}
.slide.slide-promo .slide-actions {
  opacity: 0;
  transform: translateY(16px);
  gap: .65rem;
}
.slide.slide-promo.active .slide-actions {
  animation: slideUpIn .7s cubic-bezier(.22,1,.36,1) .2s forwards;
}
.slide.slide-promo .btn-primary {
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.slide.slide-promo .btn-outline {
  background: #fff;
  border-color: #fff;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.slide.slide-promo .btn-outline:hover {
  background: #f8fafc;
}
/* Category lineup slides: keep CTAs readable on bright backgrounds */
.slide.slide-cats .slide-content {
  max-width: none;
  width: min(var(--max), calc(100% - 3.5rem));
  margin-inline: auto;
  align-items: center;
  text-align: center;
}
.slide.slide-cats .slide-actions {
  justify-content: center;
}
.slide .slide-kicker,
.slide h1,
.slide p,
.slide .slide-actions {
  opacity: 0;
  transform: translateY(28px);
}
.slide.active .slide-kicker,
.slide.active h1,
.slide.active p,
.slide.active .slide-actions {
  animation: slideUpIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
.slide.active .slide-kicker { animation-delay: .12s; }
.slide.active h1 { animation-delay: .22s; }
.slide.active p { animation-delay: .34s; }
.slide.active .slide-actions { animation-delay: .46s; }
@keyframes slideUpIn {
  to { opacity: 1; transform: translateY(0); }
}
.slide-kicker {
  display: inline-block;
  background: rgba(232, 93, 4, .12);
  color: var(--accent);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.slide h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-shadow: 0 8px 30px rgba(255,255,255,.35);
}
.slide p { color: #475569; font-size: 1.12rem; margin: 0 0 1.5rem; max-width: 36rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.1);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1.35rem;
  color: var(--navy);
  transition: transform .2s ease, background .2s ease;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.slider-arrow.prev { left: clamp(.75rem, 2vw, 1.5rem); }
.slider-arrow.next { right: clamp(.75rem, 2vw, 1.5rem); }
.hero-slider .slider-arrow {
  top: auto;
  bottom: 1.75rem;
  transform: none;
}
.hero-slider .slider-arrow:hover { transform: scale(1.05); }
.slider-nav { display: none; }
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 6;
}
.slider-dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,.2);
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background .25s ease;
}
.slider-dots button.active {
  background: var(--accent);
  width: 42px;
}

/* Trust / features strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.feature-card h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--navy); }
.feature-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.product-media {
  aspect-ratio: 16/11;
  background: linear-gradient(180deg, #f1f5f9, #fff);
  display: grid;
  place-items: center;
  position: relative;
  padding: 1rem;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--navy); color: #fff;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 999px;
}
.wish-btn {
  position: absolute; top: .7rem; right: .7rem;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer;
}
.product-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-name { font-family: var(--display); font-size: 1.1rem; margin: 0; }
.product-price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .55rem; }
.chip {
  font-size: .7rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .18rem .5rem; background: #f8fafc;
}
.product-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.cat-grid-wide { grid-template-columns: repeat(4, 1fr); }
.mega-wide {
  width: min(920px, 92vw) !important;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
}
.cat-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  box-shadow: var(--shadow);
}
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.72);
}
.cat-card .cat-body {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: end;
  padding: 1.4rem;
}
.cat-card h3 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.45rem; }
.cat-card p { margin: 0 0 .9rem; opacity: .9; }
.cat-card .cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: #fff;
  color: var(--navy);
  border: 1px solid #fff;
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-weight: 800;
  font-size: .82rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.cat-card:hover .cat-btn,
.cat-card:focus-visible .cat-btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.cat-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent), var(--shadow);
}

/* Split / why choose */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split-media {
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  background: #e2e8f0;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.check-list { margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.check-list li {
  display: flex; gap: .55rem; align-items: start;
  color: #334155;
}
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* Battery compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.compare-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
}
.compare-card.featured {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4, #fff);
}
.compare-card h3 { margin: 0 0 .75rem; color: var(--navy); }
.compare-card ul { display: grid; gap: .5rem; }
.compare-card li { color: var(--muted); padding-left: .2rem; }

/* Green city banner */
.banner-cta {
  position: relative;
  border-radius: 0;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
}
.banner-cta img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.55);
}
.banner-cta .banner-inner {
  position: relative; z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
  max-width: 640px;
}
.banner-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 .8rem;
  letter-spacing: -0.02em;
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 1rem 1.05rem 1.2rem; }
.blog-card .tag {
  font-size: .7rem; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em;
}
.blog-card h3 { font-size: 1rem; margin: .35rem 0 .45rem; font-family: var(--display); }
.blog-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Ride future */
.future-banner {
  background: linear-gradient(120deg, var(--navy), #14532d 70%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1rem;
}
.future-banner h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 .75rem;
  letter-spacing: 0.04em;
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
}
.testimonial .stars { color: #f59e0b; letter-spacing: .08em; margin-bottom: .5rem; }
.testimonial p { color: #334155; margin: 0 0 1rem; }
.testimonial .who { font-weight: 800; color: var(--navy); }
.testimonial .role { color: var(--muted); font-size: .85rem; }

/* Parallel scooty / bike */
.tabs {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Fuel chart */
.chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.bars { display: grid; gap: 1rem; margin-top: 1rem; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: .75rem; align-items: center; }
.bar-track { height: 18px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.fuel { background: #ef4444; width: 92%; }
.bar-fill.ev { background: var(--green); width: 18%; }
.bar-row span:last-child { font-weight: 800; text-align: right; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}
.faq-item h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--navy); }
.faq-item p { margin: 0; color: var(--muted); }

/* Forms / commerce pages */
.filters {
  display: flex; flex-wrap: wrap; gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.filters label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.filter-field { flex: 1; min-width: 140px; }
.form-control, .filters input, .filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .85rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.form-group .req { color: var(--accent); font-weight: 800; }
.field-hint {
  display: block;
  min-height: 0;
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.form-group.is-invalid .field-hint:not(:empty),
.field-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.form-group.is-invalid .form-control {
  border-color: #f87171;
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .18);
}
.form-group.is-invalid label { color: #b91c1c; }
.form-group.is-valid .form-control {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}
.form-group.shake {
  animation: fieldShake .42s ease;
}
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.form-banner {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .95rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.form-banner-error {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  border-color: #fecaca;
  color: #9f1239;
}
.form-banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  flex-shrink: 0;
}
.form-banner strong { display: block; font-size: .92rem; margin-bottom: .15rem; }
.form-banner p { margin: 0; font-size: .85rem; opacity: .92; }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: var(--green-soft); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Floating toast notifications */
.toast-stack {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h) + .85rem);
  right: 1.1rem;
  z-index: 220;
  display: grid;
  gap: .65rem;
  width: min(380px, calc(100vw - 1.5rem));
  pointer-events: none;
}
body.is-scrolled .toast-stack {
  top: calc(var(--header-h) + .85rem);
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: .75rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  transform: translateY(-8px);
  opacity: 0;
  animation: toastIn .35s cubic-bezier(.22, 1, .36, 1) forwards;
}
.toast.is-leaving {
  animation: toastOut .28s ease forwards;
}
.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid #dc2626; }
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.toast-success .toast-icon {
  background: var(--green-soft);
  color: var(--green);
}
.toast-error .toast-icon {
  background: #fef2f2;
  color: #dc2626;
}
.toast-msg {
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  padding-top: .2rem;
}
.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .15rem;
  border-radius: 6px;
}
.toast-close:hover { color: var(--ink); background: #f1f5f9; }
@keyframes toastIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .toast-stack {
    left: .75rem;
    right: .75rem;
    width: auto;
  }
}

.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: start; }
.detail-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.detail-media img { width: 100%; object-fit: contain; max-height: 420px; margin: 0 auto; }
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
  align-items: center;
}
.detail-actions .btn { min-height: 44px; }
.price-lg { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: .5rem 0 1rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); width: 38%; font-weight: 600; }
.ref-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: .75rem; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem;
}

.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .3rem 0 .5rem; color: var(--navy); }
.prose { color: var(--muted); max-width: 48rem; }
.blog-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.75rem;
  display: block;
}
.blog-prose {
  max-width: 48rem;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}
.blog-prose h2 {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 2rem 0 .85rem;
}
.blog-prose p { margin: 0 0 1.1rem; }
.blog-prose .blog-note {
  font-size: .92rem;
  color: var(--muted);
  margin-top: -.35rem;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: .95rem;
}
.blog-table th,
.blog-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.blog-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.blog-table tr:last-child td { border-bottom: 0; }
.blog-table tbody tr:nth-child(even) td { background: #f8fafc; }
@media (max-width: 700px) {
  .blog-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.content-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.35rem;
}

.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  background: #25d366; color: #fff;
  width: 58px; height: 58px; border-radius: 999px;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { display: block; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 14px 32px rgba(0,0,0,.22); }

.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer a { color: #94a3b8; display: block; margin-bottom: .4rem; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 .75rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: #64748b;
}
.empty-state {
  text-align: center; padding: 2.5rem 1rem;
  border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: #fff;
}
.pagination { display: flex; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .45rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .85rem;
}
.pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); }

/* —— Responsive —— */
@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid-wide { grid-template-columns: repeat(3, 1fr); }
  .mega-wide {
    width: min(820px, 90vw) !important;
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

@media (max-width: 1100px) {
  :root { --header-h: 78px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header-actions { justify-self: end; }
  .brand-logo { max-width: 58px; height: 3.25rem; }
  .brand-name { font-size: 1.15rem; }
  .product-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .cat-grid-wide { grid-template-columns: repeat(2, 1fr); }
  .container { width: min(var(--max), calc(100% - 2.5rem)); }
  .container-wide { width: min(1720px, calc(100% - 1.75rem)); }
}

@media (max-width: 900px) {
  .slide, .split, .compare-grid, .detail-grid, .footer-grid,
  .content-card[style*="grid-template-columns"],
  section .cart-summary, section [style*="grid-template-columns:1.5fr"],
  section [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .slide-bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.2) 100%),
      var(--slide-img) center 28% / cover no-repeat;
  }
  .slide.slide-promo .slide-bg {
    left: 0;
    right: 0;
    background:
      var(--slide-img) center 42% / cover no-repeat,
      #0b0f14;
    transform: scale(1.02);
  }
  .slide.slide-promo.active .slide-bg {
    transform: scale(1);
  }
  .slide.slide-promo .slide-content {
    margin-left: 0;
    max-width: none;
    width: 100%;
    min-height: min(72vh, 580px);
    padding: calc(var(--topbar-h) + var(--header-h) + 1.25rem) clamp(1rem, 5vw, 2rem) 3.75rem;
  }
  .slide.slide-cats .slide-content {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }
  .hero-slider {
    min-height: min(78vh, 640px);
  }
  .hero-slider .slider-arrow {
    bottom: 1.1rem;
  }
  .slide-content {
    margin-left: auto;
    max-width: none;
    padding: calc(var(--topbar-h) + var(--header-h) + 1.5rem) 0 4.5rem;
  }
  .cat-grid, .cat-grid-wide, .testimonial-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 220px; }
  .mega-wide { grid-template-columns: 1fr 1fr !important; width: min(720px, 92vw) !important; }
  .slider-arrow { width: 44px; height: 44px; }
  .slider-arrow.prev { left: .6rem; }
  .slider-arrow.next { right: .6rem; }
  .menu-overlay-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; }
  .section { padding: 2.75rem 0; }
  .feature-strip { margin-top: 0; }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
    margin-inline: -.25rem;
    padding-inline: .25rem;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; }
  .detail-actions { gap: .55rem; }
  .detail-actions .btn { flex: 1 1 auto; min-width: calc(50% - .4rem); }
  .detail-actions form { display: contents; }
  .cart-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table th { width: 42%; }
  .topbar-address { display: none; }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --topbar-h: 36px;
  }
  .container { width: calc(100% - 1.5rem); }
  .container-wide { width: calc(100% - 1.25rem); }
  .product-grid, .blog-grid, .feature-strip, .form-grid { grid-template-columns: 1fr; }
  .filter-field { min-width: 100%; flex: 1 1 100%; }
  .brand-sub { display: none; }
  .brand-logo { height: 2.6rem; max-width: 48px; }
  .brand-name { font-size: 1.05rem; }
  .action-pill { padding: .22rem .28rem; }
  .action-pill .icon-btn { width: 34px; height: 34px; }
  .menu-toggle { padding: .55rem .75rem; }
  .menu-label { display: none; }
  .topbar { font-size: .78rem; }
  .topbar-inner { justify-content: center; }
  .topbar-left { display: none; }
  .section-title { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .product-actions { flex-direction: column; }
  .product-actions .btn,
  .product-actions form { width: 100%; }
  .product-actions .btn { justify-content: center; }
  .detail-actions .btn { min-width: 100%; }
  .detail-media { padding: 1rem; border-radius: 16px; }
  .detail-media img { max-height: 280px; }
  .price-lg { font-size: 1.35rem; }
  .wa-float { width: 52px; height: 52px; right: .85rem; bottom: .85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .hero-slider { min-height: min(70vh, 560px); }
  .slide.slide-promo .slide-bg {
    background:
      var(--slide-img) 62% 38% / cover no-repeat,
      #0b0f14;
  }
  .slide.slide-promo .slide-content {
    min-height: min(68vh, 520px);
    padding: calc(var(--topbar-h) + var(--header-h) + 1rem) 1rem 3.5rem;
  }
  .slide h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .cat-card { min-height: 200px; }
  .menu-overlay { padding: 1.25rem; }
  .menu-overlay a { font-size: clamp(1.35rem, 7vw, 1.9rem); }
  .menu-close { top: .85rem; right: .85rem; }
}

@media (max-width: 420px) {
  .header-actions { gap: .3rem; }
  .action-pill .icon-btn-compare { display: none; }
  .product-grid { gap: .85rem; }
  .btn { padding: .7rem 1rem; }
}
