* {
    box-sizing: border-box;
}

/* ============================================
   商品列表 Banner
   ============================================ */
.product-list-banner-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.product-list-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-list-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/bg-4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.9s ease;
}

.product-list-banner:hover .product-list-banner-bg {
    transform: scale(1.05);
}

.product-list-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.product-list-banner-content {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInLeft 0.8s ease;
}

.product-list-banner-title {
    font-size: 48px;
    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);
}

.product-list-banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate(-30px, -50%);
    }

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

/* ============================================
   所有商品板塊 - 極簡邊框動畫設計
   ============================================ */
.products-section {
    padding: 60px 0 80px 0;
    background: #fafafa;
    position: relative;
}

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

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

.products-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;
}

/* 面包屑导航 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #CC0303;
}

.breadcrumb-nav .separator {
    color: #999;
    margin: 0 4px;
}

.breadcrumb-nav .current {
    color: #1a1a1a;
    font-weight: 500;
}

/* 商品佈局 - 側邊欄 + 商品列表 */
.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 側邊欄 */
.products-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    /* max-height: calc(100vh - 120px); */
    overflow-y: auto;
}

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

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

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

/* 排序選項 */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sort-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.sort-option:hover {
    background: #f8f8f8;
}

.sort-option input[type="radio"] {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #CC0303;
}

.sort-option span {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.sort-option input[type="radio"]:checked+span {
    color: #CC0303;
    font-weight: 600;
}

/* 篩選選項 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-option:hover {
    background: #f8f8f8;
}

.filter-option input[type="checkbox"] {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #CC0303;
}

.filter-option span {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.filter-option span img{
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.filter-option input[type="checkbox"]:checked+span {
    color: #CC0303;
    font-weight: 600;
}

/* 價格範圍 */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.price-input {
    flex: 1;
    width: 100%;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #CC0303;
    box-shadow: 0 0 0 3px rgba(204, 3, 3, 0.1);
}

.price-separator {
    color: #999;
    font-size: 14px;
}

.price-apply-btn {
    padding: 10px 20px;
    background: #CC0303;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-apply-btn:hover {
    background: #b00202;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(204, 3, 3, 0.3);
}

/* 側邊欄操作按鈕 */
.sidebar-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.reset-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

/* 商品內容區域 */
.products-content {
    flex: 1;
    min-width: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    gap: 25px;
}

/* 商品卡片 - 極簡邊框動畫樣式 */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: visible;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}



.product-card:hover {
    transform: translateY(-2px);
}

/* 卡片圖片容器 - 滑動效果 */
.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    background: #f5f5f5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px 10px 0 0;
}

.card-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);
    transform: translateX(0);
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

/* 圖片遮罩層 - 懸浮時顯示 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    border-radius: 10px 10px 0 0;
}

.card-image-container:hover .card-overlay {
    opacity: 1;
    visibility: visible;
}

.goods-data{
    display: none;
}

/* 遮罩按鈕 */
.overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    width: 58%;
    min-width:92px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.overlay-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card-image-container:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn-view {
    transition-delay: 0.1s;
}

.overlay-btn-buy {
    transition-delay: 0.15s;
    background: #CC0303;
    color: #fff;
}

.overlay-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.overlay-btn-view:hover {
    background: #f5f5f5;
    color: #000;
}

.overlay-btn:hover svg {
    transform: scale(1.1);
}

