/* Styles pour le système de panier e-commerce BarryTech */

/* Bouton panier dans le header */
.cart-button {
    position: relative;
    transition: all 0.3s ease;
}

.cart-button:hover {
    transform: scale(1.1);
}

#cart-count {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Items du panier dans le modal */
.cart-item {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.cart-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Bouton Commander via WhatsApp */
.btn-success {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Animation pour les boutons Ajouter au panier */
.btn-add-cart {
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Style pour le modal */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header .close {
    color: white;
    opacity: 1;
}

/* Animation de notification */
#cart-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item .col-3,
    .cart-item .col-6,
    .cart-item .col-4 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 10px;
    }
    
    .cart-item img {
        max-height: 120px;
        margin: 0 auto;
        display: block;
    }
}

/* Badge du panier */
#cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    border-radius: 50%;
    padding: 0;
    text-align: center;
}

/* Style pour les prix */
.text-primary {
    color: #1A76D1 !important;
}

/* Amélioration des cards produits */
.card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Bouton panier sur les cartes */
.btn-block {
    margin-bottom: 5px;
}

