/* ============================================================
   HERBERT MOTOS — Core styles
   Paleta KTM: laranja + preto. Mobile-first.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ktm-orange: #ff6600;
  --ktm-orange-lt: #ff8a1e;
  --ktm-orange-deep: #d94e00;
  --ktm-glow: rgba(255, 102, 0, 0.55);

  --ink: #08080a;
  --ink-2: #101013;
  --surface: #151518;
  --surface-2: #1c1c21;
  --surface-3: #26262c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f3f4;
  --muted: #9a9aa3;
  --muted-2: #6d6d76;

  --glass: rgba(18, 18, 21, 0.55);
  --glass-line: rgba(255, 255, 255, 0.12);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Saira", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 64px;
  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle global texture: carbon-ish grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(255, 102, 0, 0.10), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(255, 102, 0, 0.06), transparent 40%);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ktm-orange);
  outline-offset: 3px;
}

::selection {
  background: var(--ktm-orange);
  color: #000;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 1;
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.italic-skew {
  font-style: italic;
  transform: skewX(-4deg);
  display: inline-block;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--ktm-orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ktm-orange);
}

.orange {
  color: var(--ktm-orange);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.45));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: height 0.35s var(--ease-out), background 0.35s ease;
}

.site-header.shrink {
  height: 54px;
  background: rgba(8, 8, 10, 0.96);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand img {
  height: 38px;
  width: auto;
  transition: height 0.35s var(--ease-out);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.site-header.shrink .brand img {
  height: 30px;
}

/* desktop nav hidden on mobile */
.primary-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--ktm-orange);
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ktm-orange);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}

.cart-count.show {
  transform: scale(1);
}

/* hamburger */
.burger {
  display: grid;
  place-items: center;
}

.burger span {
  display: block;
  position: relative;
  width: 24px;
  height: 16px;
}

.burger span i {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease, width 0.35s var(--ease-out);
}

.burger span i:nth-child(1) { top: 0; }
.burger span i:nth-child(2) { top: 7px; width: 70%; }
.burger span i:nth-child(3) { top: 14px; }

body.menu-open .burger span i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span i:nth-child(2) { opacity: 0; }
body.menu-open .burger span i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ============================================================
   MOBILE NAV (slide from right) + overlay
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 4, 6, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.scrim.show,
body.cart-open .scrim,
body.menu-open .scrim {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100dvh;
  width: min(84vw, 360px);
  background: linear-gradient(160deg, rgba(22, 22, 26, 0.92), rgba(10, 10, 12, 0.96));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-left: 1px solid var(--ktm-orange);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 30px;
}

body.menu-open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__head .label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--muted);
}

.mobile-nav ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.mobile-nav li {
  opacity: 0;
  transform: translateX(30px);
}

body.menu-open .mobile-nav li {
  animation: navItemIn 0.5s var(--ease-out) forwards;
}

body.menu-open .mobile-nav li:nth-child(1) { animation-delay: 0.12s; }
body.menu-open .mobile-nav li:nth-child(2) { animation-delay: 0.18s; }
body.menu-open .mobile-nav li:nth-child(3) { animation-delay: 0.24s; }
body.menu-open .mobile-nav li:nth-child(4) { animation-delay: 0.30s; }
body.menu-open .mobile-nav li:nth-child(5) { animation-delay: 0.36s; }

.mobile-nav a.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 0.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, padding-left 0.3s var(--ease-out);
}

.mobile-nav a.nav-link .num {
  font-size: 13px;
  color: var(--muted-2);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
}

.mobile-nav a.nav-link:hover,
.mobile-nav a.nav-link:active {
  color: var(--ktm-orange);
  padding-left: 10px;
}

.mobile-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav__foot .phone {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ktm-orange);
}

.mobile-nav__foot .addr {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --b: var(--ktm-orange);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s var(--ease-out), box-shadow 0.25s ease;
  isolation: isolate;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--ktm-orange-lt), var(--ktm-orange-deep));
  color: #0a0a0a;
  box-shadow: 0 8px 24px -8px var(--ktm-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px var(--ktm-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* shine sweep */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  z-index: -1;
}

.btn--primary:hover::after {
  animation: shine 0.9s ease;
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ktm-orange);
  color: var(--ktm-orange);
}

