/* ============================================================
   SCIENCE-O-MANIA — LIVE BUG FIXES  (final, tested)
   Import this LAST, after all other stylesheets.
   ============================================================ */

/* ---- FIX 1: confetti canvas page content ke upar aa raha tha ---- */
/* NOTE: iske baad confetti/rocket har opaque section ke peeche chala
   jayega yaani practically invisible. Agar confetti visible chahiye
   toh in 4 lines ko comment kar do. */
#root {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FIX 2 — HOMEPAGE "Explore Our Kits" carousel
   (.hp-* classes ki CSS build me hi nahi thi)
   ============================================================ */
.home-products {
  padding: 74px 5% 92px;
  background: #faf7ff;
}

.home-products .hp-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7b2cbf;
}

.home-products .hp-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: #2b0a4a;
}

.home-products .hp-title span {
  color: #7b2cbf;
}

.home-products .hp-sub {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: #6b5b7e;
}

/* Arrows ke liye side gutter — isse arrow card ke upar nahi chadhta */
.home-products .hp-scroller-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 46px;
}

/* Horizontal scroller — display:flex missing tha, yahi asli problem thi.
   scroll-snap jaan bujh kar nahi lagaya: auto-scroll marquee ko todta hai. */
.home-products .hp-scroller {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-products .hp-scroller::-webkit-scrollbar {
  display: none;
}

/* height:572px FIXED nahi — warna variant wale cards ke
   price aur Add to Cart buttons kat jaate hain.
   min-height + align-items:stretch se sab cards barabar rehte hain. */
.home-products .hp-scroller > .product-card {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  min-width: 0;
  height: auto;
  min-height: 572px;
}

.home-products .hp-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #5b22c7;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(43, 10, 74, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-products .hp-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 14px 32px rgba(90, 24, 154, 0.34);
}

.home-products .hp-arrow.left  { left: 0; }
.home-products .hp-arrow.right { right: 0; }

.home-products .hp-cta-wrap {
  margin-top: 30px;
  text-align: center;
}

.home-products .hp-cta {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7b2cbf, #5a189a);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(90, 24, 154, 0.38);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.home-products .hp-cta:hover {
  background: #d7ff00;
  color: #111;
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .home-products { padding: 54px 18px 66px; }
  .home-products .hp-sub { margin-bottom: 26px; }
  .home-products .hp-scroller-wrap { padding: 0; }
  .home-products .hp-scroller { gap: 16px; }
  .home-products .hp-arrow { display: none; }   /* mobile pe swipe hota hai */
}

/* ============================================================
   FIX 3 — SERVICES cards ka image/text overlap
   Sirf card ke ANDAR ka split todo. .service-grid ko mat chhedo,
   warna 900–1180px pe ek-ek giant card aata hai aur section
   2300px se 7600px lamba ho jata hai.
   ============================================================ */
@media (max-width: 1180px) {
  .services .service-card {
    grid-template-columns: 1fr !important;
  }
  .services .svc-media {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  /* translateZ overlap ka culprit — chhoti screens pe band */
  .services .service-card,
  .services .svc-body,
  .services .svc-media,
  .services .service-card:hover {
    transform: none !important;
    transform-style: flat !important;
  }
  .services .service-card:hover {
    box-shadow: 0 22px 44px rgba(43, 10, 74, 0.22) !important;
  }
}

/* Safety net — text kabhi image ke upar na jaye */
.services .svc-body,
.services .svc-media {
  position: relative;
  min-width: 0;
}

.services .svc-body h3,
.services .svc-body p {
  overflow-wrap: anywhere;
}

/* ============================================================
   FIX 4 — PRODUCT DETAIL page ka ~400px khaali white gap
   .gallery-main = 869x869 (aspect-ratio 1/1) par .gallery-image
   lightbox wale rule se max-height:80vh (=462px) pe capped tha.
   ============================================================ */
.product-details .product-gallery .gallery-main .gallery-image,
.product-details .gallery-main .gallery-image {
  max-height: none !important;
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* .product-left / .product-price / .product-rating / .product-features
   ki CSS build me thi hi nahi */
.product-left {
  min-width: 0;
}

.product-right .product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
}

.product-right .product-rating span {
  font-size: 18px;
  font-weight: 700;
  color: #2f115c;
}

.product-right .product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
}

.product-right .product-price h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: #5b22c7;
}

.product-right .product-price del {
  font-size: 20px;
  color: #999;
}

.product-right .product-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-right .product-features li {
  font-size: 15px;
  line-height: 1.5;
  color: #3c2b57;
}

@media (max-width: 600px) {
  .product-right .product-price { gap: 10px; margin-bottom: 18px; }
  .product-right .product-price del { font-size: 17px; }
}

/* ============================================================
   FIX 5 — BLOG page (.blog-page ki CSS missing thi)
   ============================================================ */
.blog-page {
  padding: 0 5% 96px;
}

