/* ==============================================================
   1. Brand Colors, Fonts & General Setup (Premium Look)
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Core Brand Colors */
    --brand-green: #8dc63f; 
    --brand-teal: #00897b;  
    --brand-navy: #0d1b2a;  
    --brand-coral: #db6e5e; 
    
    /* Extended Tints & Shades for Depth */
    --brand-teal-light: #e0f2f1;
    --brand-navy-light: #1b2f4c;
    
    /* Neutrals */
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(13, 27, 42, 0.04);
    --shadow-md: 0 10px 20px rgba(13, 27, 42, 0.08);
    --shadow-lg: 0 20px 30px rgba(13, 27, 42, 0.12);
    --shadow-glow: 0 8px 25px rgba(0, 137, 123, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-color); 
    margin: 0;
    padding: 0;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==============================================================
   2. Sleek Header & Navigation
   ============================================================== */
.site-header {
    /* Glassmorphism Effect */
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky; 
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 137, 123, 0.1);
}

.site-branding img, .custom-logo {
    max-width: 220px; 
    height: auto;
    transition: var(--transition-smooth);
}

.site-branding img:hover, .custom-logo:hover {
    transform: scale(1.03); 
}

/* Navigation Menu Enhancements */
.main-navigation ul, .nav-menu {
    display: flex;
    gap: 15px; /* Reduced from 30px to save space */
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap !important; /* Stop wrapping to next line */
}

.main-navigation ul li a, .nav-menu li a {
    text-decoration: none;
    color: var(--brand-navy) !important;
    font-weight: 600 !important;
    font-size: 13px; /* Reduced from 15px to save space */
    text-transform: uppercase;
    transition: var(--transition-smooth);
    padding: 10px 0;
    position: relative;
    white-space: nowrap; /* Keep words on same line */
}

/* Modern Hover Underline Effect */
.main-navigation ul li a::after, .nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-teal);
    transition: var(--transition-smooth);
}

.main-navigation ul li a:hover, .nav-menu li a:hover {
    color: var(--brand-teal) !important;
}

.main-navigation ul li a:hover::after, .nav-menu li a:hover::after {
    width: 100%;
}

/* ==============================================================
   3. WooCommerce Shop Page Grid
   ============================================================== */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 40px;
    list-style: none; 
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px; 
}

/* ==============================================================
   4. Premium Single Product Card Design
   ============================================================== */
ul.products li.product {
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    overflow: hidden; /* For image rounded corners */
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

ul.products li.product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); 
}

/* Images & Zoom Effect */
.my-custom-img-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    background: #f1f5f9; /* Soft background for transparent images */
}

.my-custom-img-wrapper img {
    max-width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

ul.products li.product:hover .my-custom-img-wrapper img {
    transform: scale(1.08); /* Modern subtle zoom */
}

/* Typography inside card */
ul.products li.product h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 20px 10px;
    color: var(--brand-navy); 
    line-height: 1.4;
}

ul.products li.product .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-teal); 
    margin-bottom: 25px;
}

/* Premium Add to Cart Button */
ul.products li.product .button {
    margin: 0 20px 25px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #00695c 100%);
    color: var(--surface-color);
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 50px; /* Pill shape for modern look */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

ul.products li.product .button:hover {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ==============================================================
   5. Dynamic Hero Banner
   ============================================================== */
.djbot-hero-section {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: var(--surface-color);
    padding: 120px 20px;
    text-align: center;
    border-radius: 24px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.djbot-hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-teal);
    filter: blur(80px);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    opacity: 0.3;
}

.djbot-hero-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--brand-coral);
    filter: blur(80px);
    border-radius: 50%;
    bottom: -80px;
    right: -80px;
    opacity: 0.2;
}

.djbot-hero-section .hero-content {
    position: relative;
    z-index: 10;
}

.djbot-hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--surface-color);
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.djbot-hero-section h1 span {
    color: var(--brand-green);
}

.djbot-hero-section p {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons a {
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.hero-buttons .btn-primary {
    background-color: var(--brand-green);
    color: var(--brand-navy);
    box-shadow: 0 10px 20px rgba(141, 198, 63, 0.3);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--surface-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.4);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--surface-color);
    backdrop-filter: blur(5px);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--surface-color);
    color: var(--brand-navy);
    transform: translateY(-3px);
}

