/* ============================================================
   CATEGORY STYLES - NonNatty Marketplace (VERSIÓN 2.19)
   ============================================================
   DISEÑO RECTANGULAR ESTILO AMAZON/MERCADO LIBRE
   
   MEJORAS:
   - Botones rectangulares (no circulares)
   - 3 columnas en móvil (iPhone 13)
   - 4+ columnas en tablet
   - Scroll horizontal en móviles pequeños
   - Sin iconos decorativos
   - Contadores con estilo profesional
   - Dark mode compatible
   - Separador visual entre categorías y productos
   - Header de productos con título y conteo
   ============================================================ */

/* ============================================================
   1. HEADER DE CATEGORÍAS
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0000FF;
}

.section-header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    color: #FE0201;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.section-header a {
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 14px;
    color: #0000FF;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-header a:hover {
    text-decoration: underline;
}

/* ============================================================
   2. NAVEGACIÓN DE CATEGORÍAS - ESTILO RECTANGULAR
   ============================================================ */
.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: #FEFEFE;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 10px;
}

/* ============================================================
   3. BOTONES DE CATEGORÍA - RECTANGULARES
   ============================================================ */
.categoria-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
}

/* ============================================================
   4. ESTADOS HOVER Y FOCUS
   ============================================================ */
.categoria-link:hover {
    color: #0000FF;
    background: rgba(0, 0, 255, 0.06);
    border-color: #0000FF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.08);
}

.categoria-link:focus {
    outline: 2px solid #0000FF;
    outline-offset: 2px;
}

/* ============================================================
   5. ESTADO ACTIVO - Categoría seleccionada
   ============================================================ */
.categoria-link.active {
    color: #FEFEFE;
    background: #0000FF;
    border-color: #0000FF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.2);
}

.categoria-link.active:hover {
    background: #0000cc;
    border-color: #0000cc;
    transform: translateY(-1px);
}

/* ============================================================
   6. ESTADO VACÍO - Categorías sin productos
   ============================================================ */
.categoria-link.empty {
    opacity: 0.5;
    background: #fafafa;
    border-color: #e8e8e8;
    color: #999;
}

.categoria-link.empty:hover {
    opacity: 0.8;
    border-color: #ccc;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   7. CONTADOR DE PRODUCTOS
   ============================================================ */
.categoria-link .count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 6px;
    height: 18px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
    color: #888888;
    transition: all 0.25s ease;
    line-height: 1;
}

.categoria-link.active .count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FEFEFE;
}

.categoria-link:hover .count-badge:not(.active) {
    background: rgba(0, 0, 255, 0.1);
    color: #0000FF;
}

.categoria-link.empty .count-badge {
    background: rgba(0, 0, 0, 0.04);
    color: #bbb;
}

/* ============================================================
   8. CATEGORÍA "TODOS" - Estilo especial
   ============================================================ */
.categoria-link.todos {
    font-weight: 600;
    color: #000000;
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.categoria-link.todos.active {
    color: #FEFEFE;
    background: #0000FF;
    border-color: #0000FF;
}

.categoria-link.todos .count-badge {
    background: rgba(0, 0, 0, 0.1);
    color: #666666;
}

.categoria-link.todos.active .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FEFEFE;
}

/* ============================================================
   9. SEPARADOR ENTRE CATEGORÍAS Y PRODUCTOS
   ============================================================ */
.categories-divider {
    height: 2px;
    background: linear-gradient(to right, #0000FF, transparent);
    margin: 10px 0 25px 0;
    border-radius: 2px;
    opacity: 0.3;
}

/* ============================================================
   10. CONTENEDOR DE PRODUCTOS
   ============================================================ */
.products-container {
    margin-top: 10px;
}

/* ============================================================
   11. HEADER DE PRODUCTOS - Muestra categoría seleccionada
   ============================================================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.products-title {
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-title i {
    color: #0000FF;
    font-size: 16px;
}

.products-count {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

/* ============================================================
   12. GRID DE PRODUCTOS
   ============================================================ */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ============================================================
   13. TARJETA DE PRODUCTO
   ============================================================ */
.producto-card {
    background: #FEFEFE;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #0000FF;
}

/* ============================================================
   14. IMAGEN DEL PRODUCTO
   ============================================================ */
.imagen-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f3f5;
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .imagen-container img {
    transform: scale(1.02);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f1f3f5;
    color: #ccc;
    font-size: 3rem;
}

/* ============================================================
   15. BADGES SOBRE LA IMAGEN
   ============================================================ */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #16D034;
    color: #FEFEFE;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 14pt;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(22, 208, 52, 0.4);
    z-index: 2;
}

