/* Variables CSS pour le panier */
:root {
    --cart-primary: #FC6102;
    --cart-secondary: #363636;
    --cart-text: #45474F;
    --cart-accent: #F7F3F3;
}

/* Ligne de séparation */
.vr-line {
    width: 1px;
    height: 32px;
    background: #e9ecef;
    margin: 0 8px;
}

/* Bouton du panier moderne */
.cart-button-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #363636;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    height: 44px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.cart-button-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #FC6102;
    color: #363636;
    text-decoration: none;
}

.cart-button-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 97, 2, 0.1), transparent);
    transition: left 0.5s ease;
}

.cart-button-modern:hover::before {
    left: 100%;
}

.cart-button-modern svg {
    width: 24px;
    height: 24px;
    color: #FC6102;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.cart-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.cart-button-label {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-button-total {
    font-size: 14px;
    font-weight: 600;
    color: #363636;
    line-height: 1.2;
}

/* Conteneur du bouton du panier */
.cart-button-container {
    position: relative;
    display: inline-block;
}

/* Badge de notification */
.cart-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: linear-gradient(135deg, #FC6102 0%, #ff7a2e 100%);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(252, 97, 2, 0.6);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 30;
    min-width: 30px;
    padding: 2px;
}

.cart-badge.show {
    opacity: 1;
    transform: scale(1);
    animation: badgePop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animation d'apparition du badge */
@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Animation de pulsation pour le badge */
.cart-badge.show {
    animation: badgePop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), badgePulse 2s ease-in-out infinite 0.6s;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(252, 97, 2, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 12px 28px rgba(252, 97, 2, 0.8);
    }
}

/* Animation de pulsation */
@keyframes cartPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(252, 97, 2, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

.cart-button-modern.has-items {
    animation: cartPulse 3s ease-in-out infinite;
    border-color: rgba(252, 97, 2, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
}

.cart-button-modern.has-items:hover {
    animation: none;
    border-color: #FC6102;
    background: linear-gradient(135deg, #ffffff 0%, #fff0e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 97, 2, 0.2);
}

/* Effet de brillance spécial pour les boutons avec articles */
.cart-button-modern.has-items::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 97, 2, 0.1), transparent);
    transition: left 0.8s ease;
    animation: cartShine 3s ease-in-out infinite;
}

@keyframes cartShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-button-modern {
        min-width: 120px;
        padding: 10px 12px;
    }
    
    .cart-button-label {
        font-size: 10px;
    }
    
    .cart-button-total {
        font-size: 12px;
    }
} 