/* ========== PAGE PANIER WOOCOMMERCE ========== */
/* Version: 1.6.0 - Style moderne pour la page panier - Sans responsive WooCommerce */

/* Force block display on form */
.woocommerce-cart form.woocommerce-cart-form,
form.woocommerce-cart-form {
    display: block !important;
}

/* Force table display - Clean selectors without shop_table_responsive */
.woocommerce-cart table.shop_table,
.woocommerce-cart table.cart,
table.woocommerce-cart-form__contents,
.cart_totals table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Table structure elements */
.woocommerce-cart table thead,
.cart_totals table thead {
    display: table-header-group !important;
}

.woocommerce-cart table tbody,
.cart_totals table tbody {
    display: table-row-group !important;
}

.woocommerce-cart table tr,
.cart_totals table tr {
    display: table-row !important;
}

.woocommerce-cart table th,
.woocommerce-cart table td,
.cart_totals table th,
.cart_totals table td {
    display: table-cell !important;
    vertical-align: middle !important;
}

/* Container principal */
.woocommerce-cart .woocommerce,
.woocommerce-cart main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Titre de la page */
.woocommerce-cart .entry-title,
.woocommerce-cart h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #2a2a1f;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Table du panier */
.woocommerce-cart-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.woocommerce table.shop_table {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce table.shop_table thead {
    background: linear-gradient(135deg, #7a9b3f 0%, #8bb350 100%);
    color: white;
}

.woocommerce table.shop_table thead th {
    padding: 1.5rem 1rem !important;
    border: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: white !important;
}

.woocommerce table.shop_table thead th:first-child {
    border-top-left-radius: 12px;
}

.woocommerce table.shop_table thead th:last-child {
    border-top-right-radius: 12px;
}

.woocommerce table.shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.3s ease;
}

.woocommerce table.shop_table tbody tr:hover {
    background: #f9f9f9;
}

.woocommerce table.shop_table tbody td {
    padding: 2rem 1rem !important;
    vertical-align: middle !important;
    border: none !important;
}

/* Image produit */
.woocommerce table.shop_table .product-thumbnail img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 80px;
    height: auto;
}

/* Nom du produit */
.woocommerce table.shop_table .product-name a {
    color: #2a2a1f;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Prix */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7a9b3f;
}

/* Quantité */
.woocommerce table.shop_table .quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce table.shop_table .quantity input.qty {
    width: 80px !important;
    padding: 0.75rem !important;
    text-align: center !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.woocommerce table.shop_table .quantity input.qty:focus {
    border-color: #7a9b3f !important;
    outline: none !important;
}

/* Bouton supprimer */
.woocommerce table.shop_table .product-remove a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background: #fee !important;
    border-radius: 50% !important;
    color: #e74c3c !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce table.shop_table .product-remove a:hover {
    background: #e74c3c !important;
    color: white !important;
    transform: scale(1.1);
}

/* Boutons d'action */
.woocommerce-cart .actions {
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.woocommerce-cart button[name="update_cart"] {
    background: linear-gradient(135deg, #7a9b3f 0%, #8bb350 100%) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(122, 155, 63, 0.3);
}

.woocommerce-cart button[name="update_cart"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 155, 63, 0.4);
}

/* Totaux du panier */
.cart-collaterals {
    margin-top: 3rem;
}

.cart_totals {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.08);
    max-width: 500px;
    margin-left: auto;
}

.cart_totals h2 {
    font-size: 1.8rem;
    color: #2a2a1f;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart_totals table {
    width: 100%;
    border: none !important;
}

.cart_totals table th,
.cart_totals table td {
    padding: 1rem 0 !important;
    border: none !important;
    font-size: 1.1rem;
}

.cart_totals table th {
    font-weight: 600;
    color: #5a5a5a;
}

.cart_totals table td {
    text-align: right;
    font-weight: 700;
    color: #7a9b3f;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 2px solid #f0f0f0 !important;
}

/* Bouton Commander */
.woocommerce-cart .wc-proceed-to-checkout {
    padding-top: 1.5rem;
}

.woocommerce-cart .checkout-button {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #7a9b3f 0%, #8bb350 100%) !important;
    color: white !important;
    padding: 1.5rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(122, 155, 63, 0.3);
}

.woocommerce-cart .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(122, 155, 63, 0.4);
}

/* Panier vide */
.woocommerce-cart .cart-empty,
.woocommerce-cart .woocommerce-info {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1.2rem;
    color: #5a5a5a;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 2rem;
}

.woocommerce-cart .return-to-shop .button {
    background: linear-gradient(135deg, #7a9b3f 0%, #8bb350 100%) !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart .return-to-shop .button:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce table.shop_table {
        font-size: 0.9rem;
    }

    .woocommerce table.shop_table thead th,
    .woocommerce table.shop_table tbody td {
        padding: 1rem 0.5rem !important;
    }

    .woocommerce table.shop_table .product-name a {
        font-size: 1rem;
    }

    .cart_totals {
        max-width: 100%;
    }

    .woocommerce-cart .actions {
        flex-direction: column;
        align-items: stretch;
    }
}
