/* ========================================
   SATVAM CART PAGE - TWO COLUMN LAYOUT
======================================== */

/* Main Two-Column Layout */
.satvam-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px; /* Increased sidebar width for more breathing room */
    gap: 25px; /* Increased gap */
    align-items: start;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Left Column - Cart Items (Card Wrapper) */
.satvam-cart-main {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px; /* Slightly smoother */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px; /* Reduced from 35px */
}

/* Right Column - Cart Totals Sidebar */
.satvam-cart-sidebar {
    position: sticky;
    top: 100px;
}

/* ========================================
   CART TABLE STYLING
======================================== */
.woocommerce table.shop_table {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table td.actions {
    text-align: right;
    padding: 15px 20px; /* Reduced from 25px 30px */
}

.woocommerce table.shop_table thead th {
    background: #f8f8f8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #666;
    padding: 18px 12px; /* Reduced from 20px */
    border-bottom: 2px solid #e5e5e5;
}

.woocommerce table.shop_table td {
    padding: 15px 12px; /* Reduced horizontal padding from 20px */
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Thumbnail */
.woocommerce table.shop_table .product-thumbnail {
    width: 70px;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

/* Product Name */
.woocommerce table.shop_table .product-name a {
    color: #333;
    font-weight: 600;
    font-size: 16px; /* Increased from 14px */
    text-decoration: none;
}

.woocommerce table.shop_table .product-name a:hover {
    color: #ac033b;
}

/* Prices */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    font-weight: 600;
    color: #333;
    font-size: 16px; /* Increased from 14px */
}

/* Dual price styling in cart */
.satvam-price-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.satvam-price-wrapper .satvam-reg-price {
    color: #b7b7b7;
    font-size: 0.85em;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

/* Quantity */
.woocommerce .quantity .qty {
    width: 55px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    height: 38px;
    font-size: 14px;
}

/* Remove Button */
.woocommerce table.shop_table .product-remove a.remove {
    color: #999 !important;
    font-size: 20px;
    font-weight: 400;
    width: 26px;
    height: 26px;
    line-height: 24px;
    display: inline-block;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.woocommerce table.shop_table .product-remove a.remove:hover {
    background: #ac033b;
    color: #fff !important;
    border-color: #ac033b;
}

/* ========================================
   ACTIONS ROW (Coupon + Update Cart)
======================================== */
.woocommerce table.shop_table td.actions {
    padding: 15px 12px; /* Reduced horizontal padding from 20px */
    background: #fdfdfd;
    border-top: 2px solid #e5e5e5;
}

.woocommerce .cart .coupon {
    float: left;
    display: flex;
    gap: 8px;
    align-items: center;
}


.woocommerce .coupon .input-text {
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
    height: 40px;
    font-size: 14px; /* Increased from 13px */
}

.woocommerce .coupon .button,
.woocommerce .cart .button {
    background: #ac033b;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 15px; /* Increased from 13px */
    cursor: pointer;
    transition: background 0.2s;
    height: 40px;
    line-height: 1;
}

.woocommerce .coupon .button:hover,
.woocommerce .cart .button:hover {
    background: #ac033b;
    border-radius: 4px;
}

.woocommerce .cart button[name="update_cart"] {
    background: #555;
    float: right;
}

.woocommerce .cart button[name="update_cart"]:hover {
    background: #333;
    border-radius: 4px;
}

.woocommerce .cart button[name="update_cart"]:disabled {
    opacity: 0.5;
    color: #ffffff;
    cursor: not-allowed;
}

/* ========================================
   CART TOTALS (Right Sidebar)
======================================== */
.satvam-cart-sidebar .cart_totals {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px; /* Slightly smoother */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px; /* Increased from 20px */
    width: 100% !important;
    float: none !important;
}

.satvam-cart-sidebar .cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ac033b;
    margin: 0 0 20px 0; /* More margin */
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.satvam-cart-sidebar .cart_totals table {
    border: none;
    margin: 0;
}

.satvam-cart-sidebar .cart_totals table th,
.satvam-cart-sidebar .cart_totals table td {
    padding: 15px !important; /* Forces breathing room on all sides */
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.satvam-cart-sidebar .cart_totals table th {
    width: 40%;
    font-weight: 500;
    color: #555;
    font-size: 15px;
    padding-left: 20px !important;
}

.satvam-cart-sidebar .cart_totals table td {
    text-align: right;
    font-weight: 500;
    color: #333;
    font-size: 15px;
    padding-right: 20px !important;
}

.satvam-cart-sidebar .cart_totals table tr.order-total th,
.satvam-cart-sidebar .cart_totals table tr.order-total td {
    border-top: 2px solid #f0f0f0;
    border-bottom: none;
    padding-top: 12px;
    font-weight: 700;
    font-size: 20px; /* Increased from 16px */
    color: #000;
}

/* Shipping Section */
.satvam-cart-sidebar .cart_totals .woocommerce-shipping-destination {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

.satvam-cart-sidebar .cart_totals .shipping-calculator-button {
    color: #ac033b;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
}

.satvam-cart-sidebar .cart_totals .shipping-calculator-button:hover {
    text-decoration: underline;
}

/* Shipping Calculator Form */
.satvam-cart-sidebar .shipping-calculator-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Hide labels for cleaner look */
.satvam-cart-sidebar .shipping-calculator-form label {
    display: none !important;
}

/* Form rows - each p tag is a row */
.satvam-cart-sidebar .shipping-calculator-form p.form-row {
    margin: 0 0 10px 0;
    position: relative;
}

.satvam-cart-sidebar .shipping-calculator-form p:last-of-type {
    margin-bottom: 0;
}

/* State field span wrapper - make it block and full width */
.satvam-cart-sidebar .shipping-calculator-form p span {
    display: block;
    width: 100%;
}

/* All form fields - full width and consistent */
.satvam-cart-sidebar .shipping-calculator-form select,
.satvam-cart-sidebar .shipping-calculator-form .input-text,
.satvam-cart-sidebar .shipping-calculator-form input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px; /* Increased from 14px */
    background: #fff;
    height: 44px;
    box-sizing: border-box;
    display: block;
}

.satvam-cart-sidebar .shipping-calculator-form select:focus,
.satvam-cart-sidebar .shipping-calculator-form .input-text:focus,
.satvam-cart-sidebar .shipping-calculator-form input[type="text"]:focus {
    border-color: #ac033b;
    outline: none;
}

/* Select2 container - full width and proper z-index */
.satvam-cart-sidebar .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.satvam-cart-sidebar .select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
}

.satvam-cart-sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    color: #333;
    font-size: 15px; /* Increased from 14px */
    padding-left: 0;
}

.satvam-cart-sidebar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}



/* Update button */
.satvam-cart-sidebar .shipping-calculator-form p > button,
.satvam-cart-sidebar .shipping-calculator-form button[name="calc_shipping"],
.satvam-cart-sidebar .shipping-calculator-form .button {
    width: 100%;
    background: #ac033b;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
    height: 44px;
}

.satvam-cart-sidebar .shipping-calculator-form button[name="calc_shipping"]:hover,
.satvam-cart-sidebar .shipping-calculator-form .button:hover {
    background: #ac033b;
}

/* Checkout Button */
.satvam-cart-sidebar .wc-proceed-to-checkout {
    padding: 25px 0 0; /* Increased spacing */
}

.satvam-cart-sidebar .wc-proceed-to-checkout a.checkout-button {
    display: block;
    background: #ac033b;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px; /* Increased from 14px */
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.satvam-cart-sidebar .wc-proceed-to-checkout a.checkout-button:hover {
    background: #ac033b !important;
    border-radius: 4px;
}

/* ========================================
   CROSS-SELLS SECTION (Full Width Below)
======================================== */
.satvam-cross-sells-section {
    margin-top: 50px;
    clear: both;
    width: 100%;
    margin-bottom: 50px;
}

.satvam-cross-sells-section .cross-sells h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Ensure cross-sells utilize a grid */
.satvam-cross-sells-section .cross-sells,
.satvam-cross-sells-section .cross-sells ul.products {
    text-align: left !important;
}

/* Hide clearfix pseudo-elements that become grid items */
.satvam-cross-sells-section .cross-sells ul.products::before,
.satvam-cross-sells-section .cross-sells ul.products::after {
    display: none !important;
    content: none !important;
}

/* Ensure cross-sells utilize a grid - match layout only */
.satvam-cross-sells-section .cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important; /* Reduced gap slightly for 4 columns */
    margin: 30px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.satvam-cross-sells-section .cross-sells ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 10px 20px !important;
    box-sizing: border-box;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
}

.satvam-cross-sells-section .cross-sells ul.products li.product a.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
}

.satvam-cross-sells-section .cross-sells ul.products li.product img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    max-height: 250px;
    object-fit: contain;
}

