/* =====================================================
   ESTILOS GLOBALES
===================================================== */
:root {
    --primary-color: #ff6b00;
    --primary-dark: #e65100;
    --secondary-color: #1a1a1a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* FUERZA AL NAVBAR A SER TRANSPARENTE AL INICIO */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.4s ease-in-out !important;
    background-color: transparent !important; /* Transparente total */
    box-shadow: none !important;
}

/* CLASE QUE SE ACTIVA AL HACER SCROLL */
.navbar.scrolled {
    background-color: var(--secondary-color) !important; /* O #1a1a1a */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* QUITAR EL ESPACIO QUE EMPUJA EL CONTENIDO HACIA ABAJO */
body {
    padding-top: 0 !important; /* Esto anula el padding-top de main.css */
}

.hero-home {
    margin-top: 0 !important;
    height: 100vh; /* Ocupa toda la pantalla para que se vea profesional */
    min-height: 500px;
}
/* =====================================================
   1. ANIMACIONES DE SCROLL (EL MOTOR VISUAL)
===================================================== */

/* A) EFECTO "REVEAL UP" (Para Features y Banners) */
.reveal-box {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-box.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* B) EFECTO "SLIDE LATERAL" (Exclusivo para Productos Novedades) */
.product-slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Suavizado profesional */
}

.product-slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Suavizado profesional */
}

/* Estado Activo para productos */
.product-slide-in-left.active,
.product-slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   HERO CAROUSEL
   ======================================== */
.hero-home {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}
.hero-swiper { width: 100%; height: 100%; }
.swiper-slide {
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center;
}
.swiper-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, transparent 60%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px;
}
.hero-content p {
    font-size: 1.15rem; margin-bottom: 1.5rem; max-width: 550px; line-height: 1.5;
}
.hero-text-light { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-text-dark { color: var(--text-dark); }

.btn-primary-custom {
    background: var(--primary-color); color: white; padding: 12px 32px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: none;
    transition: all 0.3s; text-decoration: none; display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.btn-primary-custom:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4); color: white;
}
.swiper-pagination-bullet { width: 10px; height: 10px; background: white; opacity: 0.5; transition: all 0.3s; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--primary-color); width: 30px; border-radius: 5px; }

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section { background: var(--bg-light); padding: 35px 0; }
.feature-box {
    text-align: center; padding: 20px 15px; background: white;
    border-radius: 10px; border: 1px solid transparent;
    /* La transición de hover es independiente de la animación de entrada */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.feature-box:hover {
    transform: translateY(-3px) !important; /* !important para sobrescribir la posición de la animacion si choca */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--primary-color);
}
.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 1.5rem; color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}
.feature-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.feature-box p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section { padding: 40px 0 50px; background: white; overflow: hidden; /* Importante para que el slide no genere scroll horizontal */ }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 {
    font-size: 2.2rem; font-weight: 800; color: var(--text-dark);
    margin-bottom: 8px; letter-spacing: -0.5px; position: relative; display: inline-block;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background: var(--primary-color); border-radius: 2px;
}
.section-header p { font-size: 1rem; color: var(--text-light); margin: 0; }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}

.product-card {
    background: white; 
    border-radius: 15px; /* Bordes más redondeados para un look moderno */
    overflow: hidden;
    text-decoration: none; 
    color: inherit;
    display: block; 
    position: relative; 
    
    /* ELIMINAMOS EL BORDE */
    border: none; 
    
    /* SOMBRA SUTIL (Modern UI) */
    /* Usamos un color con muy poca opacidad (0.05 a 0.1) para que se vea limpio */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    
    /* Transiciones suaves */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    /* Elevamos la tarjeta ligeramente */
    transform: translateY(-8px); 
    
    /* La sombra se vuelve un poco más profunda al pasar el mouse */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); 
    
    /* Asegúrate de quitar el border-color si existía en el hover */
    border-color: transparent; 
}

.product-image-container {
    background-color: #ffffff;
    margin: 8px; /* Pequeño margen para que la imagen no pegue al borde de la sombra */
    border-radius: 12px;
}
.product-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-image-front { z-index: 2; }
.product-image-back { z-index: 1; opacity: 0; transform: scale(1.05); }
.product-card:hover .product-image-front { opacity: 0; transform: scale(1.05); }
.product-card:hover .product-image-back { opacity: 1; transform: scale(1); }

.product-badge {
    top: 12px;
    left: 12px;
    padding: 3px 12px;
    border-radius: 20px; /* Estilo 'píldora' */
    font-size: 0.65rem;
    text-transform: uppercase;
    background: #111827; /* Negro para un look de lujo */
    color: white;
    box-shadow: none; /* Sin sombras pesadas */
    animation: none; /* Quitar el pulso lo hace ver más serio/caro */
}
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(255, 107, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255, 107, 0, 0.6); }
}

