:root {
  --ink: #03090c;
  --pit: #071116;
  --asphalt: #101a20;
  --blue: #126dff;
  --lime: #d7ff00;
  --paper: #f2f6f8;
  --muted: #6f7b82;
  --line: rgba(5, 16, 20, 0.12);
  --glow: 0 0 34px rgba(215, 255, 0, 0.26);
  --shadow: 0 24px 70px rgba(5, 16, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(18, 109, 255, 0.08), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(215, 255, 0, 0.15), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(5, 16, 20, 0.08) 46% 47%, transparent 47% 100%),
    linear-gradient(90deg, rgba(5, 16, 20, 0.04) 1px, transparent 1px);
  background-size: 120px 120px, 44px 44px;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(16px, 4vw, 52px);
  background: rgba(3, 9, 12, 0.92);
  border-bottom: 1px solid rgba(215, 255, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: center;
  grid-column: 2;
  filter: drop-shadow(var(--glow));
}

.brand-mark {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 255, 0, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.main-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 28px;
}

.main-nav a,
.cart-button {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 3px;
  background: var(--lime);
  transition: right 160ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(215, 255, 0, 0.24);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.cart-icon {
  flex-shrink: 0;
  color: var(--lime);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 82px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("assets/hero-kart-azul.jpg") center 30% / cover no-repeat, #03090c;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 12, 0.97), rgba(3, 9, 12, 0.72) 42%, rgba(3, 9, 12, 0.22) 68%, rgba(3, 9, 12, 0.4)),
    linear-gradient(0deg, rgba(3, 9, 12, 0.85), transparent 40%);
}

.speed-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(215, 255, 0, 0.58) 58% 58.5%, transparent 58.5% 100%),
    linear-gradient(115deg, transparent 0 64%, rgba(18, 109, 255, 0.5) 64% 64.5%, transparent 64.5% 100%),
    linear-gradient(115deg, transparent 0 70%, rgba(255, 255, 255, 0.28) 70% 70.18%, transparent 70.18% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 78px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 0.88;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.checkout-button,
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-action,
.checkout-button,
.add-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 109, 255, 0.28);
}

.secondary-action {
  border: 1px solid rgba(215, 255, 0, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.add-button:hover,
.checkout-button:hover {
  background: #0b55d8;
}

.race-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 10px;
  margin-top: 34px;
}

.race-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.race-metrics strong {
  display: block;
  color: var(--lime);
  font-size: 22px;
}

.race-metrics span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.trust-strip {
  width: min(1180px, calc(100% - 36px));
  margin: -42px auto 78px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trust-strip div {
  background: #fff;
  padding: 26px;
  border-top: 3px solid var(--blue);
}

.trust-strip span {
  color: var(--blue);
  font-weight: 950;
}

.trust-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.trust-strip p,
.section-heading p,
.fit-copy p,
.cart-note {
  color: var(--muted);
  line-height: 1.55;
}

.catalog-section,
.fit-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 90px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  grid-template-areas: "eyebrow desc" "heading desc";
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  grid-area: eyebrow;
}

.section-heading h2 {
  grid-area: heading;
}

.section-heading > p:not(.eyebrow) {
  grid-area: desc;
}

.section-heading h2,
.fit-copy h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 0.94;
  font-weight: 950;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.filter {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.subcategory-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
}

.product-card,
.skeleton-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(5, 16, 20, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.family-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.family-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.family-title {
  display: block;
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.18;
}

.skeleton-card {
  min-height: 360px;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 52%, rgba(18, 109, 255, 0.08) 52% 53%, transparent 53%),
    linear-gradient(180deg, #fff, #eef3f6);
}

.product-media img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.product-silhouette {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 0.72;
  border: 7px solid var(--ink);
  border-top-width: 16px;
  border-radius: 36% 36% 18% 18%;
  color: var(--blue);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 0;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(215, 255, 0, 0.92) 44% 49%, transparent 49% 100%),
    #fff;
  box-shadow: inset 0 0 0 8px rgba(18, 109, 255, 0.12), 0 18px 45px rgba(5, 16, 20, 0.14);
  transform: skewX(-4deg);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  left: 12px;
  top: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.product-category {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 48px;
  margin: 8px 0 12px;
  font-size: 17px;
  line-height: 1.18;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 20px;
  font-weight: 950;
}

.add-button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  font-size: 12px;
}

.family-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 22px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.family-back:hover {
  border-color: var(--ink);
}

.family-detail-head {
  margin-bottom: 24px;
}

.family-detail-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(5, 16, 20, 0.06);
}

.product-row:hover {
  border-color: rgba(18, 109, 255, 0.32);
}

.product-row-media {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #eef3f6);
}

.product-row-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.product-row-media .product-silhouette {
  width: 78%;
  font-size: 14px;
}

.product-row-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.product-row-info .product-category {
  font-size: 11px;
}

.product-row-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-row-bottom .price {
  font-size: 16px;
  white-space: nowrap;
}

.fit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
}

.fit-copy,
.fit-panel {
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.fit-copy {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.fit-copy p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
}

.fit-copy h2,
.fit-copy .eyebrow {
  position: relative;
  z-index: 1;
}

.fit-panel {
  background: #fff;
  border: 1px solid var(--line);
}

.fit-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.fit-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(5, 16, 20, 0.55);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(420px, 100%);
  min-height: 100%;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.cart-head,
.cart-item,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 14px;
}

.checkout-button {
  width: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: #fff;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(var(--glow));
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 900;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 6px 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 8px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px 14px;
    background: rgba(3, 9, 12, 0.98);
    border-bottom: 1px solid rgba(215, 255, 0, 0.18);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .cart-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(3, 9, 12, 0.05), rgba(3, 9, 12, 0.94) 72%),
      linear-gradient(90deg, rgba(3, 9, 12, 0.5), transparent);
  }

  .hero-media {
    background-position: 68% 12%;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 68px);
  }

  .hero-copy,
  .race-metrics {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 20px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .secondary-action {
    min-height: 42px;
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .trust-strip,
  .section-heading,
  .fit-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-areas: "eyebrow" "heading" "desc";
  }

  .trust-strip {
    margin-top: -24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section-heading h2,
  .fit-copy h2 {
    font-size: clamp(26px, 8vw, 52px);
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3,
  .family-title {
    font-size: 14px;
    min-height: 48px;
  }

  .price {
    font-size: 17px;
  }

  .product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .product-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "media info"
      "actions actions";
  }

  .product-row-media {
    grid-area: media;
    width: 72px;
    height: 72px;
  }

  .product-row-info {
    grid-area: info;
  }

  .product-row-bottom {
    grid-area: actions;
    justify-content: space-between;
    margin-top: 4px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
