.bookplus-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid #e7e9ee;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    backdrop-filter: saturate(1.3) blur(14px);
}

.bookplus-header-main {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(280px, 720px) minmax(150px, 220px);
    gap: 22px;
    align-items: center;
    justify-content: center;
    width: min(100% - 32px, 1520px);
    min-height: 78px;
    margin: 0 auto;
}

.bookplus-header-logo { min-width: 0; }
.bookplus-header-logo a { justify-content: flex-start; }
.bookplus-header-logo img {
    width: auto;
    max-width: 198px;
    max-height: 52px;
    object-fit: contain;
}

.bookplus-header-search { min-width: 0; }
.bookplus-search { position: relative; width: 100%; }

.bookplus-header-mobile-menu {
    display: none;
}

.bookplus-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    padding: 6px 7px 6px 16px;
}

.bookplus-search-form:focus-within {
    border-color: var(--bp-brand-primary);
    box-shadow: 0 0 0 3px rgba(34, 89, 143, .14), 0 10px 26px rgba(15, 23, 42, .1);
}

.bookplus-search-icon {
    display: grid;
    place-items: center;
    color: #5c6470;
}

.bookplus-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #202124;
    font-size: 15px;
    font-weight: 650;
    outline: 0;
}

.bookplus-search-input::placeholder {
    color: #717985;
    font-weight: 600;
}

.bookplus-search-kbd {
    display: none;
    border: 1px solid #d8dde5;
    border-radius: 7px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 7px;
}

.bookplus-search-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bp-brand-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    padding: 0 17px;
}

.bookplus-search-button:hover {
    background: var(--bp-brand-primary-dark);
    color: #fff;
}

.bookplus-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
    padding: 8px;
}

.bookplus-search-suggestion {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-radius: 10px;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
}

.bookplus-search-suggestion:hover { background: #f7f7f8; }

.bookplus-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bookplus-header-actions .btn,
.bookplus-header-icon,
.bookplus-header-mobile-menu .btn {
    display: inline-grid;
    position: relative;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    padding: 0;
}

.bookplus-header-actions .btn:hover,
.bookplus-header-icon:hover,
.bookplus-header-mobile-menu .btn:hover {
    border-color: #e2e6ec;
    background: #f6f7f9;
    color: var(--bp-brand-primary);
}

.bookplus-voucher-icon {
    color: var(--bp-brand-primary);
}

.bookplus-voucher-icon:hover {
    border-color: var(--bp-brand-soft-strong);
    background: var(--bp-brand-soft);
}

.bookplus-cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 18px;
    border-radius: 999px;
    background: var(--bp-brand-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 18px;
    text-align: center;
    padding: 0 5px;
}

.bookplus-mobile-search-toggle {
    display: none;
}

.bookplus-header-menu-row {
    background: #fff;
}

.bookplus-header-menu-row > .navigation {
    display: flex;
    width: min(100% - 32px, 1204px);
    margin: 0 auto;
}

.bookplus-header-menu-row .lg\:px-8 {
    padding-left: 0;
    padding-right: 0;
}

.bookplus-header-menu-row ul {
    gap: 26px;
    padding-top: 0;
    padding-bottom: 0;
}

.bookplus-header-menu-row a.level-0 {
    color: #2f343b;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 0;
}

.bookplus-header-menu-row a.level-0:hover,
.bookplus-header-menu-row a.level-0[aria-current="page"] {
    color: var(--bp-brand-primary);
}

@media (min-width: 1024px) {
    .bookplus-search-kbd { display: inline-flex; }
}

@media (max-width: 1023px) {
    .bookplus-header-main {
        display: flex;
        width: min(100% - 24px, 1520px);
        min-height: 68px;
        gap: 12px;
    }

    .bookplus-header-mobile-menu {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        align-self: center;
    }

    .bookplus-header-logo { flex: 1 1 auto; }
    .bookplus-header-logo img { max-width: 168px; max-height: 44px; }
    .bookplus-header-search { display: none; }
    .bookplus-mobile-search-toggle { display: inline-grid; }

    .bookplus-header-search.bookplus-header-search-open {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        z-index: 45;
        border-top: 1px solid #eef0f3;
        border-bottom: 1px solid #e5e7eb;
        background: #fff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
        padding: 12px;
    }

    .bookplus-header-search.bookplus-header-search-open .bookplus-search {
        width: min(100%, 680px);
        margin: 0 auto;
    }

    .bookplus-header-menu-row { display: none; }
}

@media (max-width: 640px) {
    .bookplus-header-actions { gap: 2px; }
    .bookplus-header-actions .btn,
    .bookplus-header-icon,
    .bookplus-header-mobile-menu .btn {
        width: 34px;
        height: 34px;
    }

    .bookplus-header-logo img { max-width: 142px; }

    .bookplus-search-form {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .bookplus-search-kbd { display: none; }

    .bookplus-search-button {
        min-width: 40px;
        padding: 0 12px;
    }
}
