
/* ============================================
   移動端篩選彈窗樣式
   ============================================ */

/* 商品標題區域 - 添加篩選按鈕 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-title {
    margin: 0;
}

/* 顯示篩選按鈕，隱藏側邊欄 */
.mobile-filter-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: #CC0303;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(204, 3, 3, 0.2);
}

.mobile-filter-btn:hover {
    background: #b00202;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 3, 3, 0.3);
}

.mobile-filter-btn:active {
    transform: translateY(0);
}

.mobile-filter-btn svg {
    width: 16px;
    height: 16px;
}

/* 移動端篩選彈窗 */
.mobile-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-filter-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-filter-modal.active .mobile-filter-content {
    transform: translateX(0);
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-filter-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.mobile-filter-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.mobile-filter-close:hover {
    background: #e8e8e8;
    color: #000;
}

.mobile-filter-close svg {
    width: 20px;
    height: 20px;
}


.mobile-filter-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.mobile-filter-body .sidebar-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-filter-body .sidebar-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-filter-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.mobile-filter-reset,
.mobile-filter-apply {
    flex: 1;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-reset {
    background: #f5f5f5;
    color: #333;
}

.mobile-filter-reset:hover {
    background: #e8e8e8;
}

.mobile-filter-apply {
    background: #CC0303;
    color: #fff;
}

.mobile-filter-apply:hover {
    background: #b00202;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 3, 3, 0.3);
}

.mobile-filter-apply:active {
    transform: translateY(0);
}

@media screen and (min-width:993px) {
    .mobile-filter-btn{
        display: none;
    }
}