/**
 * v23 — Force reference layout: 4-col products, image-only category chips, pill badges
 */

/* ========== SHOP BY CATEGORY — full image, small cards ========== */
.shop-cat-split-section {
  padding: 16px 0 20px !important;
  background: #fff !important;
}
.shop-cat-split-left .shop-by-category-title {
  font-size: 14px !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 12px !important;
}
.category-grid-shop-split {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 0 2px 8px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.category-grid-shop-split::-webkit-scrollbar {
  display: none;
}
.cat-shop-card-split {
  flex: 0 0 78px !important;
  width: 78px !important;
  max-width: 78px !important;
  aspect-ratio: 1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  box-shadow: 0 4px 14px rgba(26, 18, 24, 0.12) !important;
  background: #f5f5f5 !important;
}
.cat-shop-card-split .cat-label {
  top: 5px !important;
  padding: 2px 6px !important;
  font-size: 7px !important;
  letter-spacing: 0.08em !important;
  border-radius: 3px !important;
  z-index: 4 !important;
}
/* Full-bleed category photo — no gradient bg */
.cat-shop-card-split.cat-card-photo {
  background: transparent !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
}
.cat-shop-card-split.cat-card-photo .cat-overlay {
  display: none !important;
}
.cat-shop-card-split .cat-photo-full {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 1 !important;
  display: block !important;
}
.cat-shop-card-split:not(.cat-card-photo) .cat-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-shop-card-split:not(.cat-card-photo) .cat-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.cat-shop-card-split:not(.cat-card-photo) .cat-emoji {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  z-index: 2;
}
.cat-shop-card-split:not(.cat-card-photo) .cat-img-product {
  display: none;
}

@media (min-width: 1024px) {
  .shop-cat-split-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }
  .category-grid-shop-split {
    display: grid !important;
    grid-template-columns: repeat(2, 78px) !important;
    gap: 10px !important;
    overflow: visible !important;
    justify-content: start !important;
  }
  .cat-shop-card-split {
    flex: unset !important;
    width: 78px !important;
    max-width: 78px !important;
  }
}

