* {
    box-sizing: border-box;
}


/* ============================================
   商城 Banner
   ============================================ */

/* Banner 容器 */
.shop-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Swiper 容器 */
.shop-banner-swiper {
    width: 100%;
    height: 500px;
    position: relative;
}

/* Banner 滑動項 */
.shop-banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 背景圖片 */
.shop-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.9s ease;
}

/* 不同 slide 的背景圖片 */
.slide-1 .shop-banner-bg {
    background-image: url('/static/images/bg-4.jpg');
}

.slide-2 .shop-banner-bg {
    background-image: url('/static/images/main-banner.png');
}

.slide-3 .shop-banner-bg {
    background-image: url('/static/images/bg-3.jpg');
}

/* 背景圖片懸停放大效果 */
.shop-banner-slide:hover .shop-banner-bg {
    transform: scale(1.05);
}

/* 深色遮罩層 */
.shop-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* 文字內容區域 - 絕對定位 */
.shop-banner-content {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInLeft 0.8s ease;
}

/* 折扣標題 */
.shop-banner-discount {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* 主標題 */
.shop-banner-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* 免責聲明 */
.shop-banner-disclaimer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CTA 按鈕 - 白色圓角矩形 */
.shop-banner-cta {
    display: inline-block;
    width: fit-content;
    padding: 10px 40px;
    background-color: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shop-banner-cta:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #000;
}

.shop-banner-cta:active {
    transform: translateY(0);
}

/* ============================================
   動畫效果
   ============================================ */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ============================================
   Swiper 分頁和導航
   ============================================ */
.shop-banner-pagination {
    bottom: 25px !important;
    z-index: 10;
}

.shop-banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.shop-banner-pagination .swiper-pagination-bullet-active {
    background-color: rgba(255, 255, 255, 0.8);
    width: 25px;
    border-radius: 5px;
}

/* 導航按鈕 - 左右邊緣 */
.shop-banner-next,
.shop-banner-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    transition: all 0.3s ease;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.shop-banner-next:after,
.shop-banner-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.shop-banner-next:hover,
.shop-banner-prev:hover {
    background-color: #000;
    transform: translateY(-50%) scale(1.05);
}

.shop-banner-next {
    right: 20px;
}

.shop-banner-prev {
    left: 20px;
}

/* ============================================
   響應式設計
   ============================================ */

/* 平板設備 */
@media screen and (max-width: 1068px) {
    .shop-banner-swiper {
        height: 450px;
    }

    .shop-banner-content {
        left: 40px;
        max-width: 450px;
        gap: 18px;
    }

    .shop-banner-discount {
        font-size: 36px;
    }

    .shop-banner-title {
        font-size: 52px;
    }

    .shop-banner-cta {
        padding: 14px 40px;
        font-size: 14px;
    }
}

/* 手機設備 */
@media screen and (max-width: 768px) {

    .shop-banner-swiper {
        height: 400px;
    }

    .shop-banner-content {
        left: 30px;
        max-width: 80%;
        gap: 15px;
    }

    .shop-banner-discount {
        font-size: 28px;
    }

    .shop-banner-title {
        font-size: 38px;
        letter-spacing: 1px;
    }

    .shop-banner-disclaimer {
        font-size: 12px;
    }

    .shop-banner-cta {
        padding: 12px 30px;
        font-size: 13px;
    }

    .shop-banner-next,
    .shop-banner-prev {
        width: 40px;
        height: 40px;
        display: none;
    }

    .shop-banner-pagination {
        bottom: 15px !important;
    }
}

/* 小屏手機 */
@media screen and (max-width: 480px) {
    .shop-banner-swiper {
        height: 350px;
    }

    .shop-banner-content {
        left: 15px;
        max-width: 85%;
        gap: 12px;
    }

    .shop-banner-discount {
        font-size: 24px;
    }

    .shop-banner-title {
        font-size: 32px;
    }

    .shop-banner-cta {
        padding: 10px 25px;
        font-size: 12px;
    }
}







/* ============================================
   商品分類入口板塊 - 輪播樣式
   ============================================ */
.category-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

.category-container {
    margin: 0 auto;
    padding: 0 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 42px;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-align: left;
}

.category-navigation {
    display: flex;
    gap: 10px;
}

.category-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.category-nav-btn:hover {
    background: #CC0303;
    color: #fff;
    transform: scale(1.03);
}

.category-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Swiper 容器 */
.category-swiper {
    width: 100%;
    padding-bottom: 20px;
    /* 防止初始化前显示大图 - 使用最小高度 */
    min-height: 0;
    overflow: hidden;
}

.category-swiper .swiper-slide {
    height: auto;
}

/* 防止初始化前显示为全宽大图 */
.category-swiper:not(.swiper-initialized) {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0s ease 0.3s;
}

.category-swiper.swiper-initialized {
    opacity: 1;
    height: auto;
    transition: opacity 0.3s ease;
}

/* 确保 wrapper 在初始化前不显示 */
.category-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: none;
}

