/* One homepage shelf geometry, independent of direct/nested section placement.
   Keep the existing 18px track gap: the JS seamless marquee uses that gap. */
.home-view .product-section {
  container-type: inline-size;
  width: min(1440px, calc(100% - 80px)) !important;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding: 42px 0 30px !important;
  box-sizing: border-box;
}
.home-view .product-section .section-heading {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 26px !important;
  box-sizing: border-box;
}
.home-view .home-product-carousel {
  gap: 18px !important;
  align-items: stretch !important;
  padding: 2px 0 12px !important;
}
.home-view .home-product-carousel .product-card.premium-product-card {
  --home-card-width: min(320px, calc((100cqw - 54px) / 4));
  flex: 0 0 var(--home-card-width) !important;
  width: var(--home-card-width) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-media {
  height: 380px !important;
  min-height: 380px !important;
  aspect-ratio: auto !important;
  flex: 0 0 380px !important;
  margin: 12px 12px 0 !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-content {
  display: grid !important;
  grid-template-rows: 28px 18px 20px 18px 1px 44px 50px;
  gap: 10px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: 18px !important;
  overflow: visible !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-content > * {
  min-width: 0 !important;
  margin: 0 !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-title {
  font-size: 20px !important;
  line-height: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-subtitle {
  font-size: 13px !important;
  line-height: 18px !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-rating {
  height: 20px !important;
  padding: 0 !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-review {
  font-size: 11px !important;
  letter-spacing: 0 !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-divider {
  height: 1px !important;
  width: 100% !important;
  background: #e8e4e5 !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-price-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: 44px !important;
  white-space: nowrap !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-price {
  font-size: 30px !important;
  line-height: 44px !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-cart {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  align-self: stretch !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-badges {
  left: 12px !important;
  right: 12px !important;
  gap: 6px !important;
}
.home-view .home-product-carousel .product-card.premium-product-card .product-card-badges .product-badge {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
@media (max-width: 900px) {
  .home-view .product-section {
    width: calc(100% - 40px) !important;
    padding-block: 32px 24px !important;
  }
  .home-view .home-product-carousel .product-card.premium-product-card {
    --home-card-width: min(320px, calc((100cqw - 18px) / 2));
  }
}
@media (max-width: 560px) {
  .home-view .product-section {
    width: calc(100% - 28px) !important;
    padding-block: 28px 22px !important;
  }
  .home-view .home-product-carousel .product-card.premium-product-card {
    --home-card-width: min(320px, calc(100cqw - 24px));
  }
  .home-view .home-product-carousel .product-card.premium-product-card .product-card-media {
    height: 320px !important;
    min-height: 320px !important;
    flex-basis: 320px !important;
  }
  .home-view .home-product-carousel .product-card.premium-product-card .product-card-content {
    padding: 16px !important;
  }
  .home-view .home-product-carousel .product-card.premium-product-card .product-card-title {
    font-size: 18px !important;
  }
  .home-view .home-product-carousel .product-card.premium-product-card .product-card-price {
    font-size: 27px !important;
  }
}
