/**
 * MBA Gallery Pro — Contextual Subcategory Sidebar (v1.0.6)
 *
 * @package MBA_Gallery_Pro
 */

/* The subcategory filtering now lives in the sidebar, so hide the old
   pill row the Pro plugin injected below the category carousel. */
.medbeafgallery-child-categories {
    display: none !important;
}

.mba-pro-subcat-group .mba-pro-subcat-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mba-pro-subcat-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.3;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mba-pro-subcat-option:hover {
    background: #f3f4f6;
}

.mba-pro-subcat-option.is-active {
    background: var(--medbeafgallery-primary-solid, #2563eb);
    color: #fff;
    font-weight: 600;
}

/* ── Hover subcategory dropdown on parent tabs (v1.0.7, desktop-only) ── */
/* Positioning is set inline by pro-subcategory-dropdown.js (fixed, at <body>),
   so this rule carries only visual styling. */
.mba-pro-subcat-dropdown {
    min-width: 220px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mba-pro-subcat-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.3;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mba-pro-subcat-dropdown-item:hover {
    background: #0c71c3;
    color: #fff;
}
