/* ============================================================
   BOOKS HOMEPAGE MOBILE v2.0 — Oak Street Books
   移动端首页样式

   【作用范围】
   移动端优先设计，桌面端通过 @media (max-width:768px) 限定。
   配合 books-homepage-mobile.php 插件使用。

   【样式覆盖的组件】
   - 自定义头部栏（替换桌面版header）
   - 折扣码轮播条（动态移动到正确位置）
   - 分类快捷入口网格（8个分类图标卡片）
   - "Featured Picks"标签切换区域（自有商品展示）
   - 汉堡菜单（遮罩+抽屉+分类手风琴+快捷链接）
   - 底部导航栏（5个固定按钮）
   - 搜索弹窗
   - Mega菜单样式
   - 桌面版组件隐藏覆盖
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --prb-accent: #0f9d8f;
    --prb-green: #0b7a70;
    --prb-red: #0b5f5a;
    --prb-dark: #1a1a2e;
    --prb-gray: #666;
    --prb-light-bg: #f8f9fa;
    --prb-radius: 12px;
    --prb-bottom-bar-height: 60px;
}

/* ==========================================================================
   CUSTOM MOBILE HEADER — logo + actions + search bar
   ========================================================================== */
.prb-mob-header {
    display: none; /* shown by JS on mobile */
}

@media (max-width: 768px) {
    .prb-mob-header {
        background: #fff;
    }

    .prb-mob-header__row {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        gap: 12px;
        position: relative;
    }

    .prb-mob-header__logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .prb-mob-header__logo img {
        height: 36px;
        width: auto;
    }

    .prb-mob-header__actions {
        position: absolute;
        right: 16px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .prb-mob-header__icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        position: relative;
        border-radius: 50%;
        text-decoration: none;
        transition: background 0.2s;
    }
    .prb-mob-header__icon:hover {
        background: var(--prb-light-bg);
    }

    .prb-mob-header__badge {
        position: absolute;
        top: 2px;
        right: 0;
        min-width: 16px;
        height: 16px;
        background: var(--prb-red);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    /* Search Bar */
    .prb-mob-header__search {
        padding: 0 16px 10px;
    }

    .prb-mob-header__search-form {
        display: flex;
        align-items: center;
        background: #f5f5f5;
        border: 1.5px solid #e5e5e5;
        border-radius: 30px;
        overflow: hidden;
        transition: border-color 0.2s;
    }

    .prb-mob-header__search-form:focus-within {
        border-color: var(--prb-accent);
        background: #fff;
    }

    .prb-mob-header__search-input {
        flex: 1;
        padding: 11px 0 11px 18px;
        border: none;
        background: transparent;
        font-size: 14px;
        outline: none;
        color: #333;
        font-family: inherit;
    }

    .prb-mob-header__search-input::placeholder {
        color: #999;
    }

    .prb-mob-header__search-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #999;
        flex-shrink: 0;
        cursor: pointer;
        transition: color 0.2s;
    }

    .prb-mob-header__search-form:focus-within .prb-mob-header__search-btn {
        color: var(--prb-accent);
    }
}

/* ==========================================================================
   HAMBURGER MENU DRAWER
   ========================================================================== */
.prb-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.prb-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.prb-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.prb-menu-drawer.is-open {
    transform: translateX(0);
}

.prb-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.prb-menu__header-logo img {
    height: 32px;
    width: auto;
}

.prb-menu__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.prb-menu__close:hover {
    background: #f5f5f5;
}

/* Quick Links — flex wrap pills */
.prb-menu__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.prb-menu__quick-link {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--prb-dark);
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s;
}
.prb-menu__quick-link:hover {
    background: var(--prb-accent);
}
.prb-menu__quick-link--hl {
    background: var(--prb-accent);
}

/* Category List */
.prb-menu__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.prb-menu__category {
    border-bottom: 1px solid #f5f5f5;
}

.prb-menu__cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--prb-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, background 0.2s;
}
.prb-menu__cat-header:hover {
    background: #fafafa;
}
.prb-menu__cat-header.is-active {
    color: var(--prb-accent);
}

.prb-menu__cat-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
    color: #bbb;
    flex-shrink: 0;
}
.prb-menu__cat-header.is-active .prb-menu__cat-chevron {
    transform: rotate(180deg);
    color: var(--prb-accent);
}