/* ==============================================================
   6. Advanced Off-Canvas Glassmorphic Cart
   ============================================================== */
.offcanvas-cart {
    position: fixed;
    top: 0;
    right: -450px; 
    width: 420px;
    max-width: 100%;
    height: 100vh;
    
    /* Modern Glass Effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    box-shadow: -10px 0 30px rgba(13, 27, 42, 0.1);
    z-index: 999999;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.offcanvas-cart.open {
    right: 0; 
}

/* Backdrop Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.4); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s ease;
}

.cart-overlay.show {
    visibility: visible;
    opacity: 1;
}

.offcanvas-cart .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: transparent;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-cart .cart-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--brand-navy);
    font-weight: 600;
}

.close-btn {
    background: #f1f5f9;
    border: none;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    background: var(--brand-coral);
    color: var(--surface-color);
    transform: rotate(90deg);
}

.offcanvas-cart .cart-content {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Mini Cart Buttons */
.woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    padding: 16px;
    background: var(--brand-teal);
    color: var(--surface-color);
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: var(--brand-navy);
}

.woocommerce-mini-cart__buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header Icons (Cart & Account) */
.custom-cart-icon a.cart-trigger, .custom-account-icon a {
    font-size: 24px;
    text-decoration: none;
    position: relative;
    padding: 10px;
    background: var(--surface-color);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transition: var(--transition-smooth);
}

.custom-cart-icon a.cart-trigger:hover, .custom-account-icon a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.custom-cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-coral); 
    color: var(--surface-color);
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; 
    box-shadow: 0 4px 8px rgba(219, 110, 94, 0.4);
}

/* ==============================================================
   7. Premium Single Product Page
   ============================================================== */
.woocommerce div.product {
    display: block; /* Removed grid to prevent layout breaking */
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background: var(--surface-color);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden; /* Clear floating elements */
}

/* Left Image Section */
.woocommerce #content div.product div.images, 
.woocommerce div.product div.images {
    width: 46% !important;
    float: left !important;
    margin-bottom: 40px;
}

/* Right Summary Section */
.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary {
    width: 48% !important;
    float: right !important;
    clear: none !important;
    margin-bottom: 40px;
}

/* Ensure Tabs and Related Products stay below the image/summary */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .up-sells {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 2px solid var(--border-light);
}

.woocommerce div.product .product_title {
    color: var(--brand-navy);
    font-size: 38px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.woocommerce div.product .price {
    color: var(--brand-teal);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
    display: block;
}

/* Quantity & Add to Cart */
.woocommerce div.product form.cart {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.woocommerce div.product form.cart .qty {
    width: 80px;
    height: 56px;
    padding: 0 15px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--brand-navy);
}

.woocommerce div.product form.cart .button {
    background: linear-gradient(135deg, var(--brand-teal) 0%, #00695c 100%);
    color: var(--surface-color);
    padding: 0 40px;
    height: 56px; 
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-grow: 1;
}

.woocommerce div.product form.cart .button:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* ==============================================================
   8. Elegant Checkout Form & Modern Inputs
   ============================================================== */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 60px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--brand-teal);
    background-color: var(--surface-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.1);
}

/* Order Review Card */
#order_review {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--brand-teal);
}

/* ==============================================================
   9. Custom Sleek Footer
   ============================================================== */
.djbot-custom-footer {
    background-color: var(--brand-navy);
    color: var(--surface-color);
    padding: 80px 0 0 0;
    margin-top: 80px; 
    position: relative;
    overflow: hidden;
}

