/*
 * Drip Hydration Booker Catalog Styles
 * Custom CSS for the [drip_product_catalog] shortcode view.
 */

/* ==========================================================
   1. Catalog Wrapper and Card Base
   ========================================================== */
/* ==========================================================
   1. Catalog Wrapper (Clearing Flex properties)
   ========================================================== */
.drip-catalog-wrapper {
    /* Slick Slider use ho raha hai, isliye Flexbox properties ki zaroorat nahi hai. 
       Yeh wrapper ab sirf slider ka container hai. */
}

/* Base Card Styling - Flat, clean look */
.drip-hydration-product-card {
    /* Zaroori: Slick har slide item ko 100% width deta hai */
    /* width: 100%; */ 
    
    /* Margin for Gap: Cards ke beech mein space dene ke liye. 
       Yahan humne duplicate margin: 15px; ko hata diya hai. */
     /* TOP/BOTTOM 0px, LEFT/RIGHT 15px ka gap */
    /* min-width: 300px; - Slider mein zaroori nahi, lekin rakh sakte hain. */
    padding: 10px;
    /* min-width: 300px; */
    /* background: #fff; */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    /* padding: 30px 20px 20px 20px; */
    /* text-align: left; */
    /* max-width: 100%; */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */ 
    
    /* Ensures all cards are the same height */
    /* min-height: 760px; */
    /* position: relative; */
    /* transition: box-shadow 0.3s ease-in-out; */
}



.drip-hydration-product-card-inner:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.injections-product-card {
    width: 23%;
    margin: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px 20px 20px 20px;
    text-align: left;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    
    /* Ensures all cards are the same height */
    min-height: 650px;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
}
.injections-product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   2. Image and Popular Label
   ========================================================== */
.product-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.product-image {
    max-width: 180px; 
    height: auto;
    display: block;
    margin: 0 auto;
}

/* MOST POPULAR Label - Lighter grey/beige background */
.popular-label {
    position: absolute;
    /* Adjust position to sit above the card */
    top: -15px; 
    left: 50%;
    transform: translateX(-50%); /* Center the label */ 
    background: #e0e0e0; /* Lighter grey background */
    color: #333; 
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
}

/* ==========================================================
   3. Content, Title, and Price
   ========================================================== */
.product-content {
    width: 100%;
    text-align: left;
    /* Allow content to grow and push the button down */
    flex-grow: 1; 
}

.product-title {
    /* Ensure the font is loaded in Elementor settings */
    font-family: 'Montserrat', sans-serif; 
    font-size: 32px; 
    font-weight: 700;
    color: #333;
    margin-bottom: 0; 
}

.product-price {
    font-size: 24px;
    font-weight: 400; 
    color: #333;
    margin-top: 5px; 
    margin-bottom: 20px;
}

.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    min-height: 40px; 
}

/* ==========================================================
   4. Ingredient/Benefit List Styling
   ========================================================== */
