/* ========== ESTILOS ESPECÍFICOS PARA CATÁLOGO ========== */

/* BARRA NEGRA PEGADA AL HEADER */
.black-navbar {
    background-color: #000000;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-family: sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    width: 100%;
    position: fixed;
    top: 80px; /* JUSTO DEBAJO DEL HEADER */
    left: 0;
    z-index: 999; /* UNO MENOS que el header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
}

.black-navbar.hidden {
    transform: translateY(-100%);
}

.black-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* FORZAR HEADER POR ENCIMA DE TODO EN CATÁLOGO */
.catalog-body header {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.catalog-body header.visible {
    transform: translateY(0) !important;
}

.catalog-body header.hidden {
    transform: translateY(-100%) !important;
}

/* AJUSTE DE PADDING PARA EL BODY EN CATÁLOGO */
.catalog-body {
    padding-top: 120px !important; 
}

/* CONTENIDO PRINCIPAL */
.catalog-page {

    padding: 110px 20px 30px; 
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* FILTROS */
.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 0px;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botón Filtrar */
.filter-btn {
    background:none;
    border: 1px solid #ddd;
    padding: 10px 25px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0px;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #927a1b;
    color: #927a1b;
    background: none
}

.filter-btn i {
    font-size: 14px;
}

/* Contador de productos */
.product-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* MODAL DE FILTROS - ESTILO CENTRADO MINIMALISTA */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Fondo más oscuro para contraste */
    z-index: 1002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.filter-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0;
    width: 100%;
    max-width: 320px; /* Más estrecho, similar a la imagen */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none; /* Sin bordes */
}

/* Header del modal - Centrado y minimalista */
/* Alternativa: sin botón de cerrar en el header, solo la X */
.modal-header {
    padding: 25px 24px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    position: relative;
}

/* Mover el botón de cerrar fuera del header */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #777;
    cursor: pointer;
    z-index: 10;
}

/* Título centrado */
.modal-title {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
}


/* Cuerpo del modal */
.modal-body {
    padding: 20px 24px;
}

/* Opciones de filtro - más compactas */
.filter-option {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 11px; /* Más pequeño */
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400; /* Más delgado */
}

/* Selects - estilo minimalista */
.filter-select {
    width: 100%;
    padding: 12px 0; /* Padding vertical, sin horizontal */
    border: none;
    border-bottom: 1px solid #eee; /* Solo línea inferior */
    border-radius: 0;
    font-size: 14px;
    background: transparent;
    color: #222;
    transition: all 0.2s;
    appearance: none;
    cursor: pointer;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Efecto al enfocar */
.filter-select:focus {
    outline: none;
    border-bottom-color: #000;
}

/* Para inputs de texto */
.filter-select[type="text"] {
    padding: 12px 0;
}

/* Pie del modal con botones */
.modal-actions {
    padding: 20px 24px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    background: white;
}

/* Botones - estilo minimalista */
.btn-apply, .btn-clear {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    background: transparent;
}

/* Botón aplicar - negro con texto blanco */
.btn-apply {
    background: #000;
    color: white;
    border: 1px solid #000;
}

.btn-apply:hover {
    background: #222;
    border-color: #222;
}

/* Botón limpiar - blanco con borde gris */
.btn-clear {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-clear:hover {
    background: #fafafa;
    color: #333;
    border-color: #bbb;
}

/* Estilo para las opciones del select */
.filter-select option {
    padding: 10px;
    font-size: 14px;
    background: white;
    color: #000;
}

/* Para opción seleccionada - GRIS en lugar de AZUL */
.filter-select option:checked,
.filter-select option:selected {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

/* Cuando no hay opciones seleccionadas, texto más claro */
.filter-select:not(:focus):placeholder-shown {
    color: #999;
}

/* Flecha del select personalizada */
.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
    padding-right: 25px;
}

/* Para el input de búsqueda, quitar la flecha */
.filter-select[type="text"] {
    background-image: none;
    padding-right: 0;
}

/* Asegurar que el modal se vea siempre centrado */
@media (max-height: 600px) {
    .modal-content {
        max-height: 95vh;
        margin-top: 0;
    }
}

/* Animación de entrada */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* ========== SOLUCIÓN DEFINITIVA PARA EL COLOR AZUL ========== */
/* Estas líneas son NUEVAS y van AL FINAL del CSS */

/* 1. Eliminar TODOS los estilos azules del sistema */
.filter-select,
.filter-select:focus,
.filter-select:active,
.filter-select:hover {
    background-color: white !important;
    color: #000 !important;
    outline: none !important;
}

/* 2. Para las opciones dentro del dropdown */
.filter-select option {
    background-color: white !important;
    color: #000 !important;
}

.filter-select option:hover,
.filter-select option:focus,
.filter-select option:active {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

/* 3. Específico para Chrome/Edge */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .filter-select {
        color: #000;
    }
    
    .filter-select:focus {
        color: #000;
    }
    
    .filter-select option {
        background-color: white;
        color: #000;
    }
    
    .filter-select option:checked {
        background-color: #f5f5f5;
        color: #000;
    }
}

/* 4. Específico para Firefox */
@-moz-document url-prefix() {
    .filter-select {
        color: #000;
        text-indent: 0.01px;
        text-overflow: '';
    }
    
    .filter-select option:checked {
        background-color: #f5f5f5 !important;
        color: #000 !important;
    }
}

/* 5. Para Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .filter-select {
            color: #000;
        }
        
        .filter-select option {
            background-color: white;
            color: #000;
        }
        
        .filter-select option:checked {
            background-color: #f5f5f5;
            color: #000;
        }
    }
}
/* PRODUCTOS */
.catalog-products {
    padding: 0 10px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.catalog-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.catalog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Iconos discretos */
.wishlist-icon, .add-cart-icon {
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
}

.wishlist-icon:hover, .add-cart-icon:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.wishlist-icon:hover {
    color: #ff6b6b;
}

.add-cart-icon:hover {
    color: #927a1b;
}

/* PAGINACIÓN ABAJO */
.pagination-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #927a1b;
    font-size: 14px;
    text-decoration: none;
}

.arrow-btn:hover:not(:disabled) {
    border-color: #000;
    color: #000;
    background: #f8f8f8;
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #927a1b;
    font-weight: 500;
}

/* NO PRODUCTS */
.no-products {
    text-align: center;
    padding: 100px 20px;
    color: #927a1b;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
    opacity: 0.7;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #444;
}

.no-products p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #888;
}

.no-products .filter-btn {
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .catalog-body .black-navbar {
        top: 70px;
        padding: 10px 0;
    }
    
    .catalog-body {
        padding-top: 110px !important;
    }
    
    .catalog-filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .pagination-arrows {
        margin-top: 40px;
        padding-top: 20px;
    }
}
/* ====== ESTILOS ADICIONALES PARA FILTROS ====== */

/* Tags de filtros activos */
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #e5e3da;
    color: white;
    border-radius: 0px;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    transition: all 0.2s;
}

.filter-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
}
