/* Main Cart Page Redesign Styles (Segmented in cart-page.css) */

.woocommerce-cart .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.woocommerce-cart .entry-title {
    font-size: 42px;
    font-weight: 300;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Page Layout Grid */
.woocommerce-cart .woocommerce {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.woocommerce-cart .woocommerce-cart-form {
    width: 100%;
}

@media (min-width: 992px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 60px;
        align-items: start;
    }
}

/* Cart Table Styling */
.woocommerce-cart table.shop_table.cart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.woocommerce-cart table.shop_table.cart th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    border-top: none;
    background: transparent;
}

.woocommerce-cart table.shop_table.cart th.product-name {
    text-align: left;
}

.woocommerce-cart table.shop_table.cart th.product-subtotal {
    text-align: right;
}

.woocommerce-cart table.shop_table.cart td {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    background: transparent;
}

/* Cart Item Row Details */
.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    width: 90px;
    padding-right: 20px;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #f3f4f6;
}

.woocommerce-cart table.shop_table.cart td.product-name {
    padding-right: 20px;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: #1c90a1;
}

/* Quantity Box and Trash Icon in Cart Page */
.woocommerce-cart .quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
    margin-top: 10px;
    margin-right: 12px;
}

.woocommerce-cart .quantity input.qty {
    width: 44px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.woocommerce-cart table.shop_table.cart td.product-remove {
    display: inline-block;
    padding: 0;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    color: #6b7280 !important;
    font-size: 18px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
    color: #ef4444 !important;
    background: #fee2e2 !important;
}

/* Product Subtotal Column */
.woocommerce-cart table.shop_table.cart td.product-subtotal {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* Actions Row (Update Cart, Coupons) */
.woocommerce-cart table.shop_table.cart td.actions {
    padding-top: 24px;
    border-bottom: none;
}

.woocommerce-cart table.shop_table.cart td.actions .button {
    background-color: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
}

.woocommerce-cart table.shop_table.cart td.actions .button:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Cart Totals Box (Right Side) */
.woocommerce-cart .cart_totals {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 0;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart .cart_totals table.shop_table {
    width: 100%;
    border: none;
    margin-bottom: 24px;
}

.woocommerce-cart .cart_totals table.shop_table td,
.woocommerce-cart .cart_totals table.shop_table th {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th {
    font-size: 22px;
    font-weight: 400;
    color: #374151;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    text-align: right;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

/* Checkout Button (Valider la commande) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 24px !important;
    background-color: #333333 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    margin-top: 16px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #111111 !important;
}
