:root {
    --page-width: 1200px;
    --card-radius: 12px;
    --hot-color: #ff4757;
    --text-primary: #2d3436;
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}
.page-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 32px 0 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: #ffe0e0;
}
.product-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image {
    transform: scale(1.06);
}
.product-info {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;
}
.product-info .price{
    width: 100%;
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e63946;
}
.product-info .price p{font-size: 17px;}
.product-card:hover .price{color: #FF6633;}
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: color 0.2s;
}
.product-card:hover .product-title {
    color: #e63946;
}

.loading-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
    color: #999;
    font-size: 15px;
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #bbb;
    font-size: 16px;
}
@media (max-width: 1240px) {
    .page-container {
        width: 96%;
        padding: 24px 0 40px;
    }
    .product-grid {
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .page-title {
        font-size: 20px;
    }
}