.satvam-cross-sells-section .cross-sells ul.products li.product h2,
.satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important; /* Standard theme size */
    font-weight: 500 !important;
    color: #484848 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-align: center !important;
    min-height: 48px;
    border: none !important; /* Remove line from web view */
}

/* Remove pseudo-element line from web view */
.satvam-cross-sells-section .cross-sells ul.products li.product h2::after,
.satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title::after,
.satvam-cross-sells-section .cross-sells ul.products li.product h2::before,
.satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title::before {
    display: none !important;
    content: none !important;
}


.satvam-cross-sells-section .cross-sells ul.products li.product .price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #484848 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    border: none !important; /* Remove line from web view */
}

.satvam-cross-sells-section .cross-sells ul.products li.product .price::after,
.satvam-cross-sells-section .cross-sells ul.products li.product .price::before {
    display: none !important;
    content: none !important;
}


.satvam-cross-sells-section .satvam-loop-actions-wrapper {
    margin-top: 15px !important;
    padding: 15px 0 0 !important;
    border-top: 1px solid #f0f0f0 !important; /* The gray line above controls */
    text-align: center !important;
}

.satvam-cross-sells-section .satvam-variation-row {
    margin-bottom: 12px !important;
}

.satvam-cross-sells-section .satvam-var-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important; /* Left-aligned variations */
}

