/* ========================================
   WONDERLAND HEADER
======================================== */


/* ========================================
   GENERAL
======================================== */

.bhfb {
    background: #fff;
}


/* ========================================
   MAIN HEADER ROW
======================================== */

.bhfb-main_header_row {
    background: #fff;
    border-bottom: 1px solid var(--wl-border);
}

.bhfb-main_header_row .bhfb-row {
    min-height: 88px;
    align-items: center;
}


/* ========================================
   LOGO
======================================== */

.bhfb-component-site_identity img {
    width: auto;
    max-width: 220px;
    max-height: 60px;
}

.bhfb-component-site_identity a {
    display: flex;
    align-items: center;
}


/* ========================================
   SEARCH
======================================== */

#wl-header-search {
    width: 100%;
}

.wl-search-wrap {
    position: relative;

    width: 100%;
    max-width: 680px;

    margin: 0 auto;
}

.wl-header-search {
    position: relative;

    display: flex;

    width: 100%;
}

.wl-header-search .search-field {
    width: 100%;
    height: 52px;

    padding:
        0
        58px
        0
        22px;

    background: var(--wl-bg-soft);

    border: 2px solid var(--wl-purple-light);
    border-radius: 999px;

    color: var(--wl-text);

    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.wl-header-search .search-field::placeholder {
    color: var(--wl-text-soft);
}

.wl-header-search .search-field:focus {
    outline: none;

    background: #fff;

    border-color: var(--wl-purple);

    box-shadow:
        0 0 0 4px rgba(123, 76, 226, .10);
}


/* Search button */

.wl-header-search button {
    position: absolute;

    top: 50%;
    right: 6px;

    width: 40px;
    height: 40px;

    padding: 0;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--wl-purple);
    color: #fff;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.wl-header-search button:hover {
    background: var(--wl-purple-dark);

    transform:
        translateY(-50%)
        scale(1.04);
}


/* ========================================
   AJAX SEARCH RESULTS
======================================== */

.wl-search-results {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;
    right: 0;

    z-index: 99999;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--wl-border);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(43, 28, 72, .16);
}


/* Single product result */

.wl-search-product {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 11px 14px;

    text-decoration: none;

    border-bottom: 1px solid var(--wl-border);

    transition: background .15s ease;
}

.wl-search-product:hover {
    background: var(--wl-bg-purple);
}


/* Product image */

.wl-search-product__image {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fff;

    border-radius: 12px;
}

.wl-search-product__image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Product info */

.wl-search-product__info {
    flex: 1;

    min-width: 0;
}

.wl-search-product__title {
    color: var(--wl-text);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;
}

.wl-search-product__price {
    margin-top: 4px;

    color: var(--wl-purple);

    font-size: 14px;
    font-weight: 800;
}

.wl-search-product__price del {
    margin-right: 5px;

    color: var(--wl-text-soft);

    font-weight: 400;
}


/* Show all */

.wl-search-all {
    display: block;

    padding: 13px 15px;

    text-align: center;
    text-decoration: none;

    color: var(--wl-purple);

    font-size: 14px;
    font-weight: 800;

    background: var(--wl-bg-soft);

    transition: background .15s ease;
}

.wl-search-all:hover {
    background: var(--wl-bg-purple);
}


/* Loading / empty */

.wl-search-loading,
.wl-search-empty {
    padding: 18px;

    text-align: center;

    color: var(--wl-text-soft);

    font-size: 14px;
}


/* ========================================
   WOO ICONS
======================================== */

.bhfb-component-woocommerce_icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bhfb-component-woocommerce_icons a {
    transition:
        color .2s ease,
        transform .2s ease;
}

.bhfb-component-woocommerce_icons a:hover {
    color: var(--wl-purple);

    transform: translateY(-2px);
}


/* ========================================
   BOTTOM MENU ROW
======================================== */

.bhfb-below_header_row {
    background: var(--wl-purple);
}

.bhfb-below_header_row .bhfb-row {
    min-height: 54px;

    align-items: center;
}


/* ========================================
   PRIMARY MENU
======================================== */

.bhfb-component-primary_menu ul.menu {
    display: flex;
    align-items: center;

    gap: 5px;

    margin: 0;
}

.bhfb-component-primary_menu ul.menu > li > a {
    display: block;

    padding: 9px 16px;

    border-radius: 999px;

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease,
        color .2s ease;
}

.bhfb-component-primary_menu ul.menu > li > a:hover {
    background: rgba(255, 255, 255, .15);

    color: #fff;

    transform: translateY(-1px);
}


/* Active item */

.bhfb-component-primary_menu
ul.menu > li.current-menu-item > a,
.bhfb-component-primary_menu
ul.menu > li.current-menu-parent > a {
    background: #fff;

    color: var(--wl-purple);
}


/* ========================================
   DROPDOWN MENU
======================================== */

.bhfb-component-primary_menu .sub-menu {
    padding: 10px;

    background: #fff;

    border: 1px solid var(--wl-border);
    border-radius: 16px;

    box-shadow: var(--wl-shadow);
}

.bhfb-component-primary_menu .sub-menu li a {
    padding: 10px 14px;

    border-radius: 10px;
}