/* 分類卡片 */
.category-card {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.02);
}

/* 圖片背景 */
.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

/* 底部漸變遮罩 */
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

/* 文字內容 */
.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    z-index: 2;
}

.category-name {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Swiper 響應式設置 */
.category-swiper {
    --swiper-navigation-size: 0;
}

/* 響應式設計 */
@media screen and (max-width: 1200px) {

    .category-name {
        font-size: 24px;
    }
}

@media screen and (max-width: 968px) {
    .category-section {
        padding: 40px 0;
    }

    .category-container {
        padding: 0 30px;
    }

    .category-header {
        margin-bottom: 30px;
    }

    .category-title {
        font-size: 32px;
    }

    .category-content {
        padding: 25px 20px;
    }

    .category-name {
        font-size: 22px;
    }
}

@media screen and (max-width: 640px) {
    .category-section {
        padding: 30px 0;
    }

    .category-container {
        padding: 0 15px;
    }

    .category-header {
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 25px;
    }

    .category-title {
        font-size: 23px;
    }

    .category-navigation {
        align-self: flex-end;
    }

    .category-card{
        border-radius: 8px;
    }

    .category-content {
        padding: 10px 10px;
    }

    .category-name {
        font-size: 15px;
    }

    .category-nav-btn{
        width: 36px;
        height: 36px;
    }

    .category-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .footer-copyright p{
        line-height: 1.5;
    }
}

/* ============================================
   熱銷商品板塊 - 雙層卡片高級設計
   ============================================ */
.hot-section {
    padding: 50px 0 80px 0;
    background: linear-gradient(to bottom, #F3F5F7 0%, #ffffff 100%);
}

.hot-container {
    margin: 0 auto;
    padding: 0 50px;
}

.hot-title {
    font-size: 50px;
    font-weight: 600;
    color: #000;
    margin: 0 0 60px 0;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.hot-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #CC0303, transparent);
    border-radius: 2px;
}

.hot-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    perspective: 1200px;
}

/* 雙層卡片容器 */
.hot-product-card {
    position: relative;
    cursor: pointer;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片延遲動畫 */
.hot-product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hot-product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hot-product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hot-product-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 上層卡片 - 內容層 */
.hot-product-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    transform: translateZ(0);
}

/* 懸浮效果 - 雙層分離 + 整體動畫 */
.hot-product-card:hover {
    transform: translateY(-15px) rotateX(3deg) scale(1.02);
}

.hot-product-card:hover::before {
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    opacity: 0.8;
    filter: blur(12px);
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.15) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.hot-product-card:hover .hot-product-card-inner {
    transform: translateZ(25px);
}

/* 圖片容器 - 雙層圖片覆蓋替換 */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 底層卡片 - 陰影層 */
.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: 16px;
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    filter: blur(8px);
}

.hot-product-card:hover .product-image-wrapper img {
    transform: scale(1.02);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 正面圖片 - 默認顯示 */
.product-image-front {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 1;
}

/* 背面圖片 - 默認隱藏 */
.product-image-back {
    opacity: 0;
    transform: scale(1.05) translateZ(0);
    z-index: 2;
}

/* 懸浮時圖片替換 - 流暢動畫 */
.hot-product-card:hover .product-image-front {
    opacity: 0;
    transform: scale(0.98) translateZ(0);
}

.hot-product-card:hover .product-image-back {
    opacity: 1;
    transform: scale(1.05) translateZ(0);
}

/* 標籤樣式 - 圓角矩形設計 */
.product-badge {
    position: absolute;
    z-index: 3;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
    animation: badgeSlideIn 0.6s ease forwards;
    /* clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%); */
}

@keyframes badgeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 促銷標籤 - 紅色圓角矩形 */
.product-badge.sale-badge {
    top: 12px;
    left: 12px;
    background: #CC0303;
    color: #fff;
    border: none;
    animation-delay: 0.1s;
}

.product-image-wrapper:hover .product-badge.sale-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(204, 3, 3, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(204, 3, 3, 0.6);
    }
}