.djbot-custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-green), var(--brand-coral));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-col h3 {
    color: var(--brand-green);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col ul li a {
    color: #94a3b8;
    line-height: 1.8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-col ul li a:hover {
    color: var(--brand-coral); 
    transform: translateX(10px); 
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    background-color: rgba(0,0,0,0.2); 
    margin-top: 60px;
    font-size: 14px;
    color: #64748b;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==============================================================
   10. Mobile Responsiveness
   ============================================================== */
@media (max-width: 992px) {
    .woocommerce-checkout form.checkout,
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .woocommerce #content div.product div.images, 
    .woocommerce div.product div.images,
    .woocommerce #content div.product div.summary, 
    .woocommerce div.product div.summary {
        width: 100% !important;
        float: none !important;
    }
}

@media (max-width: 768px) {
    .site-header { padding: 15px 20px; }
    ul.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 40px 15px; }
    .djbot-hero-section { padding: 80px 20px; border-radius: 16px; margin: 20px; }
    .djbot-hero-section h1 { font-size: 40px; }
    .hero-buttons { flex-direction: column; }
    .woocommerce div.product { padding: 20px; border-radius: 16px; margin: 20px 10px; }
    .woocommerce div.product .product_title { font-size: 28px; }
}

/* ==============================================================
   11. Advanced Features CSS (Hover Swap & Sticky Cart)
   ============================================================== */

/* Product Image Hover Swap */
.my-custom-img-wrapper { position: relative; }
.my-custom-img-wrapper .djbot-hover-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; /* Keeps proportions nice */
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 16px 16px 0 0;
}
ul.products li.product:hover .djbot-hover-image {
    opacity: 1; /* Fade in the second image on hover */
}

/* Sticky Add to Cart Bar */
.djbot-sticky-cart {
    position: fixed;
    bottom: -120px; /* Hidden by default */
    left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -10px 30px rgba(13, 27, 42, 0.1);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
    border-top: 1px solid rgba(0, 137, 123, 0.2);
}
.djbot-sticky-cart.visible { bottom: 0; }
.sticky-cart-content { 
    max-width: 1200px; margin: 0 auto; display: flex; 
    justify-content: space-between; align-items: center; padding: 0 20px; 
}
.sticky-product-details { display: flex; align-items: center; gap: 15px; }
.sticky-product-details img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.sticky-title { font-weight: 600; font-size: 16px; color: var(--brand-navy); }
.sticky-price-btn { display: flex; align-items: center; gap: 25px; }
.sticky-price { font-weight: 700; color: var(--brand-teal); font-size: 20px; }
.sticky-price-btn .button { 
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-green) 100%); 
    color: #fff; padding: 12px 30px; border: none; border-radius: 50px; 
    font-weight: 600; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3); transition: all 0.3s ease;
}
.sticky-price-btn .button:hover { 
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 137, 123, 0.4); 
}
@media(max-width: 768px) {
    .sticky-product-details { display: none; }
    .sticky-price-btn { width: 100%; justify-content: space-between; }
}

/* ==============================================================
   12. Mobile Bottom Navigation & Custom Sale Badges
   ============================================================== */
.djbot-mobile-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .djbot-mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        z-index: 99999;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .djbot-mobile-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        transition: 0.3s;
        width: 25%;
    }
    
    .djbot-mobile-nav .nav-item:hover, .djbot-mobile-nav .nav-item:active {
        color: var(--brand-teal);
    }
    
    .djbot-mobile-nav .nav-item .icon {
        font-size: 22px;
        margin-bottom: 3px;
        position: relative;
    }
    
    .djbot-mobile-nav .nav-item .cart-count {
        position: absolute;
        top: -5px; right: -8px;
        background: var(--brand-coral);
        color: white;
        font-size: 10px;
        width: 18px; height: 18px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        font-weight: bold;
    }
    
    body { padding-bottom: 65px; } /* Prevent footer hide */
    
    .djbot-whatsapp-btn {
        bottom: 85px !important; 
    }
    .djbot-sticky-cart.visible {
        bottom: 65px !important; 
    }
}

/* Custom Percentage Sale Badge Styles */
.woocommerce span.onsale, 
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale.djbot-sale-badge {
    background: linear-gradient(135deg, var(--brand-coral) 0%, #c0392b 100%) !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 10px rgba(219, 110, 94, 0.4) !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    z-index: 9 !important;
    letter-spacing: 0.5px !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==============================================================
   13. Custom Premium Scrollbar
   ============================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand-teal), var(--brand-green)); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--brand-navy), var(--brand-teal)); 
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-teal) var(--bg-color);
}