.bhfb-component-primary_menu .sub-menu li a:hover {
    background: var(--wl-bg-purple);

    color: var(--wl-purple);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

    .bhfb-main_header_row .bhfb-row {
        min-height: 72px;
    }

    .bhfb-component-site_identity img {
        max-width: 160px;
        max-height: 50px;
    }

    .wl-search-wrap {
        max-width: 520px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .bhfb-main_header_row .bhfb-row {
        min-height: 65px;
    }

    .bhfb-component-site_identity img {
        max-width: 135px;
        max-height: 45px;
    }

    .wl-header-search .search-field {
        height: 46px;

        padding-left: 16px;
        padding-right: 50px;

        font-size: 14px;
    }

    .wl-header-search button {
        width: 36px;
        height: 36px;
    }

    .bhfb-below_header_row {
        display: none;
    }

    .wl-search-results {
        left: 0;
        right: 0;

        width: 100%;
    }

}
/* ========================================
   HEADER FINAL POLISH
======================================== */


/* Обмежуємо ширину контенту шапки */

.bhfb-main_header_row .bhfb-row,
.bhfb-below_header_row .bhfb-row {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* Основна шапка */

.bhfb-main_header_row {
    position: relative;
    z-index: 1000;

    background: #fff;
}

.bhfb-main_header_row .bhfb-row {
    min-height: 86px;
}


/* Центральний блок пошуку */

#wl-header-search {
    width: 100%;
}

.wl-search-wrap {
    width: 100%;
    max-width: 720px;
}


/* Поле */

.wl-header-search .search-field {
    height: 54px;

    padding-left: 22px;
    padding-right: 64px;

    background: #faf8ff;

    border: 2px solid #eee8fa;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 500;
}


/* Placeholder */

.wl-header-search .search-field::placeholder {
    color: #928ca0;
}


/* Focus */

.wl-header-search .search-field:focus {
    background: #fff;

    border-color: var(--wl-purple);

    box-shadow:
        0 0 0 4px rgba(123, 76, 226, .10);
}


/* Search button */

.wl-header-search button {
    right: 7px;

    width: 40px;
    height: 40px;

    color: #fff;

    background: var(--wl-purple);

    box-shadow:
        0 4px 12px rgba(123, 76, 226, .22);
}

.wl-header-search button svg {
    display: block;
}

.wl-header-search button:hover {
    background: var(--wl-purple-dark);

    box-shadow:
        0 6px 16px rgba(123, 76, 226, .30);
}


/* Woo icons */

.bhfb-component-woocommerce_icons {
    gap: 18px;
}

.bhfb-component-woocommerce_icons a {
    color: var(--wl-text);
}

.bhfb-component-woocommerce_icons a:hover {
    color: var(--wl-purple);
}


/* Нижня навігація */

.bhfb-below_header_row {
    background:
        linear-gradient(
            90deg,
            var(--wl-purple-dark),
            var(--wl-purple)
        );
}

.bhfb-below_header_row .bhfb-row {
    min-height: 52px;
}


/* Меню */

.bhfb-component-primary_menu ul.menu {
    gap: 4px;
}

.bhfb-component-primary_menu ul.menu > li > a {
    padding: 9px 17px;

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: .1px;

    border-radius: 999px;
}

.bhfb-component-primary_menu ul.menu > li > a:hover {
    background: rgba(255,255,255,.16);
}


/* Активний пункт */

.bhfb-component-primary_menu ul.menu > li.current-menu-item > a,
.bhfb-component-primary_menu ul.menu > li.current-menu-parent > a {
    background: #fff;
    color: var(--wl-purple-dark);
}


/* Sticky */

.bhfb-sticky-header,
.sticky-header-active .bhfb {
    box-shadow:
        0 8px 30px rgba(45, 30, 75, .10);
}


/* Dropdown search трохи виразніше */

.wl-search-results {
    margin-top: 4px;

    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(40, 25, 65, .18);
}


/* TABLET */

@media (max-width: 1024px) {

    .bhfb-main_header_row .bhfb-row,
    .bhfb-below_header_row .bhfb-row {
        padding-left: 18px;
        padding-right: 18px;
    }

    .wl-search-wrap {
        max-width: 520px;
    }

}


/* MOBILE */

@media (max-width: 767px) {

    .bhfb-main_header_row .bhfb-row {
        min-height: 68px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .wl-header-search .search-field {
        height: 46px;

        padding-left: 16px;
        padding-right: 52px;

        font-size: 14px;
    }

    .wl-header-search button {
        width: 34px;
        height: 34px;

        right: 6px;
    }

}

/* ========================================
   HEADER ACCOUNT + CART
======================================== */

.bhfb-component-woocommerce_icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}


/* Account / Cart buttons */

.bhfb-component-woocommerce_icons > *,
.bhfb-component-woocommerce_icons a {
    position: relative;
}

.bhfb-component-woocommerce_icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;

    color: var(--wl-text);

    background: var(--wl-bg-soft);

    border: 1px solid var(--wl-border);
    border-radius: 50%;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.bhfb-component-woocommerce_icons a:hover {
    color: #fff;

    background: var(--wl-purple);
    border-color: var(--wl-purple);

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(123, 76, 226, .20);
}


/* SVG icons */

.bhfb-component-woocommerce_icons svg {
    width: 21px;
    height: 21px;
}


/* Cart quantity badge */

.bhfb-component-woocommerce_icons .cart-count,
.bhfb-component-woocommerce_icons [class*="cart-count"],
.bhfb-component-woocommerce_icons .count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    background: var(--wl-pink);
    color: #fff;

    border: 2px solid #fff;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}


/* Mobile */

@media (max-width: 767px) {

    .bhfb-component-woocommerce_icons {
        gap: 5px;
    }

    .bhfb-component-woocommerce_icons a {
        width: 40px;
        height: 40px;
    }

    .bhfb-component-woocommerce_icons svg {
        width: 19px;
        height: 19px;
    }

}
