/* ============================================
   WooCommerce Shop - Eastern Palate
   ============================================ */

/* Remove all top spacing */
body.eastern-palate-shop {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Shop Wrapper - No spacing */
.shop-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #FAF7F2;
    margin: 0;
    padding: 0;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 134, 128, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.logo span {
    color: #C73E3A;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #2C2C2C;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #C73E3A;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-actions svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-actions svg:hover {
    transform: scale(1.1);
}

/* ============================================
   Shop Container
   ============================================ */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 3%;
}

/* ============================================
   Filter Bar - Transparent background
   ============================================ */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(139, 134, 128, 0.15);
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2C2C2C;
    white-space: nowrap;
}

.filter-item label svg {
    color: #C73E3A;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #2C2C2C;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #C73E3A;
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

.filter-select:hover {
    border-color: #C73E3A;
}

/* ============================================
   Products Count
   ============================================ */
.products-count {
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(139, 134, 128, 0.1);
}

.products-count span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Product Card */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

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

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Badges */
.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #C73E3A;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.out-of-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #666;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Product Info */
.product-info {
    padding-top: 12px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 14px;
    color: #717171;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.price-original {
    font-size: 14px;
    color: #717171;
    text-decoration: line-through;
}

.price-sale {
    font-size: 16px;
    font-weight: 600;
    color: #C73E3A;
}

.price-current {
    font-size: 16px;
    font-weight: 600;
    color: #2C2C2C;
}

.price-current .woocommerce-Price-amount {
    color: #2C2C2C;
}

/* ============================================
   Pagination
   ============================================ */
.shop-pagination {
    padding-top: 40px;
    border-top: 1px solid rgba(139, 134, 128, 0.1);
}

.shop-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.shop-pagination .page-numbers li {
    margin: 0;
}

.shop-pagination a,
.shop-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #2C2C2C;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.shop-pagination a:hover {
    background: #f5f5f5;
    border-color: #C73E3A;
    color: #C73E3A;
}

.shop-pagination .current {
    background: #C73E3A;
    color: #fff;
    border-color: #C73E3A;
}

/* ============================================
   No Products Found
   ============================================ */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-products-found svg {
    color: #ddd;
    margin-bottom: 24px;
}

.no-products-found h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 12px;
}

.no-products-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    background: #C73E3A;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #a83330;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 62, 58, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 992px) {
    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-left {
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-item {
        flex: 1;
        min-width: 200px;
    }

    .filter-select {
        width: 100%;
    }

    .filter-right {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }

    .filter-search-bar.active {
        width: 250px;
    }

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

@media (max-width: 768px) {
    .shop-banner {
        height: 300px;
    }

    .shop-banner-overlay {
        padding: 20px 4%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .banner-left {
        width: 100%;
        justify-content: center;
    }

    .banner-center {
        gap: 24px;
    }

    .banner-nav-link {
        font-size: 14px;
    }

    .banner-right {
        gap: 16px;
    }

    .banner-icon-btn {
        width: 36px;
        height: 36px;
    }

    .shop-container {
        padding: 32px 4%;
    }

    .filter-bar {
        padding: 20px 0;
    }

    .filter-left {
        gap: 16px;
    }

    .filter-item {
        min-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-select {
        min-width: 100%;
    }

    .filter-search-bar.active {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .shop-banner {
        height: 250px;
    }

    .shop-banner-overlay {
        padding: 15px 4%;
    }

    .banner-logo {
        font-size: 18px;
    }

    .banner-center {
        gap: 16px;
    }

    .banner-nav-link {
        font-size: 13px;
    }

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

    .product-title {
        font-size: 15px;
    }

    .product-desc {
        font-size: 13px;
    }

    .filter-search-bar {
        right: 45px;
    }

    .filter-search-bar.active {
        width: 180px;
    }

    .filter-search-input {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 25px; /* 保持圆润 */
    }
}

/* ============================================
   Remove Default WooCommerce Styles
   ============================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0;
    padding: 0;
    width: auto;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce .products .product .button,
.woocommerce .products .product .price,
.woocommerce .products .product .woocommerce-loop-product__title,
.woocommerce .products .product img {
    display: none;
}