/* ==============================================================
   14. Custom Stock Badges
   ============================================================== */
.djbot-stock-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Displayed on the left, separate from action buttons on the right */
    z-index: 9;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* If the product has a Sale badge, push the stock badge down to avoid overlap */
.woocommerce ul.products li.product.sale .djbot-stock-badge,
.woocommerce ul.products li.product.onsale .djbot-stock-badge {
    top: 55px !important;
}

.djbot-stock-badge.out-of-stock {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
}
.djbot-stock-badge.low-stock {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
}

/* ==============================================================
   15. Enhanced Sticky Header Glassmorphism Scroll
   ============================================================== */
.site-header {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease !important;
}
.site-header.djbot-scrolled-header {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 137, 123, 0.15) !important;
    border-bottom: 1px solid rgba(0, 137, 123, 0.2) !important;
}

/* ==============================================================
   17. DJ BOT Daraz-Style Home Layout
   ============================================================== */
.djbot-daraz-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Hero Section: Sidebar + Slider */
.dz-hero-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 400px; /* Fixed height for consistent look */
}
.dz-sidebar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    overflow-y: auto;
}
.dz-cat-menu {
    list-style: none;
    margin: 0; padding: 10px 0;
}
.dz-cat-menu li {
    margin: 0; padding: 0;
}
.dz-cat-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.dz-cat-menu li a:hover {
    background: rgba(0, 137, 123, 0.08); /* slight teal tint */
    color: var(--brand-teal);
    padding-left: 25px; /* Indent effect */
}
.dz-cat-menu .arrow { opacity: 0.5; }

.dz-slider {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    border-radius: 0 16px 16px 0;
}
.dz-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quick Categories Links */
.dz-quick-categories {
    margin-bottom: 40px;
    background: var(--surface-color);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.dz-cat-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.dz-cat-grid::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.dz-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    min-width: 90px;
    transition: transform 0.3s;
}
.dz-cat-item:hover {
    transform: translateY(-5px);
}
.dz-cat-item img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid var(--brand-teal-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.dz-cat-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--brand-teal-light) 0%, #b2dfdb 100%);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid white;
}
.dz-cat-item span {
    font-size: 13px;
    color: var(--text-main);
    text-align: center;
    font-weight: 600;
}

/* Section Headers */
.dz-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}
.dz-section-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--brand-navy);
    font-weight: 700;
}
.dz-shop-more {
    font-size: 13px;
    color: var(--brand-teal);
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--brand-teal);
    padding: 6px 18px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}
.dz-shop-more:hover {
    background: var(--brand-teal);
    color: white;
}

