/* =====================================================
   mobile-sidebar.css — Vostberg Gold
   Breakpoint: 768px
   ===================================================== */

@media (max-width: 768px) {
    :where(.wc-block-product-filters) {
        --top-padding: var(--adminbar-mobile-padding, 0) !important;
    }
}

@media (max-width: 768px) {
    /* Ховаємо sidebar і весь його вміст */
    .sidebar-main,
    .sidebar-main * {
        /*visibility: hidden !important;*/
    }
    /* Але кнопку відкрити фільтри лишаємо клікабельною (невидима але в DOM) */
    .sidebar-main .wc-block-product-filters__open-overlay {
        visibility: visible !important;
        position: fixed !important;
        bottom: -9999px !important;
        left: -9999px !important;
        pointer-events: auto !important;
        z-index: -1 !important;
    }

    #block-8{
        display: none;
    }
}

/* =====================================================
   ПАНЕЛЬ КНОПОК
   ===================================================== */

.vb-mobile-bar { display: none; }

@media (max-width: 768px) {
    .vb-mobile-bar {
        display: flex;
        align-items: stretch;
        background: #fff;
        border: 1px solid #e8e4d8;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 16px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }
    .vb-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1;
        padding: 16px 16px;
        background: #fff;
        border: none;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        transition: background 0.15s;
        white-space: nowrap;
        font-family: inherit;
    }
    .vb-mobile-btn:active { background: #f8f6f1; }
    .vb-mobile-btn svg { flex-shrink: 0; color: #b8860b; }
    .vb-mobile-divider { width: 1px; background: #e8e4d8; flex-shrink: 0; }
    .wc-block-product-filters__overlay-footer{
        display: none;
    }

    .ast-header-break-point .ast-primary-header-bar {
        border-bottom-width: 1px;
        border-bottom-color: #ffffff;
        border-bottom-style: solid;
    }

    .post-type-archive .site-content .main-container {
        padding: 0 10px !important;
        margin: 0 auto !important;
    }
}

/* =====================================================
   OVERLAY
   ===================================================== */

.vb-mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99997;
    backdrop-filter: blur(2px);
}
.vb-mob-overlay.is-open { display: block; }
body.vb-no-scroll { overflow: hidden !important; }

/* =====================================================
   КАТАЛОГ DRAWER — зліва
   ===================================================== */

.vb-catalog-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.vb-catalog-drawer.is-open { transform: translateX(0); }

.vb-drawer-inner { display: flex; flex-direction: column; min-height: 100%; }

.vb-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0ece0;
    position: sticky; top: 0;
    background: #fff; z-index: 1;
    flex-shrink: 0;
}
.vb-drawer-header span { font-size: 15px; font-weight: 700; color: #111; }

.vb-drawer-close {
    width: 32px;
    height: 32px;
    background: #e5e5e5;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: inherit;
    flex-shrink: 0;
    padding: 0;
}

.vb-drawer-close:hover {
    background: #bdbdbd;
}

.vb-drawer-close:focus{
    background: #6b6966;
}

.vb-drawer-body { padding: 16px 20px 32px; flex: 1; }

/* Список категорій */
.vb-drawer-body .wc-block-product-categories-list {
    list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.vb-drawer-body .wc-block-product-categories-list-item {
    border-bottom: 1px solid #f5f0e8;
}
.vb-drawer-body .wc-block-product-categories-list-item:last-child { border-bottom: none; }
.vb-drawer-body .wc-block-product-categories-list-item > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 0; font-size: 14px; font-weight: 600;
    color: #222; text-decoration: none;
}
.vb-drawer-body .wc-block-product-categories-list-item > a:hover { color: #b8860b; }
.vb-drawer-body .wc-block-product-categories-list-item-count {
    font-size: 11px; font-weight: 600; color: #aaa;
    background: #f5f5f5; padding: 2px 8px; border-radius: 20px;
}
.vb-drawer-body .wc-block-product-categories-list--depth-1 {
    padding-left: 12px !important; margin: 0 !important;
    border-top: 1px solid #f5f0e8;
}
.vb-drawer-body .wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item { border-bottom: none; }
.vb-drawer-body .wc-block-product-categories-list--depth-1 a {
    padding: 9px 0; font-size: 13px; font-weight: 500; color: #666;
}

/* =====================================================
   КОЛЬОРИ КНОПОК У ВСПЛИВАЮЧОМУ ВІКНІ ФІЛЬТРІВ
   ===================================================== */

/* Кнопка Застосувати */
.wc-block-product-filters__apply {
    background: linear-gradient(135deg, #b8860b, #c9980f) !important;
    border-color: #b8860b !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(184,134,11,0.25) !important;
}
.wc-block-product-filters__apply:hover {
    background: linear-gradient(135deg, #9a7000, #b8860b) !important;
    border-color: #9a7000 !important;
}

/* Кнопка Закрити */
.wc-block-product-filters__close-overlay {
    background: #f5f5f5 !important;
    border: 1px solid #e8e4d8 !important;
    border-radius: 48px !important;
    color: #333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 13px 8px 13px !important;
}
.wc-block-product-filters__close-overlay:hover {
    background: #ebebeb !important;
}

/* Кнопка Очистити фільтри */
.wc-block-product-filter-clear-button .wp-block-button__link {
    background: transparent !important;
    border: 1px solid #e8e2d5 !important;
    color: #888 !important;
    border-radius: 8px !important;
}
.wc-block-product-filter-clear-button .wp-block-button__link:hover {
    border-color: #b8860b !important;
    color: #b8860b !important;
    background: rgba(184,134,11,0.05) !important;
}

/* Чіпи активних фільтрів */
.wc-block-product-filter-removable-chips .wc-block-components-chip {
    background: #fff8e1 !important;
    border-color: #f0d080 !important;
    color: #92650a !important;
    border-radius: 20px !important;
}