
  .availableBadge
  {
       --badgeColor: #6f42c1; /* change once */
  background: linear-gradient(135deg, var(--badgeColor), #9b6df3);
  color: #fff;
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.9px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(111, 66, 193, 0.35);
  }

      .parentBadgetText 
    { 
        margin-bottom: -10px;
        z-index: 0; 
    }
  .level-titleRandom
  {
     display: block;
    line-height: 1.4;
    font-weight: 500;
    font-size: 16px;
    color: black;
  }
 .mainCardItem{
         border-radius: 17px; margin: 10px 0;
         background: none; padding:0px;
         text-decoration: none !important;  
         color:black
    }
    
    .itemDetailsCard
    {
        padding: 0 12px 10px 12px;
    }


@media (max-width: 767px) 
{
    .itemDetailsCard
  {
    padding: 0px;
  }
}


.cart-toast 
{
  position: absolute;
  bottom: 100%;
  right: 16px; /* ✅ Gap from right */
  transform: translateY(-10px); /* removed translateX */
  background-color: #28a745;
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: toastPopFade 2.4s ease-out forwards;
  display: flex;
  align-items: center;
  line-height: 1.2;
  max-width: 90vw; /* Prevents overflow on small screens */
  box-sizing: border-box;
}


.cart-toast i {
  font-size: 16px;
}

@keyframes toastPopFade {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }
  30% {
    transform: translateY(-10px) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
}
  
.level-title{
    display: block;
    font-size: 24px !important;
    color: black;
    margin-bottom: 16px;
    font-weight: normal !important;
}




.itemImageStyle:hover {
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}
   

.add
{
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 0 5px 5px 5px;
    cursor: pointer;
    color: black;
    text-decoration: none !important;
}


.product-layout {
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 50px !important;
}

@media (min-width: 768px) {
  .product-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
  }

 .image-section {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: 100vh;
    overflow: hidden;
  }


}

.image-section {
  flex: 1;
  text-align: center;
}

.product-section {
  
  padding-top: 20px;
}


.main-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
/*  background: #fafafa;*/
}

.main-product-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.main-product-img.active {
  opacity: 1;
  z-index: 1;
}


.thumbnails {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


.main-slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
      height: 500px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border: none;
}

.main-slide.active {
  opacity: 1;
  z-index: 1;
}

.main-image iframe.main-slide {
  max-width: 100%;
  height: 100%;
}

.thumbnails img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}




.product-details {
  max-width: 750px;
  margin: 0 auto;
  padding: 10px;
  line-height: 1.6;
  overflow: visible;
}



.product-details p,
.product-details div {
  font-size: 14px;
}

.product-details ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Variation Labels */
.variation-details label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  gap: 8px;
  cursor: pointer;
}

.variation-details input[type="radio"] {
  margin-right: 6px;
}

/* Addon Labels */
.addon-label {
  display: block;
  margin-bottom: 10px;
}

.addon-flex-wrapper {
  display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 10px 15px;
      margin-bottom: 8px;
      background-color: #fff;
      flex-wrap: nowrap; /* prevent wrapping on mobile */
}

.addon-title-price {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}

.addon-price-section
{
  text-align: right; white-space: nowrap; margin-left: 10px;
}

.addon-price {
  color: #333;
  font-weight: bold; margin-left: 5px;
}

.addon-mrp {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

/* Sold out badges */


.priceMain
{
font-weight: 500;
color: black;
font-size:20px;
letter-spacing: 0.5px;
}
.priceStrike{
text-decoration: line-through;
color: grey;

}

@media (max-width: 767px) {
  .sticky-bar {
    margin-bottom: 60px;
  }
}


.selectButton:hover
{
  transform: scale(1.15);
  transition: all 0.8s ease; /* 👈 controls smoothness and speed */
}


@media (max-width: 768px) {
    .selectButton {
        width: 100% !important;
    }

    .footer-selectedBtn
    {
      width: 100%;
    }
}




.variation-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variation-options-row label {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s, background 0.3s;
    font-size: 14px;
    position: relative;
}

.variation-options-row input[type="radio"] {
    display: none;
}

.variation-options-row input[type="radio"]:checked + span,
.variation-options-row input[type="radio"]:checked ~ span {
    font-weight: bold;
    color: white;
}

.variation-options-row input[type="radio"]:checked ~ label {
    color: white;
    background-color: black;
}

.variation-options-row label:hover {
    border-color: #666;
    background-color: #f9f9f9;
}


.variation-options-row label.active {
    color: white;
    background-color: black;
    font-weight: bold;
}






/* REVIEW RATING CSS STARTS */



.review-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  max-width: 600px;
  background: #fff;
  margin: 20px auto; /* ✅ centers horizontally */
}


.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.view-all {
  font-size: 14px;
  color:grey;
  text-decoration: none;
}

.review-body {
  display: flex;
  gap: 20px;
}


.rating-summary-box {
  width: 105px;
  height: 105px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Top green box */
.rating-score {
  background: #1a7f37; /* green */
  color: #fff;
  font-size: 26px !important;
  font-weight: bold;
  padding: 12px 0;
}

/* Bottom white area */
.rating-details {
  background: #fff;
  padding: 8px 0;
}

.rating-details span {
  display: block;
  font-size: 13px;
  color: #555;
}


.rating-info span {
  display: block;
  font-size: 13px;
  color: #666;
}

.review-breakdown {
  flex: 1;
}

.rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.rating-row .label 
{
  font-size: 14px;
  color: #444;
}

.bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 5px;
  margin: 0 8px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 5px;
}

