/* 1. Force WooCommerce Cart to flex side-by-side and REMOVE HUGE GAPS */
.coversmart-add-to-cart-wrapper form.cart,
.coversmart-add-to-cart-wrapper .woocommerce-variation-add-to-cart { 
    display: flex !important; 
    flex-wrap: wrap !important;
    gap: 12px !important; 
    align-items: center !important; 
    margin-top: 0.25rem !important; 
    margin-bottom: 0.5rem !important; 
    width: 100% !important;
}

/* 2. Absolute control over Quantity Input (Adds +/- to BOTH Product & Cart Pages) */
.coversmart-add-to-cart-wrapper .quantity,
.woocommerce-cart-form__contents .quantity { 
    display: flex !important; 
    align-items: center !important; 
    border: 1px solid #e5e7eb !important; 
    border-radius: 6px !important; 
    background: #fff !important; 
    height: 48px !important; 
    width: 130px !important; 
    margin: 0 auto !important; 
    padding: 0 !important; 
    overflow: hidden !important;
    float: none !important; 
}
.coversmart-add-to-cart-wrapper .quantity .qty-minus,
.coversmart-add-to-cart-wrapper .quantity .qty-plus,
.woocommerce-cart-form__contents .quantity .qty-minus,
.woocommerce-cart-form__contents .quantity .qty-plus {
    width: 40px !important;
    height: 100% !important;
    background: #f9fafb !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}
.coversmart-add-to-cart-wrapper .quantity .qty-minus:hover,
.coversmart-add-to-cart-wrapper .quantity .qty-plus:hover,
.woocommerce-cart-form__contents .quantity .qty-minus:hover,
.woocommerce-cart-form__contents .quantity .qty-plus:hover {
    background: #f3f4f6 !important;
    color: #ea580c !important;
}
.coversmart-add-to-cart-wrapper .quantity input.qty,
.woocommerce-cart-form__contents .quantity input.qty { 
    width: 50px !important; 
    height: 100% !important; 
    text-align: center !important; 
    font-weight: 600 !important; 
    color: #1f2937 !important; 
    font-size: 16px !important; 
    border: none !important; 
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 0 !important; 
    margin: 0 !important;
    background: transparent !important; 
    box-shadow: none !important; 
    -moz-appearance: textfield; 
}
.coversmart-add-to-cart-wrapper .quantity input.qty::-webkit-outer-spin-button, 
.coversmart-add-to-cart-wrapper .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart-form__contents .quantity input.qty::-webkit-outer-spin-button, 
.woocommerce-cart-form__contents .quantity input.qty::-webkit-inner-spin-button { 
    -webkit-appearance: none; margin: 0; 
}

/* 3. Add to Cart Button (SOFT ORANGE - EXACT MATCH) */
.coversmart-add-to-cart-wrapper button.single_add_to_cart_button { 
    flex: 1 !important; 
    min-width: 140px !important;
    max-width: 200px !important;
    height: 48px !important; 
    background-color: #fff7ed !important; 
    border: 1px solid #fdba74 !important; 
    color: #f97316 !important; 
    font-weight: 700 !important; 
    font-size: 15px !important; 
    border-radius: 6px !important; 
    transition: all 0.3s ease !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important;
    margin: 0 !important; 
    padding: 0 16px !important; 
    float: none !important; 
    box-shadow: none !important;
    text-transform: none !important;
}
.coversmart-add-to-cart-wrapper button.single_add_to_cart_button:hover { 
    background-color: #ffedd5 !important; 
    border-color: #f97316 !important;
    color: #ea580c !important; 
}
.coversmart-add-to-cart-wrapper button.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 4. Buy Now Button (SOLID ORANGE - EXACT MATCH) */
button.coversmart-buy-now-btn { 
    flex: 1 !important; 
    min-width: 140px !important;
    max-width: 200px !important;
    height: 48px !important; 
    background-color: #ea580c !important; 
    border: 1px solid #ea580c !important; 
    color: #ffffff !important; 
    font-weight: 700 !important; 
    font-size: 15px !important; 
    border-radius: 6px !important; 
    transition: all 0.3s ease !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important;
    margin: 0 !important; 
    padding: 0 16px !important; 
    box-shadow: none !important;
    text-transform: none !important;
}
button.coversmart-buy-now-btn:hover { 
    background-color: #c2410c !important; 
    border-color: #c2410c !important; 
}

/* 4.5 Mobile Button Layout */
@media (max-width: 639px) {
    .coversmart-add-to-cart-wrapper .quantity { width: 100% !important; }
    .coversmart-add-to-cart-wrapper button.single_add_to_cart_button,
    button.coversmart-buy-now-btn { max-width: 100% !important; }
}

/* 5. Fix Price styling (Overrides BOTH Simple & Variable Prices Aggressively) */
.coversmart-summary-wrapper .price,
.coversmart-price-wrapper,
.woocommerce-variation-price .price {
    margin: 0 !important; 
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* 5a. Make EVERYTHING that looks like a price HUGE by default */
.coversmart-summary-wrapper .amount,
.coversmart-summary-wrapper bdi,
.coversmart-price-wrapper .amount,
.coversmart-price-wrapper bdi,
.woocommerce-variation-price .amount,
.woocommerce-variation-price bdi {
    text-decoration: none !important;
    font-size: 32px !important; 
    font-weight: 800 !important;
    color: #EA580C !important;
    line-height: 1 !important;
    background: none !important;
    display: inline-block !important;
}

/* 5b. Force the regular (old crossed-out) price to be small and grey */
.coversmart-summary-wrapper del,
.coversmart-summary-wrapper del .amount,
.coversmart-summary-wrapper del bdi,
.coversmart-price-wrapper del,
.coversmart-price-wrapper del .amount,
.coversmart-price-wrapper del bdi,
.woocommerce-variation-price del,
.woocommerce-variation-price del .amount,
.woocommerce-variation-price del bdi {
    font-size: 18px !important; 
    color: #9ca3af !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding-bottom: 2px !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
}

/* Hide Default Woo Extras */
.woocommerce-breadcrumb:not(nav) { display: none !important; }
.woocommerce-tabs.wc-tabs-wrapper { display: none !important; }

/* 6. Clean up Woo Gallery & FIX TINY IMAGE ISSUE */
.coversmart-gallery-wrapper .woocommerce-product-gallery { 
    width: 100% !important; 
    max-width: 100% !important; 
    float: none !important; 
    margin: 0 !important; 
}
.coversmart-gallery-wrapper .woocommerce-product-gallery__image img { 
    width: 100% !important; 
    height: auto !important; 
    border-radius: 24px; 
    border: 1px solid #f3f4f6; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.flex-control-nav { margin-top: 15px !important; display: flex; gap: 10px; padding: 0 !important; }
.flex-control-nav li { list-style: none !important; }
.flex-control-nav li img { border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: 0.3s; width: 80px !important; height: 80px !important; object-fit: cover !important; }
.flex-control-nav li img.flex-active { border-color: #EA580C; }

/* 7. MODERN REVIEWS TAB FIX */
#reviews #comments h2 { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 1.5rem; }
#reviews ol.commentlist { list-style: none; padding: 0; margin: 0; }
#reviews ol.commentlist li { margin-bottom: 1.5rem; }
#reviews ol.commentlist li .comment_container { display: flex; gap: 1rem; }
#reviews ol.commentlist li img.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
#reviews ol.commentlist li .comment-text { flex: 1; background: #F9F9F7; padding: 1.25rem; border-radius: 0.75rem; border: 1px solid #f3f4f6; position: relative; }
#reviews ol.commentlist li .meta { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 13px; color: #6b7280; }
#reviews ol.commentlist li .meta strong { color: #1f2937; font-weight: 700; font-size: 14px; }
#reviews .star-rating { color: #FFC107; font-size: 13px; float: right; margin-left: auto; }
#reviews .description { color: #4b5563; font-size: 14px; line-height: 1.6; }

/* Modern Review Form */
#review_form_wrapper { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #f3f4f6; }
#review_form_wrapper .comment-reply-title { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 1rem; display: block; }
#review_form_wrapper .comment-form-rating { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
#review_form_wrapper .stars a { color: #FFC107; font-size: 16px; transition: 0.2s; }
#review_form_wrapper .comment-form-comment label, 
#review_form_wrapper .comment-form-author label, 
#review_form_wrapper .comment-form-email label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 0.25rem; }
#review_form_wrapper input[type="text"], 
#review_form_wrapper input[type="email"], 
#review_form_wrapper textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 14px; outline: none; transition: border-color 0.2s; }
#review_form_wrapper input[type="text"]:focus, 
#review_form_wrapper input[type="email"]:focus, 
#review_form_wrapper textarea:focus { border-color: #EA580C; box-shadow: 0 0 0 2px #FFF4ED; }
#review_form_wrapper .submit { background-color: #EA580C; color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: background-color 0.2s; }
#review_form_wrapper .submit:hover { background-color: #c2410c; }

/* 8. Variation Table Alignment Fix */
table.variations { display: block !important; width: 100% !important; margin-bottom: 24px !important; border: none !important; }
table.variations tbody { display: flex !important; flex-direction: column !important; gap: 16px !important; border: none !important; }
table.variations tr { display: flex !important; align-items: center !important; gap: 20px !important; border: none !important; margin: 0 !important; }

table.variations th, 
table.variations td.label { 
    width: 60px !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    text-align: left !important; 
    display: flex !important;
    align-items: center !important;
    border: none !important;
    line-height: 1 !important;
}

table.variations th label { 
    font-size: 14px !important; 
    font-weight: 700 !important; 
    color: #1f2937 !important; 
    margin: 0 !important; 
}

table.variations td.value { 
    display: flex !important; 
    align-items: center !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    flex: 1 !important;
    border: none !important;
}

.coversmart-swatches { margin: 0 !important; }

/* 9. SHOP PAGE DESIGN */
.coversmart-breadcrumbs .woocommerce-breadcrumb { display: block !important; margin: 0 !important; font-size: 13px; color: #6b7280; }
.coversmart-breadcrumbs a { color: #6b7280; text-decoration: none; transition: color 0.2s; }
.coversmart-breadcrumbs a:hover { color: #EA580C; }

.coversmart-shop-top-bar .woocommerce-result-count { margin: 0; font-size: 14px; color: #6b7280; font-weight: 500; }
.coversmart-shop-top-bar .woocommerce-ordering { margin: 0; }
.coversmart-shop-top-bar .woocommerce-ordering select { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 36px 8px 16px; font-size: 14px; color: #374151; background-color: #fff; outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.coversmart-shop-top-bar .woocommerce-ordering select:focus { border-color: #EA580C; box-shadow: 0 0 0 2px #FFF4ED; }

.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; border: none; }
.woocommerce-pagination ul li { border: none; padding: 0; }
.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; }
.woocommerce-pagination ul li a:hover { border-color: #EA580C; color: #EA580C; background: #FFF4ED; }
.woocommerce-pagination ul li span.current { background: #EA580C; border-color: #EA580C; color: #fff; }

/* 10. SHOP PAGE GRID FIXES */
.woocommerce ul.products,
.woocommerce-page ul.products { 
    display: grid !important; 
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (min-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products { 
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}
@media (min-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products { 
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }
}

.woocommerce ul.products::before, 
.woocommerce ul.products::after,
.woocommerce-page ul.products::before, 
.woocommerce-page ul.products::after { 
    display: none !important; 
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { 
    width: 100% !important; 
    float: none !important; 
    margin: 0 !important; 
    clear: none !important; 
}

/* 11. CART PAGE CLEANUP & DESKTOP FIXES */
.woocommerce-cart .entry-header, .woocommerce-cart .page-title { display: none !important; }

/* HIDDEN "UPDATE CART" BUTTON - We auto-update instantly now! */
button[name="update_cart"] { display: none !important; }

/* --- THE COUPON FIX (Kills the 80px Woo core bug globally) --- */
.woocommerce table.cart td.actions .coupon {
    width: auto !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce #content table.cart td.actions .input-text, 
.woocommerce table.cart td.actions .input-text, 
.woocommerce-page #content table.cart td.actions .input-text, 
.woocommerce-page table.cart td.actions .input-text,
#add_payment_method table.cart td.actions .coupon .input-text, 
.woocommerce-cart table.cart td.actions .coupon .input-text, 
.woocommerce-checkout table.cart td.actions .coupon .input-text {
    width: 100% !important;
    min-width: 220px !important;
    height: 48px !important;
    padding: 0 16px !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce table.cart td.actions .coupon button.button {
    height: 48px !important;
    padding: 0 24px !important;
    white-space: nowrap !important;
}

/* Left Column (Cart Items Table) */
.woocommerce-cart-form__contents { border-collapse: collapse !important; }
.woocommerce-cart-form__contents th, .woocommerce-cart-form__contents td { border: none !important; border-bottom: 1px solid #f3f4f6 !important; vertical-align: middle !important; }
.woocommerce-cart-form__contents tr:last-child td { border-bottom: none !important; }

.woocommerce table.cart td.actions .button { background-color: white !important; border: 1px solid #e5e7eb !important; color: #374151 !important; border-radius: 6px !important; font-weight: 600 !important; padding: 10px 20px !important; }
.woocommerce table.cart td.actions .button[name="apply_coupon"] { background-color: #1A202C !important; border: none !important; color: white !important; }
.woocommerce table.cart td.actions .button[name="apply_coupon"]:hover { background-color: #000 !important; }

/* RIGHT COLUMN: Cart Totals & Shipping Calculator Fixes */
.cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
.cart-collaterals .cart_totals h2 { font-size: 18px !important; font-weight: 800 !important; margin-bottom: 16px !important; color: #111827 !important; border-bottom: 2px solid #EA580C !important; padding-bottom: 8px !important; display: inline-block !important; }

.cart-collaterals .cart_totals table.shop_table { width: 100% !important; border-collapse: collapse !important; border: none !important; margin-bottom: 24px !important; border-radius: 0 !important; }
.cart-collaterals .cart_totals table th, 
.cart-collaterals .cart_totals table td { border: none !important; padding: 16px 0 !important; border-bottom: 1px solid #f3f4f6 !important; background: transparent !important; }
.cart-collaterals .cart_totals table th { text-transform: uppercase; font-size: 12px !important; color: #6b7280 !important; font-weight: 700 !important; width: 35%; text-align: left !important; vertical-align: top !important; }
.cart-collaterals .cart_totals table td { text-align: right !important; color: #1f2937 !important; font-weight: 600 !important; font-size: 14px !important; }

.cart-collaterals .cart_totals table tr.cart-subtotal td .amount { font-size: 16px !important; color: #111827 !important; font-weight: 800 !important; }
.cart-collaterals .cart_totals table tr.order-total th { color: #111827 !important; font-size: 14px !important; vertical-align: middle !important; }
.cart-collaterals .cart_totals table tr.order-total td .amount { font-size: 22px !important; color: #EA580C !important; font-weight: 800 !important; }

ul#shipping_method { margin: 0 0 12px 0 !important; padding: 0 !important; list-style: none !important; }
ul#shipping_method li { margin-bottom: 10px !important; display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 8px !important; }
ul#shipping_method li input[type="radio"] { accent-color: #EA580C !important; width: 16px !important; height: 16px !important; cursor: pointer; margin: 0 !important; flex-shrink: 0; }
ul#shipping_method li label { margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; color: #374151 !important; cursor: pointer; text-transform: none !important; }

.woocommerce-shipping-destination { font-size: 13px !important; color: #6b7280 !important; margin-bottom: 12px !important; font-weight: 500 !important; line-height: 1.5 !important; }

.shipping-calculator-button { color: #EA580C !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; display: inline-flex !important; align-items: center !important; gap: 4px !important; transition: color 0.2s !important; }
.shipping-calculator-button:hover { color: #c2410c !important; }

.shipping-calculator-form { text-align: left !important; margin-top: 16px !important; background: #F9F9F7 !important; padding: 20px !important; border-radius: 12px !important; border: 1px solid #f3f4f6 !important; display: none; }
.shipping-calculator-form p.form-row { margin-bottom: 16px !important; padding: 0 !important; display: block !important; width: 100% !important; text-align: left !important; }

.shipping-calculator-form label { display: block !important; text-align: left !important; font-size: 11px !important; font-weight: 700 !important; color: #6b7280 !important; margin-bottom: 6px !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; }

.shipping-calculator-form input[type="text"],
.shipping-calculator-form select { width: 100% !important; padding: 10px 14px !important; border: 1px solid #d1d5db !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 500 !important; color: #1f2937 !important; outline: none !important; background: #fff !important; box-sizing: border-box !important; height: 44px !important; box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important; transition: all 0.2s !important; }
.shipping-calculator-form input[type="text"]:focus,
.shipping-calculator-form select:focus { border-color: #EA580C !important; box-shadow: 0 0 0 2px #FFF4ED !important; }

.shipping-calculator-form .select2-container { width: 100% !important; text-align: left !important; }
.shipping-calculator-form .select2-container .select2-selection--single { height: 44px !important; border: 1px solid #d1d5db !important; border-radius: 8px !important; display: flex !important; align-items: center !important; padding: 0 8px !important; background: #fff !important; box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important; }
.shipping-calculator-form .select2-container .select2-selection--single .select2-selection__rendered { color: #1f2937 !important; font-size: 14px !important; font-weight: 500 !important; line-height: 42px !important; padding-left: 6px !important; }
.shipping-calculator-form .select2-container .select2-selection--single .select2-selection__arrow { height: 42px !important; right: 10px !important; }

.shipping-calculator-form button.button { background: #111827 !important; color: #fff !important; border: none !important; width: 100% !important; padding: 12px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 700 !important; margin-top: 4px !important; cursor: pointer !important; transition: background 0.2s !important; text-align: center !important; display: block !important; box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; }
.shipping-calculator-form button.button:hover { background: #000 !important; }

.wc-proceed-to-checkout a.checkout-button { background-color: #EA580C !important; color: white !important; border-radius: 999px !important; font-weight: 700 !important; font-size: 15px !important; padding: 16px 24px !important; transition: all 0.3s !important; display: block !important; text-align: center !important; margin-top: 24px !important; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.15) !important; }
.wc-proceed-to-checkout a.checkout-button:hover { background-color: #c2410c !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25) !important; }

/* =========================================================
   12. MOBILE CART TABLE FIXES (Perfect Grid Layout)
========================================================= */
@media (max-width: 768px) {
    
    /* THE FIX: Target the native body wrapper to force the safe-zone padding */
    .woocommerce-cart .woocommerce {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .woocommerce-cart-form {
        padding: 0 !important; 
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .woocommerce table.shop_table_responsive,
    .woocommerce table.shop_table_responsive tbody,
    .woocommerce table.shop_table_responsive tr,
    .woocommerce table.shop_table_responsive td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-page table.shop_table_responsive tr td::before,
    .woocommerce table.shop_table_responsive tr td::before { 
        display: none !important; 
    }
    
    .woocommerce table.shop_table_responsive tr:nth-child(2n) td, 
    .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td,
    .woocommerce table.shop_table_responsive tr td {
        background-color: transparent !important;
    }

    /* THE FIX: ADDED SAFE ZONE PADDING & BOX SIZING */
    .woocommerce-cart-form__contents tbody tr.cart_item { 
        display: grid !important; 
        grid-template-columns: 75px 1fr auto !important; 
        grid-template-rows: auto auto !important; 
        gap: 12px 14px !important; 
        padding: 20px 16px !important; /* Safely forces elements away from the edge! */
        align-items: center !important;
        border-bottom: 1px solid #f3f4f6 !important;
        background: transparent !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .woocommerce table.shop_table_responsive tr.cart_item td { 
        text-align: left !important; 
        border: none !important; 
        padding: 0 !important; 
        width: auto !important;
    }

    .woocommerce table.shop_table_responsive td.product-thumbnail { 
        grid-column: 1 / 2 !important; 
        grid-row: 1 / 3 !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .woocommerce table.shop_table_responsive td.product-thumbnail img {
        width: 75px !important;
        height: 75px !important;
        max-width: 75px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        border: 1px solid #f3f4f6 !important;
        padding: 4px !important;
        margin: 0 !important;
        background: #fff !important;
    }

    .woocommerce table.shop_table_responsive td.product-name { 
        grid-column: 2 / 3 !important; 
        grid-row: 1 / 2 !important; 
    }
    .woocommerce table.shop_table_responsive td.product-name a {
        font-size: 13px !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;
        margin-bottom: 4px !important;
        color: #1f2937 !important;
    }
    
    .woocommerce table.shop_table_responsive td.product-name dl.variation {
        margin: 0 !important;
        font-size: 11px !important;
        color: #6b7280 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 6px !important;
    }
    .woocommerce table.shop_table_responsive td.product-name dl.variation dt,
    .woocommerce table.shop_table_responsive td.product-name dl.variation dd,
    .woocommerce table.shop_table_responsive td.product-name dl.variation p {
        display: inline-block !important;
        margin: 0 !important;
        font-weight: normal !important;
    }
    .woocommerce table.shop_table_responsive td.product-name dl.variation dt {
        font-weight: 600 !important;
        color: #374151 !important;
    }

    .woocommerce table.shop_table_responsive td.product-remove { 
        grid-column: 3 / 4 !important; 
        grid-row: 1 / 2 !important; 
        justify-self: end !important;
        align-self: start !important;
        position: static !important; 
    }
    .woocommerce table.shop_table_responsive td.product-remove a.remove {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        background: #FEF2F2 !important;
        color: #EF4444 !important;
        border-radius: 8px !important;
        margin: 0 !important;
        font-size: 16px !important;
        text-decoration: none !important;
    }
    .woocommerce table.shop_table_responsive td.product-remove a.remove:hover {
        background: #FEE2E2 !important;
    }

    .woocommerce table.shop_table_responsive td.product-price { 
        display: none !important; 
    }

    /* Adjust the size of the Quantity Box for Mobile */
    .woocommerce table.shop_table_responsive td.product-quantity { 
        grid-column: 2 / 3 !important; 
        grid-row: 2 / 3 !important; 
        justify-self: start !important;
        align-self: center !important;
    }
    .woocommerce table.shop_table_responsive td.product-quantity .quantity {
        width: 110px !important; 
        height: 36px !important;
        margin: 0 !important; /* Forces it to the left side */
    }
    .woocommerce table.shop_table_responsive td.product-quantity .quantity .qty-minus,
    .woocommerce table.shop_table_responsive td.product-quantity .quantity .qty-plus {
        width: 32px !important;
        font-size: 18px !important;
    }
    .woocommerce table.shop_table_responsive td.product-quantity .quantity input.qty {
        width: 46px !important;
        font-size: 14px !important;
    }

    .woocommerce table.shop_table_responsive td.product-subtotal { 
        grid-column: 3 / 4 !important; 
        grid-row: 2 / 3 !important; 
        justify-self: end !important;
        align-self: center !important;
        font-size: 15px !important; 
        font-weight: 800 !important; 
        color: #EA580C !important; 
        line-height: 1 !important;
    }

    .woocommerce table.shop_table_responsive tr.bg-gray-50\/50 {
        display: block !important;
        padding: 20px 16px 16px 16px !important;
        border: none !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }
    .woocommerce table.shop_table_responsive tr.bg-gray-50\/50 td.actions {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
    }
    
    /* =========================================
       THE MOBILE COUPON FIX
    ========================================= */
    .woocommerce table.cart td.actions .coupon {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important; /* Reduced slightly for smaller screens */
        margin-bottom: 0 !important; 
        box-sizing: border-box !important;
    }
    
    /* ADD ID SELECTORS TO CRUSH WOOCOMMERCE CORE DESKTOP SPECIFICITY */
    .woocommerce #content table.cart td.actions .input-text, 
    .woocommerce table.cart td.actions .input-text, 
    .woocommerce-page #content table.cart td.actions .input-text, 
    .woocommerce-page table.cart td.actions .input-text,
    #add_payment_method table.cart td.actions .coupon .input-text, 
    .woocommerce-cart table.cart td.actions .coupon .input-text, 
    .woocommerce-checkout table.cart td.actions .coupon .input-text {
        flex: 1 1 auto !important;
        min-width: 0 !important; /* MAGIC FIX: Kills the 220px desktop min-width so it can shrink */
        width: 100% !important;
        height: 48px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce table.cart td.actions .button[name="apply_coupon"],
    .woocommerce table.cart td.actions .coupon button.button {
        flex: 0 0 auto !important; /* Forces the button to never shrink */
        width: auto !important;
        min-width: 90px !important;
        height: 48px !important;
        border-radius: 8px !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   13. SIDE CART (MINI CART) STYLES
========================================================= */
#coversmart-side-cart .widget_shopping_cart_content { display: flex; flex-direction: column; height: 100%; }

#coversmart-side-cart ul.woocommerce-mini-cart { flex-grow: 1; overflow-y: auto; padding: 20px; margin: 0; list-style: none; }

/* Individual Item Box */
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item { display: flex; flex-wrap: wrap; align-items: center; padding: 15px; background: #fff; border-radius: 12px; margin-bottom: 12px; position: relative; border: 1px solid #f3f4f6; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }

/* The X (Remove) Button */
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item a.remove { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; background: #FEF2F2; color: #EF4444; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; text-decoration: none; transition: 0.2s; z-index: 10; line-height: 1; padding-bottom: 2px; }
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item a.remove:hover { background: #FEE2E2; }

/* Product Image & Title Link */
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item a:not(.remove) { display: flex; align-items: center; gap: 15px; width: 100%; color: #113C5E; font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 8px; padding-right: 25px; line-height: 1.4; }
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item a img { width: 60px; height: 60px; object-fit: contain; background: #F9F9F7; border-radius: 8px; padding: 4px; flex-shrink: 0; border: 1px solid #f3f4f6; margin: 0; }

/* Quantity & Price */
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item .quantity { display: block; width: 100%; text-align: left; padding-left: 75px; font-size: 13px; color: #6b7280; font-weight: 500; }
#coversmart-side-cart ul.woocommerce-mini-cart li.mini_cart_item .quantity .amount { color: #EA580C; font-weight: 800; font-size: 15px; margin-left: 4px; }

/* Empty Cart Message */
#coversmart-side-cart p.woocommerce-mini-cart__empty_message { margin: auto; text-align: center; color: #6b7280; font-size: 15px; font-weight: 500; padding: 40px 20px; }

/* Bottom Fixed Area (Totals & Buttons) */
#coversmart-side-cart .woocommerce-mini-cart__total { margin: 0; padding: 20px; border-top: 1px solid #e5e7eb; background: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #374151; font-weight: 700; }
#coversmart-side-cart .woocommerce-mini-cart__total strong { font-weight: 700; }
#coversmart-side-cart .woocommerce-mini-cart__total .amount { color: #EA580C; font-weight: 900; font-size: 20px; }

#coversmart-side-cart .woocommerce-mini-cart__buttons { margin: 0; padding: 0 20px 20px 20px; background: #fff; display: flex; gap: 12px; }
#coversmart-side-cart .woocommerce-mini-cart__buttons .button { display: flex; align-items: center; justify-content: center; flex: 1; height: 48px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: 0.3s; padding: 0; margin: 0; }
#coversmart-side-cart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: #fff; border: 1px solid #e5e7eb; color: #374151; }
#coversmart-side-cart .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: #f9fafb; border-color: #d1d5db; }
#coversmart-side-cart .woocommerce-mini-cart__buttons .button.checkout { background: #EA580C; color: #fff; border: none; box-shadow: 0 4px 12px rgba(234,88,12,0.2); }
#coversmart-side-cart .woocommerce-mini-cart__buttons .button.checkout:hover { background: #c2410c; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(234,88,12,0.3); }