/*
 * Theme Name:    MMStoreBD Custom Theme
 * Theme URI:     https://mmstorebd.com
 * Author:        Md. Mahmudul Hasan
 * Author URI:    https://mmstorebd.com
 * Description:   Clean & Optimized WooCommerce Theme with Chaldal Side Cart Popup and Fixed Category Sidebar.
 * Version:       2.0.0
 * License:       GNU General Public License v2 or later
 * License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:   mmstorebd-theme
 *
 * TABLE OF CONTENTS:
 * ─────────────────────────────────────────────────
 *  1.  CSS Reset & Box Model
 *  2.  Design Tokens (CSS Variables)
 *  3.  Utility Classes
 *  4.  Global Layout — Chaldal Dual-Scroll
 *  5.  Fixed Header
 *  6.  Left Sidebar
 *  7.  Hero Slider
 *  8.  Section Headings
 *  9.  Product Cards
 * 10.  WooCommerce Add to Cart Button
 * 11.  Chaldal Loop Cart (Product Card Plus Button)
 * 12.  Floating Cart Button
 * 13.  Side Cart Drawer
 * 14.  WooCommerce Global Overrides
 * 15.  Navigation Bar
 * 16.  Login Form
 * 17.  Hero Section (Full-Width)
 * 18.  Mobile Sidebar Slide Toggle
 * 19.  Mobile Category Menu
 * 20.  Responsive — Mobile (max-width: 768px)
 * ─────────────────────────────────────────────────
 */


/* =========================================================================
   1. CSS RESET & BOX MODEL
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================================
   2. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================= */

:root {
    /* Brand Colors */
    --brand:          #1a4df8;
    --brand-dark:     #3956ff;
    --brand-light:    #ede9fe;

    /* Accent & Status Colors */
    --accent:         #f59e0b;
    --accent-dark:    #d97706;
    --green:          #16a34a;
    --green-dark:     #15803d;
    --red:            #dc2626;

    /* Backgrounds */
    --bg-page:        #f5f3ff;
    --bg-white:       #ffffff;
    --bg-sidebar:     #ffffff;

    /* Borders */
    --border:         #e5e7eb;
    --border-light:   #f3f4f6;

    /* Text */
    --text-primary:   #111827;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;

    /* Border Radius */
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      14px;

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.07);
    --shadow-md:      0 4px 12px rgba(0, 0, 0, 0.09);
    --shadow-lg:      0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition:     0.18s ease;

    /* Layout */
    --header-h:       64px;
    --sidebar-w:      240px;
}


/* =========================================================================
   3. UTILITY CLASSES
   ========================================================================= */