.product-actions-overlay {
    position: absolute; top: 10px; right: 10px; z-index: 4;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px); transition: all 0.3s ease;
}
.product-card:hover .product-actions-overlay { opacity: 1; transform: translateX(0); }

.product-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Circulares se ven más modernos que cuadrados */
    background: rgba(255, 255, 255, 0.7); /* Transparente */
    backdrop-filter: blur(8px); /* DESENFOQUE DE CRISTAL */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-action-btn:hover {
    transform: scale(1.15); background: var(--primary-color); color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}
.product-action-btn i { font-size: 0.85rem; }

.product-info { padding: 12px; }
.product-category {
    font-size: 0.65rem;
    color: #9ca3af; /* Gris neutro suave */
    font-weight: 500;
    margin-bottom: 2px;
}
.product-name {
    font-size: 0.95rem;
    font-weight: 500; /* Menos pesado que 600 */
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}
.product-price-wrapper { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.product-old-price { font-size: 0.8rem; color: var(--text-light); text-decoration: line-through; }
.product-stock { font-size: 0.7rem; color: var(--text-light); font-weight: 500; }
.product-stock .text-danger { color: #dc3545; font-weight: 700; }

/* ========================================
   BANNER SECTION
   ======================================== */
.banner-section { margin: 40px 0; }
.promo-banner {
    position: relative; height: 300px; border-radius: 16px; overflow: hidden;
    background-size: cover; background-position: center; display: flex;
    align-items: center; justify-content: center;
    /* Parallax CSS */
    background-attachment: fixed;
    background-repeat: no-repeat;
}
@media (max-width: 768px) { .promo-banner { background-attachment: scroll; } }

.promo-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); z-index: 1;
}
.banner-content {
    position: relative; z-index: 2; text-align: center; color: white;
    max-width: 650px; padding: 30px;
}
.banner-content h2 {
    font-size: 2.5rem; font-weight: 800; margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); letter-spacing: -0.5px;
}
.banner-content p { font-size: 1.15rem; margin-bottom: 25px; opacity: 0.95; }

/* ========================================
   ANIMACIONES HERO (TEXTO Y FONDO)
   ======================================== */
@keyframes zoomInEffect { 0% { background-size: 100% 100%; } 50% { background-size: 110% 110%; } 100% { background-size: 100% 100%; } }
@keyframes zoomOutEffect { 0% { background-size: 100% 100%; } 50% { background-size: 90% 90%; } 100% { background-size: 100% 100%; } }
/* ... (Resto de animaciones Pan se mantienen igual) ... */
.hero-swiper .swiper-slide.swiper-slide-active.fill-effect-zoom-in { animation: zoomInEffect 10s ease-in-out infinite; }
.hero-swiper .swiper-slide.swiper-slide-active.fill-effect-zoom-out { animation: zoomOutEffect 10s ease-in-out infinite; }

.anim-fade-in { animation: fadeIn 1.5s ease-out forwards; opacity: 0; }
.anim-fade-in-up { animation: fadeInUp 1.5s ease-out forwards; opacity: 0; transform: translateY(20px); }
.anim-typewriter {
    overflow: hidden; border-right: .15em solid orange; white-space: nowrap; margin: 0 auto;
    letter-spacing: .15em; animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite; max-width: fit-content;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: orange; } }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-home { height: 400px; }
    .hero-content h1 { font-size: 2.5rem; }
    .banner-content h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .hero-home { height: 350px; }
    .hero-content h1 { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .promo-banner { height: 250px; }
    .banner-content h2 { font-size: 1.75rem; }
    .product-actions-overlay { opacity: 1; transform: translateX(0); }
}

/**/

/* =====================================================
   ESTILOS DEL CARRITO DE COMPRAS - DISEÑO PROFESIONAL
   ===================================================== */


#mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

#cart-dropdown-wrapper.show #mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header del mini-cart */
.mini-cart-header {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 10px 10px 0 0;
}

.mini-cart-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mini-cart-item-count {
    font-weight: 700;
}

/* Body del mini-cart */
.mini-cart-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

