/* ═══════════════════════════════════════════════════════════
   Solestra Rental — Mobil Filtre Drawer
   Floating Action Button + sağdan kayan drawer (sadece mobil)
   ═══════════════════════════════════════════════════════════ */

/* Masaüstünde tamamen gizli */
@media (min-width: 769px) {
    .solestra-filter-fab,
    .solestra-filter-drawer-overlay {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBİLDE SABİT SIDEBAR'I GİZLE
   Drawer zaten filtre erişimi sağlıyor — alttaki sidebar gereksiz.
   CSS sadece shop/kategori/marka sayfalarında yüklenir (PHP eligibility),
   o yüzden bu kural sadece filtre sayfalarında etkili.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #qodef-page-sidebar,
    .qodef-page-sidebar,
    aside#secondary,
    .widget-area.sidebar-primary,
    .sidebar-widget-area,
    .qodef-sidebar {
        display: none !important;
    }

    /* Ana içerik alanı sidebar yokken tam genişlik kullansın */
    #qodef-page-content,
    .qodef-page-content,
    .qodef-content-inner,
    .qodef-woo-shop-holder {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB)
   ═══════════════════════════════════════════════════════════ */

.solestra-filter-fab {
    position: fixed;
    top: 20px;
    right: 16px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: "Muli", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.solestra-filter-fab--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.solestra-filter-fab:hover,
.solestra-filter-fab:active {
    background: #2a2a2a;
    color: #fff;
}

.solestra-filter-fab svg {
    display: block;
    stroke: currentColor;
    flex-shrink: 0;
}

.solestra-filter-fab-label {
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   DRAWER OVERLAY (Backdrop)
   ═══════════════════════════════════════════════════════════ */

.solestra-filter-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0);
    display: none;
    transition: background 0.3s ease;
}

.solestra-filter-drawer-overlay--open {
    background: rgba(0, 0, 0, 0.55);
}

body.solestra-filter-drawer-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   DRAWER PANEL (Right-side slide-in)
   ═══════════════════════════════════════════════════════════ */

.solestra-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.solestra-filter-drawer-overlay--open .solestra-filter-drawer {
    transform: translateX(0);
}

/* ── Drawer Header ── */

.solestra-filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #000;
    color: #fff;
    flex-shrink: 0;
}

.solestra-filter-drawer-title {
    font-family: "Muli", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
}

.solestra-filter-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: all 0.2s ease-out;
    -webkit-appearance: none;
    appearance: none;
}

.solestra-filter-drawer-close:hover,
.solestra-filter-drawer-close:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── Drawer Body (scrollable) ── */

.solestra-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 20px 40px;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.solestra-filter-drawer-empty {
    font-family: "Muli", sans-serif;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
}

/* ═══════════════════════════════════════════════════════════
   DRAWER İÇİNDEKİ WIDGET STİLLERİ
   (Trousseau sidebar stilleri drawer'a uygulansın)
   ═══════════════════════════════════════════════════════════ */

.solestra-filter-drawer-body .widget,
.solestra-filter-drawer-body .qodef-widget {
    margin: 0 0 28px;
}

.solestra-filter-drawer-body .widget:last-child,
.solestra-filter-drawer-body .qodef-widget:last-child {
    margin-bottom: 0;
}

.solestra-filter-drawer-body .qodef-widget-title,
.solestra-filter-drawer-body .widgettitle,
.solestra-filter-drawer-body h2:first-child,
.solestra-filter-drawer-body .widget > h6,
.solestra-filter-drawer-body .solestra-brand-filter-title {
    font-family: "Muli", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    font-size: 10px;
    line-height: 18px;
    letter-spacing: 0.2em;
    margin: 0 0 16px;
    padding: 0;
}

/* Liste elemanları */
.solestra-filter-drawer-body ul:not(.qodef-shortcode-list) {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solestra-filter-drawer-body ul:not(.qodef-shortcode-list) li {
    margin: 0 0 4px;
}

.solestra-filter-drawer-body .wc-layered-nav-term,
.solestra-filter-drawer-body .solestra-brand-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solestra-filter-drawer-body .wc-layered-nav-term a,
.solestra-filter-drawer-body .solestra-brand-filter-item a {
    font-family: "Muli", sans-serif;
    font-size: 14px;
    line-height: 2;
    color: #6a6a6a;
    text-decoration: none;
    transition: color 0.2s ease-out;
    flex: 1;
}

.solestra-filter-drawer-body .wc-layered-nav-term a:hover,
.solestra-filter-drawer-body .solestra-brand-filter-item a:hover {
    color: #000;
}

.solestra-filter-drawer-body .count,
.solestra-filter-drawer-body .solestra-brand-filter-item .count {
    font-size: 12px;
    color: #aaa;
    margin-left: 4px;
}

.solestra-filter-drawer-body .chosen a,
.solestra-filter-drawer-body .solestra-brand-filter-item.chosen a {
    color: #000;
    font-weight: 600;
}

/* Accordion (Product Categories) */
.solestra-filter-drawer-body .product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solestra-filter-drawer-body .product-categories > li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    margin: 0;
}

.solestra-filter-drawer-body .product-categories > li:last-child {
    border-bottom: none;
}

.solestra-filter-drawer-body .product-categories > li > a {
    display: block;
    font-family: "Muli", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 12px 30px 12px 0;
}

.solestra-filter-drawer-body .solestra-cat-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #aaa;
}

.solestra-filter-drawer-body .solestra-cat-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.solestra-filter-drawer-body .solestra-cat-toggle.open svg {
    transform: rotate(180deg);
}

.solestra-filter-drawer-body .product-categories > li > ul.children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.solestra-filter-drawer-body .product-categories > li > ul.children.open {
    max-height: 800px;
    padding-bottom: 10px;
}

.solestra-filter-drawer-body .product-categories .children li a {
    display: block;
    font-family: "Muli", sans-serif;
    font-size: 13px;
    color: #6a6a6a;
    text-decoration: none;
    padding: 6px 0;
}

/* Form / price filter */
.solestra-filter-drawer-body form {
    margin: 0;
}

.solestra-filter-drawer-body .price_slider {
    margin: 16px 4px;
}

.solestra-filter-drawer-body .price_slider_amount .button {
    font-family: "Muli", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    border: none;
    padding: 10px 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 0;
}

.solestra-filter-drawer-body .price_slider_amount .button:hover {
    background: #2a2a2a;
}

/* Search widget */
.solestra-filter-drawer-body .search-field,
.solestra-filter-drawer-body .qodef-search-form-field {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 30px 10px 0;
    font-family: "Muli", sans-serif;
    font-size: 13px;
    background: transparent;
    outline: none;
}

.solestra-filter-drawer-body .search-field:focus {
    border-bottom-color: #000;
}
