/*
Theme Name: The Amrut Custom Theme
Author: Jeet Sangani
Description: A custom, lightweight, and responsive theme built from scratch.
Version: 1.0
*/

/* --- Global Variables & Resets --- */
/* --- 1. GLOBAL COLOR PALETTE --- */
:root {
    --bg-main: #ffffff;         /* Pure white background */
    --pill-bg: #ffffff;         /* Pure white menu pills */
    --text-color: #3d2c28;      /* Deep espresso brown (from the logo's inner circle) */
    --accent-pink: #df6c7e;     /* Soft Amrut pink for hovers and active states */
    --border-light: #f2f2f2;    /* Soft border to define the white pills */
    --border-radius: 50px;
    --font-main: 'Inter', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-color);
    padding-bottom: 80px; 
    -webkit-font-smoothing: antialiased;
}
/* --- 2. PILL VISIBILITY --- */
/* Gives the white pills a crisp edge and soft shadow so they pop off the white background */
.nav-pill, .logo-box, .mobile-bottom-bar {
    background-color: var(--pill-bg) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
    border: 1px solid var(--border-light); 
}

/* --- 3. PINK HOVER & ACTIVE STATES --- */
a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-pink) !important;
}

/* Update SVG Icons to match text color, then turn pink on hover */
.icon svg, .mobile-icon svg {
    transition: stroke 0.3s ease, transform 0.2s ease;
    stroke: var(--text-color);
}

.icon:hover svg, .mobile-icon:hover svg, .mobile-icon.active svg {
    stroke: var(--accent-pink) !important;
}

/* Make the cart notification bubble match the Amrut pink */
.cart-badge {
    background-color: var(--accent-pink);
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4af37; /* Elegant accent hover color */
}

/* --- DESKTOP FLOATING HEADER --- */
.floating-header {
    position: relative !important; /* Forces the header to push page content down naturally */
    width: 100%;
    z-index: 100;
    padding-top: 25px; /* Creates permanent space at the top for store notices */
    margin-bottom: 40px; /* Creates permanent breathing room before page content starts */
}

/* --- 1. PERFECTLY CENTERED LOGO & WIDE SPREAD MENUS --- */
.header-container {
    max-width: 1300px; /* Widened the container so the menus sit closer to the edges of the screen */
    margin: 0 auto;
    padding: 0 2rem;
    
    /* The CSS Grid Magic */
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    width: 100%;
}

/* Push the left menu to the far left boundary */
.nav-pill.left-pill {
    justify-self: start;
    margin: 0;
}

/* Lock the logo strictly in the exact center of the page */
.logo-box {
    justify-self: center;
    margin: 0;
}

/* Push the icon menu to the far right boundary */
.nav-pill.right-pill {
    justify-self: end;
    margin: 0;
}

/* --- 2. MOBILE OVERRIDE FIX --- */
/* Add this inside your existing @media (max-width: 992px) block so mobile doesn't break */
@media screen and (max-width: 992px) {
    .header-container {
        display: flex; /* Reverts back to flexbox on mobile since the side pills are hidden */
        justify-content: center;
    }
}

/* Nav Pills (Left & Right) */
.nav-pill {
    background-color: var(--pill-bg);
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem; /* Sleeker look */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.nav-pill ul {
    display: flex;
    gap: 2rem;
}

.nav-pill a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Hide the pill completely if no menu is assigned yet */
.nav-pill:empty {
    display: none; 
}

/* Center Logo Box */
/* --- STRICT CENTER LOGO BOX --- */
/* --- PREVENT PAGE OVERLAP --- */
/* Pushes the main content down so it doesn't hide behind the floating header */
.site-content, 
#page {
    padding-top: 140px; 
}

/* --- PERFECT LOGO SCALING --- */
/* --- PERFECT LOGO SCALING --- */
.custom-brand-logo {
    /* Height is now controlled dynamically via the Customizer */
    max-width: none !important;
    width: auto !important; 
    object-fit: contain !important; 
    display: block;
}

.logo-box {
    background-color: #ffffff !important; /* Forces the white background to appear */
    padding: 10px 30px !important; /* Fluid height: expands naturally based on logo size */
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
}

img.custom-brand-logo {
    max-width: none !important;
    width: auto !important; 
    object-fit: contain !important; 
    display: block;
}

/* --- 3. MOBILE OVERRIDES --- */
@media screen and (max-width: 992px) {
    .floating-header {
        padding-top: 15px; /* Slightly tighter top spacing on mobile */
        margin-bottom: 30px;
    }

    .logo-box {
        padding: 8px 25px !important; /* Slimmer pill padding for mobile */
    }
}



.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.1rem;
    align-items: center;
}

/* --- MOBILE BOTTOM NAV BAR --- */
.mobile-bottom-bar {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pill-bg);
    width: 90%;
    max-width: 400px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
}

.mobile-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.mobile-icon:hover, 
.mobile-icon.active {
    transform: scale(1.1);
}

/* --- RESPONSIVE BEHAVIOR --- */
@media (max-width: 992px) {
    /* Hide desktop pills */
    .nav-pill { display: none; }
    
    /* Center the logo at the top */
    .header-container { justify-content: center; }
    
    /* Show mobile bottom bar */
    .mobile-bottom-bar { display: block; }
}

