/* ==========================================
   開運商品 - 專屬樣式
   ========================================== */

body {
    background-color: var(--light-bg);
}

/* Page Hero */
.shop-hero {
    background: linear-gradient(135deg, rgba(234,176,135,0.9) 0%, rgba(199,128,75,0.85) 100%),
                url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?w=1920&h=400&fit=crop') center/cover;
    padding: 56px 0;
    text-align: center;
}

.shop-hero h1 {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.shop-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

/* Filter Sidebar */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover,
.category-item.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.category-count {
    background: var(--secondary-color);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

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

.price-range-inputs input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    padding: 8px 6px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Noto Sans TC', sans-serif;
    text-align: center;
}

.price-range-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-range-inputs span {
    flex-shrink: 0;
    color: #aaa;
}

/* Sort Bar */
.sort-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #E5E5E5;
    background: white;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 14px;
    border: 2px solid rgba(234,176,135,0.12);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(234,176,135,0.2);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.product-badge.new {
    background: #10b981;
    color: white;
}

.product-badge.hot {
    background: #ef4444;
    color: white;
}

.product-badge.sale {
    background: var(--accent-gold);
    color: white;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.product-wishlist:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: var(--accent-gold);
    font-size: 13px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-gold);
}

.product-price-orig {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-cart:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
    .shop-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 300px;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }
    .shop-sidebar.open { left: 0; }
    .mobile-filter-btn { display: flex !important; }
}
@media (min-width: 1025px) {
    .mobile-filter-btn { display: none !important; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar-overlay.show { display: block; }
