:root {
  --black: #050505;
  --ink: #111111;
  --muted: #666666;
  --white: #ffffff;
  --smoke: #f3f3f0;
  --red: #e20d19;
  --red-dark: #9f0710;
  --yellow: #ffd400;
  --carbon: #171717;
  --line: rgba(255, 255, 255, 0.24);
  --header-height: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--smoke);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 44px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  font-weight: 900;
}

.brand strong {
  color: var(--red);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--red);
}

.nav-toggle {
  display: none;
  justify-self: end;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 44px));
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 38px) clamp(22px, 4vw, 68px) 48px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.08) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58)),
    url("../img/hero-moto.jpeg") center 58% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 16s var(--ease) infinite alternate;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(120deg, transparent 0 22%, rgba(255, 255, 255, 0.18) 23%, transparent 24% 48%, rgba(255, 255, 255, 0.1) 49%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}

.speed-line {
  position: absolute;
  z-index: -1;
  left: -12%;
  width: 44%;
  height: 5px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(226, 13, 25, 0.45);
  transform: skewX(-28deg);
  animation: speed 4.8s var(--ease) infinite;
}

.speed-line-one {
  top: 24%;
}

.speed-line-two {
  bottom: 20%;
  animation-delay: 1.1s;
  background: var(--yellow);
}

.hero-content {
  width: min(930px, 100%);
}

.rating,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stars {
  color: var(--yellow);
  letter-spacing: 2px;
}

.eyebrow {
  color: var(--red);
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2,
.feature-copy h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 0.94;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.35rem, 7.6vw, 7.6rem);
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
  border: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.btn-dark {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(226, 13, 25, 0.32);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.skew-btn {
  transform: skewX(-10deg);
}

.skew-btn > * {
  transform: skewX(10deg);
}

.skew-btn:hover,
.skew-btn:focus-visible {
  transform: skewX(-10deg) translateY(-4px);
}

.hero-panel {
  position: absolute;
  right: clamp(22px, 4vw, 68px);
  bottom: 48px;
  width: min(320px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(16px);
}

.panel-kicker {
  display: block;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: bounce 1.7s ease-in-out infinite;
}

.scroll-cue svg {
  width: 19px;
  height: 19px;
}

.strip {
  overflow: hidden;
  background: var(--red);
  color: var(--white);
}

.strip-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 18px 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1rem, 2vw, 1.55rem);
  text-transform: uppercase;
  animation: marquee 24s linear infinite;
}

.strip-track span {
  position: relative;
}

.strip-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  transform: translateY(-50%) rotate(45deg);
}

.catalog {
  padding: clamp(70px, 8vw, 118px) clamp(22px, 4vw, 68px);
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.4fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin: 0;
}

.section-heading h2,
.feature-copy h2 {
  font-size: clamp(2.4rem, 5.4vw, 5.5rem);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88)),
    linear-gradient(135deg, #191919, #050505);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(120deg, transparent 42%, rgba(226, 13, 25, 0.82) 43% 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 14px);
  transform: translateX(-22%) skewX(-18deg);
  transition: transform 0.55s var(--ease);
  opacity: 0.55;
}

.category-card:hover::before {
  transform: translateX(4%) skewX(-18deg);
}

.category-card:nth-child(2)::before {
  background:
    linear-gradient(120deg, transparent 42%, rgba(255, 212, 0, 0.68) 43% 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 14px);
}

.category-card:nth-child(3)::before {
  background:
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.34) 43% 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 14px);
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.18);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 4.4rem;
  line-height: 1;
}

.category-card h3,
.part-card strong {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.5;
}

.category-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.category-card a svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.category-card a:hover svg,
.category-card a:focus-visible svg {
  transform: translate(4px, -4px);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(70px, 8vw, 118px) clamp(22px, 4vw, 68px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 78% 28%, rgba(226, 13, 25, 0.5), transparent 28%),
    var(--black);
}

.feature-copy .eyebrow {
  margin-bottom: 16px;
}

.feature-copy p:last-child {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.65;
}

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

.part-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.part-card:hover,
.part-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(226, 13, 25, 0.7);
  background: rgba(226, 13, 25, 0.16);
}