/* --- ICON & CART BADGE STYLING --- */
.cart-icon {
    position: relative; /* Acts as the anchor for the absolute badge */
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--text-color); /* Dark circle */
    color: #ffffff; /* White text */
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* Adjust the badge slightly for the larger mobile icons */
.mobile-badge {
    top: -5px;
    right: -8px;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
}

/* Ensure SVGs inherit hover colors gracefully */
.icon svg, .mobile-icon svg {
    transition: stroke 0.3s ease;
}

.icon:hover svg, .mobile-icon:hover svg, .mobile-icon.active svg {
    stroke: #d4af37; /* Gold accent on hover */
}


/* --- MOBILE DRAWER STYLES --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none; /* Hidden by default */
}

.drawer-overlay.is-active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden off-screen to the left */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide */
    display: flex;
    flex-direction: column;
}

.mobile-drawer.is-open {
    left: 0; /* Slides it in */
}

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

.drawer-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
}

/* Format the links inside the mobile drawer */
.drawer-content ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.drawer-content a {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
}




/* ====================================================
   WOOCOMMERCE SHOP PAGE: ELEGANT CARD REDESIGN 
==================================================== */

/* --- 1. The Grid Layout --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

/* Remove default WooCommerce floats that break modern grids */
.woocommerce ul.products::before, 
.woocommerce ul.products::after {
    display: none !important; 
}

/* --- 2. The Product Card Container --- */
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background-color: var(--pill-bg) !important;
    border-radius: 16px !important; /* Soft, elegant rounded corners */
    box-shadow: 0 6px 20px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Keeps images inside the rounded corners */
    padding-bottom: 20px !important;
    border: 1px solid var(--border-light);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important; /* Smooth hover lift */
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
}

/* --- 3. The Image Section --- */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 250px !important; /* Uniform height for a perfect grid */
    object-fit: cover !important; /* Prevents squished ice cream photos */
    margin: 0 0 20px 0 !important;
}

/* --- 4. Typography & Layout (Title & Price) --- */
/* Ensure the main product link fills the card and pushes the button to the bottom */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    padding: 0 20px !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    font-family: var(--font-main);
}

/* Fix the broken vertical price range */
.woocommerce ul.products li.product .price {
    color: var(--text-color) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    margin-bottom: 20px !important;
    display: block !important; /* Changed from flex-column to fix the range dash */
}

/* Tiny 'PRICE' label above the actual number */
.woocommerce ul.products li.product .price::before {
    content: 'PRICE';
    display: block; /* Forces the label to sit on its own line above the price */
    font-size: 0.65rem;
    color: #888888;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Ensure the price numbers and dashes stay inline horizontally */
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price ins {
    display: inline-block !important;
    margin-right: 4px;
}

/* Make deleted (original) prices softer on sale items */
.woocommerce ul.products li.product .price del .amount {
    color: #aaaaaa !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

/* --- 5. The Action Button --- */
.woocommerce ul.products li.product .button {
    margin: auto 20px 20px 20px !important; /* Auto top margin pushes it to the absolute bottom of the card */
    background-color: var(--text-color) !important; 
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    transition: background-color 0.3s ease !important;
    display: block !important; /* Full width button inside the padding */
    width: calc(100% - 40px) !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--accent-pink) !important;
}


/* --- 6. Elegant Sale Badge --- */
.woocommerce span.onsale {
    background-color: var(--accent-pink) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important; /* Pill shaped */
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important; /* Moved to left side for cleaner look */
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
}


/* ====================================================
   SINGLE PRODUCT PAGE ELEGANT REDESIGN
==================================================== */

/* --- 1. The Main Layout (Image & Details) --- */
.woocommerce div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 50px !important;
    margin-top: 20px !important;
}

/* Image Column */
.woocommerce div.product div.images {
    width: 48% !important;
    float: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06) !important;
    border: 1px solid var(--border-light) !important;
}

.woocommerce div.product div.images img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Details Column */
.woocommerce div.product div.summary {
    width: calc(52% - 50px) !important;
    float: none !important;
    padding-top: 10px !important;
}

/* --- 2. Typography (Title & Price) --- */
.woocommerce div.product .product_title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    margin-bottom: 15px !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
    font-family: var(--font-main);
}

.woocommerce div.product .price {
    color: var(--text-color) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Soften the original price if on sale */
.woocommerce div.product .price del {
    opacity: 0.5 !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
}

/* --- 3. Variations Dropdown (The Quantity/Size selector) --- */
.woocommerce div.product table.variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 10px !important;
}

.woocommerce div.product table.variations td {
    padding: 0 0 15px 0 !important;
    display: block !important;
}

.woocommerce div.product table.variations label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    color: #888888 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Premium Dropdown Hack */
.woocommerce div.product table.variations select {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    background-color: var(--pill-bg) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 15px 45px 15px 20px !important;
    font-family: var(--font-main) !important;
    color: var(--text-color) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%233d2c28%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    transition: border-color 0.3s ease !important;
}

.woocommerce div.product table.variations select:focus {
    outline: none !important;
    border-color: var(--accent-pink) !important;
}

