/* src/DealSupermarket.Web/wwwroot/css/search.css */

/* Mobile Bottom Sheet Drawer */
.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.filter-drawer.is-open {
    transform: translateY(0);
}

.filter-drawer__header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-drawer__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.filter-drawer__close {
    padding: 8px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-tertiary);
    cursor: pointer;
}

.filter-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-drawer__footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.filter-drawer__apply {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Overlay */
.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.filter-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 992px) {
    .filter-drawer {
        display: none;
    }

    .filter-drawer-overlay {
        display: none;
    }
}