/* Slide scale */
.custom-slick-slider .slick-slide { transition: all 0.3s ease; transform: scale(0.75); opacity:0.6; }
.custom-slick-slider .slick-center { transform: scale(1) !important; opacity:1 !important; }

/* Ingredients pulse */
.ingredients-wrapper img { height:auto; object-fit:cover; visibility:hidden; animation:ingredient-pulse 2s ease-in-out infinite; }
@keyframes ingredient-pulse { 0%{transform:scale(0.40);}50%{transform:scale(0.45);}100%{transform:scale(0.40);} }


.slide-inner {
    position: relative;
    z-index: 5; /* slide sits above 'behind' ingredients */
}

.slide-inner img.slide-main-image {
    display: block;
    width: 100%;
    height: auto;
}

.custom-slick-slider .ingredients-wrapper .ingredient-item img{
    position: absolute;
}

.ingredients-wrapper .ingredient-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5; /* default: above */
    transition: all ease 1s;
}
/* Ingredients positioning per item */

/* Behind the slide */
.ingredients-wrapper .ingredient-item.above {
    z-index: 10 !important; /* sits above */
}

/* Behind the slide */
.ingredients-wrapper .ingredient-item.behind {
    z-index: -1 !important; /* sits behind */
    rotate: -14deg;
}


/* Captions & button */
.slide-caption, .shop-now-btn{display:none;transition: all 0.3s ease;}
.slick-center .slide-caption, .slick-center .shop-now-btn{display:block;transition: all 0.3s ease;}

.slide-caption {
            margin: 10px 0;
            font-size: 20px;
            text-align: center;
            margin-top: -12%;
            font-family: 'Montserrat';
            font-weight: 600;
        }
        
 .slide-caption h5 {
     color: #fff;
 }       
        
        
        
.shop-now-btn {
    font-size: 14px;
    width: 115px;
    padding: 10px 20px;
    background-color: #ff5a00;       /* Orange button */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    }

/* Hover effect */
.shop-now-btn:hover {
    background-color: #ff3300;
    color: #fff;
    transform: translateX(-50%) scale(1.05);
}

.custom-slick-slider .slick-dots {
    z-index: 1;         /* Move dots behind slides */
    position: relative;  /* ensure z-index applies */
}

.custom-slick-slider .slide-inner,
.custom-slick-slider .slick-center .shop-now-btn {
    position: relative;
    z-index: 10;        /* Button above dots */
}

.custom-slick-slider {
  min-height: 550px; /* Adjust to match your slide size */
}

/* --- Mobile fixes for scaling & overlap --- */
@media (max-width: 1024px) {
    
.custom-slick-slider .slick-center { transform: scale(1) !important; opacity:1 !important; }
  .custom-slick-slider .slick-slide {
    transform: scale(0.75) !important;
    opacity: 1 !important;
  }

  .custom-slick-slider .ingredients-wrapper .ingredient-item {
    transform: scale(1);
  }
  
  .custom-slick-slider .ingredients-wrapper{
      height: 108% !important;
  }

  .custom-slick-slider .slick-list {
    height: 500px !important;
    overflow: hidden;
  }
  
  .custom-slick-slider .ingredients-wrapper .ingredient-item .ingredient-3 {
    margin-top:50%;
  }
  
}