.btn--wa {
  background: linear-gradient(135deg, #2bd96b, #128c4b);
  color: #04240f;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.5);
}

.btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
}

.btn--block {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 30px);
  padding-bottom: 40px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 0%, #1a1411 0%, var(--ink) 55%);
  border-bottom: 1px solid var(--line);
}

/* diagonal accelerating chevrons */
.hero__chevrons {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
}

.hero__chevrons span {
  position: absolute;
  top: -20%;
  height: 140%;
  width: 14px;
  background: var(--ktm-orange);
  transform: skewX(-18deg);
  filter: blur(0.5px);
}

.hero__chevrons span:nth-child(1) { right: 4%;  opacity: 1;    width: 26px; }
.hero__chevrons span:nth-child(2) { right: 12%; opacity: 0.6;  width: 16px; }
.hero__chevrons span:nth-child(3) { right: 18%; opacity: 0.35; width: 10px; }
.hero__chevrons span:nth-child(4) { right: 23%; opacity: 0.18; width: 6px; }

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(46px, 15vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 14px 0 24px;
}

.hero__title .ht-line {
  display: block;
  font-style: italic;
  transform: skewX(-5deg);
  transform-origin: left center;
}

.hero__title .ht-line > .anim {
  display: inline-block;
}

.hero__title .line2 {
  color: var(--ktm-orange);
  text-shadow: 0 0 40px var(--ktm-glow);
}

.hero__lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 38ch;
  margin-bottom: 22px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* hero moto stage */
.hero__stage {
  position: relative;
  margin-top: 30px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.stat {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--ktm-orange);
  line-height: 1;
}

.stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================================
   IMAGE PLACEHOLDER (striped) — swap with real photos later
   ============================================================ */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 102, 0, 0.07) 0 14px,
      rgba(255, 255, 255, 0.02) 14px 28px
    ),
    linear-gradient(135deg, var(--surface-2), var(--ink-2));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 60%, rgba(255, 102, 0, 0.12), transparent 60%);
}

.ph__tag {
  position: relative;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 6px;
}

/* simple bike silhouette placed in placeholders */
.ph__bike {
  position: absolute;
  width: 72%;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.85;
  fill: none;
  stroke: var(--ktm-orange);
  stroke-width: 6;
  filter: drop-shadow(0 0 18px var(--ktm-glow));
}

/* ============================================================
   MARQUEE (acceleration band)
   ============================================================ */
.marquee {
  background: var(--ktm-orange);
  color: #0a0a0a;
  overflow: hidden;
  border-block: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.06em;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.marquee__track span::after {
  content: "›";
  font-size: 26px;
  opacity: 0.5;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 56px 0;
  position: relative;
}

.section--dark {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.section__title small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ktm-orange);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- Moto cards ---------- */
.moto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.moto-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

.moto-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 102, 0, 0.5);
  box-shadow: 0 30px 60px -30px var(--ktm-glow);
}

.moto-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.moto-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ktm-orange);
  color: #0a0a0a;
  padding: 5px 11px;
  border-radius: 6px;
  transform: skewX(-8deg);
}

.moto-card__cat {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
}

.moto-card__body {
  padding: 18px 18px 20px;
}

.moto-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 0.95;
  display: block;
  transition: color 0.2s ease;
}

a.moto-card__media { display: block; }
a.moto-card__name:hover { color: var(--ktm-orange); }

.moto-card__name b {
  color: var(--ktm-orange);
}

.moto-card__spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.moto-card__spec span {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.1;
}

.moto-card__spec span b {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.price-row .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--text);
  flex: none;
  white-space: nowrap;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* "carregar mais" */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

.spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- Parts grid ---------- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.part-card {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.part-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 102, 0, 0.45);
  box-shadow: 0 24px 40px -28px var(--ktm-glow);
}

.part-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
}

.part-card__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ktm-orange);
  color: #0a0a0a;
  padding: 4px 9px;
  border-radius: 5px;
  transform: skewX(-8deg);
}

