/*
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: 1.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
*/

/* এর নিচে আপনার থিমের বাকি সব কাস্টম সিএসএস (CSS) কোড থাকবে */



*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand:        #1a4df8;
    --brand-dark:   #3956ff;
    --brand-light:  #ede9fe;
    --accent:       #f59e0b;
    --accent-dark:  #d97706;
    --green:        #16a34a;
    --green-dark:   #15803d;
    --red:          #dc2626;
    --bg-page:      #f5f3ff;
    --bg-white:     #ffffff;
    --bg-sidebar:   #ffffff;
    --border:       #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted:   #9ca3af;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --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);
    --transition:   0.18s ease;
    --header-h:     64px;
}

/* =========================================================================
   UTILITY
   ========================================================================= */

.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;
}

/* =========================================================================
   GLOBAL LAYOUT — CHALDAL DUAL-SCROLL (FIXED FOR MOUSE & TRACKBAR)
   ========================================================================= */

html, body {
    height: 100%;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
}

@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 — স্বাধীন ও ক্লিকেবল স্ক্রলবার */
    body > div.container-fluid > div.row > div.col-md-3 {
        flex: 0 0 240px !important;
        max-width: 240px !important;
        width: 240px !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 — স্বাধীন ও ক্লিকেবল স্ক্রলবার */
    body > div.container-fluid > div.row > div.col-md-9 {
        flex: 1 1 0 !important;
        max-width: calc(100% - 240px) !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;
    }

    /* ক্রোম, সাফারি এবং এজ ব্রাউজারের স্ক্রলবার ও বাশন ড্র্যাগ ফিক্স */
    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; /* মাউস নিলে চালডাল বেগুনি কালার এক্টিভ হবে */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px !important;
        overflow: auto !important;
        background: var(--bg-page) !important;
    }
    body > div.container-fluid {
        padding: 12px !important;
    }
}

/* =========================================================================
   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 */
.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;
    transition: background var(--transition), transform var(--transition) !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !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;
    transition: color var(--transition);
    padding: 3px 5px !important;
    border-radius: 4px !important;
}
.language-switcher-header a:hover {
    color: var(--brand) !important;
    background: var(--brand-light) !important;
}
.language-switcher-header a.text-primary {
    color: var(--brand) !important;
    background: var(--brand-light) !important;
}
.language-switcher-header .text-muted {
    color: #d1d5db !important;
}

/* =========================================================================
   LEFT SIDEBAR
   ========================================================================= */

.card .bg-dark {
    background: var(--brand) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    padding: 10px 14px !important;
}

.category-sidebar-list .list-group-item {
    border: none !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
}
.category-sidebar-list .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);
    border-radius: 0;
}
.category-sidebar-list .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;
}

.list-group-flush .list-group-item {
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 0 !important;
}
.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);
}
.list-group-flush .list-group-item a:hover {
    background: var(--brand-light) !important;
    color: var(--brand) !important;
}

.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;
}

.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 {
    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 {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================================================================
   HERO SLIDER (WITH BACKGROUND PICTURES)
   ========================================================================= */

#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) */
#heroSlider .carousel-item > div::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: -1;
}

/* স্লাইডারের ছবিগুলোর ক্লাস (আপনার ইমেজের লিঙ্ক এখানে বসাবেন) */
.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.9) !important; /* মোবাইলে লেখা ফুটিয়ে তুলতে */
    }
    #heroSlider h2 {
        font-size: 1.4rem !important;
    }
}
/* =========================================================================
   SECTION HEADING
   ========================================================================= */

.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;
}

/* =========================================================================
   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;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
    position: relative !important;
    height: 100% !important;
}
.product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: #c4b5fd !important;
}

.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;
}

.product-card .card-body {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.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-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;
}

/* =========================================================================
   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;
    transition: background var(--transition), transform var(--transition) !important;
    cursor: pointer !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;
}

/* =========================================================================
   CHALDAL LOOP CART (plus button on product card)
   ========================================================================= */

.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;
    transition: all var(--transition) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !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;
    background: var(--brand) !important;
    border-radius: 99px !important;
    padding: 3px 8px !important;
    min-width: 88px !important;
    justify-content: space-between !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;
}