.prb-menu__subcats {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.prb-menu__subcats.is-open {
    max-height: 500px;
}

.prb-menu__subcat-link {
    display: block;
    padding: 9px 20px 9px 36px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.prb-menu__subcat-link:hover {
    color: var(--prb-accent);
    background: #faf8f7;
}

.prb-menu__single-link {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--prb-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s, background 0.2s;
}
.prb-menu__single-link:hover {
    color: var(--prb-accent);
    background: #fafafa;
}

/* Menu Footer */
.prb-menu__footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px calc(var(--prb-bottom-bar-height) + 14px);
    border-top: 1px solid #eee;
    background: #fafafa;
}

.prb-menu__footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #555;
    background: #f0f0f0;
    transition: background 0.2s, color 0.2s;
}
.prb-menu__footer-btn:hover {
    background: #e5e5e5;
    color: #333;
}
.prb-menu__footer-btn--home {
    background: #0b7a70;
    color: #fff;
}
.prb-menu__footer-btn--home:hover {
    background: #1a6f1a;
    color: #fff;
}
.prb-menu__footer-btn svg {
    flex-shrink: 0;
}

/* Desktop: hide drawer & overlay */
@media (min-width: 769px) {
    .prb-menu-overlay,
    .prb-menu-drawer {
        display: none !important;
    }
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.prb-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: stretch;
    height: var(--prb-bottom-bar-height);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
}

.prb-bottom-bar::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px) - 40px);
    left: 0;
    right: 0;
    height: calc(env(safe-area-inset-bottom, 0px) + 40px);
    background: #fff;
    z-index: -1;
}

.prb-bottom-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    gap: 2px;
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.prb-bottom-bar__item:hover,
.prb-bottom-bar__item.is-active {
    color: var(--prb-accent);
}

.prb-bottom-bar__item svg {
    width: 22px;
    height: 22px;
}

.prb-bottom-bar__badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    background: var(--prb-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (min-width: 769px) {
    .prb-bottom-bar {
        display: none !important;
    }
}

/* ==========================================================================
   SEARCH POPUP
   ========================================================================== */
.prb-search-popup {
    position: fixed;
    bottom: var(--prb-bottom-bar-height);
    left: 0;
    right: 0;
    z-index: 9997;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding: 10px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}
.prb-search-popup.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.prb-search-popup__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prb-search-popup__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f9f9f9;
    font-family: inherit;
    transition: border-color 0.2s;
}
.prb-search-popup__input:focus {
    border-color: var(--prb-accent);
    background: #fff;
}

.prb-search-popup__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}
.prb-search-popup__close:hover {
    border-color: var(--prb-accent);
    color: var(--prb-accent);
}

@media (min-width: 769px) {
    .prb-search-popup {
        display: none !important;
    }
}

/* ==========================================================================
   SLIDER DOTS (for banner sliders)
   ========================================================================== */
.prb-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.prb-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
    cursor: pointer;
}
.prb-slider-dot.is-active {
    width: 18px;
    border-radius: 3px;
    background: var(--prb-accent);
}