/* --- 4. The Add to Cart Bar --- */
.woocommerce div.product form.cart {
    display: flex !important;
    gap: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid var(--border-light) !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
}
.woocommerce div.product .single_variation_wrap {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
/* The Quantity Input Box */
.woocommerce div.product form.cart .quantity input.qty {
    width: 70px !important;
    height: 60px !important;
    border-radius: 12px !important;
    border: 2px solid var(--border-light) !important;
    background-color: var(--pill-bg) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: var(--text-color) !important;
    text-align: center !important;
}

/* The Main Purchase Button */
.woocommerce div.product form.cart .button {
    flex-grow: 1 !important; /* Makes it fill the remaining space */
    height: 60px !important;
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--accent-pink) !important;
    transform: translateY(-3px) !important;
}

/* --- 5. Clean up the Meta Data (SKU, Categories) --- */
.woocommerce div.product .product_meta {
    border-top: 1px solid var(--border-light) !important;
    padding-top: 25px !important;
    font-size: 0.85rem !important;
    color: #888888 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.woocommerce div.product .product_meta span {
    display: block !important;
}

.woocommerce div.product .product_meta a {
    color: var(--text-color) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce div.product .product_meta a:hover {
    color: var(--accent-pink) !important;
}

/* --- 6. Mobile Overrides for Portrait Views --- */
@media screen and (max-width: 992px) {
    .woocommerce div.product {
        flex-direction: column !important; /* Stack vertically to prevent layout breaking on mobile */
        gap: 30px !important;
    }
    
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important; /* Full width */
    }
    
    .woocommerce div.product .product_title {
        font-size: 2.2rem !important; /* Scale text down for smaller screens */
    }
}




/* ====================================================
   GLOBAL PAGE SPACING & ALIGNMENT
==================================================== */

/* --- 1. Main Content Container --- */
/* Forces all page content, including WooCommerce, to respect the screen edges */
.site-content,
.site-main {
    max-width: 1300px; /* Matches the width we set for your header */
    margin: 0 auto;
    padding: 0 2rem; /* The crucial spacing on the left and right sides */
}

/* --- 2. MODERN SHOP HEADER & TOOLBAR --- */

/* The Breadcrumbs (Home / Ice Cream) */
.woocommerce-breadcrumb {
    color: #a0a0a0 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 15px !important;
    font-weight: 600;
}

.woocommerce-breadcrumb a {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--accent-pink) !important;
}

/* The Giant "Ice Cream" Title */
.woocommerce-products-header__title.page-title {
    font-size: 3rem !important; /* Make it massive and bold */
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    color: var(--text-color) !important;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    font-family: var(--font-main);
}