.special-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0000FF;
    color: #FEFEFE;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 8pt;
    font-family: 'Impact', 'Helvetica World', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.3);
    z-index: 2;
}

.category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #FEFEFE;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 8pt;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

/* ============================================================
   16. CONTENIDO DE LA TARJETA
   ============================================================ */
.contenido {
    padding: 18px 20px 20px;
}

.producto-nombre {
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 16pt;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.producto-descripcion {
    font-size: 10pt;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   17. PRECIO
   ============================================================ */
.precio-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.precio-actual {
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 20pt;
    color: #0000FF;
}

.precio-actual .moneda {
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 10pt;
    color: #666;
    font-weight: 400;
}

.precio-original {
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 11pt;
    color: #999;
    text-decoration: line-through;
}

.compra-minima {
    font-size: 9pt;
    color: #888;
    margin-top: 2px;
}

/* ============================================================
   18. METADATOS
   ============================================================ */
.meta-info {
    display: flex;
    gap: 12px;
    font-size: 9pt;
    color: #888;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

/* ============================================================
   19. BOTONES DE ACCIÓN
   ============================================================ */
.acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.andes-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 14pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.andes-button--small {
    font-size: 12pt;
    padding: 10px;
}

.andes-button--loud {
    background: #0000FF;
    color: #FEFEFE;
}

.andes-button--loud:hover {
    background: #0000cc;
    transform: scale(1.01);
}

.btn-add-to-bag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #00A86B;
    color: #FEFEFE;
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-to-bag:hover {
    background: #008f5a;
    transform: scale(1.01);
}

.btn-add-to-bag .bag-icon {
    font-size: 14px;
}

/* ============================================================
   20. ESTADO VACÍO
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #FEFEFE;
    border-radius: 16px;
    border: 2px dashed #e8e8e8;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 24pt;
    color: #333;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #888;
    max-width: 400px;
    margin: 0 auto 20px;
}

.empty-action-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0000FF;
    color: #FEFEFE;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Impact', 'Helvetica World', sans-serif;
    font-size: 12pt;
    transition: all 0.3s ease;
}

.empty-action-btn:hover {
    background: #0000cc;
    transform: scale(1.02);
}

/* ============================================================
   21. RESPONSIVE - TABLET Y MÓVIL
   ============================================================ */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) {
    .section-header h2 {
        font-size: 24px;
    }

    .categoria-link {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 32px;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* TABLET PEQUEÑA Y MÓVIL GRANDE (481px - 768px) */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header a {
        font-size: 12px;
    }

    .categories-nav {
        padding: 12px 14px;
        gap: 6px;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .categoria-link {
        font-size: 11px;
        padding: 6px 12px;
        min-height: 30px;
        border-radius: 4px;
    }

    .categoria-link .count-badge {
        min-width: 16px;
        height: 16px;
        font-size: 8px;
        padding: 0 5px;
    }

    .products-title {
        font-size: 16px;
    }

    .products-count {
        font-size: 12px;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .imagen-container {
        height: 180px;
    }

    .producto-nombre {
        font-size: 14pt;
    }

    .precio-actual {
        font-size: 18pt;
    }

    .categories-divider {
        margin: 8px 0 20px 0;
    }
}

/* MÓVIL (≤480px) - 3 COLUMNAS */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 18px;
    }

    .section-header a {
        font-size: 11px;
    }

    .categories-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px 12px;
        border-radius: 6px;
        margin-bottom: 6px;
        overflow: visible;
        flex-wrap: nowrap;
    }

    .categoria-link {
        font-size: 10px;
        padding: 6px 8px;
        min-height: 32px;
        border-radius: 4px;
        white-space: nowrap;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .categoria-link .count-badge {
        min-width: 14px;
        height: 14px;
        font-size: 7px;
        padding: 0 4px;
    }

    /* Ajuste para el botón "TODOS" - ocupa toda la fila */
    .categoria-link.todos {
        grid-column: 1 / -1;
    }

    .categories-divider {
        margin: 6px 0 16px 0;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .products-title {
        font-size: 14px;
    }

    .productos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .imagen-container {
        height: 150px;
    }

    .contenido {
        padding: 12px 14px 14px;
    }

    .producto-nombre {
        font-size: 12pt;
    }

    .producto-descripcion {
        font-size: 9pt;
        -webkit-line-clamp: 1;
    }

    .precio-actual {
        font-size: 16pt;
    }

    .precio-original {
        font-size: 10pt;
    }

    .andes-button {
        font-size: 10pt;
        padding: 8px;
    }

    .andes-button--small {
        font-size: 10pt;
        padding: 8px;
    }

    .btn-add-to-bag {
        font-size: 10pt;
        padding: 8px;
    }

    .meta-info {
        font-size: 8pt;
        gap: 8px;
        flex-wrap: wrap;
    }

    .discount-badge {
        font-size: 11pt;
        padding: 3px 10px;
    }

    .special-badge {
        font-size: 7pt;
        padding: 3px 8px;
    }

    .category-badge {
        font-size: 7pt;
        padding: 2px 8px;
    }
}

/* MÓVIL MUY PEQUEÑO (≤380px) - 2 COLUMNAS */
@media (max-width: 380px) {
    .categories-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 8px 10px;
    }

    .categoria-link {
        font-size: 9px;
        padding: 5px 6px;
        min-height: 28px;
    }

    .categoria-link.todos {
        grid-column: 1 / -1;
    }

    .categoria-link .count-badge {
        min-width: 12px;
        height: 12px;
        font-size: 6px;
        padding: 0 3px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .imagen-container {
        height: 200px;
    }

    .producto-nombre {
        font-size: 14pt;
    }

    .producto-descripcion {
        -webkit-line-clamp: 2;
    }

    .precio-actual {
        font-size: 18pt;
    }
}

/* ============================================================
   22. SCROLL HORIZONTAL PARA CATEGORÍAS (opcional)
   ============================================================ */
/* 
   Si prefieres scroll horizontal en lugar de grid, 
   descomenta esta sección y comenta la sección de grid 
   en el breakpoint de móvil.
   
   @media (max-width: 480px) {
       .categories-nav {
           display: flex;
           flex-wrap: nowrap;
           overflow-x: auto;
           -webkit-overflow-scrolling: touch;
           scroll-snap-type: x mandatory;
           gap: 6px;
           padding: 10px 12px;
       }
       
       .categoria-link {
           flex-shrink: 0;
           scroll-snap-align: start;
       }
   }
*/

/* ============================================================
   23. DARK MODE COMPATIBILIDAD
   ============================================================ */
.dark .section-header h2 {
    color: #FE0201;
}

.dark .section-header a {
    color: #5B8CFF;
}

.dark .categories-nav {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.dark .categoria-link {
    color: #aaaaaa;
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.dark .categoria-link:hover {
    color: #5B8CFF;
    background: rgba(91, 140, 255, 0.1);
    border-color: #5B8CFF;
}

.dark .categoria-link.active {
    color: #FEFEFE;
    background: #5B8CFF;
    border-color: #5B8CFF;
}

.dark .categoria-link.active:hover {
    background: #4a7acc;
    border-color: #4a7acc;
}

.dark .categoria-link.empty {
    background: #222;
    border-color: #333;
    color: #666;
}

.dark .categoria-link .count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #888888;
}

.dark .categoria-link.active .count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FEFEFE;
}

.dark .categoria-link.todos {
    color: #FEFEFE;
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.dark .categoria-link.todos.active {
    background: #5B8CFF;
    border-color: #5B8CFF;
}

.dark .categoria-link.todos .count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

.dark .categories-divider {
    background: linear-gradient(to right, #5B8CFF, transparent);
}

.dark .products-header {
    border-bottom-color: #2a2a2a;
}

.dark .products-title {
    color: #FEFEFE;
}

.dark .products-count {
    color: #888;
}

.dark .producto-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.dark .producto-card:hover {
    border-color: #5B8CFF;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dark .producto-nombre {
    color: #FEFEFE;
}

.dark .producto-descripcion {
    color: #aaa;
}

.dark .precio-actual {
    color: #5B8CFF;
}

.dark .meta-info {
    color: #888;
    border-top-color: #2a2a2a;
}

.dark .empty-state {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.dark .empty-state h3 {
    color: #FEFEFE;
}

.dark .empty-state p {
    color: #888;
}

.dark .empty-action-btn {
    background: #5B8CFF;
}

.dark .empty-action-btn:hover {
    background: #4a7acc;
}

.dark .categories-nav::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.dark .categories-nav::-webkit-scrollbar-thumb {
    background: #5B8CFF;
}

.dark .imagen-container {
    background: #2a2a2a;
}

.dark .placeholder-image {
    background: #2a2a2a;
    color: #555;
}

/* ============================================================
   24. PRINT STYLES
   ============================================================ */
@media print {
    .categories-nav {
        border: 1px solid #000;
        background: #fff;
    }

    .categoria-link {
        color: #000 !important;
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }

    .categoria-link.active {
        color: #000 !important;
        background: #e0e0e0 !important;
        border-color: #000 !important;
    }

    .categoria-link .count-badge {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .producto-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .producto-card:hover {
        transform: none !important;
    }

    .empty-state {
        border: 1px solid #000 !important;
    }

    .categories-divider {
        background: #000 !important;
        opacity: 1 !important;
    }
}

/* ============================================================
   25. ANIMACIÓN DE CATEGORÍAS - FADE-IN DESDE IZQUIERDA
   ============================================================ */

/* Estado inicial de las categorías (será manipulado por JS) */
.categoria-link {
    /* Estos valores son establecidos por JavaScript */
    /* opacity: 0; */
    /* transform: translateX(-60px) scale(0.95); */
    /* transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                  transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* Estado final de las categorías (después de la animación) */
.categoria-link.animated {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* Asegurar que el contenedor se expanda suavemente */
.categories-nav {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
    overflow: hidden;
    min-height: 50px; /* Altura mínima para evitar colapso */
}

/* ============================================================
   26. RESPONSIVE - Ajustes para animación en móvil
   ============================================================ */

/* En móvil, las categorías están en grid, la animación funciona igual */
@media (max-width: 480px) {
    .categoria-link {
        /* La animación funciona igual en grid */
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    background 0.25s ease,
                    border-color 0.25s ease !important;
    }
}

/* ============================================================
   27. REDUCED MOTION - Respetar preferencias del usuario
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .categoria-link {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .categories-nav {
        transition: none !important;
    }
}

/* ============================================================
   28. BOTÓN TOGGLE DE CATEGORÍAS - "Ver todas / Ocultar"
   ============================================================ */

/* Botón de toggle - reemplaza al enlace "View All" */
.categories-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 2px solid #0000FF;
    border-radius: 8px;
    background: transparent;
    color: #0000FF;
    font-family: 'Helvetica World', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 40px;
}

.categories-toggle-btn:hover {
    background: #0000FF;
    color: #FEFEFE;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 255, 0.2);
}

.categories-toggle-btn:active {
    transform: scale(0.95);
}

.categories-toggle-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.categories-toggle-btn.active {
    border-color: #FE0201;
    color: #FE0201;
}

.categories-toggle-btn.active:hover {
    background: #FE0201;
    color: #FEFEFE;
}

/* ============================================================
   29. ESTADO OCULTO DE CATEGORÍAS
   ============================================================ */

/* Contenedor cuando está colapsado */
.categories-nav.collapsed {
    height: 0 !important;
    padding: 0 20px !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Contenedor cuando está expandido */
.categories-nav.expanded {
    height: auto !important;
    padding: 16px 20px !important;
    overflow: visible !important;
    min-height: 50px !important;
    margin-bottom: 10px !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* ============================================================
   30. RESPONSIVE - Ajustes del botón toggle
   ============================================================ */

@media (max-width: 768px) {
    .categories-toggle-btn {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 34px;
    }
    
    .categories-toggle-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .categories-toggle-btn {
        font-size: 11px;
        padding: 5px 12px;
        min-height: 30px;
        border-radius: 6px;
        gap: 5px;
    }
    
    .categories-toggle-btn i {
        font-size: 11px;
    }
}

/* ============================================================
   31. DARK MODE - Botón toggle
   ============================================================ */

.dark .categories-toggle-btn {
    border-color: #5B8CFF;
    color: #5B8CFF;
}

.dark .categories-toggle-btn:hover {
    background: #5B8CFF;
    color: #FEFEFE;
}

.dark .categories-toggle-btn.active {
    border-color: #FE0201;
    color: #FE0201;
}

.dark .categories-toggle-btn.active:hover {
    background: #FE0201;
    color: #FEFEFE;
}

.dark .categories-nav.collapsed {
    background: transparent;
    border-color: transparent;
}

.dark .categories-nav.expanded {
    background: #1a1a1a;
    border-color: #2a2a2a;
}