/* Maido Customs Stage 4K
   Homepage vehicle product sections replacing the old Shop by Vehicle/Categories block.
   Self-contained overlay. Does not touch tuned hero/header/mobile/search CSS. */

/* Make the POPULAR MODS heading larger and ensure it stays above its carousel. */
.maido-popular-mods .maido-popular-mods__head,
.maido-popular-mods__head {
  display: block !important;
  text-align: center !important;
  margin: 0 0 clamp(26px, 3.8vw, 52px) !important;
}

.maido-popular-mods .maido-popular-mods__head h2,
.maido-popular-mods__head h2,
#maido-popular-mods-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow", Oswald, sans-serif !important;
  font-size: clamp(58px, 8vw, 112px) !important;
  line-height: .9 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #070707 !important;
}

.maido-stage4k-old-categories-hidden {
  display: none !important;
}

.maido-stage4k-home-sections {
  background: #fff;
}

.maido-stage4k-product-section {
  padding: clamp(48px, 6vw, 92px) 0 clamp(44px, 5.5vw, 86px);
  background: #fff;
  overflow: hidden;
}

.maido-stage4k-product-section + .maido-stage4k-product-section {
  border-top: 1px solid #f0f0f0;
  padding-top: clamp(42px, 5.2vw, 78px);
}

.maido-stage4k-product-section__container {
  width: min(1540px, calc(100% - 44px));
  margin: 0 auto;
}

.maido-stage4k-product-section__head {
  text-align: center;
  margin: 0 0 clamp(26px, 3vw, 44px);
}

.maido-stage4k-product-section__head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow", Oswald, sans-serif;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: .92;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: uppercase;
  color: #080808;
}

.maido-stage4k-carousel {
  position: relative;
}

.maido-stage4k-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  grid-template-rows: 1fr;
  gap: clamp(16px, 1.55vw, 22px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 4px 20px;
}

.maido-stage4k-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1260px) {
  .maido-stage4k-track {
    grid-auto-columns: calc((100% - (7 * clamp(16px, 1.55vw, 22px))) / 8);
  }
}

.maido-stage4k-card {
  scroll-snap-align: start;
  min-width: 0;
}

.maido-stage4k-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f6f6f8;
  border: 1px solid #e9e9ee;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .045);
  isolation: isolate;
}

.maido-stage4k-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(8px, 1vw, 15px);
  transition: opacity .42s ease, transform .42s ease;
  will-change: opacity, transform;
}

.maido-stage4k-card__img--main {
  opacity: 1;
  z-index: 1;
}

.maido-stage4k-card__img--hover {
  opacity: 0;
  z-index: 2;
  transform: scale(1.015);
}

.maido-stage4k-card__image.has-hover-image:hover .maido-stage4k-card__img--main,
.maido-stage4k-card__image.has-hover-image:focus-visible .maido-stage4k-card__img--main {
  opacity: 0;
  transform: scale(1.025);
}

.maido-stage4k-card__image.has-hover-image:hover .maido-stage4k-card__img--hover,
.maido-stage4k-card__image.has-hover-image:focus-visible .maido-stage4k-card__img--hover {
  opacity: 1;
  transform: scale(1);
}

.maido-stage4k-card__image:not(.has-hover-image):hover .maido-stage4k-card__img--main,
.maido-stage4k-card__image:not(.has-hover-image):focus-visible .maido-stage4k-card__img--main {
  transform: scale(1.035);
}

.maido-stage4k-card__body {
  text-align: center;
  padding: 13px 4px 0;
}

.maido-stage4k-card__body h3 {
  margin: 0 auto 8px;
  max-width: 240px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, .88vw, 14px);
  line-height: 1.22;
  font-weight: 800;
  color: #171717;
}

.maido-stage4k-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.maido-stage4k-card__body h3 a:hover {
  text-decoration: underline;
}

.maido-stage4k-card__price {
  margin: 0;
  color: #007a68;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.maido-stage4k-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #111;
  box-shadow: 0 .125rem .625rem rgba(28, 28, 28, .16);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.maido-stage4k-arrow--prev {
  left: -18px;
}

.maido-stage4k-arrow--next {
  right: -18px;
}

.maido-stage4k-arrow[disabled] {
  opacity: .32;
  cursor: default;
}

@media (max-width: 1100px) {
  .maido-stage4k-product-section__container {
    width: min(100% - 30px, 900px);
  }

  .maido-stage4k-track {
    grid-auto-columns: minmax(190px, 34vw);
  }
}

@media (max-width: 760px) {
  .maido-popular-mods .maido-popular-mods__head h2,
  .maido-popular-mods__head h2,
  #maido-popular-mods-title {
    font-size: clamp(50px, 13vw, 72px) !important;
  }

  .maido-stage4k-product-section {
    padding: 38px 0 46px;
  }

  .maido-stage4k-product-section__head h2 {
    font-size: clamp(36px, 9vw, 54px);
  }

  .maido-stage4k-track {
    grid-auto-columns: 72vw;
    gap: 16px;
  }

  .maido-stage4k-arrow {
    display: none;
  }
}


/* Maido Stage 5F: bright green product prices and blue view-product buttons. */
html body .product-card .price,
html body .product-card__body .price,
html body .maido-popular-mods__price,
html body .maido-stage4k-card__price,
html body .maido-stage4l-card .maido-stage4k-card__price {
  color: #16d94f !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  font-weight: 950 !important;
}

html body .product-card__body,
html body .maido-popular-mods__body,
html body .maido-stage4k-card__body {
  text-align: center !important;
}

html body .product-card .btn,
html body .product-card .btn--small,
html body .product-card__body .btn,
html body .maido-stage4l-view-more,
html body .maido-stage4l-view-more--popular {
  background: #0969da !important;
  color: #fff !important;
  border-color: #0969da !important;
  box-shadow: none !important;
}

html body .product-card .btn:hover,
html body .product-card .btn--small:hover,
html body .product-card__body .btn:hover,
html body .maido-stage4l-view-more:hover,
html body .maido-stage4l-view-more--popular:hover {
  background: #0756b5 !important;
  border-color: #0756b5 !important;
  color: #fff !important;
}

/* Maido stock status label on home product cards */
.maido-stage4k-card__stock{display:inline-flex;align-items:center;border-radius:999px;background:#fff5e9;color:#7a4300;border:1px solid #f1d2aa;padding:6px 10px;font-size:12px;font-weight:800;margin:0 0 12px}
