/**
 * Widget Elementor Panier CSS
 * 
 * Styles for the cart icon and badge.
 */

/* Cart Icon Wrapper */
.elementor-cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Cart Icon */
.elementor-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.elementor-cart-icon i,
.elementor-cart-icon svg {
    transition: color 0.3s ease, fill 0.3s ease;
}

/* Cart Badge */
.elementor-cart-badge {
    position: absolute;
    top: 0;
    right: 75%;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    color: #ffffff;
    background-color: #FF0000;
    font-weight: bold;
    transform: translate(50%, -50%);
    transition: all 0.3s ease;
    z-index: 1;
    box-sizing: content-box;
}

/* Hover effects */
.elementor-cart-icon:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .elementor-cart-badge {
        min-width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
    }
}

/* Animation for badge update */
@keyframes badge-pulse {
    0% {
        transform: translate(50%, -50%) scale(1);
    }
    50% {
        transform: translate(50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(50%, -50%) scale(1);
    }
}

.elementor-cart-badge.updated {
    animation: badge-pulse 0.3s ease-in-out;
}