.fs-7 { font-size: 13px !important; }
.fs-8 { font-size: 12px !important; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================================
   4. GLOBAL LAYOUT — CHALDAL DUAL-SCROLL
   ========================================================================= */

html,
body {
    height: 100%;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
}

/* ── Desktop Layout ─────────────────────────────── */
@media (min-width: 769px) {
    html,
    body {
        overflow: hidden !important;
    }

    body {
        padding-top: var(--header-h) !important;
    }

    /* Root container */
    body > div.container-fluid {
        height: calc(100vh - var(--header-h)) !important;
        max-height: calc(100vh - var(--header-h)) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Bootstrap row */
    body > div.container-fluid > div.row {
        flex: 1 1 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Left sidebar column */
    body > div.container-fluid > div.row > div.col-md-3 {
        flex: 0 0 var(--sidebar-w) !important;
        max-width: var(--sidebar-w) !important;
        width: var(--sidebar-w) !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding: 16px 12px 80px !important;
        background: var(--bg-sidebar) !important;
        border-right: 1px solid var(--border) !important;
        scrollbar-width: thin !important;
        -ms-overflow-style: scrollbar !important;
    }

    /* Right content column */
    body > div.container-fluid > div.row > div.col-md-9 {
        flex: 1 1 0 !important;
        max-width: calc(100% - var(--sidebar-w)) !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding: 20px 24px 80px !important;
        background: var(--bg-page) !important;
        scrollbar-width: thin !important;
        -ms-overflow-style: scrollbar !important;
    }

    /* Custom scrollbar — Chrome, Safari, Edge */
    body > div.container-fluid > div.row > div.col-md-3::-webkit-scrollbar,
    body > div.container-fluid > div.row > div.col-md-9::-webkit-scrollbar,
    ::-webkit-scrollbar {
        width: 8px !important;
        height: 8px !important;
        display: block !important;
    }

    body > div.container-fluid > div.row > div.col-md-3::-webkit-scrollbar-track,
    body > div.container-fluid > div.row > div.col-md-9::-webkit-scrollbar-track,
    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03) !important;
    }

    body > div.container-fluid > div.row > div.col-md-3::-webkit-scrollbar-thumb,
    body > div.container-fluid > div.row > div.col-md-9::-webkit-scrollbar-thumb,
    ::-webkit-scrollbar-thumb {
        background: #c1c5cc !important;
        border-radius: 99px !important;
    }

    body > div.container-fluid > div.row > div.col-md-3::-webkit-scrollbar-thumb:hover,
    body > div.container-fluid > div.row > div.col-md-9::-webkit-scrollbar-thumb:hover,
    ::-webkit-scrollbar-thumb:hover {
        background: var(--brand) !important;
    }
}

/* ── Mobile Layout ──────────────────────────────── */
@media (max-width: 768px) {
    body {
        padding-top: 110px !important;
        overflow: auto !important;
        background: var(--bg-page) !important;
    }

    body > div.container-fluid {
        padding: 12px !important;
    }
}


/* =========================================================================
   5. FIXED HEADER
   ========================================================================= */

header.main-ecommerce-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    height: var(--header-h) !important;
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border-bottom: 2px solid #e9e3ff !important;
    box-shadow: 0 2px 10px rgba(109, 40, 217, 0.10) !important;
}

/* Logo */
.ecommerce-logo {
    color: var(--brand) !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    text-decoration: none !important;
    letter-spacing: -0.3px;
}
.ecommerce-logo .logo-text   { color: var(--brand) !important; }
.ecommerce-logo .text-warning { color: var(--accent) !important; }

/* Hamburger toggle */
.target-sidebar-toggle {
    color: var(--brand) !important;
    opacity: 0.8;
    transition: opacity var(--transition);
}
.target-sidebar-toggle:hover {
    opacity: 1;
    color: var(--brand-dark) !important;
}

/* Search bar */
.header-search-form {
    background: #f5f3ff !important;
    border: 1.5px solid #d8b4fe !important;
    border-radius: var(--radius-md) !important;
    max-width: 580px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-form input {
    height: 38px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: transparent !important;
}
.header-search-form input::placeholder {
    color: #0c59ff !important;
    font-weight: 400 !important;
}
.header-search-form:focus-within {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12) !important;
    background: #ffffff !important;
}
.header-search-form button       { color: var(--brand) !important; }
.header-search-form button:hover { color: var(--brand-dark) !important; }