.satvam-cross-sells-section .satvam-var-option-btn {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #484848 !important;
    font-weight: 500 !important;
    min-width: 45px !important;
}

.satvam-cross-sells-section .satvam-var-option-btn.active {
    background: #484848 !important;
    color: #fff !important;
    border-color: #484848 !important;
}

.satvam-cross-sells-section .satvam-loop-bottom-row {
    display: flex !important;
    justify-content: space-between !important; /* Pushed apart like ref image */
    align-items: center !important;
}

.satvam-cross-sells-section .satvam-qty-btn {
    width: 30px !important;
    background: #f7f7f7 !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.satvam-cross-sells-section .satvam-qty-input {
    width: 35px !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    border-top: none !important;
    border-bottom: none !important;
    font-size: 14px !important;
    text-align: center !important;
    background: #fff !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide arrows in number input for cross-sells */
.satvam-cross-sells-section .satvam-qty-input::-webkit-inner-spin-button,
.satvam-cross-sells-section .satvam-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.satvam-cross-sells-section .satvam-loop-button-wrapper {
    flex-grow: 0 !important;
}

.satvam-cross-sells-section .satvam-loop-add-to-cart {
    background-color: #ac033b !important;
    color: #fff !important;
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide extra things from loops in cross-sells - BUT KEEP WISHLIST */
.satvam-cross-sells-section .cross-sells ul.products li.product .yith-wcqv-button,
.satvam-cross-sells-section .cross-sells ul.products li.product .add_to_cart_button {
    display: none !important;
}

.satvam-cross-sells-section .cross-sells ul.products li.product .yith-wcwl-add-to-wishlist {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.satvam-cross-sells-section .cross-sells ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-add-button span {
    display: none !important; /* Hide "Wish list" text, keep heart */
}

.satvam-cross-sells-section .cross-sells ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a svg {
    width: 22px !important;
    height: 22px !important;
}



/* Response Grid for Cross Sells */
@media (max-width: 991px) {
    .satvam-cross-sells-section .cross-sells ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .satvam-cross-sells-section .cross-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* Hide the default cart-collaterals since we moved components */
.woocommerce-cart .cart-collaterals {
    display: none;
}

/* ========================================
   AVAILABLE COUPONS SECTION (Plugin)
======================================== */
.woocommerce-cart .wc-sc-available-coupons-wrap,
.woocommerce-cart .available_coupons_container {
    margin-top: 40px;
    padding: 30px 25px !important; /* Robust internal padding */
    border-top: 2px solid #f0f0f0;
}

.woocommerce-cart .wc-sc-available-coupons-wrap h3,
.woocommerce-cart .available_coupons_container h3 {
    font-size: 18px !important; /* Made a bit bigger too */
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0 !important;
    padding: 0 !important; /* Wrapper now handles padding */
    line-height: 1.4;
}

/* Coupon cards styling */
.woocommerce-cart .wc-sc-coupon-container,
.woocommerce-cart .coupon_container {
    display: inline-block;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1px dashed #ac033b;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce-cart .wc-sc-coupon-container:hover,
.woocommerce-cart .coupon_container:hover {
    background: linear-gradient(135deg, #ffebeb 0%, #fff5f5 100%);
    box-shadow: 0 2px 8px rgba(172, 3, 59, 0.15);
}

.woocommerce-cart .wc-sc-coupon-container .wc-sc-coupon-code,
.woocommerce-cart .coupon_container .coupon_code {
    font-weight: 700;
    color: #ac033b;
    font-size: 16px;
}

.woocommerce-cart .wc-sc-coupon-container .wc-sc-coupon-desc,
.woocommerce-cart .coupon_container .coupon_desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}


/* Desktop Refinements (992px and up) */
@media (min-width: 992px) {
    /* Desktop Quantity Selector - Ensure horizontal layout */
    .woocommerce table.shop_table .satvam-loop-quantity {
        display: inline-flex !important;
        align-items: center !important;
        flex-direction: row !important;
        width: max-content !important;
    }

    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-btn,
    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-input {
        display: inline-flex !important;
    }

    /* Desktop Product Images - 100px size */
    .woocommerce table.shop_table td.product-thumbnail {
        width: 100px !important;
        min-width: 100px !important;
    }

    .woocommerce table.shop_table .product-thumbnail img {
        width: 100px !important;
        max-width: none !important;
        height: auto !important;
    }
}


/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .satvam-cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden !important;
    }
    
    .satvam-cart-sidebar {
        position: static;
    }

    .satvam-cart-main {
        padding: 20px !important;
    }
    
    .satvam-cart-sidebar .cart_totals {
        padding: 20px !important;
    }

    /* Cross-sells 3 columns on tablet */
    .satvam-cross-sells-section .cross-sells ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .satvam-cart-main {
        padding: 10px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .woocommerce-cart-form {
        background: transparent !important;
    }

    .woocommerce table.shop_table {
        background: transparent !important;
        border: none !important;
    }

    .satvam-cart-sidebar .cart_totals {
        padding: 20px !important;
        margin-top: 20px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .woocommerce table.shop_table,
    .woocommerce table.shop_table tbody,
    .woocommerce table.shop_table tr,
    .woocommerce table.shop_table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    .woocommerce table.shop_table thead {
        display: none !important;
    }
    
    .woocommerce table.shop_table tr.cart_item {
        display: grid !important;
        grid-template-columns: 75px 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        background: #fff !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
        align-items: start !important;
        position: relative !important;
        border: 1px solid #f0f0f0 !important;
        overflow: hidden !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce table.shop_table tr.cart_item td {
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        background: transparent !important;
    }

    /* Hide labels on mobile */
    .woocommerce table.shop_table tr.cart_item td:before {
        display: none !important;
    }
    
    /* Hide remove button on mobile */
    .woocommerce table.shop_table .product-remove {
        display: none !important;
    }
    
    .woocommerce table.shop_table .product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        display: flex !important;
        align-items: center !important;
        align-self: center !important;
        width: auto !important;
        min-width: 0 !important; /* Reset desktop constraint */
    }

    .woocommerce table.shop_table .product-thumbnail a {
        display: block !important;
    }

    .woocommerce table.shop_table .product-thumbnail img {
        display: block !important;
        width: 70px !important;
        height: 70px !important;
        object-fit: cover !important;
        border-radius: 4px !important;
        border: 1px solid #f5f5f5 !important;
    }
    
    .woocommerce table.shop_table .product-name {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-right: 10px !important;
    }

    /* Remove any pseudo-elements */
    .woocommerce table.shop_table .product-name:before,
    .woocommerce table.shop_table .product-name:after {
        display: none !important;
        content: none !important;
    }

    .woocommerce table.shop_table .product-name a {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333 !important;
        line-height: 1.3;
        margin-bottom: 2px;
        display: block !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Product variation attributes */
    .woocommerce table.shop_table .product-name dl.variation {
        display: block !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce table.shop_table .product-name dl.variation dt,
    .woocommerce table.shop_table .product-name dl.variation dd {
        display: inline-block !important;
        font-size: 11px !important;
        color: #888 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 400 !important;
    }

    .woocommerce table.shop_table .product-price {
        display: none !important;
    }

    .woocommerce table.shop_table .product-quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin-top: 4px;
    }

    .woocommerce table.shop_table .product-subtotal {
        grid-column: 2 !important;
        grid-row: 3 !important;
        font-weight: 700 !important;
        color: #ac033b !important;
        font-size: 15px !important;
        margin-top: 6px;
    }

    .woocommerce table.shop_table .product-subtotal:before {
        content: "Subtotal: ";
        font-weight: 600;
        color: #888;
        font-size: 12px;
        margin-right: 4px;
    }

    /* Theme-consistent Stepper Styling */
    .woocommerce table.shop_table .satvam-loop-quantity {
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        padding: 0 !important;
        height: 36px !important;
        width: 100px !important;
        overflow: hidden !important;
    }

    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-btn {
        background: #f7f7f7 !important;
        color: #333 !important;
        border: none !important;
        width: 30px !important;
        height: 100% !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        cursor: pointer;
        transition: background 0.2s;
    }

    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-btn:hover {
        background: #eee !important;
    }

    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-input {
        background: #fff !important;
        color: #333 !important;
        border: none !important;
        border-left: 1px solid #ddd !important;
        border-right: 1px solid #ddd !important;
        width: 40px !important;
        height: 100% !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 0 !important;
        margin: 0 !important;
        -moz-appearance: textfield !important;
        appearance: textfield !important;
        box-shadow: none !important;
    }

    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-input::-webkit-outer-spin-button,
    .woocommerce table.shop_table .satvam-loop-quantity .satvam-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
    
    .woocommerce .cart .coupon {
        background: #fff;
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        align-items: center;
    }
    
    .woocommerce .coupon .input-text {
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
        min-width: 0 !important; /* Prevents overflow */
    }

    .woocommerce .coupon .button {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 10px !important; /* Slightly tighter padding to fit */
        font-size: 13px !important; /* Slightly smaller to prevent wrap */
        white-space: nowrap !important;
    }
    
    .woocommerce .cart button[name="update_cart"] {
        float: none;
        width: 100% !important;
    }

    /* Coupon cards full width on very small screens */
    .woocommerce-cart .wc-sc-coupon-container,
    .woocommerce-cart .coupon_container {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        box-sizing: border-box;
    }

    /* Cross-sells 2 columns on mobile - Matching category card style from reference */
    .satvam-cross-sells-section .cross-sells ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        margin: 20px 0 0 0 !important;
        padding-top: 5vw !important;
        border-bottom: none !important;
    }







    .satvam-cross-sells-section .cross-sells ul.products li.product {
        width: 50% !important;
        padding: 6vw 3vw !important;
        margin: 0 !important;
        border-right: 1px solid rgba(112, 112, 112, 0.6) !important;




        border-top: none !important;





        box-sizing: border-box !important;
        min-height: auto !important;
        background: transparent !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .satvam-cross-sells-section .cross-sells ul.products li.product:nth-child(even) {
        border-right: none !important;
    }

    .satvam-cross-sells-section .cross-sells ul.products li.product:nth-child(n+3) {
        border-top: 1px solid rgba(112, 112, 112, 0.6) !important;
    }








    .satvam-cross-sells-section .cross-sells ul.products li.product h2,
    .satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title {
        font-size: 3.750vw !important; /* Synced with category page */
        line-height: 1.3 !important;
        min-height: 10vw !important; /* Ensure vertical alignment of separators */
        margin-bottom: 2vw !important;
        text-align: center !important;
        border: none !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Specifically remove the pseudo-element line found in category pages */
    .satvam-cross-sells-section .cross-sells ul.products li.product h2::after,
    .satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title::after,
    .satvam-cross-sells-section .cross-sells ul.products li.product h2::before,
    .satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title::before {
        display: none !important;
        content: none !important;
    }

    .satvam-cross-sells-section .cross-sells ul.products li.product .price {
        font-size: 3.125vw !important; /* Synced with category page */
        margin-bottom: 4vw !important;
        display: block !important;
        text-align: center !important;
        border: none !important;
        font-weight: 700 !important;
    }

    .satvam-cross-sells-section .cross-sells ul.products li.product .price::after,
    .satvam-cross-sells-section .cross-sells ul.products li.product .price::before {
        display: none !important;
        content: none !important;
    }

    .satvam-cross-sells-section .satvam-loop-actions-wrapper {
        border-top: 1px solid #e1e1e1 !important;




        padding-top: 4vw !important;



        margin-top: auto !important; /* Push to bottom */
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3vw !important;
    }


    .satvam-cross-sells-section .satvam-var-options {
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .satvam-cross-sells-section .satvam-loop-bottom-row {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .satvam-cross-sells-section .satvam-loop-quantity {
        width: 100% !important;
        justify-content: center !important;
        border: 1px solid #ddd !important;
        height: 40px !important;
        border-radius: 4px !important;
        overflow: hidden !important;
    }

    .satvam-cross-sells-section .satvam-qty-btn {
        flex: 1 !important;
        height: 100% !important;
        background: #f1f1f1 !important;
    }

    .satvam-cross-sells-section .satvam-qty-input {
        width: 50% !important;
        height: 100% !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    .satvam-cross-sells-section .satvam-loop-button-wrapper {
        width: 100% !important;
    }

    .satvam-cross-sells-section .satvam-loop-add-to-cart {
        width: 100% !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        font-size: 13px !important;
    }



    /* Small screens specific fixes (e.g. iPhone SE) */
    @media (max-width: 380px) {
        .satvam-cart-main {
            padding: 8px !important;
        }

        .woocommerce table.shop_table tr.cart_item {
            padding: 10px 8px !important;
            grid-template-columns: 65px 1fr !important;
            gap: 10px !important;
        }

        .woocommerce table.shop_table .product-thumbnail img {
            width: 60px !important;
            height: 60px !important;
        }

        .woocommerce .cart .coupon {
            padding: 10px !important;
            gap: 6px !important;
        }

        .woocommerce .coupon .button {
            padding: 0 8px !important;
            font-size: 11px !important;
            flex: 0 0 auto !important;
        }

        .woocommerce .coupon .input-text {
            font-size: 13px !important;
            padding: 0 8px !important;
            height: 38px !important;
        }
    }
}

/* ========================================
   DARK MODE
======================================== */
body.wp-dark-mode-active .woocommerce table.shop_table {
    background: #1e1e1e;
    border-color: #333;
}

body.wp-dark-mode-active .woocommerce table.shop_table thead th {
    background: #252525;
    color: #aaa;
    border-color: #333;
}

body.wp-dark-mode-active .woocommerce table.shop_table td {
    border-color: #333;
}

body.wp-dark-mode-active .woocommerce table.shop_table .product-name a {
    color: #e0e0e0;
}

body.wp-dark-mode-active .woocommerce table.shop_table .product-name a:hover {
    color: #ff6b6b;
}

body.wp-dark-mode-active .woocommerce table.shop_table .product-price,
body.wp-dark-mode-active .woocommerce table.shop_table .product-subtotal {
    color: #e0e0e0;
}

body.wp-dark-mode-active .woocommerce .quantity .qty {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.wp-dark-mode-active .woocommerce table.shop_table .product-remove a.remove {
    background: #2a2a2a;
    border-color: #444;
    color: #aaa !important;
}

body.wp-dark-mode-active .woocommerce table.shop_table .product-remove a.remove:hover {
    background: #cc0033;
    border-color: #cc0033;
    color: #fff !important;
}

body.wp-dark-mode-active .woocommerce table.shop_table td.actions {
    background: #252525;
    border-color: #333;
}

body.wp-dark-mode-active .woocommerce .coupon .input-text {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals {
    background: #1e1e1e;
    border-color: #333;
}

body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals h2 {
    color: #ff6b6b;
    border-color: #333;
}

body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals table th {
    color: #aaa;
}

body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals table td {
    color: #e0e0e0;
}

body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals table th,
body.wp-dark-mode-active .satvam-cart-sidebar .cart_totals table td {
    border-color: #333;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells h2 {
    color: #e0e0e0;
    border-color: #333;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products {
    border-color: #333 !important;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product {
    background: transparent;
    border-color: #333 !important;
}


body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product h2,
body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product .woocommerce-loop-product__title {
    color: #e0e0e0;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product .price {
    color: #ff6b6b;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product .button {
    background: #2a2a2a;
    color: #fff;
}

body.wp-dark-mode-active .satvam-cross-sells-section .cross-sells ul.products li.product .button:hover {
    background: #cc0033;
}

/* Dark mode - Cart Main Wrapper */
body.wp-dark-mode-active .satvam-cart-main {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: none;
}

/* Dark mode - Available Coupons */
body.wp-dark-mode-active .woocommerce-cart .wc-sc-available-coupons-wrap,
body.wp-dark-mode-active .woocommerce-cart .available_coupons_container {
    border-color: #333;
}

body.wp-dark-mode-active .woocommerce-cart .wc-sc-available-coupons-wrap h3,
body.wp-dark-mode-active .woocommerce-cart .available_coupons_container h3 {
    color: #e0e0e0;
}

body.wp-dark-mode-active .woocommerce-cart .wc-sc-coupon-container,
body.wp-dark-mode-active .woocommerce-cart .coupon_container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-color: #cc0033;
}

body.wp-dark-mode-active .woocommerce-cart .wc-sc-coupon-container:hover,
body.wp-dark-mode-active .woocommerce-cart .coupon_container:hover {
    background: linear-gradient(135deg, #331515 0%, #2a2a2a 100%);
}

body.wp-dark-mode-active .woocommerce-cart .wc-sc-coupon-container .wc-sc-coupon-code,
body.wp-dark-mode-active .woocommerce-cart .coupon_container .coupon_code {
    color: #ff6b6b;
}

body.wp-dark-mode-active .woocommerce-cart .wc-sc-coupon-container .wc-sc-coupon-desc,
body.wp-dark-mode-active .woocommerce-cart .coupon_container .coupon_desc {
    color: #aaa;
}

/* Dark mode - Shipping Calculator */
body.wp-dark-mode-active .satvam-cart-sidebar .shipping-calculator-form {
    background: #252525;
    border-color: #333;
}

body.wp-dark-mode-active .satvam-cart-sidebar .shipping-calculator-form label {
    color: #aaa;
}

body.wp-dark-mode-active .satvam-cart-sidebar .shipping-calculator-form select,
body.wp-dark-mode-active .satvam-cart-sidebar .shipping-calculator-form .input-text {
    background: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}

body.wp-dark-mode-active .satvam-cart-sidebar .select2-container--default .select2-selection--single {
    background: #1e1e1e;
    border-color: #444;
}

body.wp-dark-mode-active .satvam-cart-sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e0e0;
}

/* Available Coupons Spacing */
#coupons_list {
    margin-top: 30px !important;
}

#coupons_list h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* HORIZONTAL SCROLL COUPONS - Cart Page Mobile/Tablet */
@media (max-width: 991px) {
    #coupons_list #sc-cc #all_coupon_container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 20px !important;
        padding-bottom: 20px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-right: -20px; /* Bleed to edge */
        padding-right: 20px;
        align-items: stretch !important; /* Force equal height */
    }

    /* Hide scrollbar */
    #coupons_list #sc-cc #all_coupon_container::-webkit-scrollbar {
        display: none;
    }

    #coupons_list #sc-cc #all_coupon_container .sc-coupon {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        margin-bottom: 0 !important;
        scroll-snap-align: start;
        border-radius: 4px !important;
        background: #fff !important;
        /* Ensure content fills height */
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 100% !important;
    }

/* Hide original coupon messages to prevent FOUC/Jumping - JS moves them */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .wc_coupon_message_wrap,
.woocommerce-cart .wc_coupon_message_container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

/* Style for the relocated permanent message - matches original design */
.satvam-permanent-coupon-msg {
    background: linear-gradient(135deg, #fffcfd 0%, #fff5f8 100%) !important;
    border: 1px solid rgba(172, 3, 59, 0.2) !important;
    border-left: 4px solid #ac033b !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    padding-left: 55px !important; /* Space for icon */
    box-shadow: 0 4px 15px rgba(172, 3, 59, 0.05) !important;
    margin-top: 15px;
    margin-bottom: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    color: #484848 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

/* Add gift icon to permanent message */
.satvam-permanent-coupon-msg::before {
    content: "\f06b" !important; /* GIFT ICON */
    font-family: "FontAwesome" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 24px !important;
    color: #ac033b !important;
    opacity: 0.9 !important;
    display: block !important;
}

.satvam-permanent-coupon-msg strong {
    color: #ac033b;
    font-weight: 700;
}

    #coupons_list #sc-cc #all_coupon_container .sc-coupon > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
}