
/* ============================================================
   HIBO HOME GLASS HEADER 1.0.0
   Standalone homepage header. It does NOT modify HIBO Slider.
   ============================================================ */

body#index.hibo-home-header-active #header {
    display: none !important;
}

body#index.hibo-home-header-active #wrapper,
body#index.hibo-home-header-active #content-wrapper,
body#index.hibo-home-header-active #main,
body#index.hibo-home-header-active main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hibo-home-glass-header,
.hibo-home-glass-header * {
    box-sizing: border-box;
}

.hibo-home-glass-header {
    --hibo-home-accent: #79d84b;

    visibility: hidden;
    opacity: 0;

    position: absolute;
    top: 18px;
    right: 0;
    left: 0;
    z-index: 100500;
    width: 100%;
    padding: 0 24px;
    color: #fff;
    pointer-events: none;
}

.hibo-home-glass-header__inner {
    width: min(1540px, 100%);
    margin: 0 auto;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 18px;
    background: rgba(29, 43, 38, .24);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .12),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(1px) saturate(115%);
    -webkit-backdrop-filter: blur(1px) saturate(115%);
    pointer-events: auto;
}

.hibo-home-glass-header__top {
    display: grid;
    grid-template-columns:
        minmax(210px, 290px)
        minmax(360px, 690px)
        minmax(210px, 300px);
    gap: clamp(26px, 4vw, 70px);
    min-height: 112px;
    padding: 16px 52px;
    align-items: center;
}

.hibo-home-glass-header__logo {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-decoration: none;
}

.hibo-home-glass-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 270px;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 9px rgba(0, 0, 0, .18));
}

.hibo-home-glass-header__logo span {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.hibo-home-glass-header__search {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    background: rgba(255, 255, 255, .80);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .30),
        0 8px 28px rgba(0, 0, 0, .08);
}

.hibo-home-glass-header__search:focus-within {
    border-color: #fff;
    background: rgba(255, 255, 255, .92);
}

.hibo-home-glass-header__search svg {
    position: absolute;
    left: 21px;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #40474a;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.hibo-home-glass-header__search input {
    width: 100%;
    min-height: 54px;
    padding: 10px 22px 10px 60px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #343a40;
    font-size: 15px;
}

.hibo-home-glass-header__search input::placeholder {
    color: #959b9d;
    opacity: 1;
}

.hibo-home-glass-header__hotline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    color: #fff;
    text-decoration: none;
}

.hibo-home-glass-header__hotline:hover,
.hibo-home-glass-header__hotline:focus {
    color: #fff;
    text-decoration: none;
}

.hibo-home-glass-header__hotline-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .10);
}

.hibo-home-glass-header__hotline-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--hibo-home-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.hibo-home-glass-header__hotline-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.12;
}

.hibo-home-glass-header__hotline-copy small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .90);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.hibo-home-glass-header__hotline-copy strong {
    color: #fffb00;
    font-size: clamp(20px, 1.55vw, 27px);
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 1px 1px 1px #124019 !important;
}

.hibo-home-glass-header__hotline-copy em {
    margin-top: 4px;
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

/* ------------------ ROW 2 ------------------ */

.hibo-home-glass-header__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
    align-items: center;
    padding: 0 52px;
    border-top: 1px solid rgba(255, 255, 255, .20);
}

.hibo-home-glass-header__menu {
    min-width: 0;
}

/*
 * IMPORTANT:
 * The markup below is rendered by the existing `hibo_menu` module itself.
 * We only reskin/reposition it inside the glass header.
 */