.green { background: #1a7f37; }
.teal { background: #00a884; }
.orange { background: #ff9800; }
.light-red { background: #ff6666; }
.red { background: #e53935; }

.rating-row .count {
  font-size: 14px;
  color: #333;
  min-width: 30px;
  text-align: right;
}




/* Latest Reviews */
.latest-reviews {
  clear: both;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-user {
  font-weight: bold;
  margin-bottom: 4px;
}

.review-user .avatar {
  margin-right: 6px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #b2b2b2;
}

.review-meta .star-badge {
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.review-text {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  margin-bottom: 8px;
}

.review-photos img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid #ddd;
  margin-bottom:5px;
}


.review-photos img,
.review-photos-grid img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-photos img:hover,
.review-photos-grid img:hover {
  transform: scale(1.05);
}


.review-helpful {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.review-helpful:hover {
  color: #000;
}

.view-all-reviews {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: grey;
  text-decoration: none;
}


/* reviews photo css */

.review-photos-summary {
  margin: 20px 0;
}

.review-photos-grid {
  display: flex;
  gap: 8px;
}

.photo-thumb {
  width: 70px;
  height: 70px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom:5px;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}


/** review drawer css start */

.review-drawer {
  position: fixed;
  top: 0;
  right: -40%; /* hidden by default */
  width: 40%;
  height: 100vh; /* ensures proper viewport height */
  border-radius: 20px 0 0 20px;
  background: #fff;
  transition: right 0.3s ease-in-out;
  z-index: 1201; /* scroll only if needed */
  padding: 16px;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.review-drawer.open {
  right: 0;
}

@media (max-width: 768px) {
  .review-drawer {
    width: 85%;
    right: -85%; /* match width for hiding */
  }
}

.review-overlay {
  display: none;
    height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  
  /* Dark transparent layer */
  background-color: rgba(0, 0, 0, 0.4);

  /* Blur everything behind */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* Smooth fade-in */
  transition: all 0.3s ease-in-out;
}

.review-overlay.active {
  display: block;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.drawer-close {
  font-size: 24px;
  cursor: pointer;
}



.photo-viewer
{
  display:flex;flex-direction:column;
}

.review-slider-img
{
  max-width:100%; max-height:400px; margin:auto; display:block; cursor:pointer;
}


.myImageSwiper {
  width: 100%;
  height: auto;          /* expand based on content */
  min-height: 300px;     /* prevent collapsing when no image size calculated */
}

/* Each slide inside */
.myImageSwiper .swiper-slide {
  display: flex;
  flex-direction: column; /* image + text stack */
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

.drawer-header-product-name
{
  font-size:16px;font-weight:bold;letter-spacing: 1px;
}
/* REVIEW RATING CSS END */






.writeReviewBtn
{
    border-radius: 20px; margin-top: 5px;color: rgb(115,115,115); border: 1px solid rgb(115,115,115);
}


.swiper-button-next,
.swiper-button-prev {
  color: black !important; /* arrow color */
  filter: drop-shadow(0 0 3px white) drop-shadow(0 0 6px white);
}



.color-variants {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color-variants a {
  display: inline-block;
  border-radius: 60px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.color-variants a.active,
.color-variants a:hover {
  border-color: #000; /* highlight border */
}

.color-variants img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}


.wishlist
{
    margin-left: 20px;
    font-size: 20px;  
    margin-top: 26px;
    border-radius: 50%;
    border: 1px solid #c6c6c6;
    padding: 8px 8px 6px 8px;
    cursor: pointer;
}



    @media (max-width: 767px) 
    {
        .wishlist
        {
           float: right;
        }
    }   

.wishlist:hover
{
    background-color: #e6205fe8;
    color: white;
    transform: scale(1.1);
     transition: all 0.8s ease; /* 👈 controls smoothness and speed */

}



.video-thumb img { width:100%; height:100%; object-fit:cover; }
.play-icon { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:white; font-size:16px; padding:6px; pointer-events:none; }
.thumbnails { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.thumbnail, .video-thumb { width:50px; height:50px; object-fit:cover; cursor:pointer; border:2px solid transparent; position:relative; overflow:hidden; border-radius:4px; }


.itemBadgeText{background: linear-gradient(45deg,#A66D30,#FFE58E 50%,#E0B057); color: black;padding: 7px 11px;
    font-size: 15px;
    margin-bottom: 5px;}

      .related-card {
        background-color: #f7f7f7;
        border-radius: 20px;
        height: 200px;
        border-bottom: 5px solid rgba(0, 0, 0, 0.1); /* fallback */
        background-position: center;
        background-size: cover;
        position: relative;
    }

    @media (max-width: 768px) {
        .related-card {
            height: 300px;
        }
    }

    .card-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: linear-gradient(rgb(255 254 254 / 0%), rgb(0 0 0 / 50%));
        border-radius: 20px;
    }

    .card-content {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .card-btn {
        position: absolute;
        right: 6px;
        bottom: 5px;
    }

.fab-whatsapp-icon
{
    background:none !important;
    color: green !important;
    padding: 2px 0px 0px !important;
    font-size: 27px;
}

.share-whatsapp-button 
{
    position: fixed;
    right: 0;
    top: 48%;
    margin-top:100px;
    transform: translateY(-50%);
    color: #105711d1;
    width: 50px;
    height: 60px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    background: rgb(222 255 237 / 60%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
}



#cartMessage{
  display: block;
    background-color: mediumseagreen;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: green;
    border-radius: 5px;
    margin-bottom: 15px;
}
