
#CarritoInfo {
    gap: 5px;
    position: relative;
}

#CarritoInfo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* oscuridad */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 6px; /* opcional */
}

/* estado activo */
#CarritoInfo.overlay-active::after {
    opacity: 1;
}

#CarritoSpinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* semitransparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.SpinnerCarrito {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 30%;
}

.mini-cart {
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    /*display: none;*/

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: all 0.25s ease;
    border-radius: 8px;
}

.mini-cart-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.mini-cart-body {
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    align-items: start;
    display: flex;
    padding: 10px;
    gap: 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.mini-cart-item:hover {
    background: #fafafa;
}

.mini-cart-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mini-cart-item .info {
    flex: 1;
}

.mini-cart-item .nombre {
    font-size: 14px;
    font-weight: 500;
}

.mini-cart-item .detalle {        
    font-size: 13px;
    color: #777;
}

.mini-cart-remove {
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-web-gray);
    font-size: 25px;
    height: 25px;
    width: 25px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}

.mini-cart-remove:hover {
    border: 1px red var(--color-web-gray-darker);
    color: #ff0000;
}

.mini-cart-footer {
    padding: 12px;
    border-top: 1px solid #eee;
}

.mini-cart-footer .total {
    font-size: 16px;
    margin-bottom: 10px;
}

.mini-cart.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.BotonIrAComprar {
    background-color: var(--color-web-2);
    color: white;
    font-weight: bold;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.BotonIrAComprar:hover {
    color: white;
    background-color: var(--color-web-2-darker);
}

#CarritoInfoMovil {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 60px;
    background-color: var(--color-web-2);
    border-radius: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

