.site-drawer-trigger,
.site-drawer-close,
.site-drawer-mask {
    display: none;
}

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

    .site-drawer-layer {
        position: sticky;
        top: var(--header-height, 80px);
        height: fit-content;
        align-self: start;
        z-index: 100;
    }
}

@media (max-width: 991px) {
    .site-drawer-host.sticky-top {
        top: calc(var(--header-height, 80px) + 8px);
        z-index: 20;
        max-height: none;
        overflow: visible;
    }

    .site-drawer-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 10px 14px;
        border: 0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        text-align: left;
        cursor: pointer;
        color: inherit;
    }

    .site-drawer-trigger__text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .site-drawer-trigger__label {
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .site-drawer-trigger__current {
        color: #0f172a;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-drawer-trigger__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f1f5f9;
        color: #334155;
        flex-shrink: 0;
    }

    .site-drawer-trigger__icon svg {
        width: 18px;
        height: 18px;
    }

    body.site-drawer-open .site-drawer-trigger {
        visibility: hidden;
    }

    .site-drawer-layer {
        position: fixed;
        inset: 0;
        z-index: 2000;
        pointer-events: none;
        visibility: hidden;
    }

    body.site-drawer-open .site-drawer-layer {
        visibility: visible;
        pointer-events: auto;
    }

    .site-drawer-mask {
        display: block;
        position: absolute;
        top: var(--drawer-top, var(--header-height, 80px));
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        background: rgba(15, 23, 42, 0.45);
    }

    .site-drawer-panel {
        position: absolute !important;
        top: var(--drawer-top, var(--header-height, 80px)) !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(86vw, 320px) !important;
        max-width: 320px;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1;
        margin: 0;
        padding: 16px 14px 28px !important;
        border-radius: 0 16px 0 0 !important;
        background: #fff !important;
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
    }

    body.site-drawer-open .site-drawer-panel {
        transform: translateX(0);
    }

    .site-drawer-panel .category-sidebar-header {
        border-bottom: 1px solid #eee;
        margin-bottom: 8px;
        padding-bottom: 12px;
        gap: 12px;
    }

    .site-drawer-panel h2 {
        padding-bottom: 12px;
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
    }

    .site-drawer-panel h2:after {
        display: none;
    }

    .site-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #f1f5f9;
        color: #334155;
        cursor: pointer;
        flex-shrink: 0;
    }

    .site-drawer-close svg {
        width: 18px;
        height: 18px;
        display: block;
    }

    .site-drawer-panel .category-list {
        display: block !important;
        margin-top: 0;
    }

    .site-drawer-panel .category-list > li {
        margin: 0;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .site-drawer-panel .category-list a {
        min-height: 48px;
        padding: 12px 10px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 15px;
    }

    .site-drawer-panel .category-list li.active > a {
        background: rgba(0, 107, 255, 0.08);
        border-radius: 8px;
        border-bottom-color: transparent;
    }

    body.site-drawer-locked {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-drawer-panel,
    .site-drawer-mask {
        transition: none;
    }
}