.part-card__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.part-card__cat {
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ktm-orange);
}

.part-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
  display: block;
  transition: color 0.2s ease;
}

a.part-card__name:hover { color: var(--ktm-orange); }

.part-card__hint {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart__wa {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.cart__wa:hover { color: #2bd96b; }

.part-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.part-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--text);
  white-space: nowrap;
}

.add-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ktm-orange-lt), var(--ktm-orange-deep));
  color: #0a0a0a;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s ease;
  box-shadow: 0 6px 18px -8px var(--ktm-glow);
}

.add-btn svg { width: 22px; height: 22px; }

.add-btn:hover { box-shadow: 0 10px 22px -8px var(--ktm-glow); }
.add-btn:active { transform: scale(0.85); }

/* ============================================================
   SIDE CART
   ============================================================ */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  height: 100dvh;
  width: min(92vw, 400px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(24, 24, 28, 0.85), rgba(10, 10, 12, 0.95));
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-left: 1px solid var(--ktm-orange);
  box-shadow: -34px 0 90px rgba(0, 0, 0, 0.65);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-out);
}

body.cart-open .cart {
  transform: translateX(0);
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.cart__head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  padding: 30px;
}

.cart__empty svg {
  width: 60px;
  height: 60px;
  opacity: 0.35;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  animation: itemIn 0.4s var(--ease-out) both;
}

.cart-item.removing {
  animation: itemOut 0.3s var(--ease-in-out) forwards;
}

.cart-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}

.cart-item__info {
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 13px;
  color: var(--ktm-orange);
  font-weight: 600;
  margin-top: 4px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.qty button:hover { background: var(--ktm-orange); color: #000; }
.qty button:active { transform: scale(0.85); }

.qty span {
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item__remove {
  align-self: flex-start;
  color: var(--muted-2);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-item__remove:hover { color: #ff5252; background: rgba(255, 82, 82, 0.12); }
.cart-item__remove svg { width: 16px; height: 16px; }

.cart__foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.5);
}

.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart__total .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
}

.cart__total .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--ktm-orange);
}

/* fly-to-cart projectile */
.fly {
  position: fixed;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}

/* toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--ktm-orange);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.35s var(--ease-out), toastOut 0.35s var(--ease-in-out) 2.4s forwards;
}

.toast svg { width: 18px; height: 18px; color: var(--ktm-orange); flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 48px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer__chevrons {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ktm-orange) 0 30px, transparent 30px 46px);
  opacity: 0.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer__brand img {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--ktm-orange);
  margin-bottom: 14px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text);
}

.contact-line svg {
  width: 20px;
  height: 20px;
  color: var(--ktm-orange);
  flex: none;
  margin-top: 2px;
}

.contact-line a:hover { color: var(--ktm-orange); }
.contact-line .muted { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }

.hours {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.hours b { color: var(--text); }

.social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.social a:hover { background: var(--ktm-orange); color: #000; transform: translateY(-3px); }
.social a svg { width: 20px; height: 20px; }

.footer__map {
  margin-top: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-2);
  font-size: 12px;
}

.footer__bottom .made {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* floating whatsapp */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2bd96b, #128c4b);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  animation: floatPulse 2.6s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ============================================================
   DESKTOP / TABLET
   ============================================================ */
@media (min-width: 720px) {
  .parts-grid { grid-template-columns: repeat(4, 1fr); }
  .moto-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__stats { max-width: 460px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 860px) {
  :root { --header-h: 76px; }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 18px;
  }

  .primary-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease;
  }

  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 2px;
    background: var(--ktm-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }

  .primary-nav a:hover { color: var(--ktm-orange); }
  .primary-nav a:hover::after { transform: scaleX(1); }

  .burger { display: none; }

  .brand img { height: 46px; }
  .site-header.shrink .brand img { height: 38px; }

  .hero { padding-bottom: 70px; }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: center;
  }

  .hero__stage { margin-top: 0; aspect-ratio: 4 / 3.4; }

  .section { padding: 80px 0; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 96px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
