/**
 * Cart Page Styles Only
 *
 * Cart drawer and cart icon styles are in global.css
 * This file contains only cart page-specific styles
 *
 * @package     RalphWhite_B2B
 * @subpackage  Assets
 * @author      SiteGuiders
 * @copyright   Copyright (c) 2025, SiteGuiders
 * @link        https://siteguiders.com
 * @since       1.0.0
 */

/* ============================================
   Cart Page Wrapper - High Priority
   ============================================ */
.woocommerce-cart-page .cart-page-wrapper,
.woocommerce-cart .cart-page-wrapper,
.woocommerce-page.woocommerce-cart .cart-page-wrapper,
body.woocommerce-cart .cart-page-wrapper,
body.woocommerce-page .cart-page-wrapper {
    padding: 3rem 0 !important;
    /* background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%) !important; */
    min-height: 60vh !important;
}
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{
    width: 100%!important;
}
.woocommerce-cart-page .cart-page-header,
.woocommerce-cart .cart-page-header,
.woocommerce-page.woocommerce-cart .cart-page-header,
body.woocommerce-cart .cart-page-header,
body.woocommerce-page .cart-page-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
    padding-bottom: 2rem !important;
    border-bottom: 2px solid #E5E7EB !important;
}

.woocommerce-cart-page .cart-page-title,
.woocommerce-cart .cart-page-title,
.woocommerce-page.woocommerce-cart .cart-page-title,
body.woocommerce-cart .cart-page-title,
body.woocommerce-page .cart-page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #0A2463 !important;
    margin-bottom: 0.5rem !important;
    background: linear-gradient(135deg, #00D4AA 0%, #1E88E5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.woocommerce-cart-page .cart-page-subtitle,
.woocommerce-cart .cart-page-subtitle,
.woocommerce-page.woocommerce-cart .cart-page-subtitle,
body.woocommerce-cart .cart-page-subtitle,
body.woocommerce-page .cart-page-subtitle {
    font-size: 1.1rem !important;
    color: #6B7280 !important;
    margin: 0 !important;
}

.woocommerce-cart-page .cart-content-wrapper,
.woocommerce-cart .cart-content-wrapper,
.woocommerce-page.woocommerce-cart .cart-content-wrapper,
body.woocommerce-cart .cart-content-wrapper,
body.woocommerce-page .cart-content-wrapper {
    /* Bootstrap grid handles layout */
    align-items: start !important;
}

.woocommerce-cart-page .modern-cart-form,
.woocommerce-cart .modern-cart-form,
.woocommerce-page.woocommerce-cart .modern-cart-form,
body.woocommerce-cart .modern-cart-form,
body.woocommerce-page .modern-cart-form {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 2rem !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
    margin-bottom: 0!important;
}
.woocommerce-cart .wc-proceed-to-checkout{
    padding-bottom: 0!important;
}
/* ============================================
   Cart Page Styles Only
   ============================================ */
/* Note: Cart drawer and cart icon styles are in global.css */

body.woocommerce-cart .cart-table-wrapper,
body.woocommerce-page .cart-table-wrapper {
    overflow-x: auto !important;
    margin-bottom: 1rem !important;
}

body.woocommerce-cart .modern-cart-table,
body.woocommerce-page .modern-cart-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.woocommerce-cart .modern-cart-table thead,
body.woocommerce-page .modern-cart-table thead {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%) !important;
    color: var(--pure-white) !important;
}

body.woocommerce-cart .modern-cart-table thead th,
body.woocommerce-page .modern-cart-table thead th {
    padding: 1.25rem 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

body.woocommerce-cart .modern-cart-table tbody tr,
body.woocommerce-page .modern-cart-table tbody tr {
    border-bottom: 1px solid var(--light-gray) !important;
    transition: background 0.3s ease !important;
}

body.woocommerce-cart .modern-cart-table tbody tr:hover,
body.woocommerce-page .modern-cart-table tbody tr:hover {
    background: rgba(0, 212, 170, 0.05) !important;
}

body.woocommerce-cart .modern-cart-table tbody td,
body.woocommerce-page .modern-cart-table tbody td {
    padding: 1.5rem 1rem !important;
    vertical-align: middle !important;
    border: none !important;
}

/* Cart Item Row Styling */
.cart-item-row {
    transition: all 0.3s ease;
}

.cart-item-row:hover {
    background: rgba(0, 212, 170, 0.03) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Product Thumbnail */
.product-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #F9FAFB;
    padding: 8px;
}

.product-thumbnail-link {
    display: block;
    transition: transform 0.3s ease;
}

.product-thumbnail-link:hover {
    transform: scale(1.05);
}

.modern-cart-table .product-thumbnail {
    width: 120px;
    padding: 1rem !important;
}

.modern-cart-table .product-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-cart-table .product-thumbnail img:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.2);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.product-title a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #00D4AA;
}

