/* 1. Variables Globales: Facilita cambios de marca rápidos */
:root {
    --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --primary-hover: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    --success-gradient: linear-gradient(135deg, #28a745 0%, #218838 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
}

/* 2. Top Bar: Más elegante y sutil */
.top-bar {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    background: #1a1a1a; /* Un negro más profundo */
}

/* 3. Tarjetas (Cards): Efecto de elevación moderno */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    background: #fff;
    overflow: hidden; /* Para que la imagen no se salga de las esquinas redondeadas */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.card-img-top {
    height: 220px;
    object-fit: contain;
    padding: 25px;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05); /* Micro-interacción de zoom */
}

/* 4. Badges: Mejor posicionamiento y contraste */
.badge-stock {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 5. Botones: Gradientes con mayor profundidad */
.btn {
    border: none !important;
    transition: var(--transition-smooth) !important;
}

.btn-primary {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-sm.btn-primary {
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Botones de Filtro (Píldora) */
.btn-outline-primary {
    border: 2px solid #007bff !important;
    border-radius: 30px;
    color: #007bff;
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: #007bff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

/* Botón de Éxito */
.btn-success {
    background: var(--success-gradient);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

/* 6. Utilidades de Carrito */
#cart-count {
    font-weight: 800;
    background: #ffc107; /* Color que resalte para el contador */
    color: #000;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
}

.badge-notification {
    background-color: #e63946; /* Rojo vibrante */
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/*chat*/
#chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    width: 140px;
    height: 80px;
    border-radius:25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}
#chat-bubble:hover { transform: scale(1.1); }

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: white;
    z-index: 1001;
    border-radius: 12px;
    overflow: hidden;
}

.message-bot { background: #e9ecef; padding: 8px; border-radius: 10px 10px 10px 0; max-width: 85%; font-size: 0.9rem; }
.message-user { background: #007bff; color: white; padding: 8px; border-radius: 10px 10px 0 10px; max-width: 85%; margin-left: auto; font-size: 0.9rem; }