/**
 * v22 — Shop by Category split + testimonials ticker + product row grid (reference)
 */

/* ===== SHOP BY CATEGORY + TESTIMONIALS SPLIT ===== */
.shop-cat-split-section {
  padding: 20px 0 24px;
  background: #fff;
}
.shop-cat-split-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}
.shop-cat-split-left .shop-by-category-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  color: #1a1218;
}
.shop-cat-split-left .shop-by-category-title span {
  color: #e91e63;
}
.category-grid-shop-split {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-grid-shop-split::-webkit-scrollbar {
  display: none;
}
.cat-shop-card-split {
  position: relative;
  flex: 0 0 42%;
  max-width: 160px;
  aspect-ratio: 1;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  box-shadow: 0 8px 22px rgba(26, 18, 24, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-shop-card-split:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.22);
}
.cat-shop-card-split .cat-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1a1218;
  border-radius: 4px;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.cat-shop-card-split .cat-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-shop-card-split .cat-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24 L24 0 L48 24 L24 48 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.85;
  z-index: 1;
}
.cat-shop-card-split .cat-img-product {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 62%;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}
.cat-shop-card-split .cat-emoji {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  z-index: 2;
}

/* Testimonials column */
.shop-cat-split-right {
  margin-top: 20px;
}
.testimonials-split-head {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  color: #1a1218;
  letter-spacing: 0.02em;
}
.testimonials-vertical-viewport {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff9fc 0%, #fff5f8 100%);
  border: 1px solid rgba(233, 30, 99, 0.1);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.testimonials-vertical-viewport::before,
.testimonials-vertical-viewport::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}
.testimonials-vertical-viewport::before {
  top: 0;
  background: linear-gradient(180deg, #fff9fc, transparent);
}
.testimonials-vertical-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff5f8, transparent);
}
.testimonials-vertical-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 14px;
  animation: testimonialScrollUp 28s linear infinite;
}
.testimonials-vertical-track:hover {
  animation-play-state: paused;
}
@keyframes testimonialScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
.testimonial-card-split {
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(26, 18, 24, 0.08);
  border: 1px solid #f5e8ed;
}
.testimonial-card-split .stars {
  color: #ffb300;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.testimonial-card-split p {
  font-size: 13px;
  line-height: 1.55;
  color: #5c4a52;
  margin: 0 0 10px;
  font-style: italic;
}
.testimonial-card-split strong {
  font-size: 12px;
  color: #1a1218;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .shop-cat-split-section {
    padding: 28px 0 32px;
  }
  .shop-cat-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
    padding: 0 20px;
  }
  .shop-cat-split-left .shop-by-category-title {
    text-align: left;
    font-size: 18px;
    margin-bottom: 16px;
  }
  .category-grid-shop-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: visible;
    padding: 0;
  }
  .cat-shop-card-split {
    flex: unset;
    max-width: none;
    width: 100%;
    min-height: 0;
  }
  .shop-cat-split-right {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .testimonials-split-head {
    text-align: left;
    font-size: 17px;
    margin-bottom: 14px;
  }
  .testimonials-vertical-viewport {
    flex: 1;
    height: auto;
    min-height: 320px;
    max-height: 420px;
  }
}

/* ===== PRODUCT SHOWCASE ROWS (Trending / New / Best) ===== */
.home-products-showcase {
  margin-bottom: 6px !important;
}
.home-products-showcase .home-section-head,
.home-products-showcase .trending-header {
  margin-bottom: 10px !important;
}
.home-products-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 12px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-products-grid::-webkit-scrollbar {
  display: none;
}
.home-products-grid .product-card-premium {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .home-products-showcase.home-section-block {
    padding: 18px 16px 20px !important;
    margin-bottom: 16px !important;
  }
  .home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    overflow: visible;
    padding: 0 4px 4px;
  }
  .home-products-grid .product-card-premium {
    flex: unset;
    max-width: none;
    width: 100%;
  }
}

/* Product card — reference polish */
.product-card-ref .ribbon {
  width: 56px;
  height: 56px;
}
.product-card-ref .ribbon span {
  font-size: 7px;
  top: 12px;
  left: -30px;
  width: 110px;
  padding: 3px 0;
}
.product-card-ref .badge-buy3 {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff0f3;
  color: #c2185b;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #f8bbd0;
}
.product-card-ref .wish-mini {
  top: auto;
  bottom: 108px;
  right: 8px;
}
.product-card-ref .shades {
  background: #fff0f5;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
}
.product-card-ref .tagline-bar {
  background: linear-gradient(90deg, #fff9c4, #fffde7);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
}
.product-card-ref .rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
}
.product-card-ref .rating-row .verified {
  color: #2e7d32;
  font-weight: 600;
  font-size: 10px;
}
.product-card-ref .price-row {
  font-size: 18px;
  font-weight: 800;
  color: #1a1218;
}
.product-card-ref .coupon-pill {
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.product-card-ref .btn-add {
  padding: 12px;
  font-size: 12px;
  border-radius: 10px;
  letter-spacing: 0.06em;
}