/* --- THE FILTER TOOLBAR ROW --- */
/* Float the result count to the left */
.woocommerce-result-count {
    float: left !important;
    margin: 10px 0 30px 0 !important;
    color: #666666 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* Float the sorting dropdown to the right */
.woocommerce-ordering {
    float: right !important;
    margin: 0 0 30px 0 !important;
}

/* Clear the floats so the grid below doesn't overlap */
.woocommerce-ordering::after {
    content: "";
    display: table;
    clear: both;
}

/* Hack the ugly default browser dropdown to look like a premium button */
.woocommerce-ordering select {
    appearance: none !important; /* Strips away the ugly default browser styling */
    -webkit-appearance: none !important;
    background-color: var(--pill-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 10px !important;
    padding: 10px 45px 10px 20px !important;
    font-family: var(--font-main) !important;
    color: var(--text-color) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    
    /* Injects a custom sleek SVG arrow inside the dropdown */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%233d2c28%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Add a pink highlight when the customer clicks the dropdown */
.woocommerce-ordering select:focus {
    outline: none !important;
    border-color: var(--accent-pink) !important;
    box-shadow: 0 4px 15px rgba(223, 108, 126, 0.15) !important;
}

/* Mobile Overrides for the header */
@media screen and (max-width: 768px) {
    .woocommerce-products-header__title.page-title {
        font-size: 2.2rem !important;
    }
    
    /* Stack the count and dropdown on top of each other for phone screens */
    .woocommerce-result-count,
    .woocommerce-ordering {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    .woocommerce-result-count {
        margin-bottom: 15px !important;
    }
    
    .woocommerce-ordering select {
        width: 100% !important; /* Full width dropdown on mobile */
    }
}

/* Style the Breadcrumbs (Home / Shop / Search results) */
.woocommerce-breadcrumb {
    color: #888888 !important;
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
}

.woocommerce-breadcrumb a {
    color: var(--text-color) !important;
    font-weight: 600;
}

/* Style the Giant "Search results" Title */
.woocommerce-products-header__title.page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    font-family: var(--font-main);
}

/* Space out the "Showing all results" and dropdown box */
.woocommerce-result-count, 
.woocommerce-ordering {
    margin-bottom: 2rem !important;
}

/* --- 3. Mobile Overrides for Spacing --- */
@media screen and (max-width: 992px) {
    .site-content,
    .site-main {
        padding: 0 1.5rem; /* Slightly tighter margins for mobile */
    }
    
    .woocommerce-products-header__title.page-title {
        font-size: 2rem !important; /* Scale down the giant text on phones */
    }
}


/* ====================================================
   CUSTOM SUCCESS NOTIFICATION (THE CART BANNER)
==================================================== */

/* 1. The Pop-in Animation */
@keyframes popInNotification {
    0% { opacity: 0; transform: translateY(-20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2. The Main Banner Body */
.woocommerce-message {
    background-color: var(--pill-bg) !important;
    border: 2px solid var(--accent-pink) !important; /* Thick elegant pink border */
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(223, 108, 126, 0.15) !important; /* Soft pink glow */
    color: var(--text-color) !important;
    padding: 20px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Pushes text left and button right */
    margin-bottom: 40px !important;
    animation: popInNotification 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards !important;
    font-size: 1.05rem !important;
}

/* Hide default WooCommerce Checkmark Icon */
.woocommerce-message::before {
    display: none !important;
}

/* Make the Ice Cream Flavor name pop */
.woocommerce-message strong {
    color: var(--accent-pink) !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

/* 3. The "View Cart" Button */
.woocommerce-message .button.wc-forward {
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    margin: 0 0 0 20px !important;
    float: none !important; /* Kill default woocommerce floats */
    order: 2; /* Forces the button to the right side of the flexbox */
}

.woocommerce-message .button.wc-forward:hover {
    background-color: var(--accent-pink) !important;
    transform: translateY(-2px) !important;
}

/* 4. Mobile Overrides */
@media screen and (max-width: 768px) {
    .woocommerce-message {
        flex-direction: column !important; /* Stack vertically on phones */
        text-align: center !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    .woocommerce-message .button.wc-forward {
        margin: 0 !important;
        width: 100% !important; /* Full width button on mobile */
    }
}


/* ====================================================
   PRODUCT TABS REDESIGN (DESCRIPTION, INFO, REVIEWS)
==================================================== */

.woocommerce div.product .woocommerce-tabs {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid var(--border-light) !important;
}

/* --- 1. The Minimalist Tab Buttons --- */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    border: none !important;
    display: flex !important;
    gap: 40px !important;
    background: transparent !important;
}

/* Remove WooCommerce's default structural borders */
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important; 
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 10px 0 !important;
    margin: 0 !important;
    position: relative !important; /* Needed for the animated underline */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    display: none !important; 
}

/* Style the tab text */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #a0a0a0 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease !important;
    font-family: var(--font-main) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--text-color) !important;
}

/* --- 2. The Animated Pink Underline (Active State) --- */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--accent-pink) !important;
}

/* Create the underline element */
.woocommerce div.product .woocommerce-tabs ul.tabs li span.active-bar {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--accent-pink) !important;
    transform: scaleX(0) !important;
    transform-origin: right !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: block !important;
    border-radius: 3px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active span.active-bar,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--accent-pink) !important;
    display: block !important;
    border-radius: 3px !important;
}

/* --- 3. The Content Reading Experience --- */
.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0 !important;
    padding: 20px 0 !important;
}

/* Hide the ugly, redundant sub-headings inside the panels */
.woocommerce div.product .woocommerce-tabs .panel h2 {
    display: none !important; 
}

/* Style the paragraph text for maximum readability */
.woocommerce div.product .woocommerce-tabs .panel p {
    color: #555555 !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

/* --- 4. The "Additional Information" Table Fix --- */
.woocommerce table.shop_attributes {
    border: none !important;
    border-top: 1px solid var(--border-light) !important;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    border-bottom: 1px solid var(--border-light) !important;
    padding: 20px 10px !important;
    background: transparent !important;
}

.woocommerce table.shop_attributes th {
    color: var(--text-color) !important;
    font-weight: 800 !important;
    width: 150px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
}

.woocommerce table.shop_attributes td p {
    color: var(--text-color) !important;
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-style: normal !important; /* Overrides the ugly default italics */
    font-weight: 500 !important;
}

/* --- 5. Mobile Adjustments --- */
@media screen and (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Allows swiping through tabs on small screens */
        padding-bottom: 5px !important;
        gap: 25px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
    }
}






/* ====================================================
   MOBILE OVERFLOW & RELATED PRODUCTS FIX
==================================================== */

@media screen and (max-width: 768px) {
    /* 1. Fix the Page Edges */
    .site-content,
    .site-main {
        padding: 0 1.2rem !important; /* Reduces side padding to give elements more room to breathe */
        max-width: 100vw !important;
        overflow-x: hidden !important; /* Hard lock to prevent the page from shifting right */
    }

    /* 2. Fix the Related Products Grid */
    .woocommerce ul.products {
        grid-template-columns: 1fr !important; /* Overrides the 260px rule and forces 1 perfect column */
        gap: 20px !important;
    }
    
    .woocommerce ul.products li.product {
        margin-bottom: 10px !important;
    }

    /* 3. Stack the Tabs Vertically */
    /* Instead of squeezing "Description / Info / Reviews" on one line, stack them cleanly */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        width: 100% !important; /* Full width tabs */
        padding-bottom: 10px !important;
        border-bottom: 1px solid var(--border-light) !important; /* Soft separator lines */
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 1rem !important;
        display: block !important;
    }

    /* Align the animated pink underline perfectly with the new vertical layout */
    .woocommerce div.product .woocommerce-tabs ul.tabs li span.active-bar,
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
        bottom: -1px !important; 
    }
    
    /* Ensure paragraph text breaks properly and doesn't push the screen */
    .woocommerce div.product .woocommerce-tabs .panel p,
    .woocommerce div.product .woocommerce-tabs .panel {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
    }
}