.hibo-home-glass-header__menu > .hibo-menu {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .hibo-home-glass-header__menu .hibo-menu-toggle,
    .hibo-home-glass-header__menu .hibo-menu-header-mobile {
        display: none !important;
    }

    .hibo-home-glass-header__menu .hibo-menu-overlay {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
    }

    .hibo-home-glass-header__menu .hibo-menu-root {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        list-style: none !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item {
        position: relative;
        display: flex;
        align-items: center;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item.is-mega-menu {
        position: static !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item
    > .hibo-menu-link-wrap > a {
        position: relative;
        display: block;
        padding: 21px clamp(10px, 1vw, 18px) !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 750 !important;
        line-height: 22px !important;
        text-decoration: none !important;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 10) !important;
        white-space: nowrap !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:first-child
    > .hibo-menu-link-wrap > a {
        padding-left: 0 !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item
    > .hibo-menu-link-wrap > a::after {
        position: absolute;
        right: 12px;
        bottom: 8px;
        left: 12px;
        height: 3px;
        border-radius: 999px;
        background: var(--hibo-home-accent);
        content: "";
        opacity: 0;
        transform: scaleX(.4);
        transition:
            opacity .18s ease,
            transform .18s ease;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:first-child
    > .hibo-menu-link-wrap > a::after {
        left: 0;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:hover
    > .hibo-menu-link-wrap > a,
    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:focus-within
    > .hibo-menu-link-wrap > a {
        color: #ffffff !important;
        text-shadow: 0 1px 9px rgb(12 75 1) !important;
        font-size: 23px !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:hover
    > .hibo-menu-link-wrap > a::after,
    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item:focus-within
    > .hibo-menu-link-wrap > a::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .hibo-home-glass-header__menu .hibo-sub-toggle {
        display: none !important;
    }

    /*
     * Keep original HIBO dropdown/mega menu functionality,
     * but use an opaque white panel for readability.
     */
    .hibo-home-glass-header__menu .hibo-mega-panel {
        z-index: 100520 !important;
        padding-top: 12px;
    }

    .hibo-home-glass-header__menu
    .hibo-mega-panel > .hibo-mega-container {
        overflow: hidden;        
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 18px 48px rgba(0, 0, 0, .18) !important;
        color: #2b302e !important;
    }

    .hibo-home-glass-header__menu
    .hibo-mega-panel a {
        color: #303638 !important;
        text-shadow: none !important;
    }
}

/* ------------------ ACTIONS ------------------ */

.hibo-home-glass-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-left: 28px;
}

.hibo-home-header-action {
    position: relative;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    transition:
        background .18s ease,
        transform .18s ease;
}

.hibo-home-header-action:hover,
.hibo-home-header-action:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.hibo-home-header-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.hibo-home-header-action__badge {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #205d28;
    border-radius: 999px;
    background: #f8f8f8;
    color: #205d28;
    font-size: 10px;
    font-weight: 900;
}

.hibo-home-glass-header__mobile-toggle,
.hibo-home-nav__mobile-head {
    display: none;
}

/* ------------------ LAPTOP ------------------ */

@media (max-width: 1199px) and (min-width: 768px) {
    .hibo-home-glass-header {
        padding: 0 14px;
    }

    .hibo-home-glass-header__top {
        grid-template-columns:
            minmax(170px, 210px)
            minmax(280px, 1fr)
            minmax(180px, 225px);
        gap: 22px;
        min-height: 96px;
        padding: 12px 28px;
    }

    .hibo-home-glass-header__logo img {
        max-width: 200px;
        max-height: 62px;
    }

    .hibo-home-glass-header__bottom {
        min-height: 58px;
        padding: 0 28px;
    }

    .hibo-home-nav__link-wrap > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }

    .hibo-home-glass-header__actions {
        gap: 8px;
        padding-left: 14px;
    }

    .hibo-home-header-action {
        width: 38px;
        height: 38px;
    }
}

/* ------------------ MOBILE ------------------ */

@media (max-width: 767px) {
    .hibo-home-glass-header {
        top: 8px;
        padding: 0 8px;
    }

    .hibo-home-glass-header__inner {
        border-radius: 14px;
    }

    .hibo-home-glass-header__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 64px;
        padding: 9px 12px;
    }

    .hibo-home-glass-header__logo img {
        max-width: 170px;
        max-height: 48px;
    }

    .hibo-home-glass-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 44px;
    }

    .hibo-home-glass-header__search input {
        min-height: 42px;
        padding-left: 48px;
        font-size: 14px;
    }

    .hibo-home-glass-header__search svg {
        left: 16px;
        width: 21px;
        height: 21px;
    }

    .hibo-home-glass-header__hotline {
        gap: 8px;
    }

    .hibo-home-glass-header__hotline-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-width: 3px;
    }

    .hibo-home-glass-header__hotline-icon svg {
        width: 21px;
        height: 21px;
    }

    .hibo-home-glass-header__hotline-copy small,
    .hibo-home-glass-header__hotline-copy em {
        display: none;
    }

    .hibo-home-glass-header__hotline-copy strong {
        font-size: 15px;
    }

    .hibo-home-glass-header__bottom {
        display: flex;
        min-height: 54px;
        padding: 0 12px;
        align-items: center;
        justify-content: space-between;
    }

    .hibo-home-glass-header__menu {
        flex: 0 0 auto;
    }

    /*
     * Original HIBO Menu already contains hamburger + mobile drawer.
     * Keep that exact behavior.
     */
    .hibo-home-glass-header__menu > .hibo-menu {
        position: static !important;
        width: auto !important;
    }

    .hibo-home-glass-header__menu .hibo-menu-toggle {
        position: static !important;
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, .28) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, .08) !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-toggle .hamburger-lines span {
        background: #fff !important;
    }

    .hibo-home-glass-header__menu .hibo-menu-overlay {
        background: #fff !important;
        color: #232323 !important;
    }

    .hibo-home-glass-header__menu
    .hibo-menu-overlay a {
        color: #232323 !important;
        text-shadow: none !important;
    }

    .hibo-home-glass-header__actions {
        gap: 8px;
        padding-left: 0;
    }

    .hibo-home-header-action {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hibo-home-glass-header__menu .hibo-mega-panel,
    .hibo-home-header-action,
    .hibo-home-glass-header__menu
    .hibo-menu-root > .hibo-menu-item
    > .hibo-menu-link-wrap > a::after {
        transition: none !important;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hibo-home-glass-header__inner {
        background: rgba(26, 46, 37, .78);
    }
}

/* ============================================================
   MOBILE MENU FIX v1.0.2
   The original HIBO Menu uses `left:-100%` for its drawer.
   Inside the standalone glass header this can leave a visible strip.
   Force a true off-canvas transform instead.
   ============================================================ */
@media (max-width: 767px) {
    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-toggle {
        position: static !important;
        z-index: 1 !important;
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, .34) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, .08) !important;
        box-shadow: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .hibo-menu-toggle .hamburger-lines {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .hibo-menu-toggle .hamburger-lines span {
        display: block !important;
        width: 21px !important;
        height: 2px !important;
        border-radius: 99px !important;
        background: #fff !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-toggle .menu-txt {
        display: none !important;
    }

    /*
     * Critical fix:
     * left:-100% is replaced with translateX(-110%).
     * visibility/pointer-events guarantee nothing leaks/clicks while closed.
     */
    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 100700 !important;
        display: flex !important;
        visibility: hidden !important;
        width: min(88vw, 380px) !important;
        max-width: 380px !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: 18px 0 48px rgba(0, 0, 0, .24) !important;
        color: #232323 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate3d(-110%, 0, 0) !important;
        transition:
            transform .26s ease,
            opacity .18s ease,
            visibility 0s linear .26s !important;
        -webkit-overflow-scrolling: touch;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .hibo-menu.is-open .hibo-menu-overlay {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        transition:
            transform .26s ease,
            opacity .18s ease,
            visibility 0s linear 0s !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-header-mobile {
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        display: flex !important;
        min-height: 62px !important;
        padding: 0 18px !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #e9e9e9 !important;
        background: #fff !important;
        color: #222 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-header-mobile span {
        color: #222 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-close {
        display: grid !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        place-items: center !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #f2f3f2 !important;
        color: #333 !important;
        font-size: 29px !important;
        line-height: 1 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-root {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        list-style: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-item {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-link-wrap {
        display: flex !important;
        width: 100% !important;
        min-height: 52px !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #ededed !important;
        background: #fff !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-link-wrap > a {
        display: flex !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        padding: 14px 18px !important;
        align-items: center !important;
        color: #252a28 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
        text-shadow: none !important;
        white-space: normal !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-sub-toggle {
        display: grid !important;
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px !important;
        margin: 0 !important;
        padding: 0 !important;
        place-items: center !important;
        border: 0 !important;
        border-left: 1px solid #ededed !important;
        background: #fafafa !important;
        color: #333 !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-mega-panel {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #f7f8f7 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .level-1.is-open > .hibo-mega-panel {
        display: block !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-mega-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #f7f8f7 !important;
        box-shadow: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-submenu {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .hibo-submenu .level-2 > .hibo-menu-link-wrap > a {
        padding-left: 32px !important;
        font-size: 14px !important;
        font-weight: 550 !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-level-3-menu {
        display: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f1f3f1 !important;
        list-style: none !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .level-2.is-open > .hibo-level-3-menu {
        display: block !important;
    }

    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu
    .hibo-level-3-menu .level-3 > .hibo-menu-link-wrap > a {
        padding-left: 48px !important;
        color: #555 !important;
        font-size: 14px !important;
    }

    /*
     * Prevent any old mobile menu pseudo/content from peeking outside
     * the glass header while the drawer is closed.
     */
    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu {
        overflow: visible !important;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    body#index.hibo-home-header-active
    .hibo-home-glass-header__menu .hibo-menu-overlay {
        transition: none !important;
    }
}

/* ============================================================
   REAL PRESTASHOP QUICK SEARCH v1.0.3
   The actual #search_widget from ps_searchbar is moved into this slot.
   This preserves autocomplete / quick search.
   ============================================================ */

.hibo-home-glass-header__search-slot {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.hibo-home-glass-header__search-slot > #search_widget {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
}

.hibo-home-glass-header__search-slot > #search_widget form {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 56px !important;
    align-items: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .80) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .30),
        0 8px 28px rgba(0, 0, 0, .08) !important;
}

.hibo-home-glass-header__search-slot > #search_widget form:focus-within {
    border-color: #fff !important;
    background: rgba(255, 255, 255, .94) !important;
}

.hibo-home-glass-header__search-slot
> #search_widget input[type="text"] {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 10px 50px 10px 60px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #343a40 !important;
    font-size: 15px !important;
}

.hibo-home-glass-header__search-slot
> #search_widget input[type="text"]::placeholder {
    color: #959b9d !important;
    opacity: 1 !important;
}

.hibo-home-glass-header__search-slot
> #search_widget i.search {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #40474a !important;
    transform: translateY(-50%) !important;
}

.hibo-home-glass-header__search-slot
> #search_widget i.clear {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #656b6d !important;
    transform: translateY(-50%) !important;
}

/* Autocomplete must stay above the glass header and slider. */
body#index .ui-autocomplete.searchbar-autocomplete {
    z-index: 100900 !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .09) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .20) !important;
}

body#index .ui-autocomplete.searchbar-autocomplete li,
body#index .ui-autocomplete.searchbar-autocomplete a {
    color: #222 !important;
}

/*
 * Hide the fallback after the real ps_searchbar widget has been moved.
 */
.hibo-home-glass-header__search-slot.is-using-real-search
.hibo-home-glass-header__search--fallback {
    display: none !important;
}

@media (max-width: 767px) {
    .hibo-home-glass-header__search-slot {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .hibo-home-glass-header__search-slot > #search_widget form {
        min-height: 44px !important;
    }

    .hibo-home-glass-header__search-slot
    > #search_widget input[type="text"] {
        min-height: 42px !important;
        padding-left: 48px !important;
        font-size: 14px !important;
    }

    .hibo-home-glass-header__search-slot
    > #search_widget i.search {
        left: 15px !important;
    }
}

