/* static/css/cart.css */
.cart-container {
    background: linear-gradient(135deg, #f5f3ff, #e0e7ff); /* Dégradé pastel pour le fond */
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.cart-title {
    color: #1e3a8a; /* Bleu foncé */
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-title i {
    color: #f59e0b; /* Jaune vif */
    font-size: 1.5rem;
}

.cart-alert {
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background-color: #fefce8; /* Fond jaune pâle */
    border-color: #fef08a;
    color: #1e3a8a; /* Texte bleu foncé */
}

.cart-table {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-table thead {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
}

.cart-table th {
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.cart-item {
    background-color: #f9fafb; /* Fond gris très clair */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cart-item:hover {
    background-color: #fefce8; /* Fond jaune pâle au survol */
    transform: translateY(-2px);
}

.cart-product-name {
    font-weight: 500;
    color: #1e3a8a; /* Bleu foncé */
    font-size: 1.1rem;
    align-items: center;
}

.cart-product-name i {
    color: #1e3a8a;
}

.cart-quantity {
    background-color: #e5e7eb; /* Fond gris clair */
    border-radius: 25px;
    padding: 0.25rem 0.5rem;
}

.cart-btn-decrement, .cart-btn-increment {
    background-color: #ffffff;
    border: 1px solid #f59e0b; /* Bordure jaune vif */
    color: #f59e0b; /* Jaune vif */
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cart-btn-decrement:hover, .cart-btn-increment:hover {
    background-color: #f59e0b; /* Fond jaune vif au survol */
    color: #ffffff;
    transform: scale(1.1);
}

.cart-quantity-value {
    font-weight: 600;
    color: #1e3a8a; /* Bleu foncé */
    margin: 0 0.5rem;
    font-size: 1rem;
}

.cart-price {
    color: #16a34a; /* Vert pour les prix */
    font-weight: 500;
    align-items: center;
}

.cart-price i {
    color: #16a34a;
}

.cart-subtotal {
    color: #d97706; /* Jaune foncé pour les sous-totaux */
    font-weight: 600;
    align-items: center;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.cart-subtotal i {
    color: #d97706;
}

.cart-btn-remove {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cart-btn-remove:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cart-total {
    background-color: #fefce8; /* Fond jaune pâle */
    font-weight: 700;
}

.cart-total-value {
    color: #16a34a; /* Vert pour le total */
    font-size: 1.2rem;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.cart-actions {
    margin-bottom: 2rem;
}

.cart-btn-continue {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cart-btn-continue:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cart-btn-checkout {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cart-btn-checkout:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cart-empty {
    padding: 3rem 0;
}

.cart-empty-icon {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: block;
}

.cart-empty-text {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.cart-btn-return {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cart-btn-return:hover {
    background: linear-gradient(135deg, #eab308, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

@media (max-width: 767px) {
    .cart-title {
        font-size: 1.5rem;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th, .cart-table td {
        padding: 0.5rem;
    }

    .cart-product-name {
        font-size: 1rem;
    }

    .cart-btn-decrement, .cart-btn-increment {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .cart-quantity-value {
        font-size: 0.9rem;
    }

    .cart-price, .cart-subtotal {
        font-size: 0.85rem;
        white-space: nowrap; /* Empêche le texte de se couper */
    }

    .cart-btn-remove {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .cart-total-value {
        font-size: 1rem;
    }

    .cart-btn-continue, .cart-btn-checkout, .cart-btn-return {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Ajuster le tableau pour les petits écrans */
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cart-table thead, .cart-table tbody, .cart-table tfoot, .cart-table tr {
        display: block;
    }

    .cart-table th, .cart-table td {
        display: inline-block;
        width: auto;
        min-width: 100px; /* Largeur minimale pour chaque colonne */
        text-align: center;
    }

    .cart-table th {
        min-width: 120px; /* Légèrement plus large pour les en-têtes */
    }

    .cart-table .cart-product-name {
        min-width: 150px; /* Plus large pour le nom du produit */
    }

    .cart-table .cart-quantity {
        min-width: 120px; /* Ajuster pour les boutons de quantité */
    }

    .cart-table .cart-btn-remove {
        min-width: 100px; /* Ajuster pour le bouton supprimer */
    }
}