/* ====================================================
   BULLETPROOF RELATED PRODUCTS GRID FIX
==================================================== */

/* 1. Force the container to take up 100% of the screen width */
.woocommerce div.product .related.products,
.woocommerce div.product .up-sells {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important; /* Forces the flexbox to dedicate a full row to this section */
    display: block !important;
    margin-top: 60px !important;
    clear: both !important;
}

/* 2. Force the internal list into a strict 4-column row */
.woocommerce .related.products ul.products,
.woocommerce .up-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Exactly 4 cards across on desktop */
    gap: 30px !important;
    width: 100% !important;
}

/* 3. Strip away WooCommerce's hidden legacy floats */
.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

/* 4. Let the cards fill the grid perfectly */
.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}

/* 5. Responsive Grid Rules for Tablets and Phones */
@media screen and (max-width: 992px) {
    .woocommerce .related.products ul.products,
    .woocommerce .up-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on iPads/tablets */
    }
}

@media screen and (max-width: 768px) {
    .woocommerce .related.products ul.products,
    .woocommerce .up-sells ul.products {
        grid-template-columns: 1fr !important; /* 1 column on phones */
    }
}

/* ====================================================
   PREMIUM MODULAR FOOTER
==================================================== */

.site-footer {
    background-color: var(--pill-bg);
    border-top: 1px solid var(--border-light);
    padding-top: 80px;
    margin-top: 60px;
    font-family: var(--font-main);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* 4 columns, brand and newsletter get slightly more space */
    gap: 50px;
}

/* --- Typography & Elements --- */
.footer-widget h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-widget p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

/* --- Footer Links --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-pink) !important;
    transform: translateX(5px); /* Smooth slide to the right on hover */
}

/* --- Newsletter Form --- */
.footer-subscribe {
    display: flex;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.footer-subscribe:focus-within {
    border-color: var(--accent-pink);
}

.footer-subscribe input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    color: var(--text-color);
}

.footer-subscribe button {
    background-color: var(--text-color);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.footer-subscribe button:hover {
    background-color: var(--accent-pink);
}

/* --- Bottom Copyright Bar --- */
.footer-bottom {
    max-width: 1300px;
    margin: 60px auto 0;
    padding: 25px 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media screen and (max-width: 768px) {
    .site-footer {
        padding-top: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr; /* Stack into a single column on phones */
        gap: 40px;
        text-align: center; /* Center everything on mobile for a cleaner look */
    }

    .footer-logo {
        margin: 0 auto 20px auto; /* Centers the logo */
    }

    .footer-links a:hover {
        transform: none; /* Disable the slide effect on touch screens */
    }
}




/* ====================================================
   1. THE CART PAGE REDESIGN
==================================================== */

/* --- Layout: Split Screen Grid --- */
.woocommerce-cart .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-top: 20px !important;
}

/* Left Side: Cart Table */
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 60% !important;
}

/* Right Side: Totals Box */
.woocommerce-cart .cart-collaterals {
    flex: 1 1 30% !important;
    width: 100% !important;
}

/* --- The Cart Table --- */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce table.shop_table th {
    background-color: transparent !important;
    border-bottom: 2px solid var(--border-light) !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    padding: 0 0 15px 0 !important;
    border-top: none !important;
}

.woocommerce table.shop_table td {
    border-bottom: 1px solid var(--border-light) !important;
    border-top: none !important;
    padding: 25px 0 !important;
    background-color: transparent !important;
    vertical-align: middle !important;
}

/* Product Images */
.woocommerce table.cart .product-thumbnail img {
    width: 90px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05) !important;
}

/* Product Titles & Links */
.woocommerce table.cart .product-name a {
    color: var(--text-color) !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    text-decoration: none !important;
    font-family: var(--font-main);
}

.woocommerce table.cart .product-name a:hover {
    color: var(--accent-pink) !important;
}