/* Flash Sale Row */
.dz-flash-sale {
    margin-bottom: 50px;
    background: linear-gradient(135deg, rgba(219,110,94,0.08) 0%, rgba(219,110,94,0.02) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(219,110,94,0.15);
}
.dz-flash-products {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
}
.dz-flash-products::-webkit-scrollbar { height: 8px; }
.dz-flash-products::-webkit-scrollbar-track { background: var(--surface-color); border-radius: 10px; }
.dz-flash-products::-webkit-scrollbar-thumb { background: var(--brand-coral); border-radius: 10px; }

.dz-flash-item {
    min-width: 180px;
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-light);
}
.dz-flash-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}
.dz-flash-item a { text-decoration: none; display: block; }
.dz-flash-item .img-wrap img {
    border-radius: 10px;
    margin-bottom: 15px;
    width: 100%;
}
.dz-flash-item h3 {
    font-size: 14px;
    color: var(--brand-navy);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.dz-flash-item .price {
    font-weight: 700;
    color: var(--brand-coral);
    font-size: 18px;
}
.dz-flash-item .price del {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    margin-left: 5px;
}

/* Just For You Generic Styles Container Wrapper Fix */
.dz-just-for-you .woocommerce ul.products {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .dz-hero-section { flex-direction: column; border-radius: 0; background: transparent; box-shadow: none; height: auto; }
    .dz-sidebar { display: none; /* Hide sidebar completely on mobile */ }
    .dz-slider { border-radius: 16px; box-shadow: var(--shadow-sm); height: 250px; }
    .dz-flash-sale { padding: 25px 20px; }
}

/* ==============================================================
   18. Categories Mega Menu Dropdown
   ============================================================== */
.djbot-mega-menu-wrapper {
    position: relative;
    list-style: none;
}

.djbot-mega-menu-trigger {
    background: var(--brand-teal);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.djbot-mega-menu-trigger::after { display: none !important; }

.djbot-mega-menu-trigger:hover {
    background: var(--brand-navy) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Dropdown Container */
.djbot-mega-menu-dropdown {
    position: absolute;
    top: 100%; /* Just below the trigger */
    left: 0;
    width: 600px;
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(13, 27, 42, 0.15);
    display: flex; /* Flex to show menu + promo image side by side */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    z-index: 99999;
    padding: 20px;
    border: 1px solid var(--border-light);
    margin-top: 15px;
}

.djbot-mega-menu-wrapper:hover .djbot-mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Transparent bridge to prevent losing hover */
.djbot-mega-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Category List */
.djbot-mega-category-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    width: 60%; /* Takes up 60% of dropdown */
    border-right: 1px solid var(--border-light);
    display: block !important;
}

.djbot-mega-category-list li {
    margin: 0 !important; padding: 0 !important;
    display: block !important;
}

.djbot-mega-category-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 10px 15px !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
    text-transform: none !important;
}

.djbot-mega-category-list li a::after { display: none !important; }

.djbot-mega-category-list li a:hover {
    background: rgba(0, 137, 123, 0.05) !important;
    color: var(--brand-teal) !important;
    padding-left: 20px !important; /* Slight indent on hover */
}

.djbot-mega-category-list li a img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    margin: 0 !important;
}

.mega-cat-icon-fallback {
    font-size: 18px;
}

/* Promo Image Side */
.djbot-mega-menu-promo {
    width: 40%;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.djbot-mega-menu-promo img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.djbot-mega-menu-promo img:hover {
    transform: scale(1.03);
}


/* ==============================================================
   19. Product Quick View Modal & Buttons
   ============================================================== */
/* Quick View Button on Product Card */
ul.products li.product .djbot-quickview-btn {
    position: absolute;
    bottom: 120px; /* Above the title/price */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--brand-navy);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 10;
}

