/* Desktop header: single white row (logo | menu | search toggle). */
.bh-main-header,
.bh-bar {
    background: #fff;
}
.bh-bar {
    position: relative;
    border-bottom: 1px solid #e8eaee;
}
.bh-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}
.bh-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.bh-logo img {
    height: 55px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Menu */
.bh-nav {
    flex: 1 1 auto;
    min-width: 0;
}
.bh-nav .heder__category {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 64px;
}
.bh-nav .heder__category > *,
.bh-nav .menu-style-2-item,
.bh-nav .menu-style-2-list,
.bh-nav .menu-style-3-item,
.bh-nav .menu-style-3-list,
.bh-nav .header-menu-item,
.bh-nav .header-menu-item li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}
/* Items must never shrink, otherwise the row never overflows and the scroll arrows never appear */
.bh-nav .heder__category > * {
    flex: 0 0 auto !important;
}
.bh-nav .menu-style-2-link,
.bh-nav .menu-style-3-link,
.bh-nav .header-menu-item li a {
    margin: 0 !important;
    padding: 0 11px !important;
    gap: 4px;
}
.bh-nav .menu-style-2-arrow,
.bh-nav .menu-style-3-arrow {
    margin: 0 0 0 2px !important;
}
.bh-nav .menu-style-2-item,
.bh-nav .menu-style-2-list,
.bh-nav .menu-style-3-item,
.bh-nav .menu-style-3-list {
    height: 64px;
}
.bh-nav .menu-style-2-link,
.bh-nav .menu-style-3-link,
.bh-nav .header-menu-item li a {
    position: relative;
    display: flex;
    align-items: center;
    height: 64px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.bh-nav .menu-style-2-link .cat__item__name {
    color: inherit;
}
.bh-nav .menu-style-2-link:hover,
.bh-nav .menu-style-3-link:hover,
.bh-nav .header-menu-item li a:hover {
    color: var(--primary-color);
}
.bh-nav .header-menu-item,
.bh-nav .header-menu-item li {
    display: flex;
    align-items: center;
    height: 64px;
}
.bh-nav .menu-style-2-arrow,
.bh-nav .menu-style-3-arrow {
    border-color: transparent #6b7280 #6b7280 transparent;
}
.bh-nav .menu-scroll-arrow {
    height: 64px;
    width: 36px;
    color: #374151;
}
.bh-nav .menu-scroll-arrow-left {
    background: linear-gradient(to right, #fff 55%, transparent);
}
.bh-nav .menu-scroll-arrow-right {
    background: linear-gradient(to left, #fff 55%, transparent);
}

/* Actions */
.bh-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bh-search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 35%, transparent);
    transition: filter 0.2s, transform 0.2s;
}
.bh-search-toggle:hover,
.bh-search-toggle[aria-expanded="true"] {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Search panel (opens below the bar) */
.bh-search-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #e8eaee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    z-index: 1000;
}
.bh-search-panel.is-open {
    display: block;
}
.bh-search-panel .main-search {
    position: relative;
    margin: 0 auto;
    max-width: 720px;
}
.bh-search-panel .main-search form {
    display: flex;
    align-items: stretch;
    height: auto;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.bh-search-panel .main-search form:focus-within {
    border-color: var(--primary-color);
}
.bh-search-panel .main-search input {
    flex: 1 1 auto;
    float: none;
    width: auto;
    height: 46px;
    padding: 0 20px;
    background: transparent;
    border: 0;
    font-size: 15px !important;
}
.bh-search-panel .main-search button {
    flex: 0 0 56px;
    float: none;
    width: 56px;
    height: 46px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .bh-bar-inner { gap: 14px; }
    .bh-nav .menu-style-2-link,
    .bh-nav .menu-style-3-link,
    .bh-nav .header-menu-item li a {
        font-size: 14px;
    }
}
@media (max-width: 767px) {
    .bh-main-header { display: none; }
}
