/* ================================================
   Menu Cart Icon Plugin — cart.css
   ================================================ */

/* Ítem del menú */
.mci-cart-item {
    display: inline-flex;
    align-items: center;
}

/* Enlace del carrito */
.mci-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 0 8px;
    line-height: 1;
}

/* Contenedor ícono + badge */
.mci-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG del carrito */
.mci-icon {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mci-cart-link:hover .mci-icon {
    transform: scale(1.12);
    opacity: 0.8;
}

/* Badge / contador */
.mci-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity   0.15s ease;
}

/* Animación "bump" al actualizar */
.mci-badge.mci-bump {
    animation: mci-bump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes mci-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Ocultar badge cuando está en 0 */
.mci-badge.mci-hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}
