/* Botón de eliminar (la X) */
.remove-btn {
    background: #fee2e2; /* Rojo muy suave */
    color: #ef4444;    /* Rojo vibrante */
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg); /* Efecto visual al pasar el mouse */
}

/* Controles de cantidad (+ y -) en el carrito */
.cart-qty-controls {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px 8px;
    gap: 10px;
}

.cart-qty-controls button {
    background: white;
    border: 1px solid #e2e8f0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-qty-controls button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-qty-controls span {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}
/* Ajuste para el selector de cantidad del Modal */
.qty-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.qty-controls button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--primary-light);
    background: white;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.qty-controls button:hover {
    background: var(--primary);
    color: white;
}

#modal-qty {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    background: transparent;
}
/* Estilo unificado para todas las X de cerrar ventanas (Modales y Carrito) */
.close-modal, #close-cart {
    background: #f1f5f9;      /* Gris muy suave de fondo */
    color: #64748b;           /* Color gris azulado elegante */
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 10px;      /* Bordes ligeramente redondeados, no círculo total */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;         /* Una X más delgada se ve más moderna */
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close-modal:hover, #close-cart:hover {
    background: #fee2e2;      /* Cambia a un rojo suave al pasar el mouse */
    color: #ef4444;           /* La X se pone roja */
    transform: scale(1.1);    /* Crece un poquito */
} 