/* === 1. GENERAL & SOFT UI === */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

/* Sombras suaves para dar profundidad */
.shadow-soft {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* === 2. HERO SECTION (Ubicación) === */
.hero-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); /* Azul Changuito */
    color: white;
    border-radius: 0 0 1.5rem 1.5rem; /* Redondeado solo abajo */
    padding: 2rem 1rem 3rem 1rem;
    margin-bottom: -2rem; /* Efecto de superposición */
    position: relative;
    z-index: 1;
}

.hero-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
}
.hero-input::placeholder { color: rgba(255,255,255,0.7); }
.hero-input:focus {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: none;
    border-color: white;
}

/* === 3. TARJETAS DE PRODUCTO (App Style) === */
.card-product {
    border: none;
    border-radius: 1rem;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-product .img-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
}

.btn-add-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    transition: all 0.2s;
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .hero-banner {
        border-radius: 0 0 1rem 1rem;
        padding: 1.5rem 1rem 2.5rem 1rem;
    }
    .card-product .img-wrapper {
        height: 120px;
    }
}

/* === 4. PESTAÑAS MODERNAS (PILLS) === */
.nav-pills-custom .nav-link {
    color: #6c757d;
    background: transparent;
    border: none;
    font-weight: 600;
    border-radius: 50px; /* Bordes totalmente redondos */
    padding: 10px 25px;
    transition: all 0.2s;
}

.nav-pills-custom .nav-link.active {
    background-color: #0d6efd; /* Azul principal */
    color: white;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3); /* Sombra suave azul */
}

/* === 5. SCROLLBAR FINO (Para la canasta) === */
/* Funciona en Chrome, Edge, Safari */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* === 6. ARREGLO PARA SELECT2 EN INPUT-GROUP === */
/* Esto hace que el select2 se estire y se ponga AL LADO del icono, no abajo */
.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important; /* Truco para que Flexbox maneje el ancho */
    position: relative;
    z-index: 2;
}

.input-group .select2-container .select2-selection--single {
    height: 100%; /* Para que mida lo mismo que el icono */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    display: flex;
    align-items: center;
    border-color: #dee2e6; /* Color de borde estándar de Bootstrap */
}

/* Ajuste del texto interno para que no quede muy arriba */
.input-group .select2-container .select2-selection__rendered {
    padding-left: 10px;
}