/* ─── SUBCATEGORIES NAV ─── */
.subcategories-nav {
    background: transparent;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 72px;
    z-index: 200;
    overflow: visible;
    background: white;
}

.subcategories-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    height: 52px;
    overflow: visible;
    scrollbar-width: none;
}
.subcategories-inner::-webkit-scrollbar { display: none; }

/* ─── LINKS ─── */
.subcat-link {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.subcat-link:hover { color: var(--charcoal); }
.subcat-link.active { 
    color: var(--charcoal); 
    border-bottom-color: var(--gold-dark); 
}

/* ─── BOTONES (subcat-parent) ─── */
.subcategories-nav button {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid transparent;
    outline: none;
}
.subcategories-nav .subcat-group.active button {
    border-bottom: 2px solid var(--gold-dark);
}

/* ─── DROPDOWN ─── */
.subcat-group { position: relative; }
.subcat-parent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.subcat-parent:hover { color: var(--charcoal); }
.subcat-group.active .subcat-parent { color: var(--charcoal); }

.subcat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #eee;
    min-width: 200px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    flex-direction: column;
}
.subcat-group.open .subcat-dropdown { display: flex; }

.subcat-dropdown-item {
    padding: 10px 18px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    transition: all 0.2s;
    text-decoration: none;
}
.subcat-dropdown-item:hover { color: var(--charcoal); background: #fafafa; }
.subcat-dropdown-item.active { color: var(--gold-dark); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .subcategories-nav {
        top: 72px;
        z-index: 9999;
        background: white;
        overflow: visible;
    }
    .subcategories-inner {
        padding: 0 20px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        height: 52px;
        scrollbar-width: none;
    }
    .subcat-group {
        overflow: visible;
    }
    .subcat-dropdown {
        position: fixed;
        top: 124px;
        left: 0;
        right: 0;
        z-index: 9999;
        border-radius: 0 0 8px 8px;
    }
}