.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;
    position: relative;
    z-index: 56;
    grid-template-columns: auto minmax(0, 1fr) auto 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-clear {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #8b93a1;
}

.bookplus-search-clear:hover {
    background: #f3f5f8;
    color: #1f2937;
}

.bookplus-search-backdrop {
    position: fixed;
    top: 136px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    background: rgba(15, 23, 42, .52);
}

.bookplus-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 55;
    overflow: hidden;
    border: 1px solid rgba(0, 68, 151, .22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .24);
    color: #1f2330;
}

.bookplus-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 8px;
}

.bookplus-search-panel-head strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #202124;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.bookplus-search-trending-icon {
    display: inline-block;
    flex: 0 0 auto;
    color: var(--bp-brand-primary);
    stroke-width: 2.4;
}

.bookplus-search-panel-head button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #9aa1ad;
}

.bookplus-search-panel-head button:hover {
    background: var(--bp-brand-soft);
    color: var(--bp-brand-primary);
}

.bookplus-search-view-all {
    display: flex;
    width: calc(100% - 36px);
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 4px 18px 12px;
    border: 1px solid rgba(34, 89, 143, .38);
    border-radius: 7px;
    color: var(--bp-brand-primary);
    font-size: 14px;
    font-weight: 800;
}

.bookplus-search-view-all:hover {
    border-color: var(--bp-brand-primary);
    background: var(--bp-brand-soft);
}

.bookplus-search-results {
    display: grid;
    max-height: min(36vh, 300px);
    overflow-y: auto;
    padding: 0 18px 18px;
    scrollbar-color: #9ca3af transparent;
    scrollbar-width: thin;
}

.bookplus-search-result {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    overflow: hidden;
    min-height: 78px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    color: #202124;
    text-align: left;
}

.bookplus-search-result + .bookplus-search-result {
    margin-top: 10px;
}

.bookplus-search-result:hover {
    border-color: rgba(34, 89, 143, .28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.bookplus-search-result-image {
    display: block;
    min-height: 78px;
    background: #eef2f7;
}

.bookplus-search-result-image img {
    width: 100%;
    height: 100%;
    min-height: 78px;
    object-fit: cover;
}

.bookplus-search-result-copy {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 14px;
}

.bookplus-search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.bookplus-search-result-meta span + span::before {
    content: '•';
    margin-right: 6px;
    color: #ff7a1a;
}

.bookplus-search-result-meta span:last-child {
    color: #ff7a1a;
}

.bookplus-search-result-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #202124;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bookplus-search-result-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 900;
}

.bookplus-search-result-price del {
    color: #8c94a1;
    font-size: 13px;
    font-weight: 750;
}

.bookplus-search-result-price em {
    border-radius: 999px;
    background: #e9f7ef;
    color: #0f7a3b;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    padding: 4px 7px;
}

.bookplus-search-state {
    border: 1px dashed #d8dde5;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
    padding: 18px;
    text-align: center;
}

.bookplus-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    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-site-header {
        position: sticky;
        top: 0;
        z-index: 90;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
    }

    .bookplus-header-main {
        width: 100%;
        min-height: 58px;
        padding: 0 16px;
    }

    .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 auto;
    }

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

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

/* Headout-inspired mobile category drawer */
.bookplus-mobile-menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    padding: 0;
}

.bookplus-mobile-menu-toggle:hover {
    background: #f6f7f9;
    color: var(--bp-brand-primary);
}

.bookplus-mobile-drawer {
    width: min(100vw, 360px);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto 0 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #1f2329;
    box-shadow: 16px 0 34px rgba(15, 23, 42, .16);
    padding: 0;
}

.bookplus-mobile-drawer[open] {
    display: flex;
    flex-direction: column;
}

.bookplus-mobile-drawer::backdrop {
    background: rgba(15, 23, 42, .45);
}

.bookplus-mobile-drawer-header {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.bookplus-mobile-drawer-topbar {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
}

.bookplus-mobile-drawer-logo {
    min-width: 0;
}

.bookplus-mobile-drawer-logo img {
    width: auto;
    max-width: 170px;
    max-height: 40px;
    object-fit: contain;
}

.bookplus-mobile-drawer-close {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #151922;
    padding: 0;
}

.bookplus-mobile-drawer-close:hover {
    background: var(--bp-brand-soft);
    color: var(--bp-brand-primary);
}

.bookplus-mobile-drawer-body {
    position: relative;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

.bookplus-mobile-drawer-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bookplus-mobile-menu-item {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    color: #20242a;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    outline-offset: -3px;
    padding: 0 16px;
    text-align: left;
}

.bookplus-mobile-menu-item:hover,
.bookplus-mobile-menu-item[aria-current="page"] {
    background: #f8fafc;
    color: var(--bp-brand-primary);
}

.bookplus-mobile-menu-chevron {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: #343941;
}

.bookplus-mobile-menu-item:hover .bookplus-mobile-menu-chevron,
.bookplus-mobile-menu-item[aria-current="page"] .bookplus-mobile-menu-chevron {
    color: var(--bp-brand-primary);
}

.bookplus-mobile-submenu-panel {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 0;
}

.bookplus-mobile-menu-back {
    justify-content: flex-start;
    background: #f8fafc;
    color: var(--bp-brand-primary);
}

@media (max-width: 380px) {
    .bookplus-mobile-drawer {
        width: 100vw;
    }

    .bookplus-mobile-drawer-topbar {
        gap: 8px;
        padding: 0 12px;
    }

    .bookplus-mobile-drawer-logo img {
        max-width: 150px;
    }

    .bookplus-mobile-drawer-close {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    .bookplus-search-backdrop {
        top: 58px;
        z-index: 85;
        background: rgba(15, 23, 42, .38);
    }

    .bookplus-search-panel {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 74px;
        z-index: 95;
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
        border-radius: 12px;
    }

    .bookplus-search-panel-head {
        padding: 13px 14px 8px;
    }

    .bookplus-search-panel-head strong {
        font-size: 16px;
    }

    .bookplus-search-view-all {
        width: calc(100% - 28px);
        margin: 4px 14px 10px;
    }

    .bookplus-search-results {
        max-height: none;
        padding: 0 14px 14px;
    }

    .bookplus-search-result {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 92px;
    }

    .bookplus-search-result-image,
    .bookplus-search-result-image img {
        min-height: 92px;
    }

    .bookplus-search-result-copy {
        gap: 6px;
        padding: 10px;
    }

    .bookplus-search-result-meta {
        font-size: 11px;
    }

    .bookplus-search-result-copy strong {
        font-size: 13px;
    }

    .bookplus-search-result-price {
        font-size: 13px;
    }
}
