/* Prevent viewport width changing after load (scrollbar appearing) */
html{
  overflow-y: scroll;         /* keeps scrollbar space reserved */
  scrollbar-gutter: stable;   /* modern browsers */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* ===== BASE PAGE ===== */
html,
body {
  overflow: visible !important;
}

.product-body {
  margin: 0;
  min-height: 100vh;
  color: #ffffff;
  font-family: "SK-Modernist", Arial, sans-serif;

  background-image: url("/assets/images/product_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.product-page {
  overflow: visible;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* ===== HERO LAYOUT ===== */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

/* LEFT SIDE (CAN + BG) */
.hero-left {
  position: relative;
}

/* When sticky is active (controlled by JS) */
.hero-left.hero-left--sticky {
  position: sticky !important;
  top: 90px;
  align-self: flex-start;
}

.hero-can-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 5% auto 0;
}

/* Background illustration behind can */
.hero-bg-image{
  width: 80%;
  height: auto;
  display: block;
  opacity: 0.2;
  position: relative;
  left: 50px;   /* move right */
  top: -20px;   /* move up */
}


/* Can image in front */
.hero-can-image {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: -15%;
  transform: translateX(-50%);
}

/* right SIDE */
.hero-right {
  position: relative;
  margin-right: 8%;
}

/* Title row */
.hero-title {
  font-family: "Moderniz", Arial, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  margin: 0 0 0;
}

.hero-variant {
  font-size: 0.5em;
  margin-left: 12px;
}

.hero-status-dot{
  display: inline-block;
  width: 16px;              /* adjust to your image size */
  height: 16px;
  margin-left: 8px;
  transform: translateY(-2px);
  background: url("/assets/images/veg_dot.png") center/contain no-repeat;
  box-shadow: none;         /* remove old grey ring */
  border-radius: 0;         /* not needed for image */
}

/* Tagline */
.hero-tagline {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #e4e4e4;
}

/* Rating */
.hero-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 0;
}

.star {
  color: #27a5ff;
  font-size: 1.35rem;
}

/* hide the (128) to match screenshot */
.rating-count {
  display: none;
}

/* Price block */
.hero-price-row {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  column-gap: 12px;
}

.hero-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-old {
  font-size: 1.45rem;
  color: #7c7c7c;
  text-decoration: line-through;
}

.price-current {
  font-size: 2.2rem;
  font-weight: 700;
}

/* right side: ₹60 per 250 ml above, tax note below */
.hero-price-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #c1c1c1;
}

.price-per {
  margin-right: 0;
  font-size: 1rem;
}

.price-tax-note {
  font-size: 0.8rem;
  margin-top: 0;
  color: #c1c1c1;
}

/* Purchase card */
.hero-purchase-card {
  margin-top: 22px;
  margin-bottom: 30px;
  padding: 0;
  width: 60%;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.purchase-heading {
  margin: 0 0 10px;
  font-family: "Moderniz", Arial, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #ffffff;
}

/* ==== PACK BUTTONS ==== */
.pack-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-bottom: 18px;
}

.pack-btn{
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 0;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.55);

  /* ✅ SS2-like grey gradient */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12),
    rgba(0,0,0,0.55)
  );

  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  text-transform: none; /* SS2 looks like Title Case */
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 24px rgba(0,0,0,0.35);

  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pack-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 14px 28px rgba(0,0,0,0.45);
}

/* ✅ Active should look slightly brighter like SS2 */
.pack-btn.active{
  border-color: rgba(255,255,255,0.95);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.18),
    rgba(0,0,0,0.60)
  );
}


/* ==== QTY + CTA ROW ==== */
.purchase-row{
  display: flex;
  flex-direction: column; /* ✅ stack qty row + button */
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
}

.qty-selector{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  overflow: visible;
}

/* ✅ Circle +/- buttons */
.qty-btn{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.75);

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.10),
    rgba(0,0,0,0.55)
  );

  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  padding: 0 0 5px 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 20px rgba(0,0,0,0.35);

  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.qty-btn:hover{
  border-color: rgba(255,255,255,0.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 14px 26px rgba(0,0,0,0.45);
}

/* ✅ middle number pill */
.qty-value{
  min-width: 44px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12),
    rgba(0,0,0,0.55)
  );

  color: rgba(255,255,255,0.95);
  font-size: 1rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 20px rgba(0,0,0,0.30);
}

.btn-add-cart{
  width: 35%;              /* ✅ sits below and spans */
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.75);
  background: linear-gradient(180deg,#153B44 0%,#2E4F56 35%,#4E5152 100%);
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 14px 28px rgba(0,0,0,0.45);

  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.btn-add-cart:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 18px 34px rgba(0,0,0,0.55);
}

/* Description block */
.hero-description-block {
  margin-top: 30px;
}

