/* ==========================================================================
   Modern Cart 2026 Premium Edition - Pure White & 2 Columns
   Designed for Draw Your Route - Sleek, Clean, and Conversion-Optimized
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

body.woocommerce-cart {
    background-color: #f8fafc !important; /* Ultra soft gray-blue background */
    font-family: 'Inter', sans-serif !important;
    color: #0f172a !important;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CONTAINER OVERRIDES
   ========================================================================== */
body.woocommerce-cart .vr-page-content,
body.woocommerce-cart .container,
body.woocommerce-cart .woocommerce {
    max-width: 1200px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 auto !important;
}

body.woocommerce-cart .vr-page-content__inner {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Remove default container paddings/shadows if any */
body.woocommerce-cart .layout-container, 
body.woocommerce-cart .page-wrapper, 
body.woocommerce-cart .page-content,
body.woocommerce-cart .page-single {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   2-COLUMN LAYOUT WRAPPER
   ========================================================================== */
.vr-cart-modern-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1.1fr !important;
    gap: 30px !important;
    align-items: start !important;
    margin-top: 30px !important;
    margin-bottom: 60px !important;
    width: 100% !important;
}

.vr-cart-items-col {
    min-width: 0 !important; /* Prevents grid overflowing */
    max-width: 100% !important;
    overflow-x: auto !important;
}

.vr-cart-totals-col {
    position: sticky !important;
    top: 120px !important; /* Sticky scroll behavior */
}

/* ==========================================================================
   MODERN WHITE BOXES
   ========================================================================== */
body.woocommerce-cart .woocommerce .product-box,
body.woocommerce-cart .product-box {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    margin-bottom: 30px !important;
    position: relative;
    overflow: visible !important;
    width: 100%;
}

body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    color: #1e293b !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* ==========================================================================
   CART TABLE OVERRIDES
   ========================================================================== */
.vr-cart-modern-wrapper table.shop_table.cart {
    border: none !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important; 
    margin: 0 !important;
}

.vr-cart-modern-wrapper table.shop_table.cart th.product-remove { width: 30px !important; }
.vr-cart-modern-wrapper table.shop_table.cart th.product-thumbnail { width: 85px !important; text-align: center !important; }
.vr-cart-modern-wrapper table.shop_table.cart th.product-name { width: auto !important; text-align: left !important; padding-left: 15px !important; }
.vr-cart-modern-wrapper table.shop_table.cart th.product-price { width: 85px !important; text-align: center !important; }
.vr-cart-modern-wrapper table.shop_table.cart th.product-quantity { width: 95px !important; text-align: center !important; }
.vr-cart-modern-wrapper table.shop_table.cart th.product-subtotal { width: 85px !important; text-align: right !important; }

.vr-cart-modern-wrapper table.shop_table.cart thead th {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #64748b !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 5px !important;
}

.vr-cart-modern-wrapper table.shop_table.cart tbody td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 5px !important;
    vertical-align: middle !important;
}

.vr-cart-modern-wrapper table.shop_table.cart tbody tr:last-child td {
    border-bottom: none !important;
}

/* Hide default responsive title on desktop */
.vr-cart-modern-wrapper table.shop_table.cart tbody td .cart-responsive-title {
    display: none !important;
}

/* Product Image */
.vr-cart-modern-wrapper table.shop_table.cart .product-thumbnail {
    text-align: center !important;
}
.vr-cart-modern-wrapper table.shop_table.cart .product-thumbnail img {
    width: 100% !important;
    max-width: 65px !important;
    min-width: 55px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06) !important;
    display: inline-block !important;
    object-fit: cover !important;
}

/* Product Name */
.vr-cart-modern-wrapper table.shop_table.cart .product-name {
    text-align: left !important;
    padding-left: 15px !important;
}
.vr-cart-modern-wrapper table.shop_table.cart .product-name a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}
body.woocommerce-cart table.shop_table.cart .product-name a:hover {
    color: #ea580c !important;
}

/* Product Meta (Variations) */
body.woocommerce-cart table.shop_table.cart dl.variation {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
body.woocommerce-cart table.shop_table.cart dl.variation p {
    margin: 0 !important;
}

/* Remove button */
body.woocommerce-cart table.shop_table.cart .product-remove {
    text-align: center !important;
}
body.woocommerce-cart table.shop_table.cart .product-remove a.remove {
    color: #cbd5e1 !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}
body.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

/* Prices */
body.woocommerce-cart table.shop_table.cart .product-price {
    text-align: center !important;
}
body.woocommerce-cart table.shop_table.cart .product-price .amount,
body.woocommerce-cart table.shop_table.cart .product-subtotal .amount {
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    display: block !important;
}

body.woocommerce-cart table.shop_table.cart .product-subtotal {
    text-align: right !important;
}
body.woocommerce-cart table.shop_table.cart .product-subtotal .amount {
    color: #ea580c !important; /* Orange for subtotal */
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Quantity Input */
body.woocommerce-cart table.shop_table.cart .product-quantity {
    text-align: center !important;
}
body.woocommerce-cart table.shop_table.cart .quantity {
    display: inline-flex !important;
    justify-content: center !important;
}
body.woocommerce-cart table.shop_table.cart .quantity input.qty {
    width: 50px !important;
    height: 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    text-align: center !important;
    padding: 0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

/* ==========================================================================
   COUPON & CART ACTIONS (ULTRA SPECIFICITY FLEX)
   ========================================================================== */
#main-content .vr-cart-modern-wrapper table.shop_table.cart td.actions {
    padding: 20px 0 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    border: none !important;
    position: relative !important;
}

#main-content .vr-cart-modern-wrapper table.shop_table.cart .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    flex-wrap: nowrap !important;
}
#main-content .vr-cart-modern-wrapper table.shop_table.cart .coupon label {
    display: none !important;
}
#main-content .vr-cart-modern-wrapper table.shop_table.cart .coupon input.input-text {
    width: 200px !important;
    height: 44px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    box-shadow: none !important;
    background: white !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
    transform: none !important;
}
#main-content .vr-cart-modern-wrapper table.shop_table.cart .coupon .button {
    background: #1e293b !important;
    color: white !important;
    height: 44px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0 24px !important;
    border: none !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    position: static !important;
    transform: none !important;
}
#main-content .vr-cart-modern-wrapper table.shop_table.cart .coupon .button:hover {
    background: #0f172a !important;
}