/* Remove Item Icon (The Red X) */
.woocommerce table.cart a.remove {
    color: #ff4d4d !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

.woocommerce table.cart a.remove:hover {
    background-color: #ff4d4d !important;
    color: #ffffff !important;
}

/* Quantity Box */
.woocommerce-cart .quantity input.qty {
    width: 60px !important;
    height: 45px !important;
    border-radius: 8px !important;
    border: 2px solid var(--border-light) !important;
    background-color: var(--pill-bg) !important;
    color: var(--text-color) !important;
    font-weight: 700 !important;
}

/* --- Coupon & Update Section --- */
.woocommerce-cart .actions {
    padding: 30px 0 !important;
    border: none !important;
}

.woocommerce-cart .actions .coupon input.input-text {
    height: 50px !important;
    border-radius: 8px !important;
    border: 2px solid var(--border-light) !important;
    padding: 0 15px !important;
    width: 200px !important;
    font-family: var(--font-main);
}

.woocommerce-cart .actions .button {
    height: 50px !important;
    border-radius: 8px !important;
    background-color: #f2f2f2 !important;
    color: var(--text-color) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce-cart .actions .button:hover {
    background-color: var(--text-color) !important;
    color: #ffffff !important;
}

/* --- The Cart Totals Receipt Box --- */
.woocommerce .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    background-color: var(--pill-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 20px !important;
    padding: 35px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06) !important;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    border-bottom: 2px solid var(--border-light) !important;
    padding-bottom: 20px !important;
    margin-bottom: 25px !important;
    font-family: var(--font-main);
}

/* Grand Total Size */
.woocommerce-cart .order-total th, 
.woocommerce-cart .order-total td {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    border-top: 2px solid var(--border-light) !important;
    padding-top: 20px !important;
}

.woocommerce-cart .order-total td strong {
    color: var(--accent-pink) !important;
}

/* Massive Checkout Button */
.woocommerce .cart-collaterals .checkout-button {
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    text-align: center !important;
    margin-top: 30px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.woocommerce .cart-collaterals .checkout-button:hover {
    background-color: var(--accent-pink) !important;
    transform: translateY(-3px) !important;
}

/* --- Mobile Fixes --- */
@media screen and (max-width: 992px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column !important;
    }
    
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100% !important;
    }
    
    .woocommerce-cart .actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .woocommerce-cart .actions .coupon input.input-text {
        width: 100% !important;
    }
}




/* ====================================================
   MY ACCOUNT PAGE REDESIGN
==================================================== */

/* --- 1. The Main Layout Grid --- */
.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 40px !important;
    margin-top: 40px !important;
    align-items: flex-start !important;
}

/* Enlarge the Page Title */
.woocommerce-account .page-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    color: var(--text-color) !important;
    margin-bottom: 20px !important;
    font-family: var(--font-main);
}

/* --- 2. The Sidebar Navigation Menu --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px !important;
    flex-shrink: 0 !important;
    background-color: var(--pill-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 15px 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border-light) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}

/* Style the links */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 16px 30px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* Smooth indent and color change on hover */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--accent-pink) !important;
    padding-left: 36px !important; 
    background-color: #fafafa !important;
}

/* The Active Page Indicator */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--accent-pink) !important;
    font-weight: 800 !important;
    border-left: 4px solid var(--accent-pink) !important;
    padding-left: 26px !important; /* Compensate for the 4px border so text stays aligned */
    background-color: #fff9fa !important; /* Very soft pink background */
}

/* Hide the irrelevant "Downloads" tab for physical products */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

/* --- 3. The Main Content Card --- */
.woocommerce-account .woocommerce-MyAccount-content {
    flex-grow: 1 !important;
    width: calc(100% - 320px) !important;
    background-color: var(--pill-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 50px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}

/* Make the text inside the card highly readable */
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 1.15rem !important;
    color: #555555 !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

/* Style the inline links inside the dashboard (like "Log out" or "Recent orders") */
.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--accent-pink) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: var(--text-color) !important;
}

/* --- 4. Mobile Overrides --- */
@media screen and (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important; /* Stack the nav above the content */
    }
    
    /* Turn the vertical sidebar into a horizontal swiping menu */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        overflow-x: auto !important; /* Allows swiping */
        white-space: nowrap !important;
        padding-bottom: 5px !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        border-bottom: none !important;
        border-right: 1px solid var(--border-light) !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left: none !important;
        border-bottom: 3px solid var(--accent-pink) !important;
        padding-left: 20px !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 15px 20px !important;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
        padding-left: 20px !important; /* Disable hover indent on mobile */
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        padding: 30px 20px !important;
    }
}

/* ====================================================
   5. MY ACCOUNT CONTENT & FORMS REDESIGN
==================================================== */

/* --- Typography & Headings --- */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    margin-bottom: 20px !important;
    font-family: var(--font-main);
}

/* --- The 'No Orders' Alert Box --- */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message {
    background-color: #fff9fa !important; /* Soft pink tint */
    border: 2px solid var(--accent-pink) !important;
    border-radius: 12px !important;
    padding: 20px 30px !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Pushes text left, button right */
    box-shadow: none !important;
}

/* Hide WooCommerce's outdated default icons */
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before {
    display: none !important;
}

/* --- Premium Buttons (Save Changes, Browse Products) --- */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-info .button {
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: inline-block !important;
}

.woocommerce-MyAccount-content .button:hover {
    background-color: var(--accent-pink) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(223, 108, 126, 0.2) !important;
}

/* --- The Address Grid (Billing & Shipping) --- */
.woocommerce-MyAccount-content .u-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
}

.woocommerce-MyAccount-content .u-column1,
.woocommerce-MyAccount-content .u-column2 {
    width: 100% !important;
    float: none !important;
    background: #fafafa !important;
    border: 1px solid var(--border-light) !important;
    padding: 30px !important;
    border-radius: 16px !important;
}

.woocommerce-MyAccount-content address {
    font-style: normal !important;
    line-height: 1.8 !important;
    color: #555555 !important;
    margin-bottom: 20px !important;
}

.woocommerce-MyAccount-content header.title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

.woocommerce-MyAccount-content header.title h3 {
    margin: 0 !important;
}