.section-heading {
  font-family: "Moderniz", Arial, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero-description-block p {
  margin: 0 0 10px;
  width: 75%;
  line-height: 1.2rem;
  font-size: 1rem;
  color: #dcdcdc;
}

/* FEATURES STRIP */
.product-feature-strip {
  margin-top: 30px;
}

.feature-card {
  display: inline-block;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  text-align: left;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Moderniz", Arial, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.feature-card img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 22px;
}

/* NUTRITION & INGREDIENTS ACCORDION */
.hero-right .nutrition-section {
  margin-top: 30px;
}

.nutrition-toggle span{
  font-family: "Moderniz", Arial, sans-serif;
}

.hero-right .nutrition-toggle {
  width: 100%;
  padding: 0 0 14px;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 1.3rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  cursor: pointer;
}

.hero-right .chevron{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.hero-right .chevron-img{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transform: rotate(0deg);
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
}

/* When accordion is open, rotate the same arrow up */
.hero-right .nutrition-section.open .chevron-img{
  transform: rotate(-45deg);
}

.hero-right .nutrition-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.hero-right .nutrition-card {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-right .nutrition-image {
  display: block;
  width: 78%;
  max-width: 650px;
  height: auto;
}

.hero-right .nutrition-section.open .nutrition-panel {
  max-height: 2000px;
  opacity: 1;
}

.hero-right .nutrition-section.open .chevron {
  transform: rotate(-135deg);
}

/* =========================================
   EXPLORE OUR OTHER PRODUCTS (BOTTOM SECTION)
========================================= */
.other-products {
  max-width: 1200px;
  margin: 80px auto 20px;
  padding: 0 20px 20px;
}

.other-products-heading {
  font-family: "Moderniz", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
}

.other-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 90%;
  margin: 0 auto;
}

.other-product-card {
  position: relative;
  border-radius: 20px;
  padding: 40px 24px 28px;
  text-align: center;
  overflow: hidden;
  z-index: 1;

  background: radial-gradient(
    circle at top,
    rgba(90, 90, 90, 0.2),
    rgba(90, 90, 90, 0.2)
  );
}

.other-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;

  background: transparent;

  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  z-index: -1;
  pointer-events: none;
}

.other-product-image {
  display: block;
  margin: 0 auto 20px;
  width: 100%;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.9));
}

.other-product-name {
  margin: 0 0 4px;
  font-family: "Moderniz", Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.other-product-meta {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.other-product-price {
  margin: 0;
  font-size: 0.95rem;
}












/* =========================================================
   MOBILE CHANGES
   - product hero stacked
   - description justified
   - other products = 2 per row
========================================================= */
@media (max-width: 900px) {

  .product-page{
    padding: 16px 16px 70px;
  }

  /* HERO: stack left + right */
  .product-hero{
    grid-template-columns: 1fr;
    gap: 8%;
  }

  .hero-left,
  .hero-right{
    width: 100%;
  }

  .hero-right{
    margin-right: 0;
  }
  .hero-title{
    font-size: 32px;
  }
  .hero-variant{
    font-size: 22px;
  }
  /* can area fit on phones */
  .hero-can-wrapper{
    max-width: 380px;
    margin: 0 auto;
  }

  /* purchase full width */
  .hero-purchase-card{
    width: 100%;
  }

  /* pack buttons wrap if needed */
  .pack-options{
    flex-wrap: wrap;
    gap: 10px;
  }

  .pack-btn{
    flex: 1 1 calc(33.33% - 10px);
    font-size: 0.8rem;
    padding: 10px 0;
  }

  .hero-purchase-card .purchase-row{
    width: 100%;
    align-items: stretch;     /* key: lets button expand */
  }

  /* Qty row centered (like SS1) */
  .hero-purchase-card .qty-selector{
    gap: 25%;
    width: 100%;
    justify-content: center;
  }

  /* Add to cart full width + centered */
  .hero-purchase-card .btn-add-cart{
    width: 100%;
    max-width: 100%;
    padding: 10px auto;
  }

  /* description: full width + justified */
  .hero-description-block p{
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
  }

  /* nutrition image full width */
  .hero-right .nutrition-image{
    width: 100%;
    max-width: 100%;
  }

  .hero-right .nutrition-toggle{
    justify-content: flex-start; /* text starts from left */
    text-align: left;
  }

  .hero-right .nutrition-toggle span:first-child{
    margin-right: auto;          /* pushes chevron to the far right */
    text-align: left;
  }

  .nutrition-image{
    margin-bottom: 5%;
  }

  .hero-right .chevron{
    margin-left: 12px;           /* small spacing from text */
    margin-right: 0;             /* ensure it doesn't shift left */
  }

  /* ✅ Other products: 2 per row on mobile */
  .other-products{
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10%;
  }

  .other-products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 16px;
  }

  .other-product-card{
    padding: 26px 16px 20px;
  }

  .other-product-image{
    margin-bottom: 14px;
  }
}








/* ======================= for disabling pack of 6 button ========================== */
/* Make buttons position:relative so tooltip can attach */
.pack-btn {
  position: relative;
}

/* Disabled state for Pack Of 6 */
.pack-btn--disabled{
  position: relative;
  opacity: 0.55;
  cursor: not-allowed;
}

/* No hover animation on disabled */
.pack-btn--disabled:hover{
  transform: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.85);
}

/* diagonal strike */
.pack-btn--disabled::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.95);
  transform: translateY(-50%) rotate(12deg);
  border-radius: 2px;
  pointer-events: none;
}

/* Tooltip on hover: "Currently not accepting..." */
.pack-btn--disabled::after {
  content: "Currently not accepting orders for this category";
  position: absolute;
  left: 50%;
  bottom: 110%; /* above the button */
  transform: translateX(-50%);
  width: max(220px, 80%);
  padding: 8px 10px;
  border-radius: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.pack-btn--disabled:hover::after {
  opacity: 1;
}
