/* ==========================================================================
   CUSTOM.CSS - PRESTASHOP 8.2 (CLASSIC THEME)
   Optimizado para Tienda de Iluminación y Equipo Táctico (GF Thunder Light)
   Solución definitiva de Diseño, Tipografía, Espaciado y Paleta de Colores
   ========================================================================== */

/* --- 1. MEJORA DE TIPOGRAFÍA GENERAL Y ANCHO DEL LAYOUT --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #f4f6f9 !important; /* Gris claro premium que combina perfectamente con negro */
    color: #2c3e50 !important;
    -webkit-font-smoothing: antialiased;
}

/* Ensanchar el layout de la tienda en pantallas de escritorio para dar espacio horizontal */
@media (min-width: 1200px) {
    .container {
        max-width: 1350px !important; /* Expandido de 1110px a 1350px para evitar saltos */
        width: 100% !important;
    }
    
    /* Forzar a que el logo, el menú y el buscador compartan la misma línea limpiamente */
    #header .header-top .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

/* --- 2. HEADER PREMIUM (NEGRO OBSIDIANA LLAMATIVO) --- */
/* Barra de contacto e inicio de sesión superior */
.header-nav {
    background: #0d0f12 !important; /* Negro profundo */
    border-bottom: 1px solid #1f242d !important;
}
.header-nav a, .header-nav span, .header-nav i, .header-nav .user-info a {
    color: #94a3b8 !important; /* Gris plata elegante */
    font-size: 12px !important;
}
.header-nav a:hover, .header-nav .user-info a:hover {
    color: #f59e0b !important; /* Amarillo/Ámbar táctico llamativo */
}

/* Bloque Principal del Header (Donde está el Logo con fondo negro) */
.header-top {
    background: #16191e !important; /* Negro carbón llamativo (combina y esconde el fondo negro del logo) */
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Alineación limpia del Logo */
#_desktop_logo {
    padding-top: 0 !important;
}
#_desktop_logo a {
    display: inline-block;
    vertical-align: middle;
}

/* --- 3. REPARACIÓN COMPLETA DEL MENÚ DE NAVEGACIÓN (TODO EN UNA FILA) --- */
#header .menu {
    padding-left: 15px !important;
    margin-bottom: 0 !important;
}

#header .top-menu {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prohíbe terminantemente romperse en dos filas */
    align-items: center !important;
    margin-bottom: 0 !important;
}

#header .top-menu a[data-depth="0"] {
    color: #ffffff !important; /* Letra blanca de alta legibilidad y contraste */
    font-size: 11.5px !important; /* Tamaño de letra compacto y profesional */
    font-weight: 700 !important; /* Letra más gruesa y legible */
    text-transform: uppercase !important; /* Estilo menú moderno en mayúsculas */
    letter-spacing: 0.6px !important; /* Espaciado premium entre letras */
    padding: 10px 8px !important; /* Reducción de márgenes internos para que quepan categorías largas */
    transition: all 0.2s ease-in-out !important;
}

/* Efecto Hover en las pestañas del menú */
#header .top-menu a[data-depth="0"]:hover {
    color: #f59e0b !important; /* Cambio a ámbar táctico */
    background: rgba(255, 255, 255, 0.04) !important; /* Sutil fondo iluminado */
    border-radius: 4px !important;
}

/* Indicador de Categoría activa */
.top-menu .current a[data-depth="0"] {
    color: #f59e0b !important;
    border-bottom: 2px solid #f59e0b !important;
}

/* Menú Desplegable de Subcategorías (Dropdowns) */
.top-menu .popover {
    background: #16191e !important;
    border: 1px solid #2d333f !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}
.top-menu .popover a {
    color: #cbd5e1 !important;
}
.top-menu .popover a:hover {
    color: #f59e0b !important;
}

/* --- 4. REDISEÑO INTEGRADO DE LA BARRA DE BÚSQUEDA --- */
#search_widget form {
    position: relative;
}
#search_widget form input[type=text] {
    background: #222732 !important; /* Buscador oscuro integrado en el header */
    border: 1px solid #323a4b !important;
    color: #ffffff !important;
    border-radius: 30px !important; /* Bordes redondeados modernos */
    font-size: 13px !important;
    padding-left: 15px !important;
    padding-right: 40px !important;
    height: 38px !important;
    transition: all 0.2s ease !important;
}
#search_widget form input[type=text]:focus {
    border-color: #f59e0b !important; /* Brillo ámbar al buscar */
    outline: none !important;
}
#search_widget form input[type=text]::placeholder {
    color: #64748b !important;
}
#search_widget form button[type=submit] {
    top: 2px !important;
    right: 5px !important;
}
#search_widget form i {
    color: #94a3b8 !important; /* Icono de lupa claro */
}

/* --- 5. CUERPO DE LA TIENDA (EL GRIS COMBINABLE COMPLETO) --- */
#wrapper {
    background-color: #f4f6f9 !important; /* El fondo gris ideal para que la tienda tenga profundidad */
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Ajuste del Título de Productos Destacados */
h1.products-section-title, .h1.products-section-title {
    color: #16191e !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-size: 18px !important;
    text-align: center !important;
    margin-bottom: 25px !important;
}

