


/* Safe fix: Force titles to have a minimum height */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 150px; /* Increased to fit very long names */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 15px;
}
/* Make Quantity Box Wider */
.woocommerce .quantity input.qty {
    width: 80px !important;
    padding-left: 10px;
    margin-bottom:10px!important;
}
/*Overhaul of styling*/
/* --- FIXED RETAIL ALIGNMENT & LUXURY STYLE --- */
/* 1. Force Title Height & Luxury Font */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    color: #000000 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* THE ALIGNMENT FIX */
    min-height: 85px !important; /* Forces all title boxes to be tall */
    display: flex;
    align-items: center; /* Centers text vertically inside the box */
    justify-content: center;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}
/* 2. Force Buttons to Bottom */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}
.woocommerce ul.products li.product .button {
    margin-top: auto !important; /* Pushes button to the very bottom */
    background-color: #000000 !important;
    color: #D4AF37 !important;
    border-radius: 0px !important;
    padding: 10px 20px !important;
    width: 100%; /* Makes button fill the width for a clean look */
}
/* --- PREMIUM SPACING & ALIGNMENT FIX --- */
/* Target the whole product card container */
.woocommerce ul.products li.product {
    /* Keep the internal alignment fixes */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    /* THE NEW "PREMIUM" SPACING */
    margin-bottom: 80px !important; /* This adds a big luxury gap between rows */
    padding-bottom: 30px !important; /* Adds breathing room inside the bottom of the card */
    border-bottom: 1px solid #eaeaea; /* Optional: Adds a very subtle luxury divider line */
}
/* --- CLIENT FEEDBACK FIXES --- */
/* 1. Fix "All Caps" - Make text look professional (Title Case) */
.woocommerce-loop-product__title, .product_title {
    text-transform: capitalize !important;
    letter-spacing: 0.5px !important;
}
/* 2. Make Header White & Minimalist */
.site-header, .elementor-location-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eaeaea; /* Subtle divider */
}
/* Fix Menu Links to be Black (since background is now white) */
.main-navigation a, .elementor-nav-menu a {
    color: #000000 !important;
}
/* 3. Make the "Best Deals" Icons Minimalist (Black & White) */
/* This forces those colorful icons to be pure black */
.elementor-widget-icon-box .elementor-icon, 
.elementor-widget-icon-box .elementor-icon i {
    color: #000000 !important; /* Forces icons black */
    fill: #000000 !important;
}
.elementor-widget-icon-box .elementor-icon-box-title {
    color: #000000 !important; /* Forces text black */
    font-weight: 400 !important; /* Thinner font for minimalism */
}
/* 4. Fix Dropdown Menu to be Minimalist */
ul.sub-menu, ul.children {
    background-color: #ffffff !important;
    border: 1px solid #eaeaea !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}
/* --- SIDEBAR MAKEOVER CODE --- */
/* 1. Remove Bullet Points & Spacing */
.widget_product_categories ul, .widget_product_categories li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* 2. Style the Links (Black & Clean) */
.widget_product_categories li a {
    display: block;
    padding: 8px 0;
    color: #000000 !important; /* Black Text */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #eee; /* Subtle divider lines */
}
/* 3. Hover Effect (Gold) */
.widget_product_categories li a:hover {
    color: #D4AF37 !important; /* Gold */
    padding-left: 5px; /* Little slide effect */
    transition: all 0.3s ease;
}
/* 4. Fix Search Bar Styling */
.woocommerce-product-search input[type="search"] {
    border: 1px solid #000;
    border-radius: 0px;
    padding: 10px;
    width: 100%;
}
.woocommerce-product-search button {
    display: none; /* Hides the ugly 'Search' button, enter key works fine */
}
/* --- MASTER GRID ALIGNMENT FIX --- */
/* 1. Force all cards in a row to be the exact same height */
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
}
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: auto !important; /* Resets rigid heights */
    min-height: 100% !important; /* Forces card to stretch to match the tallest neighbor */
    margin-bottom: 40px !important; /* Consistent gap between rows */
}
/* 2. Push the Button to the very bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product a.button {
    margin-top: auto !important; /* The magic command: Pushes button down */
    width: 100% !important;
    display: block !important;
    border-radius: 0px !important;
    padding: 12px 0 !important;
}
/* 3. Ensure Titles have equal space (prevents jumping) */
.woocommerce-loop-product__title {
    min-height: 60px !important; /* Ensures even short titles take up space */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Push the button to the absolute bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    margin-top: auto !important;
    width: 100% !important;
    border-radius: 0px !important;
    text-align: center !important;
}
/* --- THE LUXURY WOW FACTOR --- */
/* 1. PRODUCT CARD TRANSFORMATION */
.woocommerce ul.products li.product {
    background: #ffffff;
    border: 1px solid #f0f0f0; /* Very subtle border */
    transition: all 0.4s ease; /* Smooth animation */
    padding: 15px !important;
    padding-bottom: 70px !important; /* Space for the pinned button */
    overflow: hidden; /* Keeps the zoom inside the box */
}
/* 2. HOVER EFFECT (Lift & Shadow) */
.woocommerce ul.products li.product:hover {
    transform: translateY(-10px); /* Floats up */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Soft luxury shadow */
    border-color: #D4AF37; /* Border turns Gold */
}
/* 3. IMAGE ZOOM EFFECT */
.woocommerce ul.products li.product img {
    transition: transform 0.6s ease;
    height: 250px !important; /* FORCES all images to same height */
    object-fit: contain !important; /* Keeps whole bottle visible */
    width: 100%;
}
.woocommerce ul.products li.product:hover img {
    transform: scale(1.08); /* Subtle zoom in */
}
/* 4. LUXURY HEADERS (Gold Underline) */
.elementor-widget-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.elementor-widget-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #D4AF37; /* Gold Line */
    margin: 10px auto 0; /* Centered below text */
}
/* 5. SIDEBAR POLISH */
.widget_product_categories li a {
    transition: padding 0.3s ease;
}
.widget_product_categories li a:hover {
    padding-left: 10px !important; /* Links slide to the right */
    color: #D4AF37 !important;
    font-weight: 600 !important;
}
/* --- MINIMALIST LUXURY PAGINATION --- */
/* 1. Clear the "Spreadsheet" Look */
.woocommerce-pagination,
.woocommerce-pagination ul.page-numbers {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important; /* Adds breathing room between numbers */
    margin-top: 50px !important;
}
.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    background: transparent !important;
    overflow: hidden !important;
}
/* 2. Style the Numbers (Clean & Modern) */
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    border: 1px solid transparent !important; /* Invisible border unless hovered */
    background-color: transparent !important;
    color: #888888 !important; /* Elegant Grey for inactive pages */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
}
/* 3. Hover Effect (Subtle Black Outline) */
.woocommerce-pagination .page-numbers li a:hover {
    color: #000000 !important;
    border: 1px solid #000000 !important;
}
/* 4. "Current Page" (Solid Black with Gold Text) */
.woocommerce-pagination .page-numbers li span.current {
    background-color: #000000 !important;
    color: #D4AF37 !important; /* Luxury Gold Text */
    border: 1px solid #000000 !important;
}
/* 5. The "Next" Arrow */
.woocommerce-pagination .page-numbers li a.next,
.woocommerce-pagination .page-numbers li a.prev {
    font-size: 20px !important;
    padding: 5px 15px !important;
}
/* --- LUXURY SEARCH BAR --- */
.woocommerce-product-search input[type="search"] {
    border: none !important;
    border-bottom: 1px solid #ccc !important; /* Minimalist Line */
    background: transparent !important;
    border-radius: 0 !important;
    padding: 15px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    color: #000 !important;
    transition: all 0.3s ease;
}
.woocommerce-product-search input[type="search"]:focus {
    border-bottom: 2px solid #D4AF37 !important; /* Gold glow when typing */
    outline: none !important;
}
.woocommerce-product-search input[type="search"]::placeholder {
    color: #999 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
}
/* --- PREMIUM CARD STYLING --- */
.woocommerce ul.products li.product {
    border: none !important;  /* Kills the ugly border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; /* Adds soft premium shadow */
    border-radius: 8px !important; /* Slight rounding for modern feel */
    padding: 20px !important; /* Adds breathing room inside the card */
    background-color: white !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Hover Effect - Card Floats Up */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important; /* Moves up slightly */
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important; /* Shadow gets deeper */
}
/* Force Button to Bottom (Gold Text Version) */
.woocommerce ul.products li.product .button {
    margin-top: auto !important; 
    width: 100% !important;
    background-color: black !important;
    color: #D4AF37 !important; /* This is the Luxury Gold color */
    border-radius: 0 !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}