.blog-page .products-grid {
  max-width: 1320px;
  margin: 0 auto;
}

.blog-page .blog-content h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .blog-page { padding: 0 16px 64px; }
}

/* ============================================================
   FIX 6 — INSTAGRAM section (.som-insta-* ki CSS missing thi)
   ============================================================ */
.som-insta-section {
  padding: 72px 5%;
  text-align: center;
  background: #faf7ff;
}

.som-insta-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7b2cbf;
}

.som-insta-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  color: #2b0a4a;
}

.som-insta-title span {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.som-insta-sub {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: #6b5b7e;
}

.som-insta-handle-wrap {
  margin-bottom: 30px;
}

.som-insta-handle {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(221, 42, 123, 0.35);
  transition: transform 0.25s ease;
}

.som-insta-handle:hover {
  transform: translateY(-3px);
}

.som-insta-behold-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.som-insta-behold-wrap behold-widget {
  display: block;
  width: 100%;
}

@media (max-width: 600px) {
  .som-insta-section { padding: 54px 18px; }
}

/* ============================================================
   FIX 7 — Gallery ka "View Full Gallery" link
   ============================================================ */
.gallery-preview-actions {
  margin-top: 36px;
  text-align: center;
}

.gallery-view-all {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7b2cbf, #5a189a);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(90, 24, 154, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.gallery-view-all:hover {
  background: #d7ff00;
  color: #111;
  transform: translateY(-3px);
}

/* ============================================================
   FIX 8 — footer-about / why-left
   ============================================================ */
.footer-about {
  font-size: 14.5px;
  line-height: 1.75;
  opacity: 0.85;
}

.why-left {
  min-width: 0;
}

/* ============================================================
   FIX 9 — Contact page ka native <select>
   border-radius yahan !important chahiye, kyunki bundle me
   .contact-form input,.contact-form select,.contact-form textarea
   { border-radius:14px !important } already hai.
   ============================================================ */
.contact-form select,
.contact-page form select {
  width: 100%;
  height: 58px;
  padding: 0 44px 0 22px;
  border: 2px solid #eee;
  border-radius: 14px !important;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='%235b22c7' d='M1 1l6 6 6-6'/></svg>")
    no-repeat right 22px center;
  font-family: inherit;
  font-size: 16px;
  color: #333;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.contact-form select:focus,
.contact-page form select:focus {
  border-color: #5a189a;
}

/* ============================================================
   FIX 10 — Out of Stock par buttons disabled dikhein
   ============================================================ */
.product-card .cart-btn:disabled,
.product-buttons .cart-btn:disabled,
.product-card .buy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  pointer-events: none;
}
/* ============================================================
   PATCH 2 — EXPLORE OUR KITS CAROUSEL
   Cards poore dikhein (side se cut na hon) + price center
   ============================================================ */

/* 1. Exactly poore cards ek view me, aur snap */
.home-products .hp-scroller{
  scroll-snap-type: x mandatory !important;
  scroll-padding-left: 4px !important;
  scroll-behavior: smooth;
}
.home-products .hp-scroller .product-card{
  flex: 0 0 calc((100% - 48px) / 3) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: start !important;
}
@media (min-width: 1400px){
  .home-products .hp-scroller .product-card{ flex: 0 0 calc((100% - 72px) / 4) !important; }
}
@media (max-width: 900px){
  .home-products .hp-scroller .product-card{ flex: 0 0 calc((100% - 24px) / 2) !important; }
}
@media (max-width: 600px){
  .home-products .hp-scroller .product-card{ flex: 0 0 100% !important; }
}

/* 2. Card ki height kam (1052px -> 848px) */
.home-products .hp-scroller .product-image{
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  max-height: 230px !important;
}
.home-products .hp-scroller .product-image img{ object-fit: contain !important; }
.home-products .hp-scroller h3{
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-align: center !important;
}
.home-products .hp-scroller .product-description.clamp{ -webkit-line-clamp: 2 !important; }
.home-products .hp-scroller .product-category{
  margin: 14px auto 10px !important;
  text-align: center !important;
}
.home-products .hp-scroller .buy-btn{ padding: 14px 20px !important; }
.home-products .hp-scroller .product-buttons{ gap: 10px !important; }
.home-products .hp-scroller .variant-box{ margin-bottom: 10px !important; }
.home-products .hp-scroller .variant-label{ text-align: center !important; }
.home-products .hp-scroller .variant-swatches{
  justify-content: center !important;
  gap: 8px !important;
}
.home-products .hp-scroller .swatch{
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
}

/* 3. Price aur rating center me */
.home-products .hp-scroller .price-box{
  justify-content: center !important;
  align-items: baseline !important;
  text-align: center !important;
  padding: 0 16px !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}
.home-products .hp-scroller .rating{
  justify-content: center !important;
  margin: 0 20px 12px !important;
}