/* =========================================================================
   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 {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !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.2) !important;
    overflow: hidden !important;
    transition: all var(--transition) !important;
    text-align: center !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 {
    background: rgba(0,0,0,0.18) !important;
    padding: 6px 4px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.chaldal-cart-bottom-total .woocommerce-Price-amount,
.chaldal-cart-bottom-total bdi { color: #fff !important; }

/* =========================================================================
   SIDE CART DRAWER
   ========================================================================= */

.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;
    transition: right 0.28s cubic-bezier(0.4,0,0.2,1) !important;
    font-family: 'Segoe UI', sans-serif !important;
}
.chaldal-side-cart-drawer.open { right: 0 !important; }

.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; }

.chaldal-drawer-header {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff !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;
}

.chaldal-drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0 !important;
    background: #fff !important;
}

.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;
}

.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;
}
.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;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1.4 !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;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.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;
}

.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;
    color: #d1d5db !important;
    text-decoration: none !important;
    line-height: 1 !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;
}

.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;
}
.chaldal-drawer-body .woocommerce-mini-cart__total,
.chaldal-drawer-body .woocommerce-mini-cart__buttons { display: none !important; }

.chaldal-special-code-section {
    padding: 12px 16px !important;
    background: #faf9ff !important;
    border-top: 1px solid var(--border-light) !important;
}
.chaldal-code-toggle {
    font-size: 13px !important;
    color: var(--brand) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.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;
}

/* =========================================================================
   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;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    transition: background var(--transition) !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--brand-dark) !important;
    color: #fff !important;
}

/* =========================================================================
   NAVBAR
   ========================================================================= */

.navbar-nav .menu-item { display: inline-block; }
.navbar-nav .menu-item a {
    color: rgba(255,255,255,0.75) !important;
    padding: 8px 14px !important;
    display: block;
    text-decoration: none;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color var(--transition);
}
.navbar-nav .menu-item a:hover,
.navbar-nav .current-menu-item a { color: #fff !important; }

/* =========================================================================
   MOBILE
   ========================================================================= */

@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; }
}

/* =========================================================================
   CHALDAL STYLE SIDEBAR SMOOTH SLIDE TOGGLE
   ========================================================================= */

/* ট্রানজিশন ইফেক্ট যাতে স্মুথলি স্লাইড হয় */
.custom-slider-layout #sidebarColumn,
.custom-slider-layout #contentColumn {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* যখন সাইডবার হাইড হবে তখন বাম কলামের স্টাইল */
.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;
}

/* যখন সাইডবার হাইড হবে তখন ডান কলামটি বড় হয়ে পুরো স্ক্রিন দখল করবে */
.custom-slider-layout.sidebar-hidden #contentColumn {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* মাউস কার্সার পয়েন্টার */
#menuToggleBtn {
    cursor: pointer;
}


/* =========================================================================
   CHALDAL STYLE SIDEBAR SMOOTH SLIDE TOGGLE
   ========================================================================= */

/* ট্রানজিশন ইফেক্ট যাতে স্লাইডটি স্মুথলি হয় */
.custom-slider-layout #sidebarColumn,
.custom-slider-layout #contentColumn {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* যখন 'sidebar-hidden' ক্লাস যুক্ত হবে তখন সাইডবার লুকিয়ে যাবে */
.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;
}

/* সাইডবার হাইড হলে কন্টেন্ট এরিয়া বড় হয়ে পুরো স্ক্রিন জুড়ে চলে আসবে */
.custom-slider-layout.sidebar-hidden #contentColumn {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ৩-ডট আইকনে মাউস নিলে যেন পয়েন্টার দেখায় */
#menuToggleBtn {
    cursor: pointer;
}

/* বাম পাশের সাইডবারকে স্থির রাখার জন্য কাস্টম সিএসএস */
.sticky-sidebar {
    position: -webkit-sticky;
    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-list-items a:hover {
    color: #198754 !important; /* উইকমার্স বা চালডাল থিমের গ্রিন কালার */
    padding-left: 5px;
    transition: all 0.2s ease-in-out;
}