/* Self-hosted Google Fonts (latin subset, variable weight). Licenses: fonts/OFL-*.txt */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-v57-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --black: #070708;
  --black-2: #0e0e10;
  --elev: #141417;
  --card: #18181c;
  --line: rgba(255, 255, 255, 0.1);
  --red: #e10600;
  --red-2: #ff2a22;
  --red-dim: rgba(225, 6, 0, 0.16);
  --text: #f4f4f5;
  --muted: #9c9ca6;
  --whatsapp: #25d366;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header: 56px;
  --html-bg: #2c2c32;
  --body-bg: #16161b;
  --body-glow-1: #6a6a74;
  --body-glow-2: #3a3a42;
  --body-grad-a: #121216;
  --body-grad-b: #24242c;
  --body-grad-c: #3c3c44;
  --topbar-bg: #050505;
  --chrome-bg: rgba(7, 7, 8, 0.94);
  --submenu-bg: #111114;
  --mobile-bg: #0b0b0d;
  --icon: #f4f4f5;
  --placeholder: #7a7a84;
  --search-focus: rgba(255, 255, 255, 0.35);
  --ghost-border: rgba(255, 255, 255, 0.25);
  --ghost-hover: #fff;
  --chip-active: #fff;
  --soft: #c9c9d1;
  --faint: #6f6f78;
  --marquee-fg: #7d7d86;
  --photo-natural: #141414;
  --photo-lm: #1a1a1a;
  --shimmer: #ececf0;
  --shimmer-on-dark: #1c1c22;
  --variant-dot-border: rgba(255, 255, 255, 0.35);
  --footer-link: #c9c9d1;
  --footer-copy: #6f6f78;
  --cart-thumb-bg: #101014;
  --cart-thumb-a: #222228;
  --cart-thumb-b: #0c0c10;
}

html[data-theme="light"] {
  color-scheme: light;
  --black: #ffffff;
  --black-2: #f6f6f8;
  --elev: #ffffff;
  --card: #ffffff;
  --line: rgba(20, 20, 28, 0.12);
  --red-dim: rgba(225, 6, 0, 0.1);
  --text: #16161a;
  --muted: #5c5c66;
  --shadow: 0 16px 40px rgba(20, 20, 30, 0.1);
  --html-bg: #e8e8ee;
  --body-bg: #f3f3f6;
  --body-glow-1: #ffffff;
  --body-glow-2: #ececf2;
  --body-grad-a: #ffffff;
  --body-grad-b: #f5f5f8;
  --body-grad-c: #ececf1;
  --topbar-bg: #ffffff;
  --chrome-bg: rgba(255, 255, 255, 0.94);
  --submenu-bg: #ffffff;
  --mobile-bg: #ffffff;
  --icon: #16161a;
  --placeholder: #8a8a94;
  --search-focus: rgba(225, 6, 0, 0.45);
  --ghost-border: rgba(22, 22, 26, 0.22);
  --ghost-hover: #16161a;
  --chip-active: #e10600;
  --soft: #3a3a42;
  --faint: #8a8a94;
  --marquee-fg: #6a6a74;
  --photo-natural: #ececf1;
  --shimmer: #e6e6ec;
  --variant-dot-border: rgba(0, 0, 0, 0.22);
  --footer-link: #3a3a42;
  --footer-copy: #6a6a74;
  --cart-thumb-bg: #f4f4f7;
  --cart-thumb-a: #f0f0f4;
  --cart-thumb-b: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--html-bg); }
body {
  margin: 0;
  background-color: var(--body-bg);
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -18%, var(--body-glow-1) 0%, transparent 56%),
    radial-gradient(ellipse 70% 45% at 100% 110%, var(--body-glow-2) 0%, transparent 50%),
    linear-gradient(180deg, var(--body-grad-a) 0%, var(--body-grad-b) 46%, var(--body-grad-c) 100%);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}
@media (min-width: 981px) {
  body { background-attachment: fixed; }
}
img { max-width: 100%; display: block; }

