/*
Theme Name: Ebonik App-Style Universal SPA
Author: Your Name
Description: Universal responsive theme with Native App-like mobile experience.
Version: 2.1
*/

/* ==========================================================================
   1. CSS Variables & Global Resets (Universal)
   ========================================================================== */
:root {
    --primary-color: #ff6801;        
    --primary-hover: #e65c00;
    --bg-light: #f4f6f8;             
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #777777;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --header-height: 70px;
    --sidebar-width: 250px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease-in-out;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    scroll-behavior: smooth; background-color: var(--bg-light); color: var(--text-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   2. Desktop Header Setup
   ========================================================================== */
.chaldal-header {
    background-color: var(--white); box-shadow: var(--shadow-sm); position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000; display: flex; align-items: center;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; gap: 20px; }
.header-logo a { color: var(--primary-color); font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.header-search { flex: 1; max-width: 700px; }
.header-search form { display: flex; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.header-search input { flex: 1; padding: 12px 15px; border: none; background: transparent; outline: none; font-size: 15px; }
.header-search button { background: var(--primary-color); color: var(--white); border: none; padding: 0 25px; cursor: pointer; font-weight: bold; transition: var(--transition); }
.header-search button:hover { background: var(--primary-hover); }

/* ==========================================================================
   3. Desktop Main Layout & Sidebar
   ========================================================================== */
.chaldal-app-container { display: flex; width: 100%; margin-top: var(--header-height); }
.chaldal-sidebar {
    position: fixed; top: var(--header-height); left: 0; width: var(--sidebar-width); height: calc(100vh - var(--header-height)); background-color: var(--white); border-right: 1px solid var(--border-color); overflow-y: auto; z-index: 900;
}
.chaldal-sidebar::-webkit-scrollbar { width: 6px; }
.chaldal-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.sidebar-heading { background-color: var(--bg-light); padding: 15px 20px; font-size: 16px; font-weight: 800; text-align: center; border-bottom: 1px solid var(--border-color); text-transform: uppercase; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.cat-name { text-align: left; flex: 1; padding-right: 15px; }
.cat-arrow { font-size: 12px; color: #bbb; transition: var(--transition); }
.sidebar-menu li a:hover { background-color: #fff3ed; color: var(--primary-color); padding-left: 25px; }
.sidebar-menu li a:hover .cat-arrow { color: var(--primary-color); transform: translateX(3px); }
.chaldal-main-content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-height: calc(100vh - var(--header-height)); padding: 25px; background-color: #ffffff !important; }

/* ==========================================================================
   4. Slider, Categories & Product Grid (Universal)
   ========================================================================== */
.category-title { margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
.category-title h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.mart-hero-slider { background-color: #fff5f0; border-radius: 12px; margin-bottom: 30px; padding: 25px 40px; position: relative; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); overflow: hidden; }
.mart-slider-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1100px; gap: 20px; }
.mart-slider-text { flex: 1; text-align: left; }
.mart-badge { display: inline-block; background: var(--primary-color); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.mart-slider-text h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.mart-slider-text .highlight-text { color: var(--primary-color); }
.mart-slider-text p { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 20px; max-width: 90%; }
.mart-btn { display: inline-flex; align-items: center; background: var(--primary-color); color: #fff; padding: 10px 24px; border-radius: 6px; font-weight: bold; transition: var(--transition); }
.mart-slider-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.mart-hero-img { max-width: 90%; max-height: 200px; object-fit: contain; animation: bounceSlow 4s infinite; }
@keyframes bounceSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mart-slider-dots { display: flex; gap: 8px; margin-top: 15px; }
.mart-slider-dots .dot { width: 8px; height: 8px; background-color: #ffd0b0; border-radius: 50%; }
.mart-slider-dots .dot.active { width: 20px; background-color: var(--primary-color); border-radius: 10px; }

/* Product Grid */
.chaldal-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 10px 0; }
.chaldal-product-card { background: #ffffff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 12px; position: relative; display: flex; flex-direction: column; transition: box-shadow 0.2s ease; }
.chaldal-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 2; border-color: var(--primary-color); }
.product-link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; }
.product-image-container { position: relative; width: 100%; margin-bottom: 10px; }
.product-image { height: 140px; display: flex; align-items: center; justify-content: center; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chaldal-circular-btn { position: absolute; right: -5px; bottom: -5px; width: 34px; height: 34px; background: #ffffff; border: 2px solid #7b2cb6; color: #7b2cb6; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; z-index: 10; transition: 0.2s ease; cursor: pointer; }
.chaldal-circular-btn:hover { background: #7b2cb6; color: #ffffff; }
.product-details { text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
.product-price { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap-reverse; }
.product-price del { color: #999; font-size: 12px; font-weight: 400; }
.product-price ins { color: #e62654; text-decoration: none; font-size: 16px; }
.product-title { font-size: 13px; color: #333; line-height: 1.4; margin-bottom: 12px; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-meta { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; margin-top: auto; }

/* ==========================================================================
   5. Single Product Page (Equal Height & Compacted)
   ========================================================================== */
.ebonik-single-wrapper {
    display: grid; 
    grid-template-columns: 4fr 6fr; 
    gap: 30px; 
    align-items: stretch; /* Makes both columns perfectly equal in height */
    background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid var(--border-light); margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.ebonik-gallery-section { display: flex; justify-content: center; align-items: stretch; }
.ebonik-main-image {
    width: 100%; height: 100%; /* Stretches exactly to the right column's height */
    background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 20px; 
    display: flex; align-items: center; justify-content: center; 
}
.ebonik-main-image img { max-width: 100%; height: auto; object-fit: contain; }

.ebonik-info-section { display: flex; flex-direction: column; justify-content: space-between; }
.product-cat-brand { font-size: 13px; color: var(--primary-color); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.ebonik-product-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }

/* Price Box */
.ebonik-custom-price-wrapper { background: #fffdf5; border: 2px solid #ffcca3; border-radius: 8px; padding: 12px 20px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; }
.price-label { font-size: 15px; color: #475569; font-weight: 600; min-width: 120px; }
.old-price { color: #94a3b8; text-decoration: line-through; font-size: 16px; font-weight: 600; }
.discount-badge { background: #e62654; color: #fff; padding: 3px 10px; border-radius: 15px; font-size: 13px; font-weight: bold; margin-left: 10px; }
.new-price { color: #e62654; font-size: 30px; font-weight: 900; line-height: 1; }

.ebonik-meta-list { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 12px; margin-bottom: 15px; }
.ebonik-meta-list ul { list-style: none; }
.ebonik-meta-list ul li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #ddd; font-size: 14px; }
.ebonik-meta-list ul li:last-child { border-bottom: none; }
.meta-label { color: #555; font-weight: 500; }
.meta-value { color: #222; font-weight: 600; }
.badge-in-stock { color: #166534; font-weight: bold; }

/* QTY and Buttons */
.qty-wrapper-full { margin-bottom: 15px; width: 100%; }
.qty-wrapper-full .qty-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.qty-wrapper-full .quantity input.qty { width: 100% !important; height: 48px; border: 2px solid #ddd; border-radius: 6px; font-size: 20px; font-weight: 900; text-align: center; background: #fff; padding: 0; }
.qty-wrapper-full .quantity input.qty:focus { border-color: var(--primary-color); outline: none; }

.ebonik-btn-group { display: flex; gap: 10px; width: 100%; }
.btn-add-cart, .btn-order-now { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; border-radius: 6px; cursor: pointer; border: none; transition: 0.3s; }
.btn-add-cart { background: #fff; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-order-now { background: var(--primary-color); color: #fff; }
.btn-out-of-stock { width: 100%; height: 48px; background: #eee; color: #888; border-radius: 6px; font-weight: bold; border: none; }

.ebonik-full-description { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 40px; }
.ebonik-full-description h2 { font-size: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }

/* ==========================================================================
   6. NATIVE APP MOBILE RESPONSIVENESS
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .chaldal-main-content { padding: 20px; }
    .ebonik-single-wrapper { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media screen and (max-width: 768px) {
    /* App-like Header */
    .chaldal-header { height: 105px; padding: 10px 0; align-items: flex-start; }
    .header-container { flex-direction: column; gap: 8px; padding: 0 15px; }
    .header-search { width: 100%; max-width: 100%; }
    .header-search input { padding: 10px; font-size: 14px; }
    .chaldal-app-container { margin-top: 105px; flex-direction: column; }
    html { scroll-padding-top: 160px; }

    /* Horizontal Chip Menu */
    .chaldal-sidebar { 
        position: fixed; top: 105px; left: 0; width: 100%; height: 55px; 
        background-color: var(--white); border-bottom: 1px solid #eee; z-index: 900;
        overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch;
    }
    .chaldal-sidebar::-webkit-scrollbar { display: none; } 
    .sidebar-heading { display: none; }
    .sidebar-menu { display: inline-flex; align-items: center; padding: 10px 15px; gap: 8px; }
    .sidebar-menu li { display: inline-block; }
    .sidebar-menu li a { display: inline-flex; background: #f0f0f0; padding: 8px 18px; border-radius: 30px; font-size: 13px; font-weight: 600; color: #444; border: none; margin: 0; }
    .sidebar-menu li a:hover, .sidebar-menu li a:active { background-color: var(--primary-color); color: #fff; padding-left: 18px; }
    .cat-name { padding: 0; }
    .cat-arrow { display: none; }

    /* App-like Main Content */
    .chaldal-main-content { margin-left: 0; width: 100%; padding: 10px; margin-top: 55px; }

    .mart-hero-slider { padding: 20px 15px; border-radius: 8px; margin-bottom: 20px; }
    .mart-slider-container { flex-direction: column-reverse; text-align: center; }
    .mart-slider-text h1 { font-size: 22px; }
    .mart-slider-text p { font-size: 13px; margin: 0 auto 15px auto; }
    .mart-hero-img { max-width: 60%; max-height: 140px; }

    .chaldal-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 0; }
    .chaldal-product-card { padding: 10px; border-radius: 6px; }
    .product-image { height: 110px; }
    .product-title { font-size: 12px; height: 34px; margin-bottom: 8px; }
    .chaldal-circular-btn { width: 28px; height: 28px; font-size: 18px; right: 0; bottom: 0; }

    /* Universal Responsive Single Product Page (Mobile View) */
    .ebonik-single-wrapper { grid-template-columns: 1fr; padding: 15px; gap: 15px; border: none; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .ebonik-main-image { padding: 10px; border: none; background: transparent; height: auto; }
    .ebonik-product-title { font-size: 20px; margin-bottom: 10px; }
    .ebonik-custom-price-wrapper { padding: 12px 15px; border-radius: 6px; }
    .price-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .price-label { min-width: auto; font-size: 13px; }
    .new-price { font-size: 26px; }
    .discount-badge { margin-left: 0; margin-top: 5px; font-size: 12px; padding: 2px 8px; }
    .ebonik-meta-list { padding: 10px; }
    .ebonik-meta-list ul li { font-size: 13px; padding: 6px 0; }
    
    /* Sleek, Professional Side-by-Side Mobile Buttons */
    .qty-wrapper-full .quantity input.qty { height: 42px; font-size: 16px; }
    .ebonik-btn-group { 
        flex-direction: row !important; /* Forces buttons side-by-side perfectly */
        gap: 8px; 
    } 
    .btn-add-cart, .btn-order-now { 
        height: 42px; 
        font-size: 13px; 
        padding: 0 8px; 
        white-space: nowrap; /* Prevents text from breaking into two lines */
    }
    
    .ebonik-full-description { padding: 15px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .ebonik-full-description h2 { font-size: 18px; }
    .desc-content { font-size: 14px; }
}

@media screen and (max-width: 360px) {
    .chaldal-product-grid { gap: 5px; }
    .chaldal-product-card { padding: 8px; }
    .product-title { font-size: 11px; }
    /* Even on extremely small screens, buttons stay side-by-side but slightly smaller font */
    .btn-add-cart, .btn-order-now { font-size: 11px; padding: 0 5px; } 
}
/* ==========================================================================
   10. Express Cart & Checkout Page Design
   ========================================================================== */

.ebonik-checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.checkout-header-title {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.checkout-header-title h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.checkout-header-title p {
    color: #64748b;
    font-size: 15px;
}

/* Empty Cart Design */
.empty-cart-message {
    text-align: center;
    padding: 50px 20px;
}
.empty-cart-message h3 { margin-bottom: 20px; color: #e62654; }

/* =========================================
   WooCommerce Form Layout (2 Columns)
   ========================================= */
.ebonik-checkout-wrapper .woocommerce {
    display: block;
}

.ebonik-checkout-wrapper .woocommerce-checkout {
    display: grid;
    grid-template-columns: 6fr 4fr; /* বামে ৬০% ডেলিভারি ফর্ম, ডানে ৪০% অর্ডার সামারি */
    gap: 40px;
    align-items: flex-start;
}

/* Left Side: Customer Billing Details */
#customer_details {
    padding-right: 15px;
}

.woocommerce-billing-fields h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcca3;
    display: inline-block;
    padding-bottom: 5px;
}

/* Form Fields Styling */
.woocommerce form .form-row { margin-bottom: 15px; }
.woocommerce form .form-row label { font-weight: 600; color: #475569; font-size: 14px; margin-bottom: 5px; display: block; }
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s;
    height: auto;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,104,1,0.1);
}

/* Right Side: Order Review (Cart Summary) */
#order_review_heading {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 15px;
}

#order_review {
    background: #fffdf5; /* সফট ব্যাকগ্রাউন্ড */
    border: 2px solid #ffcca3;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 104, 1, 0.05);
}

/* Cart Table in Checkout */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.woocommerce-checkout-review-order-table th { text-align: left; color: #475569; font-size: 15px; }
.woocommerce-checkout-review-order-table td { text-align: right; font-weight: 600; color: #1e293b; }
.product-name { font-weight: 500 !important; color: #333 !important; text-align: left !important; }
.product-total { color: #e62654 !important; }
.order-total th, .order-total td { font-size: 18px; border-bottom: none; border-top: 2px solid #cbd5e1; padding-top: 15px; }
.order-total td { color: var(--primary-color) !important; font-weight: 900; font-size: 22px; }

/* Place Order Button */
#payment { background: transparent !important; }
.woocommerce-checkout-payment .place-order { padding: 0 !important; margin-top: 20px; }

#place_order {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    padding: 18px;
    width: 100%;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 104, 1, 0.3);
}

#place_order:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 104, 1, 0.4);
}

/* =========================================
   Mobile Responsiveness for Checkout
   ========================================= */
@media screen and (max-width: 768px) {
    .ebonik-checkout-container { padding: 20px 15px; }
    .ebonik-checkout-wrapper .woocommerce-checkout {
        grid-template-columns: 1fr; /* মোবাইলে উপর-নিচ হয়ে যাবে */
        gap: 30px;
    }
    .checkout-header-title h1 { font-size: 22px; }
    #order_review { padding: 15px; }
}
/* ==========================================================================
   Chaldal Style Floating Cart & Side Drawer Design
   ========================================================================== */

/* Floating Cart (Right Side) */
.chaldal-floating-cart {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    background: #622097; /* Chaldal Dark Purple */
    color: #fff;
    cursor: pointer;
    z-index: 9990;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chaldal-floating-cart:hover {
    transform: translateY(-50%) scale(1.05);
}

.chaldal-floating-cart .cart-top {
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #7b2cb6; /* Chaldal Light Purple */
}

.chaldal-floating-cart .icon { font-size: 24px; margin-bottom: 5px; }
.chaldal-floating-cart .cart-count { font-size: 13px; font-weight: 800; }

.chaldal-floating-cart .cart-bottom {
    padding: 10px;
    text-align: center;
    background: #622097;
    font-size: 14px;
    font-weight: 800;
}

/* Side Cart Overlay (Dark Background) */
.chaldal-side-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.chaldal-side-cart-overlay.open { opacity: 1; visibility: visible; }

/* Side Cart Panel */
.chaldal-side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100vh;
    background: #f4f6f8;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
}
.chaldal-side-cart.open { right: 0; }

.side-cart-header {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.side-cart-header h3 { font-size: 18px; color: #622097; font-weight: 800; margin: 0; }
.close-btn { background: #fee2e2; border: none; font-size: 16px; color: #991b1b; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.close-btn:hover { background: #fca5a5; }

/* Mini Cart Content & Items Styling */
.side-cart-content { flex: 1; overflow-y: auto; padding: 15px; }
.woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.woocommerce-mini-cart-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #f0f0f0;
}
.woocommerce-mini-cart-item img { width: 55px; height: 55px; object-fit: contain; margin-right: 15px; border-radius: 6px; border: 1px solid #eee; }
.woocommerce-mini-cart-item a:not(.remove) { font-size: 14px; font-weight: 700; color: #1e293b; display: block; margin-bottom: 5px; line-height: 1.3; }
.woocommerce-mini-cart-item .quantity { font-size: 14px; color: #ff6801; font-weight: 600; }
.woocommerce-mini-cart-item .remove {
    position: absolute; right: 12px; top: 12px; color: #cbd5e1; font-size: 20px; font-weight: bold; transition: 0.2s;
}
.woocommerce-mini-cart-item .remove:hover { color: #e62654; }

/* Subtotal & Action Buttons at Bottom */
.woocommerce-mini-cart__total {
    background: #ffffff; padding: 15px 20px; margin: 0; display: flex; justify-content: space-between;
    font-size: 18px; font-weight: 800; border-top: 1px solid #e0e0e0; color: #1e293b;
}
.woocommerce-mini-cart__total .amount { color: #ff6801; }

.woocommerce-mini-cart__buttons { padding: 15px 20px; background: #ffffff; margin: 0; }

/* Skip Cart Page: Hide 'View Cart', Make 'Checkout' Full Width */
.woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout) { display: none !important; }
.woocommerce-mini-cart__buttons a.checkout {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff6801;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 104, 1, 0.3);
    transition: 0.3s;
}
.woocommerce-mini-cart__buttons a.checkout:hover { background: #e65c00; transform: translateY(-2px); }

/* Mobile view tweaks */
@media screen and (max-width: 480px) {
    .chaldal-side-cart { width: 100%; right: -100%; }
    .chaldal-floating-cart { top: auto; bottom: 80px; transform: none; width: 70px; border-radius: 8px 0 0 8px; }
    .chaldal-floating-cart .icon { font-size: 20px; }
}