/* Login button */
.btn-login-custom {
    background: var(--brand) !important;
    color: #ffffff !important;
    border: none !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: var(--radius-md) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.btn-login-custom:hover {
    background: var(--brand-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
.btn-login-custom svg { fill: #fff !important; }

/* Language switcher */
.language-switcher-header a {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 3px 5px !important;
    border-radius: 4px !important;
    transition: color var(--transition), background var(--transition);
}
.language-switcher-header a:hover,
.language-switcher-header a.text-primary {
    color: var(--brand) !important;
    background: var(--brand-light) !important;
}
.language-switcher-header .text-muted { color: #d1d5db !important; }

/* Mobile header adjustments */
@media (max-width: 768px) {
    header.main-ecommerce-header {
        height: auto !important;
        min-height: 60px !important;
        flex-wrap: wrap !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .header-search-form input::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    .ecommerce-logo { font-size: 17px !important; }
}


/* =========================================================================
   6. LEFT SIDEBAR
   ========================================================================= */

/* Sidebar card header */
.col-md-3 .card .bg-dark,
.col-lg-3 .card .bg-dark {
    background: var(--brand) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    padding: 10px 14px !important;
}

/* Sidebar cards */
.col-md-3 .card,
.col-lg-3 .card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 14px !important;
}

/* Promotional / colored card */
.col-md-3 .card.text-white,
.col-lg-3 .card.text-white {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    border: none !important;
    padding: 18px 14px !important;
    text-align: center !important;
}
.col-md-3 .card.text-white .btn-light,
.col-lg-3 .card.text-white .btn-light {
    background: #ffffff !important;
    color: var(--brand) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: none !important;
    border-radius: 99px !important;
    padding: 6px 20px !important;
    transition: transform var(--transition), box-shadow var(--transition);
}
.col-md-3 .card.text-white .btn-light:hover,
.col-lg-3 .card.text-white .btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Category list items */
.category-sidebar-list .list-group-item,
.list-group-flush .list-group-item {
    border: none !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.category-sidebar-list .list-group-item a,
.list-group-flush .list-group-item a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.category-sidebar-list .list-group-item a:hover,
.list-group-flush .list-group-item a:hover {
    background: var(--brand-light) !important;
    color: var(--brand) !important;
    padding-left: 16px !important;
}

.category-sidebar-list .list-group-item a svg { flex-shrink: 0; opacity: 0.6; }
.category-sidebar-list .list-group-item a:hover svg { opacity: 1; }

/* Sticky sidebar helper */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 100;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.sticky-sidebar::-webkit-scrollbar       { width: 4px; }
.sticky-sidebar::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 4px; }

/* Category hover in sidebar (legacy class) */
.category-list-items a:hover {
    color: #198754 !important;
    padding-left: 5px;
    transition: all 0.2s ease-in-out;
}


/* =========================================================================
   7. HERO SLIDER
   ========================================================================= */

#heroSlider {
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    margin-bottom: 24px !important;
    position: relative;
}

#heroSlider .carousel-item > div {
    min-height: 320px !important;
    padding: 50px 60px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    z-index: 1;
}

/* Overlay for text readability */
#heroSlider .carousel-item > div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.40) 100%);
    z-index: -1;
}

/* Slide background images — আপনার নিজের ছবির URL এখানে দিন */
.style-slider-bg-1 {
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1200&auto=format&fit=crop') !important;
}
.style-slider-bg-2 {
    background-image: url('https://images.unsplash.com/photo-1604719312566-8912e9227c6a?q=80&w=1200&auto=format&fit=crop') !important;
}

@media (max-width: 768px) {
    #heroSlider .carousel-item > div {
        padding: 30px 20px !important;
        min-height: 220px !important;
    }
    #heroSlider .carousel-item > div::before {
        background: rgba(255, 255, 255, 0.90) !important;
    }
    #heroSlider h2 { font-size: 1.4rem !important; }
}


/* =========================================================================
   8. SECTION HEADINGS
   ========================================================================= */

.bg-white.p-4.rounded-3.shadow-sm.mb-4 {
    background: var(--bg-white) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 18px !important;
    box-shadow: var(--shadow-sm) !important;
    border-left: 4px solid var(--brand) !important;
    margin-bottom: 16px !important;
}
.bg-white.p-4.rounded-3.shadow-sm.mb-4 h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
}
.bg-white.p-4.rounded-3.shadow-sm.mb-4 p {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin: 3px 0 0 !important;
}


/* =========================================================================
   9. PRODUCT CARDS
   ========================================================================= */

.product-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative !important;
    height: 100% !important;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
}
.product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: #c4b5fd !important;
}

