/* ==========================================================
   Explore Our Kits — compact + EQUAL SIZE cards + auto-scroll
   Purani HomeProducts.css poori delete karke ye paste karein
   ========================================================== */
.home-products{
  --hp-card-w:252px;      /* card width  */
  --hp-card-h:476px;      /* min height — cards isse chhote nahi honge */
  --hp-gap:22px;
  position:relative; padding:80px 0 90px; overflow:hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(215,255,0,.10), transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(255,79,129,.10), transparent 42%),
    linear-gradient(180deg,#fafafa 0%,#f3eefc 100%);
}

/* ---------- headings ---------- */
.home-products .hp-eyebrow{ color:#5A189A; font-weight:800; letter-spacing:3px; text-transform:uppercase;
  font-size:14px; display:flex; align-items:center; justify-content:center; gap:8px; margin:0; }
.home-products .hp-eyebrow::before,
.home-products .hp-eyebrow::after{ content:""; width:26px; height:3px; border-radius:3px;
  background:linear-gradient(90deg,#D7FF00,#ff4f81); }
.home-products .hp-title{ color:#222; font-weight:800; font-size:42px; text-align:center;
  margin:10px 0 6px; line-height:1.15; }
.home-products .hp-title span{ background:linear-gradient(90deg,#5A189A,#ff4f81);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.home-products .hp-sub{ color:#666; text-align:center; max-width:600px; margin:0 auto 34px;
  font-size:17px; padding:0 20px; line-height:1.5; }

/* ---------- scroller ---------- */
.hp-scroller-wrap{ position:relative; }
.hp-scroller{ display:flex; align-items:stretch; gap:var(--hp-gap);
  overflow-x:auto; overflow-y:hidden; scroll-behavior:auto; /* auto-scroll ke liye zaroori */
  padding:20px 5vw 34px; scrollbar-width:thin; }
.hp-scroller::-webkit-scrollbar{ height:8px; }
.hp-scroller::-webkit-scrollbar-thumb{ background:#c9b3f5; border-radius:10px; }
.hp-scroller::-webkit-scrollbar-track{ background:#f0e9ff; border-radius:10px; }

@media (prefers-reduced-motion: reduce){
  .hp-scroller{ scroll-behavior:smooth; scroll-snap-type:x mandatory; scroll-padding-left:5vw; }
  .hp-scroller .product-card{ scroll-snap-align:start; }
}

.hp-arrow{ position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:48px; height:48px; border-radius:50%; border:none; cursor:pointer;
  background:linear-gradient(135deg,#7b2ff7,#5A189A); color:#fff; font-size:22px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(90,24,154,.35); transition:transform .25s, box-shadow .25s; }
.hp-arrow:hover{ transform:translateY(-50%) scale(1.12); box-shadow:0 14px 30px rgba(90,24,154,.5); }
.hp-arrow.left{ left:10px; } .hp-arrow.right{ right:10px; }

/* ---------- CARD ---------- */
.home-products .hp-scroller .product-card{
  flex:0 0 var(--hp-card-w); width:var(--hp-card-w); min-height:var(--hp-card-h);
  position:relative; overflow:hidden; display:flex; flex-direction:column;
  border-radius:20px; background:linear-gradient(180deg,#fff 0%,#faf8ff 100%);
  border:1px solid rgba(124,58,237,.10);
  box-shadow:0 10px 24px rgba(91,34,199,.10),0 2px 6px rgba(0,0,0,.04);
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.home-products .hp-scroller .product-card::before{ content:""; position:absolute; inset:0 0 auto 0;
  height:5px; z-index:3; background:linear-gradient(90deg,#5A189A,#ff4f81); }
.home-products .hp-scroller .product-card:nth-child(6n+2)::before{background:linear-gradient(90deg,#00b4d8,#5A189A);}
.home-products .hp-scroller .product-card:nth-child(6n+3)::before{background:linear-gradient(90deg,#ff8500,#ff4f81);}
.home-products .hp-scroller .product-card:nth-child(6n+4)::before{background:linear-gradient(90deg,#38b000,#D7FF00);}
.home-products .hp-scroller .product-card:nth-child(6n+5)::before{background:linear-gradient(90deg,#7209b7,#4cc9f0);}
.home-products .hp-scroller .product-card:nth-child(6n)::before{background:linear-gradient(90deg,#f72585,#ffba08);}
.home-products .hp-scroller .product-card:hover{ transform:translateY(-8px);
  box-shadow:0 24px 48px rgba(91,34,199,.22); }

/* image */
.home-products .hp-scroller .product-image{ flex:0 0 148px; height:148px; width:100%;
  display:block; background:#fff; overflow:hidden; }
.home-products .hp-scroller .product-image img{ width:100%; height:100%; object-fit:contain;
  padding:8px; box-sizing:border-box; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.home-products .hp-scroller .product-card:hover .product-image img{ transform:scale(1.07); }

/* badges + wishlist */
.home-products .hp-scroller .badge,
.home-products .hp-scroller .new-badge,
.home-products .hp-scroller .best-badge{ position:absolute; top:14px; left:14px; z-index:4;
  padding:5px 11px; font-size:11px; font-weight:800; color:#fff; border-radius:999px;
  background:linear-gradient(135deg,#ff4d8d,#ff2d6f); box-shadow:0 8px 18px rgba(255,45,111,.35); }
.home-products .hp-scroller .new-badge{ background:linear-gradient(135deg,#38b000,#2d9200); top:44px; }
.home-products .hp-scroller .best-badge{ background:linear-gradient(135deg,#ff8500,#ff6d00); top:44px; }
.home-products .hp-scroller .wishlist-btn{ position:absolute; top:12px; right:12px; z-index:4;
  width:32px; height:32px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,.92); color:#ff2d6f; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.14); transition:transform .25s; }
.home-products .hp-scroller .wishlist-btn:hover{ transform:scale(1.15) rotate(-8deg); }

/* category */
.home-products .hp-scroller .product-category{ margin:12px 14px 4px; padding:4px 11px;
  font-size:10px; font-weight:800; letter-spacing:1px; border-radius:999px; align-self:flex-start;
  text-transform:uppercase; color:#7c3aed;
  background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(236,72,153,.12)); }

/* title — 2 lines */
.home-products .hp-scroller .product-card h3{ margin:2px 14px 4px; min-height:40px; }
.home-products .hp-scroller .product-card h3 a{ font-size:15.5px; font-weight:800; color:#1e1233;
  line-height:1.28; text-decoration:none; display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden; }
.home-products .hp-scroller .product-card h3 a:hover{ color:#7c3aed; }

/* description — 2 lines, Read more hidden */
.home-products .hp-scroller .product-desc-wrap{ margin:0 14px 8px; height:34px; overflow:hidden; }
.home-products .hp-scroller .product-description{ margin:0; font-size:12.3px; line-height:1.42;
  color:#6b6580; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-products .hp-scroller .read-more-btn{ display:none !important; }

/* colour swatches */
.home-products .hp-scroller .variant-box{ margin:0 14px 8px; height:46px; overflow:hidden; }
.home-products .hp-scroller .variant-label{ font-size:11px; color:#6b6580; display:block; }
.home-products .hp-scroller .variant-label b{ color:#1e1233; }
.home-products .hp-scroller .variant-swatches{ display:flex; flex-wrap:nowrap; gap:6px;
  margin-top:4px; overflow-x:auto; scrollbar-width:none; }
.home-products .hp-scroller .variant-swatches::-webkit-scrollbar{ display:none; }
.home-products .hp-scroller .swatch{ flex:0 0 26px; width:26px; height:26px; padding:0;
  border-radius:7px; cursor:pointer; border:2px solid #e6dcf5; background:#fff; overflow:hidden;
  display:flex; align-items:center; justify-content:center; }
.home-products .hp-scroller .swatch img{ width:100%; height:100%; object-fit:cover; }
.home-products .hp-scroller .swatch .swatch-color{ width:100%; height:100%; display:block; }
.home-products .hp-scroller .swatch.active{ border-color:#7c3aed; box-shadow:0 0 0 2px rgba(124,58,237,.18); }
.home-products .hp-scroller .swatch.disabled{ opacity:.4; }

/* rating + price */
.home-products .hp-scroller .rating{ margin:0 14px 6px; display:flex; align-items:center; gap:5px;
  font-size:12.5px; color:#1e1233; }
.home-products .hp-scroller .rating .star{ color:#f5b301; }
.home-products .hp-scroller .rating small{ color:#9b93b0; font-size:11px; }
.home-products .hp-scroller .price-box{ margin:0 14px 12px; display:flex; align-items:baseline; gap:8px; }
.home-products .hp-scroller .price-box h4{ font-size:21px; font-weight:900; margin:0;
  background:linear-gradient(135deg,#7c3aed,#ec4899);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.home-products .hp-scroller .price-box del{ color:#b8b3c9; font-size:13px; }

/* ===== BUTTONS — full width, ek ke neeche ek (text kabhi nahi katega) ===== */
.home-products .hp-scroller .product-buttons{
  margin:auto 14px 14px;            /* margin-top:auto => card ke bottom me pinned */
  display:flex; flex-direction:column; gap:9px; }
.home-products .hp-scroller .buy-btn,
.home-products .hp-scroller .cart-btn{
  width:100%; border:none; cursor:pointer; border-radius:12px; padding:11px 10px;
  font-weight:800; font-size:13.5px; font-family:inherit; letter-spacing:.2px;
  display:flex; align-items:center; justify-content:center; gap:7px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition:transform .15s, box-shadow .15s; }
.home-products .hp-scroller .buy-btn{ color:#1e1233;
  background:linear-gradient(135deg,#d9f836,#b6f000);
  box-shadow:0 5px 0 #8fb800,0 9px 16px rgba(150,220,0,.30); }
.home-products .hp-scroller .buy-btn:hover:not(:disabled){ transform:translateY(2px);
  box-shadow:0 3px 0 #8fb800,0 6px 12px rgba(150,220,0,.30); }
.home-products .hp-scroller .cart-btn{ color:#fff;
  background:linear-gradient(135deg,#7c3aed,#5b22c7);
  box-shadow:0 5px 0 #46199c,0 9px 16px rgba(91,34,199,.30); }
.home-products .hp-scroller .cart-btn:hover:not(:disabled){ transform:translateY(2px);
  box-shadow:0 3px 0 #46199c,0 6px 12px rgba(91,34,199,.30); }
.home-products .hp-scroller .cart-btn svg{ flex:0 0 auto; font-size:13px; }
.home-products .hp-scroller .buy-btn:disabled,
.home-products .hp-scroller .cart-btn:disabled{ opacity:.55; cursor:not-allowed;
  box-shadow:none; transform:none; filter:grayscale(.4); }

/* ---------- CTA ---------- */
.hp-cta-wrap{ text-align:center; margin-top:14px; }
.hp-cta{ display:inline-block; background:linear-gradient(135deg,#7b2ff7,#5A189A); color:#fff;
  font-weight:800; padding:14px 36px; border-radius:50px; text-decoration:none; font-size:16px;
  box-shadow:0 12px 28px rgba(90,24,154,.3); transition:transform .25s, box-shadow .25s; }
.hp-cta:hover{ transform:translateY(-3px); box-shadow:0 18px 40px rgba(90,24,154,.45); }

/* ---------- responsive ---------- */
@media (max-width:1400px){ .home-products{ --hp-card-w:244px; } }
@media (max-width:1024px){
  .home-products{ --hp-card-w:234px; --hp-gap:18px; }
  .home-products .hp-title{ font-size:34px; }
  .hp-scroller{ padding:18px 4vw 30px; }
}
@media (max-width:600px){
  .home-products{ --hp-card-w:74vw; --hp-card-h:468px; --hp-gap:14px; padding:60px 0 70px; }
  .home-products .hp-title{ font-size:28px; }
  .home-products .hp-sub{ font-size:15px; margin-bottom:24px; }
  .hp-scroller{ padding:16px 6vw 26px; }
  .hp-arrow{ width:40px; height:40px; font-size:19px; }
  .hp-arrow.left{ left:4px; } .hp-arrow.right{ right:4px; }
}