/* ============================================================
   HUMMINGBIRD NATIVE SEARCH BRIDGE v1.0.8

   Verified from Adler HTML:
   /san-pham => one #ps_searchbar (Quick Search works)
   homepage  => two #ps_searchbar (visible one is not initialized)

   Hummingbird initSearchbar() uses document.querySelector(), so it binds
   only the first instance. This version renders no second search markup.
   ============================================================ */

body#index.hibo-home-header-active .hibo-home-glass-header {
    visibility: visible;
    opacity: 1;
}

.hibo-home-glass-header__search-slot {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.hibo-home-glass-header__search-slot > #ps_searchbar {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__form {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 56px !important;
    align-items: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .84) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .30),
        0 8px 28px rgba(0, 0, 0, .08) !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__form:focus-within {
    border-color: #fff !important;
    background: rgba(255, 255, 255, .96) !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__input {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 10px 50px 10px 60px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #343a40 !important;
    font-size: 15px !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__input::placeholder {
    color: #959b9d !important;
    opacity: 1 !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__magnifier {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #40474a !important;
    transform: translateY(-50%) !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__clear {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    z-index: 3 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 100950 !important;
    width: 100% !important;
    max-height: min(460px, 60vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(0, 0, 0, .09) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 20px 52px rgba(0, 0, 0, .24) !important;
    color: #222 !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__results {
    width: 100%;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__result-link {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 66px !important;
    padding: 7px 10px !important;
    align-items: center !important;
    color: #262c29 !important;
    text-decoration: none !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__result-link:hover,
.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__result-link:focus {
    background: #f1f6f2 !important;
    color: #167d3d !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__result-image {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
}

.hibo-home-glass-header__search-slot
> #ps_searchbar .ps-searchbar__result-name {
    margin: 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .hibo-home-glass-header__search-slot {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .hibo-home-glass-header__search-slot
    > #ps_searchbar .ps-searchbar__form {
        min-height: 44px !important;
    }

    .hibo-home-glass-header__search-slot
    > #ps_searchbar .ps-searchbar__input {
        min-height: 42px !important;
        padding-left: 48px !important;
        font-size: 14px !important;
    }

    .hibo-home-glass-header__search-slot
    > #ps_searchbar .ps-searchbar__magnifier {
        left: 15px !important;
    }

    .hibo-home-glass-header__search-slot
    > #ps_searchbar .ps-searchbar__dropdown {
        top: calc(100% + 6px) !important;
        max-height: min(390px, 55vh) !important;
        border-radius: 12px !important;
    }
}
