/* Maido Customs Stage 4L
   Homepage card/layout polish:
   - Product sections become 4 columns x 2 rows on desktop.
   - Cards are larger and include a View More link.
   - Popular Mods title/cards are enlarged.
   - Overlay only; does not touch tuned hero/header/mobile/search CSS. */

/* Bigger POPULAR MODS heading, restored above the carousel. */
html body .maido-popular-mods .maido-popular-mods__head,
html body .maido-popular-mods__head {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: center !important;
  margin: 0 0 clamp(28px, 3.4vw, 54px) !important;
  height: auto !important;
  overflow: visible !important;
}

html body .maido-popular-mods .maido-popular-mods__head h2,
html body .maido-popular-mods__head h2,
html body #maido-popular-mods-title {
  display: block !important;
  margin: 0 auto !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow", Oswald, sans-serif !important;
  font-size: clamp(62px, 7.4vw, 116px) !important;
  line-height: .88 !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase !important;
  color: #060606 !important;
}

html body .maido-popular-mods {
  padding-top: clamp(42px, 5.8vw, 86px) !important;
  padding-bottom: clamp(46px, 6vw, 90px) !important;
}

/* Make Popular Mods cards larger while keeping carousel behaviour. */
html body .maido-popular-mods__container {
  width: min(1660px, calc(100% - 52px)) !important;
}

html body .maido-popular-mods__track {
  grid-auto-columns: minmax(270px, 1fr) !important;
  gap: clamp(20px, 2vw, 30px) !important;
  padding-bottom: 28px !important;
}

@media (min-width: 1220px) {
  html body .maido-popular-mods__track {
    grid-auto-columns: calc((100% - (5 * clamp(20px, 2vw, 30px))) / 6) !important;
  }
}

html body .maido-popular-mods__image {
  border-radius: 22px !important;
}

html body .maido-popular-mods__body h3 {
  max-width: 310px !important;
  font-size: clamp(14px, .98vw, 17px) !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
}

/* Product sections: 4 products per line, 2 lines for 8 products. */
html body .maido-stage4l-product-section {
  padding: clamp(54px, 6vw, 96px) 0 clamp(58px, 6.2vw, 102px) !important;
}

html body .maido-stage4k-product-section__container {
  width: min(1520px, calc(100% - 56px)) !important;
}

html body .maido-stage4k-product-section__head {
  margin-bottom: clamp(34px, 4vw, 64px) !important;
}

html body .maido-stage4k-product-section__head h2 {
  font-size: clamp(48px, 5.7vw, 96px) !important;
  line-height: .88 !important;
  letter-spacing: -0.045em !important;
  font-weight: 800 !important;
}

html body .maido-stage4l-grid .maido-stage4k-track {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  gap: clamp(28px, 2.8vw, 42px) clamp(24px, 2.4vw, 36px) !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding: 0 !important;
}

html body .maido-stage4l-grid .maido-stage4k-arrow {
  display: none !important;
}

html body .maido-stage4l-card {
  scroll-snap-align: unset !important;
  min-width: 0 !important;
}

html body .maido-stage4l-card .maido-stage4k-card__image {
  border-radius: 24px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .055) !important;
}

html body .maido-stage4l-card .maido-stage4k-card__img {
  padding: clamp(12px, 1.25vw, 22px) !important;
}

html body .maido-stage4l-card .maido-stage4k-card__body {
  padding-top: 16px !important;
}

html body .maido-stage4l-card .maido-stage4k-card__body h3 {
  max-width: 340px !important;
  font-size: clamp(15px, 1.05vw, 18px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  margin-bottom: 9px !important;
}

html body .maido-stage4l-card .maido-stage4k-card__price,
html body .maido-popular-mods__price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #007a68 !important;
}

/* Shared View More button. */
html body .maido-stage4l-view-more {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  margin-top: 12px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: #050505 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

html body .maido-stage4l-view-more:hover,
html body .maido-stage4l-view-more:focus-visible {
  background: #0070c9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 20px rgba(0, 112, 201, .22) !important;
}

/* Keep old Stage 4J stray heading hiding behaviour. */
html body .maido-stage4j-hide-stray-popular,
html body .maido-stage4j-hide-stray-popular * {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 1180px) {
  html body .maido-stage4l-grid .maido-stage4k-track {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  html body .maido-stage4k-product-section__container,
  html body .maido-popular-mods__container {
    width: min(100% - 30px, 760px) !important;
  }

  html body .maido-stage4l-grid .maido-stage4k-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
  }

  html body .maido-stage4k-product-section__head h2 {
    font-size: clamp(38px, 8.8vw, 62px) !important;
  }

  html body .maido-popular-mods .maido-popular-mods__head h2,
  html body .maido-popular-mods__head h2,
  html body #maido-popular-mods-title {
    font-size: clamp(52px, 13vw, 82px) !important;
  }
}

@media (max-width: 520px) {
  html body .maido-stage4l-grid .maido-stage4k-track {
    grid-template-columns: 1fr !important;
  }

  html body .maido-stage4k-product-section__container,
  html body .maido-popular-mods__container {
    width: min(100% - 24px, 440px) !important;
  }

  html body .maido-stage4l-card .maido-stage4k-card__body h3,
  html body .maido-popular-mods__body h3 {
    font-size: 15px !important;
  }
}


/* 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;
}
