#floating-cart-button {
    position: fixed;
    bottom: 100px; /* antes era 20px, lo subimos para evitar el botón de WhatsApp */
    right: 20px;
    background: #000000; /* 🔁 Cambiado a negro */
    color: white; /* Emoji en blanco */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

#floating-cart-button:hover {
    transform: scale(1.1);
    background: #111; /* Hover más oscuro */
}

#floating-cart-panel {
    position: fixed;
    bottom: 170px;
    right: 20px;
    background: #f5f5f5; /* gris claro */
    border: 2px solid #ccc; /* gris suave */
    border-radius: 10px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    z-index: 9998;
    overflow: hidden;
    display: none;
    color: #000; /* texto negro */
}


.floating-cart-header {
    background: #e0e0e0; /* gris un poco más oscuro para el header */
    color: #000; /* texto negro */
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

.floating-cart-content {
    background: #f5f5f5; /* igual al panel */
    color: #000; /* texto negro */
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
}



.floating-cart-footer {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

.btn-view-cart,
.btn-checkout {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    z-index: 10000;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.attention-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media screen and (max-width: 480px) {
    #floating-cart-panel {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        max-width: none;
    }
    .floating-cart-content {
        max-height: 180px;
        font-size: 14px; /* Texto más pequeño */
        padding: 10px;
    }
    .floating-cart-footer {
        flex-direction: column;
        gap: 8px;
    }
    .btn-view-cart,
    .btn-checkout {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 15px;
    }
}


#floating-cart-button {
    background: #e74c3c; /* rojo principal */
}
#floating-cart-button:hover {
    background: #c0392b;
}










/* Fondo gris claro + texto negro */
#floating-cart-panel {
  background: #f5f5f5;
  color: #000;
  border-color: #ccc;
}

.floating-cart-header {
  background: #e0e0e0;
  color: #000;
}

.floating-cart-content,
.floating-cart-content * {
  color: #000 !important; /* fuerza negro en títulos, precios y enlaces */
}

/* Subtotal y enlaces dentro del mini-carrito (Elementor) */
.elementor-menu-cart__product,
.elementor-menu-cart__product-name a,
.elementor-menu-cart__product-price,
.elementor-menu-cart__subtotal,
.elementor-menu-cart__subtotal strong {
  color: #000 !important;
}

/* Asegurar que la “X” es visible y clickeable */
.elementor-menu-cart__product-remove a {
  color: #000 !important;
  opacity: 1 !important;
  display: inline-block;
  width: 16px;
  height: 16px;
}