ul.products li.product:hover .djbot-quickview-btn {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

ul.products li.product .djbot-quickview-btn:hover {
    background: var(--brand-teal);
    color: white;
}

/* Modal Overlay */
.djbot-qv-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.djbot-qv-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.djbot-qv-content {
    background: var(--surface-color);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: var(--transition-smooth);
    overflow-y: auto;
}

.djbot-qv-overlay.show .djbot-qv-content {
    transform: scale(1);
}

/* Close Button */
.djbot-qv-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.djbot-qv-close:hover {
    background: #e2e8f0;
    color: var(--brand-coral);
    transform: rotate(90deg);
}

/* Form Styles inside Quick View */
.djbot-qv-content form.cart {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

@media(max-width: 768px) {
    .djbot-qv-grid { flex-direction: column !important; gap: 20px !important; }
    .djbot-qv-image, .djbot-qv-details { width: 100% !important; }
    .djbot-qv-content { padding: 25px; }
}

/* ==============================================================
   20. Wishlist Integration Styles
   ============================================================== */
/* Wishlist Button on Product Loop Grid */
/* Wishlist Button on Product Loop Grid */
ul.products li.product .djbot-wishlist-btn {
    position: absolute;
    top: 60px; /* Moved down to prevent overlap with sale badge at top 15px */
    right: 15px;
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Hide fallback Astra sale badges to prevent double badges */
.ast-onsale-card,
span.onsale.ast-onsale-card,
.woocommerce span.onsale:not(.djbot-sale-badge) {
    display: none !important;
}

ul.products li.product .djbot-wishlist-btn:hover {
    transform: scale(1.1);
}

ul.products li.product .djbot-wishlist-btn:hover .heart-icon {
    stroke: var(--brand-coral) !important;
}

.djbot-wishlist-btn .heart-icon {
    width: 24px !important;
    height: 24px !important;
    stroke: #475569 !important;
    fill: transparent !important;
    /* Block SVG currentColor from overriding our stroke */
    color: #475569 !important;
    transition: var(--transition-smooth);
}

/* Hover state */
ul.products li.product .djbot-wishlist-btn:hover .heart-icon {
    stroke: var(--brand-coral) !important;
    color: var(--brand-coral) !important;
}

/* Active State (Saved to Wishlist) */
.djbot-wishlist-btn.active .heart-icon {
    fill: var(--brand-coral) !important;
    stroke: var(--brand-coral) !important;
    color: var(--brand-coral) !important;
}

/* Loading Animation */
.djbot-wishlist-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    animation: djbotpulse 1s infinite alternate;
}

/* Single Page Button */
.djbot-wishlist-btn.single-wishlist-btn {
    position: relative;
    top: auto; right: auto;
    width: auto; height: auto;
    border-radius: 50px;
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 14px;
    box-shadow: none;
}

.djbot-wishlist-btn.single-wishlist-btn:hover {
    background: white;
    border-color: var(--brand-coral);
    color: var(--brand-coral);
}

.djbot-wishlist-btn.single-wishlist-btn.active {
    background: rgba(219, 110, 94, 0.1);
    border-color: var(--brand-coral);
    color: var(--brand-coral);
}

/* ==============================================================
   21. Order Tracking Timeline
   ============================================================== */
.djbot-timeline {
    list-style: none !important;
    padding: 0; margin: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
}

/* Connecting Line */
.djbot-timeline::before {
    content: '';
    position: absolute;
    top: 25px; /* Center of icon */
    left: 10%; right: 10%;
    height: 4px;
    background: var(--border-light);
    z-index: 1;
}

.djbot-timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 33.33%;
}

.timeline-icon {
    width: 50px; height: 50px;
    background: var(--bg-color);
    border: 4px solid var(--border-light);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: white;
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Active State */
.djbot-timeline-step.active .timeline-icon {
    border-color: var(--brand-teal);
    background: var(--brand-teal-light);
    box-shadow: 0 0 0 5px rgba(0, 137, 123, 0.2);
    animation: djbotpulse 2s infinite;
}
.djbot-timeline-step.active .timeline-label {
    color: var(--brand-teal);
}

/* Completed State */
.djbot-timeline-step.completed .timeline-icon {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: white; /* Although emoji won't change color much, it handles text */
}
.djbot-timeline-step.completed .timeline-label {
    color: var(--brand-green);
}

/* Filled line for completed steps */
.djbot-timeline-step.completed::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%; width: 100%;
    height: 4px;
    background: var(--brand-green);
    z-index: -1;
}

@media(max-width: 600px) {
    .djbot-timeline { flex-direction: column; align-items: flex-start; gap: 30px; }
    .djbot-timeline::before { top: 0; bottom: 0; left: 23px; width: 4px; height: 100%; }
    .djbot-timeline-step { width: 100%; display: flex; align-items: center; text-align: left; }
    .timeline-icon { margin: 0 15px 0 0; }
    .djbot-timeline-step.completed::after {
        top: 25px; left: 23px; width: 4px; height: calc(100% + 30px);
    }
}

/* ==============================================================
   22. Frontend Admin Dashboard
   ============================================================== */
.djbot-fe-dashboard {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    padding: 30px;
    margin: 40px 0;
    font-family: 'Poppins', sans-serif;
}

.djbot-fe-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 15px;
}

.djbot-fe-table-wrapper {
    overflow-x: auto;
}

.djbot-fe-table {
    width: 100%;
    border-collapse: collapse;
}

.djbot-fe-table th, .djbot-fe-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.djbot-fe-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.djbot-fe-table td {
    vertical-align: middle;
    color: var(--brand-navy);
}

.djbot-status-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    color: var(--brand-navy);
    font-size: 14px;
    width: 100%;
    max-width: 160px;
}

.djbot-update-status-btn {
    background: var(--brand-teal) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.djbot-update-status-btn:hover {
    background: var(--brand-navy) !important;
}

.djbot-fe-message {
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}