.product-meta {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
}

.product-meta dl {
    margin: 0;
}

.product-meta dt {
    font-weight: 600;
    color: #374151;
}

.product-meta dd {
    margin-left: 0.5rem;
    color: #6B7280;
}

/* Price Wrapper */
.price-wrapper {
    font-weight: 700;
    color: #1E88E5;
    font-size: 1.1rem;
}

/* Quantity Wrapper */
.quantity-wrapper {
    display: flex;
    justify-content: center;
}

.cart-quantity-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-input input[type="number"] {
    width: 70px;
    text-align: center;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-quantity-input input[type="number"]:focus {
    outline: none;
    border-color: #00D4AA;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* Subtotal Wrapper */
.subtotal-wrapper {
    font-weight: 700;
    color: #1E88E5;
    font-size: 1.2rem;
    text-align: right;
}

/* Remove Item Button */
.remove-cart-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    color: #F87171 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background: rgba(248, 113, 113, 0.1) !important;
    border: 2px solid rgba(248, 113, 113, 0.2) !important;
}

.remove-cart-item svg {
    width: 18px;
    height: 18px;
}

.remove-cart-item:hover {
    background: #F87171 !important;
    color: #FFFFFF !important;
    border-color: #F87171 !important;
    transform: scale(1.1) rotate(90deg);
}

/* Cart Actions */
.cart-actions-wrapper {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(30, 136, 229, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.coupon-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0A2463;
    margin: 0;
    font-size: 0.95rem;
}

.coupon-label svg {
    width: 18px;
    height: 18px;
    color: #00D4AA;
}

.coupon-input-group {
    display: flex;
    gap: 0.75rem;
}

/* Bootstrap input-group compatibility */
.coupon-input-group.input-group {
    gap: 0;
}

.coupon-input-group.input-group .coupon-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.coupon-input-group.input-group .btn-coupon {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.coupon-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.coupon-input:focus {
    outline: none;
    border-color: #00D4AA;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.btn-coupon {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #00D4AA 0%, #1E88E5 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
    color: #FFFFFF;
}

.update-cart-section {
    display: flex;
    justify-content: flex-end;
}

.btn-update-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #FFFFFF;
    color: #0A2463;
    border: 2px solid #0A2463;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-update-cart svg {
    width: 18px;
    height: 18px;
}

.btn-update-cart:hover {
    background: #0A2463;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.2);
}

.modern-cart-table .actions {
    padding: 2rem 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.modern-cart-table .coupon {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modern-cart-table .coupon input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.modern-cart-table .coupon input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.modern-cart-table .coupon button,
.modern-cart-table .actions button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
    color: var(--pure-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-cart-table .coupon button:hover,
.modern-cart-table .actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.cart-collaterals-wrapper {
    position: sticky;
    top: 2rem;
    overflow: visible;
}

/* Bootstrap grid compatibility */
.cart-items-section {
    margin-bottom: 0 !important;
}

.cart-totals-section {
    margin-bottom: 0 !important;
}

@media (min-width: 992px) {
    .cart-totals-section {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}

.cart-totals-section {
    overflow: visible;
}

.cart-collaterals {
    overflow: visible;
}

.modern-cart-totals {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.1);
    overflow: visible;
    position: relative;
}

.modern-cart-totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-teal, #00D4AA) 0%, var(--primary-cyan, #1E88E5) 100%);
}

.modern-cart-totals h2 {
    background: linear-gradient(135deg, var(--primary-teal, #00D4AA) 0%, var(--primary-cyan, #1E88E5) 100%);
    color: var(--pure-white, #FFFFFF);
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* .modern-cart-totals h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
} */

/* .modern-cart-totals:hover h2::after {
    left: 100%;
} */

.modern-cart-totals .shop_table {
    margin: 0;
    border: none;
    background: transparent;
}

.modern-cart-totals .cart_totals {
    padding: 0 !important;
    overflow: visible !important;
}

.modern-cart-totals .shop_table {
    padding: 0 2rem 1rem 2rem !important;
    width: 100% !important;
    table-layout: auto !important;
}

.modern-cart-totals .shop_table tr {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-cart-totals .shop_table tr:last-child {
    border-bottom: none;
}

.modern-cart-totals .shop_table th,
.modern-cart-totals .shop_table td {
    padding: 1.25rem 2rem !important;
    border: none !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
}

.modern-cart-totals .shop_table th {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.modern-cart-totals .shop_table td {
    text-align: right !important;
    font-weight: 700 !important;
    color: #1E88E5 !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.modern-cart-totals .shop_table .order-total th,
.modern-cart-totals .shop_table .order-total td {
    padding: 1.5rem 2rem !important;
    font-size: 1.3rem !important;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(30, 136, 229, 0.08) 100%) !important;
    border-top: 2px solid rgba(0, 212, 170, 0.3) !important;
    margin: 0 !important;
}

.modern-cart-totals .shop_table .order-total th {
    color: #0A2463 !important;
    font-weight: 700 !important;
}

.modern-cart-totals .shop_table .order-total td {
    color: #1E88E5 !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

.modern-cart-totals .shop_table .cart-subtotal th,
.modern-cart-totals .shop_table .cart-subtotal td {
    color: #374151;
}

.modern-cart-totals .shop_table .cart-subtotal td {
    color: #1E88E5;
    font-weight: 600;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.03) 0%, rgba(30, 136, 229, 0.03) 100%);
    border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    background: linear-gradient(135deg, var(--primary-teal, #00D4AA) 0%, var(--primary-cyan, #1E88E5) 100%) !important;
    color: var(--pure-white, #FFFFFF) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3), 0 2px 6px rgba(0, 212, 170, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.checkout-button span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.checkout-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4), 0 4px 10px rgba(0, 212, 170, 0.2) !important;
    color: var(--pure-white, #FFFFFF) !important;
}

.checkout-button:hover::before {
    left: 100%;
}

.checkout-button:active {
    transform: translateY(-1px) scale(1.01) !important;
}

/* Add arrow icon to checkout button text */
.checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}

.checkout-button::after {
    content: '→' !important;
    font-size: 1.5rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.checkout-button:hover::after {
    transform: translateX(5px) !important;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--pure-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-empty-state svg {
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.cart-empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.cart-empty-state p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.cart-empty-state .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Additional Cart Totals Styling */
.modern-cart-totals .cart_totals h2 {
    margin: 0 !important;
    padding: 1.5rem 2rem !important;
    background: linear-gradient(135deg, var(--primary-teal, #00D4AA) 0%, var(--primary-cyan, #1E88E5) 100%) !important;
    color: var(--pure-white, #FFFFFF) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
    line-height: 1.4 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modern-cart-totals .cart_totals table {
    margin: 0;
    border: none;
    background: transparent;
}

/* Ensure proper spacing in cart totals */
.modern-cart-totals .cart_totals .shop_table {
    width: 100%;
    margin-bottom: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Bootstrap Breakpoints - Tablet and Below (md and below) */
@media (max-width: 991.98px) {
    .woocommerce-cart-page .cart-page-wrapper,
    .woocommerce-cart .cart-page-wrapper,
    .woocommerce-page.woocommerce-cart .cart-page-wrapper,
    body.woocommerce-cart .cart-page-wrapper,
    body.woocommerce-page .cart-page-wrapper {
        padding: 2rem 0 !important;
    }

    .woocommerce-cart-page .cart-page-title,
    .woocommerce-cart .cart-page-title,
    .woocommerce-page.woocommerce-cart .cart-page-title,
    body.woocommerce-cart .cart-page-title,
    body.woocommerce-page .cart-page-title {
        font-size: 2rem !important;
    }
    
    .cart-totals-section {
        position: static !important;
        margin-top: 2rem !important;
    }
    
    .modern-cart-totals {
        margin-top: 0 !important;
    }
    
    .checkout-button {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .modern-cart-table {
        font-size: 0.9rem;
    }
    
    .modern-cart-table thead th,
    .modern-cart-table tbody td {
        padding: 1rem 0.75rem !important;
    }
    
    .modern-cart-table .product-thumbnail {
        width: 80px !important;
    }
    
    .modern-cart-table .product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
    }

    .modern-cart-totals h2 {
        font-size: 1.3rem !important;
        padding: 1.25rem 1.5rem !important;
    }

    .modern-cart-totals .shop_table {
        padding: 0 1.5rem 1rem 1.5rem !important;
    }

    .modern-cart-totals .shop_table th,
    .modern-cart-totals .shop_table td {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    .wc-proceed-to-checkout {
        padding: 1.5rem !important;
    }
}

/* Bootstrap Breakpoints - Mobile Devices (sm and below) */
@media (max-width: 767.98px) {
    .woocommerce-cart-page .cart-page-wrapper,
    .woocommerce-cart .cart-page-wrapper,
    .woocommerce-page.woocommerce-cart .cart-page-wrapper,
    body.woocommerce-cart .cart-page-wrapper,
    body.woocommerce-page .cart-page-wrapper {
        padding: 1.5rem 0 !important;
    }

    .woocommerce-cart-page .cart-page-wrapper .container,
    .woocommerce-cart .cart-page-wrapper .container,
    .woocommerce-page.woocommerce-cart .cart-page-wrapper .container,
    body.woocommerce-cart .cart-page-wrapper .container,
    body.woocommerce-page .cart-page-wrapper .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .woocommerce-cart-page .cart-page-header,
    .woocommerce-cart .cart-page-header,
    .woocommerce-page.woocommerce-cart .cart-page-header,
    body.woocommerce-cart .cart-page-header,
    body.woocommerce-page .cart-page-header {
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    .woocommerce-cart-page .cart-page-title,
    .woocommerce-cart .cart-page-title,
    .woocommerce-page.woocommerce-cart .cart-page-title,
    body.woocommerce-cart .cart-page-title,
    body.woocommerce-page .cart-page-title {
        font-size: 1.75rem !important;
    }

    .woocommerce-cart-page .cart-page-subtitle,
    .woocommerce-cart .cart-page-subtitle,
    .woocommerce-page.woocommerce-cart .cart-page-subtitle,
    body.woocommerce-cart .cart-page-subtitle,
    body.woocommerce-page .cart-page-subtitle {
        font-size: 1rem !important;
    }

    .woocommerce-cart-page .cart-content-wrapper,
    .woocommerce-cart .cart-content-wrapper,
    .woocommerce-page.woocommerce-cart .cart-content-wrapper,
    body.woocommerce-cart .cart-content-wrapper,
    body.woocommerce-page .cart-content-wrapper {
        gap: 1.5rem !important;
    }

    /* Hide table headers on mobile, use card layout */
    .modern-cart-table thead {
        display: none !important;
    }

    .modern-cart-table tbody tr {
        display: block !important;
        position: relative !important;
        margin-bottom: 1.5rem !important;
        background: #FFFFFF !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        padding: 1rem !important;
        border: none !important;
    }

    .modern-cart-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 0 !important;
        border: none !important;
        border-bottom: 1px solid #E5E7EB !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .modern-cart-table tbody td[data-title]::before {
        content: attr(data-title) !important;
        font-weight: 600 !important;
        color: #374151 !important;
        text-transform: uppercase !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.5px !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
    }

    /* Product thumbnail on mobile */
    .modern-cart-table .product-thumbnail {
        width: 100% !important;
        padding: 0 0 1rem 0 !important;
        border-bottom: 1px solid #E5E7EB !important;
        margin-bottom: 1rem !important;
        justify-content: center !important;
    }

    .modern-cart-table .product-thumbnail::before {
        display: none !important;
    }

    .modern-cart-table .product-thumbnail .product-thumbnail-wrapper {
        margin: 0 auto !important;
    }

    .modern-cart-table .product-thumbnail img {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Product name on mobile */
    .modern-cart-table .product-name {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .modern-cart-table .product-name::before {
        content: 'Product' !important;
    }

    .product-info {
        width: 100% !important;
    }

    .product-title {
        font-size: 1rem !important;
    }

    /* Remove button on mobile */
    .modern-cart-table .product-remove {
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        border-bottom: none !important;
        padding: 0 !important;
        width: auto !important;
        justify-content: flex-end !important;
    }

    .modern-cart-table .product-remove::before {
        display: none !important;
    }

    .remove-cart-item {
        width: 36px !important;
        height: 36px !important;
    }

    /* Price on mobile */
    .modern-cart-table .product-price::before {
        content: 'Price' !important;
    }

    .price-wrapper {
        font-size: 1rem !important;
    }

    /* Quantity on mobile */
    .modern-cart-table .product-quantity {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .modern-cart-table .product-quantity::before {
        content: 'Quantity' !important;
    }

    .cart-quantity-input {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .cart-quantity-input input[type="number"] {
        width: 100px !important;
    }

    /* Subtotal on mobile */
    .modern-cart-table .product-subtotal::before {
        content: 'Subtotal' !important;
    }

    .subtotal-wrapper {
        font-size: 1.1rem !important;
        text-align: right !important;
    }

    /* Cart actions on mobile */
    .cart-actions-wrapper {
        padding: 1.5rem 1rem !important;
    }

    .coupon-input-group.input-group {
        flex-direction: column !important;
    }

    .coupon-input-group.input-group .coupon-input {
        width: 100% !important;
        border-radius: 8px !important;
        border-right: 2px solid #E5E7EB !important;
        margin-bottom: 0.75rem !important;
    }

    .coupon-input-group.input-group .btn-coupon {
        width: 100% !important;
        border-radius: 8px !important;
        justify-content: center !important;
    }

    .update-cart-section {
        justify-content: center !important;
    }

    .btn-update-cart {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Cart totals on mobile */
    .modern-cart-totals {
        border-radius: 16px !important;
    }

    .modern-cart-totals h2 {
        font-size: 1.2rem !important;
        padding: 1.25rem 1.25rem !important;
    }

    .modern-cart-totals .shop_table {
        padding: 0 1.25rem 1rem 1.25rem !important;
    }

    .modern-cart-totals .shop_table th,
    .modern-cart-totals .shop_table td {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
    }

    .modern-cart-totals .shop_table .order-total th,
    .modern-cart-totals .shop_table .order-total td {
        padding: 1.25rem 1.25rem !important;
        font-size: 1.1rem !important;
    }

    .modern-cart-totals .shop_table .order-total td {
        font-size: 1.2rem !important;
    }

    .wc-proceed-to-checkout {
        padding: 1.25rem !important;
    }

    .checkout-button {
        font-size: 0.95rem !important;
        padding: 1rem 1.25rem !important;
    }

    /* Table wrapper scroll on mobile */
    .cart-table-wrapper {
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Bootstrap Breakpoints - Small Mobile Devices (xs) */
@media (max-width: 575.98px) {
    .woocommerce-cart-page .cart-page-title,
    .woocommerce-cart .cart-page-title,
    .woocommerce-page.woocommerce-cart .cart-page-title,
    body.woocommerce-cart .cart-page-title,
    body.woocommerce-page .cart-page-title {
        font-size: 1.5rem !important;
    }

    .modern-cart-table tbody tr {
        padding: 0.875rem !important;
    }

    .modern-cart-table .product-thumbnail img {
        width: 80px !important;
        height: 80px !important;
    }

    .product-title {
        font-size: 0.95rem !important;
    }

    .modern-cart-totals h2 {
        font-size: 1.1rem !important;
        padding: 1rem 1rem !important;
    }

    .modern-cart-totals .shop_table {
        padding: 0 1rem 1rem 1rem !important;
    }

    .modern-cart-totals .shop_table th,
    .modern-cart-totals .shop_table td {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .wc-proceed-to-checkout {
        padding: 1rem !important;
    }

    .checkout-button {
        font-size: 0.9rem !important;
        padding: 0.875rem 1rem !important;
    }
}

/* ============================================
   WooCommerce Notifications - Modern Theme Style
   ============================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%) !important;
    border: none !important;
    border-left: 4px solid !important;
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem 1.25rem 4rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    animation: slideInDown 0.4s ease-out !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message (Cart updated, etc.) */
.woocommerce-message {
    border-left-color: #10B981 !important;
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%) !important;
}

.woocommerce-message::before {
    content: '✓' !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    flex-shrink: 0 !important;
}

/* Info Message */
.woocommerce-info {
    border-left-color: #1E88E5 !important;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%) !important;
}

.woocommerce-info::before {
    content: 'ℹ' !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3) !important;
    flex-shrink: 0 !important;
}

/* Error Message */
.woocommerce-error {
    border-left-color: #EF4444 !important;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%) !important;
}

.woocommerce-error::before {
    content: '✕' !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    flex-shrink: 0 !important;
}

.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Notification Text */
.woocommerce-message p,
.woocommerce-info p,
.woocommerce-error p,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
}

/* Buttons in Notifications */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    margin-left: auto !important;
    padding: 0.625rem 1.25rem !important;
    background: linear-gradient(135deg, var(--primary-teal, #00D4AA) 0%, var(--primary-cyan, #1E88E5) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2) !important;
    flex-shrink: 0 !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3) !important;
    color: #FFFFFF !important;
}

/* Notification Wrapper */
.woocommerce-notices-wrapper {
    margin-bottom: 2rem !important;
}

/* Dismiss Button */
.woocommerce-message .woocommerce-message-close,
.woocommerce-info .woocommerce-message-close {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    color: #6B7280 !important;
    font-size: 1rem !important;
}

.woocommerce-message .woocommerce-message-close:hover,
.woocommerce-info .woocommerce-message-close:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-50%) rotate(90deg) !important;
}

/* Responsive Notifications */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 1rem 1.25rem 1rem 3.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        left: 1rem !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }
    
    .woocommerce-message a.button,
    .woocommerce-info a.button,
    .woocommerce-error a.button {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }
}