/* Product image area */
.product-card .bg-light {
    background: #faf9ff !important;
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 150px !important;
}
.product-card .bg-light img {
    max-height: 140px !important;
    object-fit: contain !important;
    transition: transform 0.25s ease !important;
}
.product-card:hover .bg-light img {
    transform: scale(1.05) !important;
}

/* Card body */
.product-card .card-body {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Product title */
.product-card .product-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}
.product-card .product-title a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}
.product-card .product-title a:hover { color: var(--brand) !important; }

/* Product price */
.product-card .product-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--brand) !important;
    margin-bottom: 10px !important;
}
.product-card .woocommerce-Price-amount     { color: var(--brand) !important; }
.product-card del .woocommerce-Price-amount {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}
.product-card ins { text-decoration: none !important; }


/* =========================================================================
   10. WOOCOMMERCE ADD TO CART BUTTON
   ========================================================================= */

.add-to-cart-wrapper a.button.add_to_cart_button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: var(--green) !important;
    color: #fff !important;
    padding: 9px 12px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.add-to-cart-wrapper a.button.add_to_cart_button:hover {
    background: var(--green-dark) !important;
    transform: translateY(-1px) !important;
}
.add-to-cart-wrapper .added_to_cart {
    display: block !important;
    text-align: center !important;
    margin-top: 6px !important;
    color: var(--brand) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}


/* =========================================================================
   11. CHALDAL LOOP CART (Product Card Plus Button)
   ========================================================================= */

.chaldal-loop-cart-wrapper {
    display: inline-block;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
}

.chaldal-loop-add-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 2px solid var(--brand) !important;
    color: var(--brand) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition) !important;
}
.chaldal-loop-add-btn:hover {
    background: var(--brand) !important;
    color: #fff !important;
    transform: scale(1.08) !important;
}

.chaldal-loop-qty-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--brand) !important;
    border-radius: 99px !important;
    padding: 3px 8px !important;
    min-width: 88px !important;
    box-shadow: var(--shadow-md) !important;
}

.loop-qty-btn {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.loop-qty-input {
    width: 24px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    pointer-events: none !important;
}


/* =========================================================================
   12. FLOATING CART BUTTON (Right Side)
   ========================================================================= */

.chaldal-floating-cart-fixed {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 80px !important;
}

.chaldal-cart-main-link {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    text-decoration: none !important;
    background: var(--brand) !important;
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
    box-shadow: -4px 0 16px rgba(109, 40, 217, 0.20) !important;
    overflow: hidden !important;
    transition: all var(--transition) !important;
}
.chaldal-cart-main-link:hover {
    background: var(--brand-dark) !important;
    transform: scale(1.03) !important;
}

.chaldal-cart-top-bag {
    padding: 12px 6px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #fff !important;
}
.chaldal-cart-top-bag svg    { fill: #fff !important; margin-bottom: 3px !important; }
.chaldal-cart-count-text     { font-size: 11px !important; font-weight: 700 !important; color: #fff !important; display: block !important; }

.chaldal-cart-bottom-total {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 6px 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.chaldal-cart-bottom-total .woocommerce-Price-amount,
.chaldal-cart-bottom-total bdi { color: #fff !important; }


/* =========================================================================
   13. SIDE CART DRAWER
   ========================================================================= */

/* Overlay */
.chaldal-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    z-index: 999999 !important;
    display: none !important;
    backdrop-filter: blur(2px);
}
.chaldal-cart-overlay.active { display: block !important; }

/* Drawer panel */
.chaldal-side-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -390px !important;
    width: 375px !important;
    height: 100vh !important;
    background: #fff !important;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000000 !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: 'Segoe UI', sans-serif !important;
    transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.chaldal-side-cart-drawer.open { right: 0 !important; }

/* Drawer header */
.chaldal-drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--border) !important;
}
.chaldal-drawer-header h6 { font-size: 15px !important; font-weight: 700 !important; color: var(--text-primary) !important; }

.btn-close-chaldal-cart {
    background: none !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #aaa !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: var(--radius-sm) !important;
    transition: background var(--transition), color var(--transition) !important;
}
.btn-close-chaldal-cart:hover { background: #fee2e2 !important; color: var(--red) !important; }

/* Drawer body */
.chaldal-drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
}

/* Mini cart list */
.woocommerce-mini-cart-container ul.woocommerce-mini-cart,
.chaldal-drawer-body ul.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-mini-cart-container li.woocommerce-mini-cart-item,
.chaldal-drawer-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-light) !important;
    position: relative !important;
    transition: background var(--transition) !important;
}
.chaldal-drawer-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item:hover {
    background: #faf9ff !important;
}