.woocommerce-MyAccount-content a.edit {
    color: var(--accent-pink) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* --- Form Fields & Inputs (Account Details) --- */
.woocommerce-MyAccount-content form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.woocommerce-MyAccount-content .form-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make First Name & Last Name sit side-by-side */
.woocommerce-MyAccount-content .form-row-first,
.woocommerce-MyAccount-content .form-row-last {
    width: calc(50% - 10px) !important;
}

.woocommerce-MyAccount-content label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: var(--text-color) !important;
    margin-bottom: 8px !important;
}

.woocommerce-MyAccount-content input.input-text {
    width: 100% !important;
    height: 50px !important;
    border-radius: 10px !important;
    border: 2px solid var(--border-light) !important;
    padding: 0 15px !important;
    background-color: #fafafa !important;
    font-family: var(--font-main) !important;
    color: var(--text-color) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.woocommerce-MyAccount-content input.input-text:focus {
    border-color: var(--accent-pink) !important;
    background-color: var(--pill-bg) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(223, 108, 126, 0.1) !important; /* Soft pink glow on click */
}

/* Remove ugly required asterisk red color */
.woocommerce-MyAccount-content required {
    color: var(--accent-pink) !important;
    text-decoration: none !important;
}

/* --- Password Change Box --- */
.woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-top: 20px !important;
    width: 100% !important;
    background-color: var(--pill-bg) !important;
}

.woocommerce-MyAccount-content legend {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    padding: 0 15px !important;
}

/* --- Mobile Fixes for Content --- */
@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-content .u-columns {
        grid-template-columns: 1fr !important; /* Stack addresses */
    }
    
    .woocommerce-MyAccount-content .form-row-first,
    .woocommerce-MyAccount-content .form-row-last {
        width: 100% !important; /* Stack names */
    }
    
    .woocommerce-MyAccount-content .woocommerce-info {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
}



/* ====================================================
   WOOCOMMERCE BLOCKS FIX (CART & NEW IN STORE) - FINAL
==================================================== */

/* --- 1. NUKE THE SAD FACE SVG --- */
/* Target the deeply nested Gutenberg SVGs */
.wc-block-components-empty-state svg,
.wc-block-cart__empty-cart__icon svg,
.wc-empty-cart-message__icon svg {
    display: none !important;
}