/* 分類標籤 - 白色圓角矩形 */
.product-badge.category-badge {
    top: 12px;
    right: 12px;
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation-delay: 0.2s;
}

/* 如果同時有兩個標籤，調整位置 */
.product-image-wrapper:has(.sale-badge) .category-badge {
    top: 50px;
    right: 12px;
}

/* ============================================
   尺寸選擇面板 - 從底部向上展開
   ============================================ */
.size-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.hot-product-card:hover .size-panel {
    transform: translateY(0);
}

.size-panel-content {
    padding: 16px;
}

.size-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-buttons.close {
    display: none;
}

.size-btn {
    padding: 6px;
    background: #3a3a3a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.size-btn:hover {
    background: #4a4a4a;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.size-btn:hover::before {
    left: 100%;
}

.size-btn.active {
    background: #fff;
    color: #2a2a2a;
    border-color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.size-btn.active:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.size-btn.soldout {
    pointer-events: none;
    opacity: 0.4;
}

.goods-data{
    display: none;
}

.spec-price-info{
    display: flex; justify-content: space-between;
}

.go-pay {
    display: flex;
    align-items: center;
    justify-content:space-between;
    padding: 10px 0;
    gap: 15px;
}



.layui-layer-btn .layui-layer-btn0{
    background-color:#CC0303 !important ;
}

.go-pay a {
    background-color: #CC0303;
    color: #fff;
    padding: 8px 8px;
    width: 100%;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.go-pay a:nth-child(2){
    background-color:#1e9fff ;
}

.test-svg {
    right: 0px;
    top: 0px;
    background-color: #1a1a1a;
    width: 33px;
    height: 33px;
    padding: 5px;
    border-radius: 0 5px 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-svg svg {
    width: 22px;
    height: 22px;
    object-fit: cover;
}

/* 如果同時有兩個標籤，調整位置 */
/* .product-image-wrapper:has(.sale-badge) .category-badge {
    top: 50px;
    right: 12px;
} */

.hot-product-card:hover .product-badge.category-badge {
    transform: translateY(-5px) scale(1.08);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 商品信息 - 圖片外獨立區域 */
.product-info {
    padding: 20px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 商品名稱 - 簡潔黑體 */
.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

.hot-product-card:hover .product-name {
    color: #CC0303;
    transform: translateX(3px);
}

/* 價格區塊 - 獨立放大，垂直排列 */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-product-card:hover .product-price {
    gap: 8px;
}

.product-price .cate-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #999797;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    order: 3;
    margin-left: auto;
}

/* 原價 - 灰色小字，刪除線，在上方 */
.original-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1.2;
    transition: all 0.3s ease;
    order: 2;
}

.hot-product-card:hover .original-price {
    opacity: 0.5;
}

/* 現價 - 粗體紅色+加粗數字+¥符號，在下方 */
.current-price {
    font-size: 16px;
    font-weight: 500;
    color: #CC0303;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.current-price img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    padding-bottom: 2px;
}








/* 過渡banner-start */



.transition-banner-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.transition-banner-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.transition-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 過渡banner-end */

.mobile-filter-btn {
    display: none;
}


@media screen and (max-width:992px) {
    .hot-section {
        padding: 30px 0;
    }

    .hot-section .product-info {
        padding: 16px 0;
        gap: 5px;
    }

    .hot-section .product-name {
        font-size: 19px;
        font-weight: 500;
    }

    .transition-banner-container {
        height: 180px;
    }

    /* 移動端篩選彈窗樣式 */
    .products-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    .products-title {
        margin: 0;
        font-size: 28px;
    }

    /* 顯示篩選按鈕，隱藏側邊欄 */
    .mobile-filter-btn {
        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;
    }

    .products-sidebar {
        display: none;
    }

    /* 移動端篩選彈窗 */
    .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-body {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-sidebar-content {
        padding: 0 20px 20px;
    }

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

    .mobile-sidebar-content .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: 14px 20px;
        border: none;
        border-radius: 8px;
        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);
    }
}