/* Cart item image */
.chaldal-cart-img-wrap {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    border-radius: var(--radius-sm) !important;
    background: #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.chaldal-cart-img-wrap img,
.chaldal-drawer-body ul.woocommerce-mini-cart li img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    margin: 0 !important;
    float: none !important;
}

/* Cart item info */
.chaldal-cart-item-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding-right: 24px !important;
}
.chaldal-item-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.chaldal-cart-item-price {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

/* Quantity control */
.chaldal-qty-control-box {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 99px !important;
    background: #fff !important;
    padding: 2px !important;
    min-width: 82px !important;
    max-width: 82px !important;
}
.chaldal-qty-btn {
    width: 26px !important;
    height: 26px !important;
    background: transparent !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #aaa !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color var(--transition) !important;
}
.chaldal-qty-btn:hover { color: var(--brand) !important; }
.chaldal-qty-input {
    width: 28px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Remove button */
.woocommerce-mini-cart-item .remove_from_cart_button,
.chaldal-drawer-body ul.woocommerce-mini-cart li a.remove_from_cart_button {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: color var(--transition) !important;
}
.woocommerce-mini-cart-item .remove_from_cart_button:hover,
.chaldal-drawer-body ul.woocommerce-mini-cart li a.remove_from_cart_button:hover {
    color: var(--red) !important;
}

/* Empty cart message */
.chaldal-drawer-body .woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: 48px 20px !important;
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

/* Hide default WooCommerce total / buttons inside drawer */
.chaldal-drawer-body .woocommerce-mini-cart__total,
.chaldal-drawer-body .woocommerce-mini-cart__buttons { display: none !important; }

/* Promo code section */
.chaldal-special-code-section {
    padding: 12px 16px !important;
    background: #faf9ff !important;
    border-top: 1px solid var(--border-light) !important;
}
.chaldal-code-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--brand) !important;
    cursor: pointer !important;
}

/* Drawer footer */
.chaldal-drawer-footer {
    padding: 14px 16px !important;
    background: #fff !important;
    border-top: 1px solid var(--border) !important;
}

.btn-chaldal-checkout-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: var(--brand) !important;
    padding: 3px 3px 3px 18px !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28) !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.btn-chaldal-checkout-container:hover {
    background: var(--brand-dark) !important;
    transform: translateY(-1px) !important;
}
.chaldal-checkout-text {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.chaldal-checkout-price-tag {
    background: rgba(0, 0, 0, 0.18) !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: var(--radius-sm) !important;
}


/* =========================================================================
   14. WOOCOMMERCE GLOBAL OVERRIDES
   ========================================================================= */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-top-color: var(--brand) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
}
.woocommerce-message::before { color: var(--brand) !important; }

.woocommerce .button,
.woocommerce button.button {
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    transition: background var(--transition) !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--brand-dark) !important;
    color: #fff !important;
}


/* =========================================================================
   15. NAVIGATION BAR
   ========================================================================= */