.woocommerce ul.products li.product .button:hover {
    color: white !important; /* Text turns white when hovered */
    background-color: #333 !important; /* Button turns dark grey */
}
/* Clean up the Title */
.woocommerce ul.products li.product h2 {
    font-size: 15px !important;
    font-weight: 500 !important;
    min-height: 50px !important; /* Ensures titles line up */
}
/* --- LUXURY TRUST ICONS (Magic Fix) --- */
/* 1. Force the Icon to be Gold & Right Size */
.elementor-widget-icon-box .elementor-icon i, 
.elementor-widget-icon-box .elementor-icon svg {
    color: #D4AF37 !important; /* Forces Gold */
    fill: #D4AF37 !important;
    font-size: 30px !important; /* Perfect luxury size (not too big) */
    transition: all 0.4s ease !important; /* Smooth movement */
}
/* 2. Make the Text Clean & Sharp */
.elementor-widget-icon-box .elementor-icon-box-title {
    font-family: "Cormorant Garamond", serif !important; /* Matches your brand */
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important; /* Spaced out = Expensive */
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
}
/* 3. The "Floating" Hover Effect */
.elementor-widget-icon-box:hover .elementor-icon {
    transform: translateY(-10px); /* Icon floats up */
}
.elementor-widget-icon-box:hover .elementor-icon-box-title {
    color: #D4AF37 !important; /* Text turns gold on hover */
}

