/* /assets/css/cart-button.css */

/* --- Contenedor para el botón del carrito --- */
.cart-container {
    position: fixed;
    bottom: 30px; /* Ajustado para estar más abajo */
    right: 30px;
    z-index: 1050;
    transition: transform 0.3s ease-out;
}

/* --- Botón Flotante del Carrito --- */
.cart-fab {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa49;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative; /* Clave para posicionar la onda */
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cart-fab img {
    width: 62px;
    height: 52px;
    object-fit: contain;
}

/* --- Onda Brillante --- */
.cart-fab::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-fab-cart-pulse, #ff0000);
    border-radius: 50%;
    animation: pulse-blue 2000ms ease-out infinite;
}

@keyframes pulse-blue {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) scale(1.6);
        opacity: 0;
    }
}

/* OCULTAR EN MÓVILES */
@media (max-width: 768px) {
    .cart-container {
        display: none;
    }
}