.navbar-nav .menu-item { display: inline-block; }
.navbar-nav .menu-item a {
    display: block;
    padding: 8px 14px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
    transition: color var(--transition);
}
.navbar-nav .menu-item a:hover,
.navbar-nav .current-menu-item a { color: #fff !important; }


/* =========================================================================
   16. LOGIN FORM
   ========================================================================= */

#mmloginform p { margin-bottom: 15px; }

#mmloginform input[type="text"],
#mmloginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-top: 5px;
}

#mm-login-submit {
    width: 100%;
    padding: 10px;
    background-color: var(--brand);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background var(--transition);
}
#mm-login-submit:hover { background-color: var(--brand-dark); }


/* =========================================================================
   17. HERO SECTION (Full-Width Alternative)
   ========================================================================= */

.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000000;
    /* ছবির URL এখানে বসান */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                      url('এখানে-আপনার-ছবির-লিঙ্ক-দিন.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
}

.hero-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; }
.hero-content p  { font-size: 1.2rem; margin-bottom: 30px; }

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0ea5e9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.hero-btn:hover { background-color: #0284c7; }

@media (max-width: 768px) {
    .hero-section      { height: 40vh; }
    .hero-content h1   { font-size: 2rem; }
}


/* =========================================================================
   18. SIDEBAR SMOOTH SLIDE TOGGLE
   ========================================================================= */

#menuToggleBtn { cursor: pointer; }

.custom-slider-layout #sidebarColumn,
.custom-slider-layout #contentColumn {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Hidden state */
.custom-slider-layout.sidebar-hidden #sidebarColumn {
    margin-left: -25% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    padding: 0 !important;
}

/* Content expands when sidebar hides */
.custom-slider-layout.sidebar-hidden #contentColumn {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}


/* =========================================================================
   19. MOBILE CATEGORY MENU
   ========================================================================= */

/* Hidden on desktop by default */
.mobile-cat-menu-wrapper { display: none; }

/* Remove unwanted bullet markers in header */
header .all-categories-list,
header ul.products,
.navbar-nav + ul,
header li::marker { display: none !important; list-style: none !important; list-style-type: none !important; }

header ul,
.mobile-cat-list { list-style: none !important; padding-left: 0 !important; }

@media (max-width: 768px) {
    .mobile-cat-menu-wrapper {
        display: none; /* default hidden; JS adds .active to show */
        width: 100%;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
        position: absolute;
        left: 0;
        z-index: 9999;
        padding: 0;
        overflow: hidden;
    }
    .mobile-cat-menu-wrapper.active { display: block !important; }

    .mobile-cat-header {
        background-color: var(--brand);
        color: #fff;
        padding: 12px 15px;
        font-weight: bold;
        font-size: 16px;
    }

    .mobile-cat-list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 350px;
        overflow-y: auto;
    }
    .mobile-cat-list li { border-bottom: 1px solid #f1f5f9; }
    .mobile-cat-list li a {
        display: block;
        padding: 12px 20px;
        color: #334155;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: background 0.2s;
    }
    .mobile-cat-list li a:hover {
        background-color: #f8fafc;
        color: var(--brand);
    }
}


/* =========================================================================
   20. RESPONSIVE — MOBILE (max-width: 768px) — General Overrides
   ========================================================================= */

@media (max-width: 768px) {
    /* Quick links sidebar (legacy) */
    .quick-links-sidebar,
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        z-index: 9999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.10);
    }
    .quick-links-sidebar.active,
    .nav-menu.active { display: block !important; }
}

.ecommerce-logo {
    display: block;
    position: relative;
    z-index: 99999 !important; /* লোগোকে সবার উপরে আনবে */
    cursor: pointer !important;
}

/* প্রোডাক্ট পেজ লেআউট ফিক্স */
.single-product .product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.single-product .woocommerce-product-gallery {
    flex: 1;
    min-width: 400px; /* ছবি যেন ছোট না হয়ে যায় */
}
.single-product .summary {
    flex: 1;
    min-width: 300px;
}