/* ========== PRODUCT ROWS — 4 desktop / app scroll mobile ========== */
.page-home .home-products-showcase {
  margin-bottom: 8px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page-home .home-products-showcase .home-section-head,
.page-home .home-products-showcase .trending-header {
  padding: 0 12px !important;
  margin-bottom: 10px !important;
}
.page-home .home-products-showcase .trending-pill,
.page-home .home-products-showcase .home-section-badge {
  font-size: 9px !important;
  padding: 3px 8px !important;
}
.page-home .home-products-showcase .section-title {
  font-size: 17px !important;
  font-weight: 800 !important;
}

.page-home .home-products-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 12px 12px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-home .home-products-grid::-webkit-scrollbar {
  display: none;
}
.page-home .home-products-grid > .product-card-premium {
  flex: 0 0 42% !important;
  width: 42% !important;
  min-width: 140px !important;
  max-width: 168px !important;
  scroll-snap-align: start !important;
}

@media (min-width: 1024px) {
  .page-home .home-products-showcase.home-section-block {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 16px 18px 18px !important;
  }
  .page-home .home-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 2px 4px !important;
  }
  .page-home .home-products-grid > .product-card-premium {
    flex: unset !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* ========== Product card — Swiss Beauty style ========== */
.page-home .product-card-ref,
.product-grid .product-card-ref {
  background: #fff !important;
  border: 1px solid #f0e8ec !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(26, 18, 24, 0.06) !important;
  overflow: hidden !important;
}
.page-home .product-card-ref .ribbon,
.product-grid .product-card-ref .ribbon {
  display: none !important;
}
.page-home .product-card-ref .badge-pill,
.product-grid .product-card-ref .badge-pill {
  position: absolute;
  top: 6px;
  z-index: 4;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.page-home .product-card-ref .badge-pill.badge-bestseller,
.product-grid .product-card-ref .badge-pill.badge-bestseller {
  left: 6px;
  background: #2196f3;
  color: #fff;
}
.page-home .product-card-ref .badge-pill.badge-new-tag,
.product-grid .product-card-ref .badge-pill.badge-new-tag {
  left: 6px;
  background: #43a047;
  color: #fff;
}
.page-home .product-card-ref .badge-pill.badge-buy3,
.product-grid .product-card-ref .badge-pill.badge-buy3 {
  right: 6px;
  left: auto;
  background: #fff0f3;
  color: #c2185b;
  border: 1px solid #f8bbd0;
}
.page-home .product-card-ref .img-wrap,
.product-grid .product-card-ref .img-wrap {
  aspect-ratio: 1 !important;
  background: #fff !important;
  padding: 8px 8px 4px !important;
  position: relative !important;
}
.page-home .product-card-ref .img-wrap::before,
.product-grid .product-card-ref .img-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 72%;
  height: 45%;
  background: #fce4ec;
  border-radius: 4px;
  z-index: 0;
}
.page-home .product-card-ref .img-wrap img,
.product-grid .product-card-ref .img-wrap img {
  position: relative;
  z-index: 1;
  object-fit: contain !important;
}
.page-home .product-card-ref .wish-mini {
  display: none !important;
}
.page-home .product-card-ref .shades,
.product-grid .product-card-ref .shades {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  background: #fff0f5;
  color: #c2185b;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.page-home .product-card-ref .tagline-bar,
.product-grid .product-card-ref .tagline-bar {
  background: linear-gradient(90deg, #fff59d 0%, #fffde7 55%, transparent 100%) !important;
  text-align: center;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 5px 6px !important;
  color: #1a1218 !important;
  border-top: 1px solid #fff9c4;
}
.page-home .product-card-ref .body,
.product-grid .product-card-ref .body {
  padding: 8px 8px 10px !important;
}
.page-home .product-card-ref .name,
.product-grid .product-card-ref .name {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  min-height: 28px !important;
  margin-bottom: 4px !important;
  -webkit-line-clamp: 2;
}
.page-home .product-card-ref .name a,
.product-grid .product-card-ref .name a {
  color: #1a1218 !important;
}
.page-home .product-card-ref .rating-row,
.product-grid .product-card-ref .rating-row {
  justify-content: center !important;
  font-size: 10px !important;
  margin-bottom: 4px !important;
  gap: 6px !important;
}
.page-home .product-card-ref .rating-row .star,
.product-grid .product-card-ref .rating-row .star {
  color: #e91e63 !important;
}
.page-home .product-card-ref .rating-row .verified,
.product-grid .product-card-ref .rating-row .verified {
  color: #2e7d32 !important;
  font-size: 9px !important;
}
.page-home .product-card-ref .price-row,
.product-grid .product-card-ref .price-row {
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}
.page-home .product-card-ref .coupon-pill,
.product-grid .product-card-ref .coupon-pill {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  margin-bottom: 6px !important;
  box-sizing: border-box;
}
.page-home .product-card-ref .coupon-pill::before,
.product-grid .product-card-ref .coupon-pill::before {
  content: '🏷';
  font-size: 10px;
}
.page-home .product-card-ref .btn-add,
.product-grid .product-card-ref .btn-add {
  width: 100% !important;
  padding: 10px 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #e91e63, #ff4081) !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

@media (max-width: 1023px) {
  .page-home .home-products-grid > .product-card-premium {
    flex: 0 0 38% !important;
    width: 38% !important;
    min-width: 128px !important;
    max-width: 152px !important;
  }
  .page-home .product-card-ref .name {
    font-size: 10px !important;
  }
  .page-home .product-card-ref .price-row {
    font-size: 14px !important;
  }
  .page-home .product-card-ref .btn-add {
    padding: 8px 4px !important;
    font-size: 9px !important;
  }
}