.product-ingredients,
.product-benefits {
    /* list-style: none; - Already set in template */ 
    padding: 0;
    margin: 0 0 20px 0; /* Adjusted bottom margin */
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.product-ingredients h4,
.product-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-ingredients ul,
.product-benefits ul {
    /* The view file has the ingredients/benefits coming from the_content(),
       which usually renders a <ul> list. Targeting that <ul> here. */
    list-style: none;
    padding: 0;
}

.product-ingredients li,
.product-benefits li {
    padding-left: 30px; 
    position: relative;
    margin-bottom: 15px;
}

/* Custom Checkmark Icon (using CSS unicode and light blue color) */
.product-benefits li::before,
.product-ingredients li::before {
    content: '✓'; /* Unicode checkmark */
    color: #5ac8fa; /* Light Blue/Cyan color */
    font-weight: 900;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================
   5. Call-to-Action Button
   ========================================================== */
.book-now-button {
    display: block;
    width: 85%;
    padding: 15px 20px;
    margin-top: 30px;
    background-color: var( --e-global-color-secondary ) !important; /* Darker, slate-like background */
    color: white !important;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px !important;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    border: none;
    /* Position fixed at the bottom of the card */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.book-now-button:hover {
    background-color: #34495e;
}

/* ==========================================================
   6. Responsiveness (Optional but recommended)
   ========================================================== */

/* Tablet View (e.g., max-width 1024px) */
@media (max-width: 1024px) {
    .drip-hydration-product-card {
        width: 45%; /* Two cards per row */
        min-height: 700px;
        margin: 10px;
    }
    .injections-product-card {
        width: 23%; /* Two cards per row */
        min-height: 650px;
        margin: 10px;
    }
    .drip-catalog-wrapper {
        justify-content: center;
    }
}

/* Mobile View (e.g., max-width 768px) */
@media (max-width: 768px) {
    .drip-hydration-product-card {
        width: 100%; /* One card per row */
        min-width: unset;
        min-height: unset; /* Remove min-height for mobile if needed */
        margin: 15px auto;
        padding-bottom: 80px; /* Space for the absolute button */
        padding-left: 30px;
        padding-right: 30px;
    }
    .injections-product-card {
        width: 90%; /* One card per row */
        min-width: unset;
        min-height: unset; /* Remove min-height for mobile if needed */
        margin: 15px auto;
        padding-bottom: 80px; /* Space for the absolute button */
    }
    .book-now-button {
        width: 90%;
    }
}

/* ==========================================================
   7. Modal/Popup Styling
   ========================================================== */

/* Full screen overlay (Hidden by default) */
.dhb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Ensure it's on top of everything */
    display: none;
    overflow-y: auto; /* Allow scrolling inside the modal */
}

/* Modal is visible */
.dhb-modal-overlay.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal container */
.dhb-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px; /* Adjust size as needed for the widget */
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

/* Modal Title */
.dhb-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Close Button */
.dhb-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #023047 !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer;
    line-height: 1;
    border-radius: 100px !important;
    padding: 0px !important;
    width: 50px !important;
    height: 50px !important;
}
.dhb-close-button:hover, .dhb-close-button:focus {
    color:white !important;
}

/* Hide body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ==========================================================
   8. Slick Slider Custom Navigation Arrows
   ========================================================== */

/* 1. Base Styling for Both Arrows */
.drip-slider .slick-prev,
.drip-slider .slick-next {
    /* Absolute position the arrows on top of the cards */
    border-color: #d4d4d4;
    position: absolute;
    top: 40%; /* Center vertically */
    transform: translateY(-50%);
    /* Z-index: Ensure buttons are clickable */
    z-index: 10;
    /* Appearance: White Circle with Shadow */
    width: 40px; /* Width of the circle */
    height: 40px; /* Height of the circle */
    border-radius: 50%; /* Perfect circle */
    background: #ffffff; /* White background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Soft shadow jaisa design mein hai */
    
    /* Text/Icon Styling */
    font-size: 0px; /* Default text ko chhupana */
    line-height: 1;
    transition: background-color 0.3s, box-shadow 0.3s;
    padding: 0px;
}

/* Hover Effect */
.drip-slider .slick-prev:hover,
.drip-slider .slick-next:hover {
    background: #f8f8f8; /* Thoda sa greyish on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 2. Custom Arrow Icons (Using Unicode or Font Awesome) */
/* Hum yahan Unicode arrows use kar rahe hain, jaisa ki design mein simple dikh raha hai */
.drip-slider .slick-prev:before,
.drip-slider .slick-next:before {
    font-family: 'slick'; /* Slick ki apni font use ho rahi hai */
    font-size: 20px;
    line-height: 40px; /* Height ke barabar line-height for vertical alignment */
    color: #333333; /* Dark arrow color */
    text-align: center;
    display: block;
}

/* 3. Positioning (Left and Right) */
.drip-slider .slick-prev {
    left: -20px; /* Thoda sa bahar nikal kar adjust karein */
}

.drip-slider .slick-next {
    right: -20px; /* Thoda sa bahar nikal kar adjust karein */
}

/* Slick default icon codes: < for prev, > for next */
.drip-slider .slick-prev:before {
    content: '\2190'; /* Unicode left arrow ya default Slick icon */
    font-size: 24px;
}

.drip-slider .slick-next:before {
    content: '\2192'; /* Unicode right arrow ya default Slick icon */
    font-size: 24px;
}

/* Agar aapke design mein arrow cards par aa rahe hain (jaisa image mein hai), 
   toh left/right position ko adjust karein */
.drip-catalog-wrapper {
    /* Padding ko adjust karna padega taki arrows theek jagah aayen */
    padding: 0 0px; 
}
.drip-slider .slick-prev {
    left: 0; /* Agar wrapper ke andar lana hai */
}
.drip-slider .slick-next {
    right: 0; /* Agar wrapper ke andar lana hai */
}

.iv-drip-product-card-start {
    width: 25%;
}

.iv-drip-product-card {
    width: 100%;
    /* margin: 12px 10px; */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    /* padding: 30px 20px 20px 20px; */
    /* text-align: left; */
    /* max-width: 100%; */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* position: relative; */
    /* transition: box-shadow 0.3s 
ease-in-out; */
    /* background-color: white; */
    /* min-height: 522px; */
    /* padding-bottom: 100px; */
}
div#iv-drip-product-grid {
    display: flex;
    flex-wrap: wrap;
}
.load-more-btn-wrap {
    text-align: center;
    margin-top: 60px;
}

button#load-more-drips {
    padding: 16px 80px;
    border-color: transparent;
}
ul.product-ingredients {
    list-style: none;
}
ul.product-benefits {
    list-style: none;
}
button.book-now-button {
    width: 90%;
    border: none;
}




button.iv-cat-btn {
    color: var( --e-global-color-secondary ) !important;
    background-color: white;
    border: 1px solid var( --e-global-color-secondary );
    padding: 8px 16px;
}
.iv-category-buttons-wrap {
    text-align: center;
    margin-bottom: 25px;
}
.iv-cat-btn {
    background: white !important;
    border: none;
    padding: 8px 16px !important;
    margin: 0 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.iv-cat-btn:hover,
.iv-cat-btn.active {
    background: var( --e-global-color-secondary ) !important;
    color: #fff !important;
}
.injection-catalog-wrapper {
    display: flex;
    flex-wrap: wrap;
}
.injection-catalog-wrapper .product-ingredients {
    display: none;
}

.injection-shortcode-widget .injection-catalog-wrapper{
    justify-content: center;
}



.drip-hydration-product-card-inner {
    padding: 30px 20px 20px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    align-items: center;
    min-height: 800px;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
}
.iv-drip-product-card {
    width: 100%;
}

.iv-drip-product-card-inner {
    margin: 9px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px 20px 20px 20px;
    text-align: left;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
    background-color: white;
    min-height: 560px;
    padding-bottom: 100px;
}
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Maximum 2 lines dikhaye */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;          /* Optional: spacing adjust kare */
  max-height: 2.8em;           /* line-height × number of lines */
}

@media (max-width: 1200px) {
  .iv-drip-product-card-start {
    width: 50%;
  }
}

/* Tablets & Mobile screens (max width: 768px) */
@media (max-width: 768px) {
  .iv-drip-product-card-start {
    width: 100%;
  }
  .card-image-wrap img {
    width: 100%;
}
.iv-drip-product-card-inner {
    margin: 9px 28px;
}
}