.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    margin: 0;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    font-size: 1em;
    font-weight: 400;
    padding: .5em;
    min-width: 1em;
    display: block;
    padding: 0 !important;
}

/* =========================================
   DESKTOP PAGINATION REPAIR (Luxury Style)
   ========================================= */
@media only screen and (min-width: 769px) {
    /* 1. Reset the Container */
    .woocommerce-pagination ul.page-numbers {
        display: flex !important;
        justify-content: center !important; /* Change to 'flex-end' if you want it on the Right */
        align-items: center !important;
        gap: 10px !important;
        border: none !important;
        margin-top: 50px !important;
        padding: 0 !important;
    }
    /* 2. Style the Buttons (Big, Clean Squares) */
    .woocommerce-pagination ul.page-numbers li a, 
    .woocommerce-pagination ul.page-numbers li span {
        display: block !important;
        width: 45px !important;  /* Wider, easier to click */
        height: 45px !important;
        line-height: 45px !important; /* Vertically centers text */
        text-align: center !important;
        border: 1px solid #e5e5e5 !important;
        background-color: transparent !important;
        color: #000000 !important;
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        padding: 0 !important; /* Overrides the "Ass" code causing the issue */
        margin: 0 !important;
    }
    /* 3. Hover Effect (Gold Border) */
    .woocommerce-pagination ul.page-numbers li a:hover {
        border-color: #D4AF37 !important;
        color: #D4AF37 !important;
        transform: translateY(-2px); /* Slight premium lift */
    }
    /* 4. Active Page (Solid Black & Gold) */
    .woocommerce-pagination ul.page-numbers li span.current {
        background-color: #000000 !important;
        color: #D4AF37 !important;
        border-color: #000000 !important;
    }
    /* 5. Fix the Next/Prev Arrows */
    .woocommerce-pagination ul.page-numbers li a.next,
    .woocommerce-pagination ul.page-numbers li a.prev {
        font-size: 24px !important;
        width: auto !important;
        padding: 0 15px !important;
        border: none !important;
    }
}

/* =========================================
   🔥 COMPLETE MOBILE FIX - ALL ISSUES SOLVED
   ========================================= */