.media-shimmer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background: var(--shimmer);
}
.is-loading > .media-shimmer {
  display: block;
}
.media-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: media-shimmer 1.15s ease-in-out infinite;
}
.hero-media .media-shimmer,
.cat-card .media-shimmer,
.cart-thumb .media-shimmer,
.detail-photo.natural .media-shimmer,
.detail-photo.packshot-lm .media-shimmer,
.detail-photo.packshot-lm-hero .media-shimmer {
  background: var(--shimmer-on-dark);
}
.hero-media .media-shimmer::after,
.cat-card .media-shimmer::after,
.cart-thumb .media-shimmer::after,
.detail-photo.natural .media-shimmer::after,
.detail-photo.packshot-lm .media-shimmer::after,
.detail-photo.packshot-lm-hero .media-shimmer::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 48%, transparent 100%);
}
@keyframes media-shimmer {
  100% { transform: translateX(100%); }
}
.is-loading img {
  opacity: 0;
}
.is-ready img {
  opacity: 1;
  transition: opacity .28s ease;
}
.hero-media.is-ready img.bg {
  opacity: 0.72;
}
.is-error img {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .media-shimmer::after { animation: none; }
  .is-ready img { transition: none; }
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar b { color: var(--text); font-weight: 600; }
.official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.official i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--chrome-bg);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .chrome {
  box-shadow: 0 1px 0 rgba(20, 20, 28, 0.08);
}
.header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px 8px;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  grid-template-areas:
    "logo search actions"
    "nav nav nav";
  gap: 10px 20px;
  align-items: center;
}

.logo-mark {
  grid-area: logo;
  font-family: "Oswald", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.06em;
  padding-right: 0.12em;
}
.header-search {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 44px;
  color: var(--muted);
}
.header-search svg {
  flex: 0 0 auto;
}
.header-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--icon);
  padding: 10px 0;
  text-overflow: ellipsis;
}
.header-search input::placeholder { color: var(--placeholder); }
.header-search input:focus { outline: none; }
.header-search:focus-within {
  border-color: var(--search-focus);
}
.pbrand {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav > a,
.nav-item > a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.nav > a:hover,
.nav > a.active,
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--text);
  background: var(--red-dim);
}
.nav-item { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 196px;
  max-height: min(72vh, 560px);
  overflow: auto;
  background: var(--submenu-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  z-index: 70;
  box-shadow: var(--shadow);
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  display: grid;
  gap: 2px;
}
.submenu.submenu-wide {
  min-width: 380px;
  grid-template-columns: 1fr 1fr;
}
.submenu-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 12px 4px;
}
.submenu-wide .submenu-label,
.submenu-wide > a:first-child {
  grid-column: 1 / -1;
}
.submenu a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}
.submenu a:hover,
.submenu a.active {
  color: var(--text);
  background: var(--red-dim);
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--icon);
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn:hover { border-color: var(--icon); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.menu-btn { display: none; }

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: start;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  opacity: 0.72;
}
.hero-media.is-loading img.bg { opacity: 0; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070708 0%, rgba(7,7,8,.92) 34%, rgba(7,7,8,.42) 62%, rgba(7,7,8,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(7,7,8,.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 5vw 56px;
  display: flex;
  justify-content: flex-start;
}
.hero-copy {
  max-width: 36rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.hero .kicker { color: #fff; }
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(52px, 9vw, 92px);
  line-height: 0.82;
  text-transform: none;
  margin: 0 0 18px;
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-repuestos {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.34em;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 0.12em;
  margin-bottom: 0.08em;
}
.hero-floresta {
  display: inline-block;
  color: var(--red);
  font-style: normal;
  font-synthesis: none;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: none;
  line-height: 0.86;
  padding-right: 0.16em;
}
.hero p.lead {
  max-width: 46ch;
  color: #d8d8df;
  font-size: 18px;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-ghost {
  background: transparent;
  color: var(--icon);
  border: 1px solid var(--ghost-border);
}
.btn-ghost:hover { border-color: var(--ghost-hover); }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.hero .btn-ghost:hover { border-color: #fff; }
.btn-wa { background: var(--whatsapp); color: #062; }
.btn-full { width: 100%; }

.section { padding: 72px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  margin: 0;
}
.section-head p { color: var(--muted); margin: 6px 0 0; }

.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cats .cat-card:nth-child(-n+3) { grid-column: span 2; }
.cats .cat-card:nth-child(n+4) { grid-column: span 3; }
.cat-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s ease, opacity .28s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card .media-shimmer { z-index: 1; }
.cat-card .shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.82));
}
.cat-card .txt {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 3;
}
.cat-card .txt span {
  color: var(--red-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cat-card h3 {
  margin: 6px 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  color: #fff;
}
.cat-card p { margin: 0; color: #d7d7de; font-size: 14px; }
html[data-theme="light"] .cat-card {
  border-color: rgba(225, 6, 0, 0.14);
  box-shadow: 0 12px 28px rgba(20, 20, 30, 0.08);
}
html[data-theme="light"] .cat-card .shade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 242, 242, 0.74) 52%, rgba(255, 232, 232, 0.92) 100%),
    linear-gradient(180deg, transparent 42%, rgba(225, 6, 0, 0.22) 100%);
}
html[data-theme="light"] .cat-card .txt span { color: var(--red); }
html[data-theme="light"] .cat-card h3 { color: #16161a; }
html[data-theme="light"] .cat-card p { color: #5c5c66; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, border-color .2s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.45);
}
.product .thumb {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
}
.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.product .thumb.packshot img {
  width: 70%;
  height: 74%;
  object-fit: contain;
  padding: 0;
}
.product .thumb.packshot-brm img {
  width: 52%;
  height: 62%;
}
.product .thumb.packshot-lm {
  isolation: isolate;
  background: #1a1a1a;
}
.product .thumb.packshot-lm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/lm-aisle.jpg?v=20") center / cover no-repeat;
  z-index: 0;
}
.product .thumb.packshot-lm::after {
  display: none;
}
.product .thumb.packshot-lm img {
  width: 58%;
  height: 82%;
  object-fit: contain;
  object-position: center 62%;
  padding: 0;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  z-index: 2;
}
.product .thumb.packshot-lm-hero {
  background: #1a1a1a;
}
.product .thumb.packshot-lm-hero::before,
.product .thumb.packshot-lm-hero::after {
  display: none;
}
.product .thumb.packshot-lm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  padding: 0;
  filter: none;
}
.product .thumb.has-carousel .thumb-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.62);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .88;
  transition: opacity .15s ease, background .15s ease;
}
.card-arrow svg {
  width: 16px;
  height: 16px;
}
.card-arrow:hover {
  background: rgba(225, 6, 0, 0.92);
}
.card-arrow.prev { left: 8px; }
.card-arrow.next { right: 8px; }
.product:hover .card-arrow,
.product .thumb.has-carousel:focus-within .card-arrow {
  opacity: 1;
}
.card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0;
}
/* 24px touch target; the visible 12px dot is drawn by ::before. */
.card-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.card-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  background: var(--dot, #888);
}
.card-dot.active::before {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}
.product .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.price {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  margin-top: auto;
}
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--black-2);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 65s linear infinite;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marquee-fg);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.benefit {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red-dim);
  color: var(--red);
  margin-bottom: 12px;
}
.benefit-icon svg {
  width: 22px;
  height: 22px;
}
.benefit strong { display: block; margin: 0 0 6px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }

.visit {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.visit-copy { padding: 36px; }
.visit-copy h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 36px; margin: 0 0 12px; }
.visit-copy p { color: var(--muted); margin: 0 0 12px; }
.visit-copy p + p { margin-bottom: 16px; }
.visit-photo {
  min-height: 320px;
  background: #000 38% 42%/cover no-repeat;
}
html[data-theme="light"] .visit {
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
  border-color: rgba(225, 6, 0, 0.14);
  box-shadow: 0 12px 28px rgba(20, 20, 30, 0.08);
}

.page-hero {
  padding: 42px 20px 10px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 8px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.brand-filters { margin-top: 0; }
.filter-block { margin-top: 10px; }
.filter-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
}
.chip.active, .chip:hover { color: var(--chip-active); border-color: var(--red); background: var(--red-dim); }

.variant-picker {
  margin: 18px 0 22px;
}
.variant-block {
  margin: 0 0 14px;
}
.variant-block:last-child {
  margin-bottom: 0;
}
.variant-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
}
.variant-chip:hover {
  border-color: #888;
}
.variant-chip.active {
  border-color: var(--red);
  background: var(--red-dim);
}
.variant-chip.unavailable {
  opacity: .55;
  text-decoration: line-through;
}
a.variant-chip.unavailable {
  cursor: pointer;
  pointer-events: auto;
}
.variant-chip .oos {
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.stock-flag {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn:disabled,
.btn[disabled] {
  opacity: .42;
  cursor: default;
  pointer-events: none;
}
.variant-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--variant-dot-border);
  flex: 0 0 14px;
}

.detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
}
.detail-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.detail-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-thumbs button {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.detail-thumbs button.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-dim);
}
.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.detail-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
}
.detail-photo.natural {
  min-height: 0;
  background: var(--photo-natural);
  display: block;
}
.detail-photo.natural img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.detail-photo.packshot img {
  width: 68%;
  height: 72%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  max-height: 400px;
}
.detail-photo.packshot-brm img {
  width: 48%;
  height: 58%;
  max-height: 320px;
}
.detail-photo.packshot-lm {
  isolation: isolate;
  background: #1a1a1a;
}
.detail-photo.packshot-lm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/lm-aisle.jpg?v=20") center / cover no-repeat;
  z-index: 0;
}
.detail-photo.packshot-lm::after {
  display: none;
}
.detail-photo.packshot-lm img {
  width: 52%;
  height: 80%;
  max-height: 460px;
  object-fit: contain;
  object-position: center 58%;
  padding: 0;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.45));
  z-index: 2;
}
.detail-photo.packshot-lm-hero {
  background: #1a1a1a;
}
.detail-photo.packshot-lm-hero::before,
.detail-photo.packshot-lm-hero::after {
  display: none;
}
.detail-photo.packshot-lm-hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 46%;
  padding: 0;
  filter: none;
}
.detail h1 { font-family: "Oswald", sans-serif; font-size: 40px; line-height: 1.05; margin: 10px 0 12px; text-transform: uppercase; }
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.qty button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--elev);
  color: var(--text);
}
.qty button.chip {
  width: auto;
  min-width: 0;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.cart-page, .contact-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.cart-layout, .contact-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--cart-thumb-bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(225, 6, 0, 0.28) 0%, transparent 64%),
    linear-gradient(165deg, var(--cart-thumb-a) 0%, var(--cart-thumb-b) 100%);
}
.cart-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
}
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  color: var(--muted);
}
.summary .row.total { color: var(--text); font-size: 22px; font-family: "Oswald", sans-serif; }
/* h2 for heading order, sized like the h3 it replaced. */
.summary-title { font-size: 1.17em; margin: 1em 0; }
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--black-2);
  z-index: 51;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.drawer-items { overflow: auto; padding: 0 18px; flex: 1; }