/* Custom scrollbar */
.mini-cart-body::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mini-cart-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Items del mini-cart */
.mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.mini-cart-item:hover {
    background-color: #f8f9fa;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mini-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-cart-item-details h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-cart-item-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Mensaje de carrito vacío */
#mini-cart-empty-message {
    display: none;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer del mini-cart */
.mini-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 2px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.mini-cart-total {
    font-size: 1.25rem;
    color: #1e88e5;
}

.mini-cart-footer .btn {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mini-cart-footer .btn-primary {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    border: none;
}

.mini-cart-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

/* Badge del carrito en el navbar */
#cart-item-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    line-height: 20px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}


/* Responsive para mini-cart */
@media (max-width: 576px) {
    #mini-cart-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    .mini-cart-body {
        max-height: 250px;
    }

    .mini-cart-item img {
        width: 50px;
        height: 50px;
    }

    .mini-cart-item-details h6 {
        font-size: 0.85rem;
    }
}

/
#mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    margin-top: 0.5rem;
    overflow: hidden;
}

#cart-dropdown-wrapper.show #mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Flecha indicadora */
#mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(0,0,0,0.1);
}

/* Header del mini-cart */
.mini-cart-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mini-cart-header h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-cart-header .mini-cart-item-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Body del mini-cart */
.mini-cart-body {
    max-height: 350px;
    overflow-y: auto;
    background: #fafafa;
}

/* Scrollbar personalizado */
.mini-cart-body::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mini-cart-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Items del mini-cart */
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.mini-cart-item:hover {
    background-color: #f8f9fa;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

/* Imagen del producto - OPTIMIZADA */
.mini-cart-item-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 3px;
}

/* Información del producto */
.mini-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-item-price {
    font-size: 0.75rem;
    color: #1e88e5;
    font-weight: 600;
    margin: 0;
}

.mini-cart-item-quantity {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

/* Botón eliminar (opcional) */
.mini-cart-item-remove {
    align-self: flex-start;
    margin-top: 5px;
}

.btn-remove-mini {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-radius: 4px;
}

.btn-remove-mini:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

/* Carrito vacío */
.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.mini-cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.3;
    display: block;
}

.mini-cart-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer del mini-cart */
.mini-cart-footer {
    padding: 12px 15px;
    background: #fff;
    border-top: 2px solid #f0f0f0;
}

.mini-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.mini-cart-total-row span:first-child {
    color: #666;
    font-weight: 500;
}

.mini-cart-total {
    color: #1e88e5;
    font-size: 1.2rem;
}

/* Acciones del footer */
.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-cart-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.mini-cart-actions .btn-outline-primary {
    border: 1.5px solid #1e88e5;
    color: #1e88e5;
}

.mini-cart-actions .btn-outline-primary:hover {
    background: #1e88e5;
    color: #fff;
    transform: translateY(-1px);
}

.mini-cart-actions .btn-primary {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    border: none;
}

.mini-cart-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* Badge del carrito en navbar */
#cart-item-count {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hover effect en el ícono */
#cart-icon-link:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Loading state */
.mini-cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #999;
}

.mini-cart-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 576px) {
    #mini-cart-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        border-radius: 0;
        margin-top: 0;
        transform: translateX(100%);
    }
    
    #cart-dropdown-wrapper.show #mini-cart-dropdown {
        transform: translateX(0);
    }
    
    #mini-cart-dropdown::before {
        display: none;
    }
    
    .mini-cart-body {
        max-height: calc(100vh - 160px);
    }
}

/* 1. Navbar Inicial (Transparente sobre el Carrusel) */
.navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 2000;
    background-color: transparent !important; /* Transparente al inicio */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

/* 2. Navbar al hacer Scroll (Fondo Blanco o Adaptado) */
.navbar.scrolled {
    background-color: #ffffff !important; /* Cambia a blanco al bajar */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* 3. Ajuste de elementos internos para que sean legibles */
/* Cuando es transparente (sobre carrusel oscuro): letras blancas */
.navbar .nav-link, 
.navbar .navbar-brand, 
.navbar .nav-icon-link {
    color: #ffffff !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}

/* Cuando tiene fondo blanco (scrolled): letras oscuras */
.navbar.scrolled .nav-link, 
.navbar.scrolled .navbar-brand, 
.navbar.scrolled .nav-icon-link,
.navbar.scrolled .fa-shopping-cart,
.navbar.scrolled .fa-user {
    color: #1f2937 !important; /* Gris oscuro / Negro */
    text-shadow: none;
}

/* 4. El buscador debe adaptarse también */
.navbar .search-input-style {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.navbar.scrolled .search-input-style {
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
}

/* ELIMINAR EL HUECO SUPERIOR */
body {
    padding-top: 0 !important;
}

/*--------------------------------------------*/
/* Calificación de Estrellas */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.stars-wrapper {
    color: #ffb400; /* Dorado profesional */
    font-size: 0.75rem;
}

.stars-wrapper .far {
    color: #d1d5db; /* Estrellas vacías en gris */
}

.rating-count {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}