@media only screen and (max-width: 768px) {
    
    /* ===== STEP 1: RESET EVERYTHING ===== */
    /* Kill WooCommerce's default responsive behavior */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important; /* Force CSS Grid */
        grid-template-columns: repeat(2, 1fr) !important; /* Exactly 2 columns */
        gap: 15px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    /* ===== STEP 2: FIX EVERY PRODUCT CARD ===== */
    /* Target ALL possible variations */
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product:first-child,
    .woocommerce ul.products li.product:nth-child(1),
    .woocommerce ul.products li.product:nth-child(odd),
    .woocommerce ul.products li.product:nth-child(even),
    .woocommerce ul.products li.product.first,
    .woocommerce ul.products li.product.last,
    .woocommerce-page ul.products li.product {
        /* Grid control */
        width: 100% !important;
        grid-column: auto !important; /* Don't span multiple columns */
        grid-row: auto !important;
        
        /* Kill floats */
        float: none !important;
        clear: none !important;
        
        /* Reset margins */
        margin: 0 !important;
        margin-bottom: 0 !important;
        
        /* Card structure */
        display: flex !important;
        flex-direction: column !important;
        padding: 15px !important;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    /* ===== STEP 3: FIX IMAGES ===== */
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        max-height: 180px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* ===== STEP 4: FIX TITLES ===== */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        min-height: 40px !important;
        margin: 10px 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* ===== STEP 5: FIX BUTTONS ===== */
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        margin-top: auto !important;
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    /* ===== STEP 6: DISABLE HOVER EFFECTS (Prevent Glitches) ===== */
    .woocommerce ul.products li.product:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    }
    
    .woocommerce ul.products li.product:hover img {
        transform: none !important;
    }
    
    .elementor-widget-icon-box:hover .elementor-icon {
        transform: none !important;
    }
    
    /* ===== STEP 7: FIX CONTAINER WIDTH ===== */
    .elementor-section, .elementor-column, .elementor-widget-wrap, .e-con {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* ===== STEP 8: FIX MOBILE MENU ===== */
    .elementor-nav-menu--dropdown {
        background-color: #000000 !important;
    }
    
    ul.sub-menu, 
    .elementor-nav-menu--dropdown ul,
    .elementor-nav-menu--dropdown .elementor-item-active > ul {
        background-color: #000000 !important; 
        box-shadow: none !important;
    }
    
    .elementor-nav-menu--dropdown a,
    .elementor-nav-menu--dropdown li a,
    .elementor-sub-item {
        color: #ffffff !important;
        background-color: transparent !important;
    }
    
    .elementor-nav-menu--dropdown a:hover,
    .elementor-nav-menu--dropdown .current-menu-item > a {
        color: #D4AF37 !important;
    }
    
    .elementor-menu-toggle {
        background-color: #ffffff !important; 
        color: #000000 !important;
    }
    
    /* ===== STEP 9: FIX PAGINATION ===== */
    .woocommerce-pagination ul.page-numbers {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        border: none !important;
    }
    
    .woocommerce-pagination ul.page-numbers li a, 
    .woocommerce-pagination ul.page-numbers li span {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 14px !important;
        border: 1px solid #ddd !important;
        text-align: center !important;
        margin: 0 !important;
        display: block !important;
        padding: 0 !important;
    }
    
    .woocommerce-pagination ul.page-numbers li a.next, 
    .woocommerce-pagination ul.page-numbers li a.prev {
        width: auto !important;
        padding: 0 10px !important;
        font-size: 18px !important;
    }
    
    .woocommerce-pagination ul.page-numbers li span.current {
        background-color: #000000 !important;
        color: #D4AF37 !important;
        border-color: #000000 !important;
    }
    
    /* ===== STEP 10: HIDE SIDEBAR ===== */
    .elementor-column.elementor-col-20, 
    .elementor-widget-sidebar,
    .elementor-widget-wp-widget-woocommerce_product_categories,
    .elementor-widget-wp-widget-woocommerce_product_search {
        display: none !important;
    }
    
    /* ===== STEP 11: PREVENT HORIZONTAL SCROLL ===== */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .woocommerce, .woocommerce-page {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* ===== STEP 12: FIX HOME PAGE SCROLL ===== */
    .home, .home body, .home #page {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .home .elementor-section,
    .home .elementor-row,
    .home .elementor-container {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .home img, 
    .home .elementor-widget-image img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .home h1, .home h2, .home h3, .home p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    /* ===== STEP 13: SHRINK HEADINGS ===== */
    h1, h2, h3, .elementor-heading-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
}

/* =========================================
   FIX MISSING FIRST PRODUCT (Ghost Element Killer)
   ========================================= */

/* 1. Remove the invisible separator that acts like a product */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

/* 2. Double-check the container is clean */
.woocommerce ul.products {
    padding-top: 0 !important;
}