.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 60;
  font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 45;
  box-shadow:
    0 0 10px rgba(37, 211, 102, 0.95),
    0 0 24px rgba(37, 211, 102, 0.45),
    0 8px 22px rgba(0, 0, 0, 0.35);
  animation: wa-glow 2.6s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover {
  background: #2ee072;
  box-shadow:
    0 0 14px #7dffb3,
    0 0 34px rgba(37, 211, 102, 0.75),
    0 8px 22px rgba(0, 0, 0, 0.35);
}
@keyframes wa-glow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(37, 211, 102, 0.85),
      0 0 18px rgba(37, 211, 102, 0.35),
      0 8px 22px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 16px #7dffb3,
      0 0 32px rgba(37, 211, 102, 0.7),
      0 8px 22px rgba(0, 0, 0, 0.35);
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 20px 32px;
  background: transparent;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-title { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer a, .footer p { color: var(--footer-link); }
.footer .copy { max-width: var(--max); margin: 24px auto 0; color: var(--footer-copy); font-size: 13px; }
.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  color-scheme: light;
  forced-color-adjust: none;
  filter: none;
  opacity: 1;
  isolation: isolate;
  transition: transform .15s ease, box-shadow .15s ease;
}
.social svg {
  width: 22px;
  height: 22px;
  filter: none;
}
.social:hover { transform: translateY(-2px); }
.social-ig {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 42%, #d6249f 62%, #285aeb 100%);
  box-shadow: 0 0 14px rgba(214, 36, 159, 0.35);
}
.social-fb {
  background: #1877f2;
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.35);
}
.social-ml {
  background: #ffe600;
  box-shadow: 0 0 10px rgba(24, 24, 24, 0.18);
  overflow: hidden;
}
.social-ml svg {
  width: 34px;
  height: 24px;
}
.socials.compact { gap: 8px; }
.socials.compact .social {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.socials.compact .social svg { width: 18px; height: 18px; }
.socials.compact .social-ml svg { width: 30px; height: 21px; }

.ml-platinum {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #1c3f42 0%, #10191b 48%, #163537 100%);
  border: 1px solid rgba(127, 226, 212, 0.5);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.2);
}
.ml-platinum-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, #f7fffd 0%, #c9f4ee 32%, #7fe3d6 64%, #2aa89e 100%);
  border: 2px solid rgba(226, 245, 242, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.28);
}
.ml-platinum-mark svg {
  width: 34px;
  height: 24px;
  filter: none;
}
.ml-platinum-copy { display: grid; gap: 2px; }
.ml-platinum-copy small {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fe8de;
}
.ml-platinum-copy strong {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-style: italic;
  color: #e8fffb;
  letter-spacing: 0.06em;
  line-height: 1;
}
html[data-theme="light"] .ml-platinum {
  background: linear-gradient(165deg, #ffffff 0%, #fff5f5 48%, #ffe8e8 100%);
  border: 1px solid rgba(225, 6, 0, 0.16);
  box-shadow: 0 12px 28px rgba(20, 20, 30, 0.08);
}
html[data-theme="light"] .ml-platinum-copy small { color: var(--red); }
html[data-theme="light"] .ml-platinum-copy strong { color: #16161a; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav {
  display: none;
  background: var(--mobile-bg);
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.mobile-nav.open { display: grid; gap: 6px; }
.mobile-nav a { padding: 12px; border-radius: 10px; }
.mobile-nav a.sub {
  padding-left: 28px;
  font-size: 13px;
  color: var(--muted);
}
.mobile-nav .group-label {
  padding: 10px 12px 2px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.form { display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%;
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }

.proto {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  :root { --header: 52px; }
  .header-actions .socials { display: none; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .cats,
  .benefits,
  .visit,
  .detail,
  .cart-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .cats .cat-card:nth-child(-n+3),
  .cats .cat-card:nth-child(n+4) {
    grid-column: auto;
  }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
    padding: 8px 14px;
    gap: 10px;
  }
  .header-search {
    min-height: 40px;
    padding: 0 12px;
    max-width: none;
  }
  .header-search input { padding: 8px 0; font-size: 14px; }
  .header-actions { justify-self: end; gap: 6px; }
  .logo-mark { font-size: 24px; }
  .topbar-inner {
    padding: 7px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .topbar-place,
  .official-ml { display: none; }
  .official,
  .topbar-wa { white-space: nowrap; }
  .hero { min-height: auto; }
  .hero-inner { padding: 16px 16px 36px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(42px, 13vw, 68px); }
  .hero-repuestos { letter-spacing: 0.2em; font-size: 0.3em; padding-left: 0; }
  .hero p.lead { font-size: 15px; max-width: none; }
  .cta-row .btn { min-height: 46px; }
  .section { padding: 40px 16px; }
  .section-head { align-items: start; flex-direction: column; }
  .cat-card { min-height: 220px; }
  .cat-card .txt { left: 14px; right: 14px; bottom: 14px; }
  .cat-card h3 { font-size: 22px; }
  .cat-card p { display: none; }
  .product .thumb { height: 150px; }
  .card-arrow { opacity: 1; width: 26px; height: 26px; }
  .product .body { padding: 12px; gap: 6px; }
  .product h3 {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .price { font-size: 20px; }
  .filters,
  .brand-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -16px;
    padding-right: 16px;
  }
  .filters::-webkit-scrollbar,
  .brand-filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .page-hero { padding: 24px 16px 8px; }
  .visit-copy { padding: 22px 18px; }
  .visit-copy h2 { font-size: 26px; }
  .visit-photo { min-height: 180px; }
  .detail { padding: 16px 16px 96px; gap: 18px; }
  .detail h1 { font-size: 26px; }
  .detail-photo { min-height: 280px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .mobile-nav {
    max-height: min(72vh, 560px);
    overflow: auto;
    padding-bottom: 18px;
  }
  .wa-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .wa-float svg { width: 28px; height: 28px; }
  .drawer { width: 100%; }
  .footer { padding: 36px 16px 88px; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .topbar-inner { justify-content: space-between; text-align: left; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .product-actions { flex-direction: column; }
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }
  .cart-thumb { width: 72px; height: 72px; }
  .kicker { font-size: 11px; letter-spacing: 0.12em; flex-wrap: wrap; }
}

/* Theme toggle renders both icons so prerendered pages match the saved theme before JS runs. */
.theme-icon { display: grid; place-items: center; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: grid; }

/* Hides the prerendered grid while a ?q= search or the cart renders client-side. */
.rf-pending #app { visibility: hidden; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs-sep { opacity: 0.6; }
.crumbs [aria-current] {
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbrand a { color: inherit; }
.pbrand a:hover { color: var(--text); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.specs div { background: var(--card); padding: 10px 14px; }
.specs dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.pager-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-gap { padding: 0 2px; }

.prose { max-width: 72ch; color: var(--muted); }
.prose h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--text);
  margin: 28px 0 8px;
}
.prose p, .prose ul, .prose ol { margin: 0 0 12px; line-height: 1.6; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose .cta-row { margin-top: 8px; }

@media (max-width: 640px) {
  .specs { grid-template-columns: 1fr; }
}