/* 標籤容器 - 滑入動畫 */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.card-badge {
    padding: 6px 14px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

/* 促銷標籤 - 斜切設計 */
.card-badge.sale-badge {
    color: #fff;
    transition-delay: 0.1s;
}

.card-badge.sale-badge {
    transform: translateX(0);
    background: linear-gradient(135deg, #CC0303, #FF6B6B, #CC0303);
    /* background: linear-gradient(73deg, #000000 15%, #CC0303 16%); */
}

/* 分類標籤 - 極簡設計 */
.card-badge.category-badge {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    transition-delay: 0.2s;
}

.card-badge.category-badge {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 卡片內容 - 上浮動畫 */
.card-content {
    padding: 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 0 0 10px 10px;
}

.product-card:hover .card-content {
    transform: translateY(-5px);
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: color 0.3s ease;
    letter-spacing: -0.3px;
}

.product-card:hover .card-title {
    color: #CC0303;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    /* margin-top: auto; */
}

.price-current {
    font-size: 17px;
    font-weight: 500;
    color: #CC0303;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

.price-current img{
    width: 20px;
    height: 20px;
    margin-bottom: 3px;
}

.product-card:hover .price-current {
    color: #CC0303;
    transform: scale(1.05);
}


.price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

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

/* 商品標籤組 - 尺寸和其他提示 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.3px;
}

.tag-item:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-1px);
}

.tag-item.tag-new {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border-color: #4CAF50;
    font-weight: 600;
}

.tag-item.tag-new:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.tag-item.tag-hot {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: #fff;
    border-color: #FF6B6B;
    font-weight: 600;
}

.tag-item.tag-hot:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF4444 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.tag-item.tag-sale {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #fff;
    border-color: #FF9800;
    font-weight: 600;
}

.tag-item.tag-sale:hover {
    background: linear-gradient(135deg, #F57C00 0%, #EF6C00 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* 星級評分和評論數 - 圖片右下角 */
.card-rating {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.product-card:hover .card-rating {
    opacity: 1;
    transform: translateY(0);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .star {
    font-size: 12px;
    color: #ddd;
    line-height: 1;
    transition: all 0.2s ease;
}

.rating-stars .star.filled {
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #FFD700 0%, #FFD700 50%, #ddd 50%, #ddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* 購物車按鈕 - 右下角浮動按鈕 */
.card-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #CC0303;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 0px 2px rgba(204, 3, 3, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 1;
    transform: scale(1);
    overflow: hidden;
}

.card-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-cart-btn:hover::before {
    width: 100%;
    height: 100%;
}

.card-cart-btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card-cart-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 6px 20px rgba(204, 3, 3, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.15);
    background: #FF1A1A;
}

.card-cart-btn:active {
    transform: scale(0.95) translateY(0);
    box-shadow:
        0 2px 8px rgba(204, 3, 3, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-cart-btn:hover svg {
    transform: scale(1.1);
}

/* ============================================
   響應式設計 - 商品板塊
   ============================================ */

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

    .product-list-banner-content {
        left: 50px;
        max-width: 80%;
    }

    .product-list-banner-title {
        font-size: 40px;
    }

    .product-list-banner-subtitle {
        font-size: 16px;
    }

    .hot-container,
    .products-container {
        padding: 0 30px;
        box-sizing: border-box;
    }
}


/* 移動端樣式 - 寬度 < 992px - 修復溢出問題 */
@media screen and (max-width: 991px) {

    /* 顯示篩選按鈕，隱藏側邊欄 */
    .mobile-filter-btn {
        display: flex;
        border-radius: 5px;
    }

    .products-sidebar {
        display: none;
    }

    .products-header {
        margin-bottom: 25px;
    }

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

    /* 確保所有容器使用 border-box */
    .hot-container,
    .products-container {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .product-list-banner {
        height: 220px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-list-banner-content {
        left: 20px;
        max-width: calc(100% - 40px);
        gap: 12px;
    }

    .product-list-banner-title {
        font-size: 34px;
    }

    .product-list-banner-subtitle {
        font-size: 15px;
    }

    .products-section {
        padding: 40px 0 60px 0;
        box-sizing: border-box;
    }

    .hot-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .products-layout {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .products-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 20px;
        max-height: none;
        overflow-y: visible;
        box-sizing: border-box;
    }

    .sidebar-section {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .sidebar-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .sort-option,
    .filter-option {
        padding: 8px 10px;
        font-size: 13px;
    }

    .price-input {
        padding: 8px 10px;
        font-size: 13px;
    }

    .price-apply-btn {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 5px;
    }

    .reset-filters-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .products-content {
        width: 100%;
        box-sizing: border-box;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        width: 100%;
        box-sizing: border-box;
    }

    .hot-title,
    .products-title {
        font-size: 32px;
        margin-bottom: 35px;
    }

    .breadcrumb-nav {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .card-content {
        padding: 16px 14px;
        box-sizing: border-box;
    }

    .card-title {
        font-size: 18px;
    }

    .price-current {
        font-size: 15px;
    }

    .price-original {
        font-size: 13px;
    }

    .card-tags {
        gap: 5px;
        margin-top: 8px;
        padding-top: 10px;
    }

    .tag-item {
        padding: 3px 8px;
        font-size: 10px;
    }

    .card-cart-btn {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }

    .card-cart-btn svg {
        width: 16px;
        height: 16px;
    }

    .overlay-btn {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }

    .overlay-btn svg {
        width: 14px;
        height: 14px;
    }

    /* 雙層卡片移動端調整 */
    .hot-product-card::before {
        top: 4px;
        left: 4px;
        right: -4px;
        bottom: -4px;
        filter: blur(5px);
        opacity: 0.4;
    }

    .hot-product-card:hover::before {
        top: 8px;
        left: 8px;
        right: -8px;
        bottom: -8px;
        filter: blur(8px);
    }

    .product-name {
        font-size: 16px;
    }

    .current-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 14px;
    }

    .product-info {
        padding: 16px 0px;
    }
}

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

    .product-list-banner {
        height: 250px;
    }

    .product-list-banner-content {
        left: 30px;
        max-width: 85%;
        gap: 12px;
    }

    .product-list-banner-title {
        font-size: 36px;
    }

    .product-list-banner-subtitle {
        font-size: 16px;
    }

    .products-section {
        padding: 30px 0;
    }

    .hot-container,
    .products-container {
        padding: 0 15px;
    }

    .breadcrumb-nav {
        margin-bottom: 30px;
        font-size: 13px;
    }

    .hot-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .products-layout {
        flex-direction: column;
        gap: 15px;
    }

    .products-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 20px;
    }

    /* 標籤和評分響應式調整 */
    .card-tags {
        gap: 5px;
        margin-top: 6px;
        padding-top: 10px;
        display: none;
    }

    .tag-item {
        padding: 3px 8px;
        font-size: 10px;
    }

    .card-rating {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px;
        gap: 4px;
    }

    .rating-stars .star {
        font-size: 11px;
    }

    .rating-count {
        font-size: 10px;
    }

    /* 購物車按鈕響應式調整 */
    .card-cart-btn {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
    }

    .card-cart-btn svg {
        width: 18px;
        height: 18px;
    }

    /* 遮罩層響應式調整 */
    .overlay-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }

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

    .card-overlay {
        gap: 8px;
    }

    .sidebar-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .hot-title,
    .products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .product-name {
        font-size: 16px;
    }

    .current-price {
        font-size: 22px;
    }

    .current-price::before {
        font-size: 16px;
    }

    /* 雙層卡片移動端調整 */
    .hot-product-card::before {
        top: 4px;
        left: 4px;
        right: -4px;
        bottom: -4px;
        filter: blur(4px);
        opacity: 0.4;
    }

    .hot-product-card:hover::before {
        top: 8px;
        left: 8px;
        right: -8px;
        bottom: -8px;
        filter: blur(8px);
    }

    .card-title {
        font-size: 17px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
    }

    .price-current {
        font-size: 15px;
    }

    .price-current img{
        width: 15px;
        height: 15px;
        margin-bottom: 1px;
    }

    .card-badges{
        top: 6px;
        left: 6px;
    }
    .card-badge{
        padding: 3px 10px;
        font-size: 11px;
    }

    .card-price{
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .product-list-banner-content {
        left: 20px;
        max-width: 90%;
        gap: 10px;
    }

    .product-list-banner-title {
        font-size: 28px;
    }

    .product-list-banner-subtitle {
        font-size: 14px;
    }

    .breadcrumb-nav {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .hot-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-layout {
        flex-direction: column;
        gap: 12px;
    }

    .products-sidebar {
        width: 100%;
        padding: 16px;
    }

    .sidebar-title {
        font-size: 14px;
    }

    .sort-option,
    .filter-option {
        padding: 8px 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hot-title,
    .products-title {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .hot-title::after,.products-title::after{
        height: 2px;
    }

    .product-info {
        padding: 20px 16px;
        gap: 12px;
    }

    /* 雙層卡片小屏調整 */
    .hot-product-card::before {
        top: 3px;
        left: 3px;
        right: -3px;
        bottom: -3px;
        filter: blur(3px);
        opacity: 0.3;
    }

    .hot-product-card:hover::before {
        top: 6px;
        left: 6px;
        right: -6px;
        bottom: -6px;
        filter: blur(6px);
    }

    .current-price {
        font-size: 18px;
    }

    .current-price img{
        width: 21px;
        height: 21px;
        margin-bottom: 1px;
    }

    .current-price::before {
        font-size: 14px;
    }

    .card-content {
        padding: 10px 10px;
        gap: 5px;
    }

    .products-title{
        margin-bottom: 0;
    }
}

/* ============================================
   商品分頁樣式
   ============================================ */

.products-pagination-wrapper {
    margin-top: 50px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layui 分頁自定義樣式 */
.products-pagination .layui-laypage {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.products-pagination .layui-laypage a,
.products-pagination .layui-laypage span {
    min-width: 40px;
    height: 35px;
    line-height: 35px;
    margin: 0 4px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    color: #666;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.products-pagination .layui-laypage a:hover {
    border-color: #CC0303;
    color: #CC0303;
    background: rgba(204, 3, 3, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(204, 3, 3, 0.15);
}

.products-pagination .layui-laypage .layui-laypage-curr {
    background: #CC0303;
    border-color: #CC0303;
    color: #fff;
}

.products-pagination .layui-laypage .layui-laypage-curr em {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
}

.products-pagination .layui-laypage .layui-laypage-curr:hover {
    background: #FF1A1A;
    border-color: #FF1A1A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 3, 3, 0.3);
}

.products-pagination .layui-laypage .layui-laypage-prev,
.products-pagination .layui-laypage .layui-laypage-next {
    font-weight: 600;
}

.products-pagination .layui-laypage .layui-laypage-prev:hover,
.products-pagination .layui-laypage .layui-laypage-next:hover {
    background: #CC0303;
    color: #fff;
    border-color: #CC0303;
}

.products-pagination .layui-laypage .layui-laypage-prev.layui-disabled,
.products-pagination .layui-laypage .layui-laypage-next.layui-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.products-pagination .layui-laypage .layui-laypage-prev.layui-disabled:hover,
.products-pagination .layui-laypage .layui-laypage-next.layui-disabled:hover {
    background: #fff;
    color: #999;
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

.products-pagination .layui-laypage input,
.products-pagination .layui-laypage select {
    height: 40px;
    line-height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.products-pagination .layui-laypage input:focus,
.products-pagination .layui-laypage select:focus {
    border-color: #CC0303;
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 3, 3, 0.1);
}

.products-pagination .layui-laypage .layui-laypage-limits select {
    margin: 0 8px;
}

.products-pagination .layui-laypage .layui-laypage-skip {
    margin-left: 20px;
}

.products-pagination .layui-laypage .layui-laypage-skip input {
    width: 60px;
    text-align: center;
}

.products-pagination .layui-laypage .layui-laypage-skip button {
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    margin-left: 8px;
    background: #CC0303;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.products-pagination .layui-laypage .layui-laypage-skip button:hover {
    background: #FF1A1A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 3, 3, 0.3);
}

.products-pagination .layui-laypage .layui-laypage-count {
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .products-pagination-wrapper {
        margin-top: 30px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .products-pagination .layui-laypage a,
    .products-pagination .layui-laypage span {
        min-width: 26px;
        height: 26px;
        line-height: 26px;
        margin: 0 2px;
        padding: 0 8px;
        font-size: 13px;
    }

    .products-pagination .layui-laypage input,
    .products-pagination .layui-laypage select {
        height: 36px;
        line-height: 36px;
        font-size: 13px;
    }

    .products-pagination .layui-laypage .layui-laypage-skip button {
        height: 36px;
        line-height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }

    .products-pagination .layui-laypage .layui-laypage-count {
        display: none;
    }

    .products-pagination .layui-laypage .layui-laypage-skip {
        margin-left: 10px;
    }

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