/* Tarjetas de Producto Estilo Flotante sobre el Fondo Gris */
.product-miniature .thumbnail-container {
    background: #ffffff !important; /* Fondo blanco puro para resaltar los artículos */
    border-radius: 8px !important; /* Bordes redondeados sutiles y profesionales */
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 15px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.product-miniature .thumbnail-container:hover {
    transform: translateY(-5px) !important; /* Efecto dinámico al pasar el mouse */
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

/* --- 6. FOOTER PREMIUM (NEGRO COMPLEMENTARIO LLAMATIVO) --- */
.footer-container {
    background: #111215 !important; /* Cierre visual con un negro profundo */
    color: #94a3b8 !important;
    padding-top: 50px !important;
    border-top: 4px solid #f59e0b !important; /* Línea de acento ámbar táctico que une todo */
}

.footer-container h1, .footer-container h2, .footer-container h3, .footer-container .h3 {
    color: #ffffff !important; /* Títulos de columnas en blanco puro */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}

.footer-container a {
    color: #cbd5e1 !important;
    transition: color 0.2s ease !important;
}

.footer-container a:hover {
    color: #f59e0b !important; /* Enlaces se iluminan en ámbar */
    text-decoration: none !important;
}

/* Franja inferior final de derechos reservados (Copyright) */
.footer-container .footer-after {
    background: #0d0f12 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid #1f242d !important;
    margin-top: 30px !important;
}


/* ==========================================================================
   CORRECCIONES EXTRA: CARRITO VISIBLE Y ELIMINACIÓN DE BANDA BLANCA
   ========================================================================== */

/* 1. REPARAR EL CARRITO (Forzar texto e icono en blanco puro) */
#_desktop_cart .blockcart .header a,
#_desktop_cart .blockcart .header i,
#_desktop_cart .blockcart .header span,
#_desktop_cart .blockcart a i,
#_desktop_cart .blockcart a span,
.cart-products-count {
    color: #ffffff !important; /* Devuelve la visibilidad total en blanco */
    text-decoration: none !important;
}

/* Centrado óptico del contenido dentro del cuadro azul */
#_desktop_cart .blockcart .header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    background: #2fb5d2 !important; /* Protege el azul nativo brillante */
}

/* 2. ELIMINAR LA RAYA BLANCA DEBAJO DEL HEADER */
/* Forzamos a que todo el contenedor del header y sus bloques de ancho completo sean negros */
#header {
    background: #16191e !important;
    border-bottom: none !important;
}

#header .nav-full-width {
    background: #16191e !important; /* Si la raya viene del bloque expansivo, se vuelve negra */
    border-bottom: none !important;
    padding: 0 !important;
}

.header-top {
    margin-bottom: 0 !important; /* Elimina el margen que dejaba ver el fondo blanco de atrás */
    border-bottom: none !important;
}

/* Ajuste del inicio del cuerpo de la tienda para que pegue limpio con el gris premium */
#wrapper {
    margin-top: 0 !important;
    background-color: #f4f6f9 !important; /* Mantiene tu gris de fondo combinado */
}


/* ==========================================================================
   SOLUCIÓN DEFINITIVA PARA LA FRANJA BLANCA DEBAJO DEL MENÚ
   ========================================================================== */

/* 1. Ocultar y limpiar el bloque de Breadcrumbs (Migas de pan) vacío en la portada */
.breadcrumb, 
.breadcrumb-wrapper, 
#wrapper .breadcrumb,
#wrapper .breadcrumb-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: none !important; /* Desaparece por completo el bloque para que no haga bulto */
}

/* 2. Forzar a negro cualquier fila o contenedor remanente del menú original */
#header .header-top,
#header .header-top .container,
#header .header-top .row,
#_desktop_top_menu,
#_desktop_top_menu_wrapper,
.nav-full-width,
.position-static {
    background-color: #16191e !important; /* El mismo negro carbón de tu cabecera */
    background: #16191e !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Ajustar el inicio del cuerpo gris para que pegue perfecto con el header negro */
#wrapper {
    padding-top: 15px !important; /* Espaciado limpio para los productos */
    margin-top: 0 !important;
}



/* ==========================================
   AGRANDAR PRECIOS EN EL FRONT-END
   ========================================== */

/* 1. En la ficha detallada del producto */
.product-prices .current-price [content] {
    font-size: 2rem !important; /* Tamaño grande para el precio principal */
    font-weight: 700 !important; /* Lo hace más grueso y visible */
    color: #232323; /* Puedes cambiar el color si lo deseas */
}

/* 2. En las listas de productos (Inicio, Categorías, Buscador) */
.product-miniature .product-price-and-shipping .price,
.featured-products .price,
.product-price-and-shipping .price {
    font-size: 1.4rem !important; /* Tamaño intermedio para los listados */
    font-weight: 700 !important;
}