.part-card span {
  width: fit-content;
  padding: 8px 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.part-card strong {
  font-size: clamp(1.55rem, 3vw, 2.65rem);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.hero .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.hero .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.11) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes speed {
  0% {
    transform: translateX(-20%) skewX(-28deg);
    opacity: 0;
  }

  16%,
  72% {
    opacity: 1;
  }

  100% {
    transform: translateX(300%) skewX(-28deg);
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -8px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-grid;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 16px;
  }

  .main-nav a::after {
    bottom: 8px;
  }

  .header-actions {
    justify-self: end;
    order: 2;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.9) 68%),
      url("../img/hero-moto.jpeg") 54% 66% / cover no-repeat;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .section-heading,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand {
    font-size: 1.55rem;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 34px) 18px 34px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.72rem, 12.5vw, 3.4rem);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
  }

  .hero-panel {
    display: none;
  }

  .catalog,
  .feature-band {
    padding: 62px 18px;
  }

  .section-heading h2,
  .feature-copy h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .category-card {
    min-height: 330px;
    padding: 22px;
  }

  .parts-grid {
    grid-template-columns: 1fr;
  }

  .part-card {
    min-height: 150px;
  }
}

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

/* =========================================================================
   TIENDA, PIE Y BUSCADOR
   ====================================================================== */

/* La rejilla de categorías admite ahora 4 tarjetas. */
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --- Carrito en la cabecera --- */
.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.cart-count.is-empty {
  display: none;
}

/* --- Panel de búsqueda --- */
.search-panel {
  position: fixed;
  z-index: 49;
  top: var(--header-height);
  left: 0;
  width: 100%;
  padding: 18px clamp(14px, 4vw, 44px);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.search-panel[hidden] {
  display: none;
}

.search-panel form {
  display: flex;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.search-panel input[type="search"] {
  flex: 1;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.search-panel input[type="search"]:focus {
  outline: none;
  border-color: var(--red);
}

/* --- Cabecera de tienda / categoría --- */
.shop-banner {
  position: relative;
  padding: calc(var(--header-height) + 70px) clamp(22px, 4vw, 68px) 62px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.86)),
    linear-gradient(135deg, #191919, #050505);
}

.shop-banner::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(120deg, transparent 42%, rgba(226, 13, 25, 0.82) 43% 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 14px);
  transform: translateX(-16%) skewX(-18deg);
  opacity: 0.5;
}

.shop-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.shop-banner h1 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.shop-banner-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
}

/* --- Contenido de la tienda --- */
.shop-main {
  padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 68px);
  background: var(--white);
}

/* Carrito, checkout, cuenta y ficha no llevan banner: hay que separarlos
   de la cabecera fija a mano. */
.woocommerce-cart .shop-main,
.woocommerce-checkout .shop-main,
.woocommerce-account .shop-main,
.single-product .shop-main {
  padding-top: calc(var(--header-height) + 56px);
}

.shop-main .woocommerce-result-count,
.shop-main .woocommerce-ordering {
  margin-bottom: 26px;
  font-weight: 700;
}

.shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-main ul.products::before,
.shop-main ul.products::after {
  content: none !important;
}

.shop-main ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--smoke);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.shop-main ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  background: var(--white);
}

.shop-main ul.products li.product img {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
}

.shop-main ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  padding: 0 !important;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.15rem !important;
  line-height: 1.1;
  text-transform: uppercase;
}

.shop-main ul.products li.product .price {
  display: block;
  margin-bottom: 14px;
  color: var(--ink) !important;
  font-size: 1.05rem;
  font-weight: 900;
}

.shop-main .onsale {
  border-radius: 0 !important;
  background: var(--yellow) !important;
  color: var(--black) !important;
  font-weight: 950;
  text-transform: uppercase;
}

/* Botones de WooCommerce con el lenguaje de la marca. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--red) !important;
  color: var(--white) !important;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 48px;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px);
}

/* Ficha de producto. */
.single-product .product_title {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.single-product .summary .price {
  color: var(--red) !important;
  font-size: 1.6rem !important;
  font-weight: 900;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--red) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--red) !important;
}

/* --- Pie --- */
.site-footer {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 68px) 28px;
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 62px);
}

.footer-brand .brand {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--white);
}

.footer-brand p {
  max-width: 380px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-social a:hover {
  border-color: var(--red);
  background: var(--red);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(38px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-tag {
  color: var(--red);
}

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

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

  .search-panel form {
    flex-direction: column;
  }

  .shop-main ul.products {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}