/* Inject the fun emojis */
.wc-block-components-empty-state__icon::before,
.wc-block-cart__empty-cart__icon::before {
    content: "🫠 🍦 🏃💨" !important;
    font-size: 4.5rem !important;
    display: block !important;
    letter-spacing: 15px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

/* Upgrade empty cart text & button */
.wc-block-cart__empty-cart__title {
    font-family: var(--font-main) !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
}

.wc-block-cart__submit-button {
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.wc-block-cart__submit-button:hover {
    background-color: var(--accent-pink) !important;
    transform: translateY(-3px) !important;
}

/* --- 2. THE GRID & CARD STRUCTURE --- */
.wc-block-components-title {
    font-family: var(--font-main) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    margin-top: 60px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

ul.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul.wc-block-grid__products li.wc-block-grid__product {
    width: 100% !important;
    max-width: none !important; 
    margin: 0 !important;
    background-color: var(--pill-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

ul.wc-block-grid__products li.wc-block-grid__product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
}


/* --- 3. FORCE IMAGES TO THE EDGES (FIXED PADDING) --- */
/* Target the specific Gutenberg wrapper that adds unwanted white space */
.wc-block-components-product-image,
.wc-block-grid__product-image {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img {
    border-radius: 20px 20px 0 0 !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important;
}

/* --- 4. MATCH THE SALE BADGE (Pink, Top-Left) --- */
.wc-block-grid__product .wc-block-components-product-sale-badge,
.wc-block-grid__product .wc-block-grid__product-onsale {
    background-color: var(--accent-pink) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 5px 15px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    border: none !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    position: absolute !important;
    z-index: 9 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* --- 5. MATCH TYPOGRAPHY (Fixed Price Stacking) --- */
.wc-block-grid__product-title,
.wc-block-grid__product-price {
    text-align: left !important;
    padding: 0 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wc-block-grid__product-title {
    margin-top: 20px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    font-family: var(--font-main) !important;
}

/* 
   Changed to 'display: block' and added 'white-space: nowrap' 
   so the $12.00 - $100.00 is locked onto a single, unbroken line 
*/
.wc-block-grid__product-price {
    color: var(--text-color) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    display: block !important; 
    white-space: nowrap !important; 
}

/* Inject the tiny "PRICE" label safely above the cost */
.wc-block-grid__product-price::before {
    content: "PRICE" !important;
    display: block !important;
    font-size: 0.65rem !important;
    color: #a0a0a0 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
}

/* --- 6. MATCH THE BUTTON --- */
.wc-block-grid__product-add-to-cart {
    margin-top: auto !important;
    width: 100% !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link {
    margin: 0 20px 20px 20px !important;
    background-color: var(--text-color) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 10px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    width: calc(100% - 40px) !important;
    display: block !important;
}

/* Mobile Overrides */
@media screen and (max-width: 992px) {
    ul.wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    ul.wc-block-grid__products {
        grid-template-columns: 1fr !important;
    }
}

/* ====================================================
   HEADER & MOBILE NAVIGATION UPGRADES
==================================================== */

/* --- 1. Increase Desktop Menu Font Size --- */
.header-container .nav-pill a {
    font-size: 1rem !important; /* Increased for better readability */
    font-weight: 700 !important; /* Make it slightly bolder */
    letter-spacing: 0.5px !important;
}

/* --- 2. Mobile Icon Layout (Stack Icon & Text) --- */
.mobile-icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important; /* The tiny space between the icon and the text */
    text-decoration: none !important;
}

/* Make sure the icons don't have weird bottom margins pushing the text away */
.mobile-icon svg {
    margin-bottom: 0 !important;
}

/* --- 3. Style the Mobile Text Labels --- */
.mobile-icon-label {
    font-size: 0.65rem !important; /* Keep it tiny and app-like */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

/* Change the text color to pink when hovered or active */
.mobile-icon:hover .mobile-icon-label,
.mobile-icon.active .mobile-icon-label {
    color: var(--accent-pink) !important;
}

/* ====================================================
   PREMIUM CART PAGE DESIGN (FIXED)
==================================================== */

/* 1. Make the Cart Table Typography Beautiful */
.wc-block-cart-items .wc-block-cart-item__title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    font-family: var(--font-main) !important;
}

.wc-block-cart-item__price {
    font-weight: 700 !important;
    color: var(--text-color) !important;
}

/* 2. Fix the "Proceed to Checkout" Button & Hover */
.wc-block-cart__submit-button {
    background-color: var(--accent-pink) !important;
    color: #ffffff !important; /* Forces the text to stay white */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
}

.wc-block-cart__submit-button:hover {
    background-color: var(--text-color) !important; /* Switches to espresso on hover */
    color: #ffffff !important; /* Keeps the text white, never pink */
    transform: translateY(-3px) !important;
}

/* 3. Style the "Cart Totals" Section */
.wc-block-cart__totals-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
    margin-bottom: 20px !important;
    font-family: var(--font-main) !important;
}

.wc-block-components-totals-item__value {
    font-weight: 800 !important;
    color: var(--text-color) !important;
    font-size: 1.2rem !important;
}

/* 4. Quantity Input Styling */
.wc-block-components-quantity-selector input {
    border: 2px solid var(--border-light) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    background: var(--pill-bg) !important;
}

/* 5. Remove Item Link */
.wc-block-cart-item__remove-link {
    color: #a0a0a0 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
}






/* --- HERO SECTION --- */
/* --- FULL-WIDTH HERO IMAGE SECTION --- */
.hero-full {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Responsive height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px; /* Rounded corners */
    margin: 20px auto;
    max-width: 1300px; /* Keeps the modular width */
    overflow: hidden;
}

/* Mobile responsiveness: Reduce height on smaller screens */
@media screen and (max-width: 768px) {
    .hero-full {
        min-height: 40vh;
        border-radius: 20px;
    }
}

/* --- UPDATED HERO CONTENT STYLING --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff !important; /* Force white text for contrast */
    padding: 40px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff !important; /* Ensure the header is white */
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95; /* Keep it slightly lighter than the headline */
    color: #ffffff !important; /* Ensure the paragraph is white */
}

/* Dark overlay to make white text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}


.hero-button {
    background: var(--accent-pink);
    color: #ffffff;
    padding: 20px 50px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.05);
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--text-color);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 20px;
}

/* --- FEATURED SECTION --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.featured-flavors {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.featured-flavors h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-tile {
    background: var(--pill-bg);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-tile:hover {
    transform: translateY(-5px);
}

.product-tile img {
    border-radius: 16px;
    width: 100%;
}

.btn {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: var(--text-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

/* --- PREMIUM BEST SELLERS GRID --- */
.featured-flavors {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

.featured-flavors h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
}

/* Force the WooCommerce products into your premium card look */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
}

ul.products li.product {
    background: var(--pill-bg) !important;
    border-radius: 24px !important;
    padding: 20px !important;
    text-align: center !important;
    border: 1px solid var(--border-light) !important;
}

/* Rounded Images */
ul.products li.product img {
    border-radius: 16px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* Button Styling to match */
ul.products li.product a.button {
    display: block !important;
    margin-top: 15px !important;
    padding: 12px !important;
    background: var(--text-color) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}


/* ====================================================
   PREMIUM CONTACT PAGE DESIGN
==================================================== */

.contact-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Card Styling */
.contact-info-card, .contact-form-card {
    background: var(--pill-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
}

/* Typography adjustments */
.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
}

.contact-info-card ul {
    list-style: none;
    padding: 0;
}

.contact-info-card li {
    margin-bottom: 15px;
    font-weight: 600;
    color: #666;
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* --- KILL DEFAULT WORDPRESS SIDEBAR BLOAT --- */

/* Target the specific container that usually holds the Search, Pages, Archives, Categories */
.widget_search, 
.widget_pages, 
.widget_archive, 
.widget_categories, 
.widget_meta {
    display: none !important;
}

/* If there is a sidebar wrapper, hide it too */
aside, #secondary, .sidebar {
    display: none !important;
}