#main-content .vr-cart-modern-wrapper table.shop_table.cart .cart-update-button {
    background: #f1f5f9 !important;
    color: #475569 !important;
    height: 44px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0 24px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    position: static !important;
    transform: none !important;
}
#main-content .vr-cart-modern-wrapper table.shop_table.cart .cart-update-button:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   MOBILE STICKY BAR DEFAULT
   ========================================================================== */
.vr-mobile-checkout-bar {
    display: none !important;
}

/* ==========================================================================
   CART TOTALS SECTION
   ========================================================================== */
.vr-cart-totals-col .cart-collaterals,
.vr-cart-totals-col .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.vr-cart-totals-col .product-box {
    padding: 25px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
}

.vr-cart-totals-col .cart_totals table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    border: none !important;
    table-layout: auto !important;
}
.vr-cart-totals-col .cart_totals table th, 
.vr-cart-totals-col .cart_totals table td {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
}
.vr-cart-totals-col .cart_totals table th {
    font-weight: 500 !important;
    color: #64748b !important;
    text-align: left !important;
    width: 40% !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
}
.vr-cart-totals-col .cart_totals table td {
    text-align: right !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 15px !important;
}

.vr-cart-totals-col .cart_totals table tr.order-total th, 
.vr-cart-totals-col .cart_totals table tr.order-total td {
    border-bottom: none !important;
    padding-top: 15px !important;
}
.vr-cart-totals-col .cart_totals table tr.order-total th {
    font-size: 18px !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}
.vr-cart-totals-col .cart_totals table tr.order-total td .amount {
    font-size: 24px !important;
    color: #ea580c !important;
    font-weight: 800 !important;
}

/* Proceed to Checkout Button */
body.woocommerce-cart .vr-cart-totals-col a.checkout-button,
.vr-cart-totals-col .checkout-button,
.woocommerce .cart-collaterals .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background-image: linear-gradient(135deg, #1D3557 0%, #152741 100%) !important;
    background-color: #1D3557 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 10px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.2) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .vr-cart-totals-col a.checkout-button:hover,
.vr-cart-totals-col .checkout-button:hover,
.woocommerce .cart-collaterals .checkout-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(29, 53, 87, 0.4) !important;
    color: white !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 991px) {
    .vr-cart-modern-wrapper {
        grid-template-columns: 1fr !important;
    }
    .vr-cart-totals-col {
        position: static !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.woocommerce-cart .product-box {
        padding: 20px !important;
    }
    body.woocommerce-cart table.shop_table.cart thead {
        display: none !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody tr {
        display: block !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        position: relative !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td:last-child {
        border-bottom: none !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td .cart-responsive-title {
        display: block !important;
        font-weight: 600 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        font-size: 12px !important;
        text-align: left !important;
    }
    
    body.woocommerce-cart table.shop_table.cart tbody td.product-thumbnail {
        justify-content: center !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td.product-thumbnail img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    body.woocommerce-cart table.shop_table.cart tbody td.product-name {
        text-align: center !important;
        justify-content: center !important;
        display: block !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td.product-name a {
        font-size: 20px !important;
        text-align: center !important;
    }
    body.woocommerce-cart table.shop_table.cart tbody td.product-name dl.variation {
        justify-content: center !important;
    }
    
    body.woocommerce-cart table.shop_table.cart tbody td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
        background: white !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        z-index: 10 !important;
    }
    
    body.woocommerce-cart table.shop_table.cart td.actions {
        flex-direction: column !important;
        align-items: stretch !important;
        border: none !important;
    }
    body.woocommerce-cart table.shop_table.cart .coupon {
        flex-direction: column !important;
        width: 100% !important;
    }
    body.woocommerce-cart table.shop_table.cart .coupon input.input-text,
    body.woocommerce-cart table.shop_table.cart .coupon .button {
        width: 100% !important;
    }
    body.woocommerce-cart table.shop_table.cart .cart-update-button {
        width: 100% !important;
        margin-left: 0 !important;
    }
    /* Prevent content from hiding behind the fixed bar */
    .vr-page-wrap {
        padding-bottom: 90px !important;
    }

    /* Fixed Bottom Bar */
    .vr-desktop-checkout-btn {
        display: none !important;
    }
    
    .vr-mobile-checkout-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 15px 20px !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    
    .vr-mobile-checkout-bar .vr-mcb-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .vr-mobile-checkout-bar .vr-mcb-label {
        font-family: 'Inter', sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.5px !important;
    }
    
    .vr-mobile-checkout-bar .vr-mcb-price .amount {
        font-family: 'Outfit', sans-serif !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        color: #1e293b !important;
    }
    
    .vr-mobile-checkout-bar .vr-mcb-right {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding-left: 20px !important;
    }
    
    .vr-mobile-checkout-bar .checkout-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 !important;
        min-height: 54px !important;
        background: #2563eb !important; /* Vivid blue like the screenshot */
        color: #ffffff !important;
        font-family: 'Outfit', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        text-transform: none !important;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
        text-decoration: none !important;
    }
}
