/* Styles spécifiques pour la page panier */

.cart-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cart-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #333333 0%, #8B7D6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.cart-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
}

/* Alerte livraison gratuite */
.free-shipping-alert {
    background: linear-gradient(135deg, #FFE66D 0%, var(--neon-yellow) 100%);
    color: var(--charcoal);
    text-align: center;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.free-shipping-alert.achieved {
    background: linear-gradient(135deg, #4ECDC4 0%, var(--success) 100%);
    color: white;
}

/* Main Cart */
.cart-main {
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Panier vide */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 6rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Contenu avec items */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Section des produits */
.cart-items-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
}

.cart-items-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--warning);
}

/* Liste des items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    border-color: var(--taupe);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--cream);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-brand {
    font-size: 0.8rem;
    color: var(--taupe);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
}

.cart-item-volume {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--taupe);
    margin-top: auto;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    color: var(--warning);
    transform: scale(1.2);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 8px 15px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--taupe);
    color: white;
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}

.cart-item-subtotal {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Section promo */
.promo-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-bg);
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light-bg);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--taupe);
}

.btn-promo {
    padding: 12px 30px;
    background: var(--taupe);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    background: var(--neon-yellow);
    color: var(--charcoal);
}

.promo-suggestions {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Résumé de commande */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 120px;
    height: fit-content;
}

.cart-summary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.summary-row span:last-child {
    font-weight: 700;
}

.summary-divider {
    height: 2px;
    background: var(--light-bg);
    margin: 15px 0;
}

.summary-total {
    font-size: 1.3rem;
    padding: 15px 0;
}

.summary-total span {
    font-weight: 700;
    color: var(--taupe);
}

.urgency-message {
    background: #FFF4E5;
    border-left: 4px solid #FFB020;
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

/* Boutons d'action */
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--taupe);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-checkout:hover {
    background: var(--neon-yellow);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(246, 255, 32, 0.4);
}

.btn-whatsapp-cart {
    width: 100%;
    padding: 16px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.btn-whatsapp-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--taupe);
    border: 2px solid var(--taupe);
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: var(--light-bg);
}

.cart-trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--light-bg);
}

.trust-badge-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trust-badge-small i {
    color: var(--taupe);
}

/* Recommandations */
.recommendations-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.recommendations-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendations-section h3 i {
    color: #FF6B6B;
}

.recommendations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recommendation-card {
    border: 2px solid var(--light-bg);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: var(--taupe);
    transform: translateY(-5px);
}

.recommendation-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

.recommendation-brand {
    font-size: 0.75rem;
    color: var(--taupe);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.recommendation-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommendation-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--taupe);
    margin-bottom: 12px;
}

.recommendation-card button {
    width: 100%;
    padding: 8px;
    background: var(--taupe);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-card button:hover {
    background: var(--neon-yellow);
    color: var(--charcoal);
}

/* Footer */
.cart-footer {
    background: var(--light-bg);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--taupe);
}

/* Responsive */
@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .recommendations-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cart-header h1 {
        font-size: 1.2rem;
    }
    
    .header-secure {
        font-size: 0.85rem;
    }
}