/* ==========================================================================
   MOBILE LAYOUT OVERRIDES (≤768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Body bottom padding for bottom bar --- */
    body.home {
        padding-bottom: calc(var(--prb-bottom-bar-height) + 8px) !important;
    }

    /* --- Header: hide desktop elements --- */
    .home .books-header {
        padding: 0 !important;
        margin: 0 !important;
    }
    .home .books-header__row {
        display: none !important;
    }
    .home .books-header__center {
        display: none !important;
    }
    .home .books-header__right {
        display: none !important;
    }
    .home .books-header__left {
        display: none !important;
    }
    .home .books-nav-bar {
        display: none !important;
    }

    /* --- Topbar: compact text --- */
    .home .books-topbar {
        font-size: 10px !important;
        padding: 6px 12px !important;
    }

    /* --- Banner / Poster area --- */
    .home .books-poster-area {
        margin: 0 !important;
        padding: 0 !important;
    }

    .home .books-poster-slider {
        border-radius: 0 !important;
    }

    .home .books-poster-slider__slide img {
        width: 100% !important;
        height: auto !important;
    }

    .home .books-main-banner {
        position: relative;
    }

    /* Big poster area */
    .home .books-bigposter-area {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- Featured Cards / Tabs --- */
    .home .books-home-cards-area {
        margin: 0 !important;
        padding: 0 !important;
    }

    .home .bhs-cards {
        padding: 16px !important;
    }

    .home .bhs-cards__tabs {
        display: flex !important;
        gap: 0 !important;
        margin-bottom: 12px !important;
        border-bottom: 2px solid #eee !important;
    }

    .home .bhs-cards__tab {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #999 !important;
        text-align: center !important;
        border-bottom: 2px solid transparent !important;
        margin-bottom: -2px !important;
        transition: all 0.2s !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        background: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        cursor: pointer !important;
    }
    .home .bhs-cards__tab.is-active {
        color: var(--prb-accent) !important;
        border-bottom-color: var(--prb-accent) !important;
    }

    .home .bhs-cards__panel {
        display: none !important;
    }
    .home .bhs-cards__panel.is-active {
        display: block !important;
    }

    .home .bhs-cards__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        overflow-x: visible !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: auto !important;
        scrollbar-width: none !important;
        padding: 0 !important;
    }
    .home .bhs-cards__grid::-webkit-scrollbar {
        display: none !important;
    }

    .home .bhs-cards__card {
        flex: none !important;
        width: 100% !important;
        scroll-snap-align: none !important;
        border-radius: var(--prb-radius) !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    .home .bhs-cards__card img {
        width: 100% !important;
        aspect-ratio: 1 !important;
        object-fit: cover !important;
    }

    /* --- Homepage sections container --- */
    .home .bhs-home {
        gap: 0 !important;
        padding: 0 !important;
    }

    /* --- Product sections --- */
    .home .bhs-section {
        padding: 20px 0 8px !important;
    }

    .home .bhs-section__header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 16px !important;
        margin-bottom: 12px !important;
    }

    .home .bhs-section__title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--prb-dark) !important;
        text-align: left !important;
    }

    .home .bhs-section__header a.bhs-see-all {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #666 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        transition: color 0.2s !important;
    }
    .home .bhs-section__header a.bhs-see-all:active {
        color: var(--prb-accent) !important;
    }
    .home .bhs-section__header a.bhs-see-all svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    /* Section title banner */
    .home .bhs-section__title-banner {
        padding: 0 16px !important;
        margin-bottom: 14px !important;
    }
    .home .bhs-section__title-banner img {
        border-radius: var(--prb-radius) !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Product grid → 2-col horizontal scroll */
    .home .bhs-product-grid,
    .home .bhs-product-slider .bhs-product-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 10px !important;
        padding: 0 16px 8px !important;
        grid-template-columns: unset !important;
        touch-action: pan-x pan-y !important;
    }
    .home .bhs-product-grid::-webkit-scrollbar {
        display: none !important;
    }

    .home .bhs-product-grid .bhs-product-card {
        flex: 0 0 calc(50% - 5px) !important;
        scroll-snap-align: start !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Touch support */
    .home .bhs-product-card,
    .home .bhs-product-card *,
    .home .bhs-product-card__image,
    .home .bhs-product-card__info,
    .home .bhs-product-card__title,
    .home .bhs-product-card__price,
    .home .bhs-product-card__btn,
    .home .bhs-product-card__rating {
        touch-action: pan-x pan-y !important;
    }

    .home .bhs-product-slider-wrapper {
        touch-action: pan-x pan-y !important;
    }

    /* Product cards */
    .home .bhs-product-card {
        border-radius: var(--prb-radius) !important;
        border: 1px solid #f0f0f0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }
    .home .bhs-product-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .home .bhs-product-card:active {
        transform: scale(0.98) !important;
    }

    .home .bhs-product-card__image {
        aspect-ratio: 3/4 !important;
        object-fit: cover !important;
        width: 100% !important;
        background: var(--prb-light-bg) !important;
    }

    .home .bhs-product-card__info {
        padding: 10px 12px 12px !important;
    }

    .home .bhs-product-card__title {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--prb-dark) !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
        min-height: 34px !important;
    }

    .home .bhs-product-card__rating {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 6px 0 !important;
        font-size: 11px !important;
        color: #999 !important;
    }

    .home .bhs-product-card__stars {
        color: #ffc107 !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }

    .home .bhs-product-card__price {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: var(--prb-dark) !important;
    }

    .home .bhs-product-card__price del {
        font-size: 11px !important;
        color: #999 !important;
        font-weight: 400 !important;
        margin-right: 4px !important;
    }

    .home .bhs-product-card__price ins {
        text-decoration: none !important;
        color: var(--prb-red) !important;
    }

    .home .bhs-product-card__btn {
        display: none !important;
    }

    /* Hide slider buttons & JS controls */
    .home .bhs-slider-btn {
        display: none !important;
    }
    .home .bhs-mobile-controls {
        display: none !important;
    }

    /* Force all product cards visible */
    .home .bhs-product-slider .bhs-product-card {
        display: flex !important;
        opacity: 1 !important;
    }

    .home .bhs-product-slider-wrapper {
        padding: 0 !important;
    }

    /* --- Remove whitespace between sections --- */
    .home .wp-block-spacer {
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    .home .wp-block-post-title {
        display: none !important;
    }
    .home main > .wp-block-group:first-child {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- About section --- */
    .home .bhs-intro {
        padding: 24px 16px !important;
        background: var(--prb-light-bg) !important;
        margin: 8px 0 0 !important;
        border-radius: 0 !important;
    }
    .home .bhs-intro-title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--prb-dark) !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    .home .bhs-intro-text {
        font-size: 13px !important;
        line-height: 1.7 !important;
        color: #555 !important;
        text-align: center !important;
    }

    /* --- Commitment / Why Choose --- */
    .home .bhs-why-choose {
        padding: 24px 16px !important;
        margin: 0 !important;
    }
    .home .bhs-why-choose__title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--prb-dark) !important;
        text-align: center !important;
        margin: 0 0 16px 0 !important;
    }
    .home .bhs-why-choose__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .home .bhs-why-choose__item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 16px 10px !important;
        background: var(--prb-light-bg) !important;
        border-radius: var(--prb-radius) !important;
        border-left: none !important;
    }
    .home .bhs-why-choose__icon {
        width: 56px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }
    .home .bhs-why-choose__item-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin: 0 !important;
    }
    .home .bhs-why-choose__item-desc {
        display: block !important;
        font-size: 11.5px !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin: 4px 0 0 !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* --- SEO Article --- */
    .home .bhs-article {
        padding: 20px 16px !important;
        border-top: 1px solid #eee !important;
    }
    .home .bhs-article__content {
        max-height: 120px !important;
        overflow: hidden !important;
        transition: max-height 0.5s ease !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
        color: #555 !important;
        position: relative !important;
    }
    .home .bhs-article__content.is-expanded {
        max-height: 3000px !important;
    }
    .home .bhs-article__content h2 {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--prb-dark) !important;
        margin-bottom: 8px !important;
    }
    .home .bhs-article__content h3 {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--prb-dark) !important;
        margin: 10px 0 4px !important;
    }
    .home .bhs-article__content p {
        margin-bottom: 8px !important;
        font-size: 13px !important;
    }
    .home .bhs-article__content a {
        color: var(--prb-accent) !important;
        font-weight: 600 !important;
    }
    .home .bhs-article__toggle {
        display: block !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px 0 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--prb-accent) !important;
        text-align: center !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* --- Footer --- */
    .home .books-footer {
        background: #f5f5f5 !important;
        padding: 32px 16px 0 !important;
        margin-top: 0 !important;
    }

    .home .books-footer__inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 20px !important;
    }

    .home .books-footer__col--brand {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }

    .home .books-footer__logo {
        max-width: 120px !important;
        margin: 0 auto 8px !important;
    }

    .home .books-footer__meta {
        font-size: 12px !important;
        color: #555 !important;
        line-height: 1.7 !important;
        text-align: left !important;
    }

    .home .books-footer__title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #222 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 0 10px !important;
    }

    .home .books-footer__links li {
        margin-bottom: 5px !important;
    }
    .home .books-footer__links a {
        font-size: 12px !important;
        color: #555 !important;
    }
    .home .books-footer__links a:hover {
        color: var(--prb-accent) !important;
    }

    .home .books-footer__col--newsletter {
        grid-column: 1 / -1 !important;
    }

    .home .books-footer__newsletter-form {
        display: flex !important;
        width: 100% !important;
    }
    .home .books-footer__newsletter-form input {
        flex: 1 !important;
        padding: 10px 14px !important;
        border: 1px solid #ddd !important;
        border-right: none !important;
        border-radius: 4px 0 0 4px !important;
        font-size: 13px !important;
        outline: none !important;
        min-width: 0 !important;
    }
    .home .books-footer__newsletter-btn {
        padding: 10px 14px !important;
        background: #f5a623 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 0 4px 4px 0 !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }

    .home .books-footer__payment-row {
        text-align: center !important;
        padding: 20px 0 !important;
    }
    .home .books-footer__payment {
        max-width: 300px !important;
        height: auto !important;
        opacity: 0.85 !important;
        margin: 0 auto !important;
    }

    .home .books-footer__bottom {
        text-align: center !important;
        padding: 14px 0 calc(var(--prb-bottom-bar-height) + 20px) !important;
        border-top: 1px solid #ddd !important;
        font-size: 12px !important;
        color: #777 !important;
    }

    /* --- Chat widget push-up --- */
    .books-chat-widget {
        bottom: calc(var(--prb-bottom-bar-height) + 12px) !important;
    }

    /* --- WP Site Blocks margin reset --- */
    .wp-site-blocks > .prb-bottom-bar,
    .wp-site-blocks > .prb-search-popup,
    .wp-site-blocks > .prb-mob-header {
        margin-block-start: 0 !important;
        margin-block-end: 0 !important;
        margin: 0 !important;
    }
}
