/**
 * Cart Page Styling Override - Works with default WooCommerce template
 */

/* Cart page wrapper */
.woocommerce-cart {
    padding: 2rem 0;
    background: #f9fafb;
}

/* Hide default elements */
.woocommerce-cart .woocommerce-cart-form__contents thead {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.woocommerce-cart .woocommerce-cart-form__contents thead th {
    color: white !important;
    padding: 1rem;
    font-weight: 600;
}

/* Cart table styling */
.woocommerce-cart table.shop_table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.woocommerce-cart table.shop_table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #e5e7eb;
}

/* Product thumbnail */
.woocommerce-cart .product-thumbnail img {
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product name */
.woocommerce-cart .product-name a {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
    color: #6366f1;
}

/* Price */
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

/* Remove button */
.woocommerce-cart .product-remove a {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-radius: 8px !important;
    width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce-cart .product-remove a:hover {
    background: #fecaca !important;
}

/* Cart totals */
.cart-collaterals .cart_totals {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-collaterals .cart_totals table {
    border: none;
}

.cart-collaterals .cart_totals th,
.cart-collaterals .cart_totals td {
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
}

.cart-collaterals .cart_totals .order-total th,
.cart-collaterals .cart_totals .order-total td {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

/* Checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
