/* 商品列表容器 */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 商品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 商品卡片样式 */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 促销标识 */
.promotion-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.tag-discount {
    background-color: #e63946;
    /* 限时折扣 - 红色 */
}

.tag-buy-one-get-one {
    background-color: #1d3557;
    /* 买一送一 - 深蓝色 */
}

.tag-hot {
    background-color: #f1faee;
    /* 热销 - 浅色背景 */
    color: #e63946;
    /* 红色文字 */
}

.tag-new {
    background-color: #457b9d;
    /* 新品 - 中蓝色 */
}

.tag-reduction {
    background-color: #a8dadc;
    /* 满减 - 浅蓝色 */
    color: #1d3557;
    /* 深色文字 */
}

/* 商品图片 */
.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background-color: #f0f4f8;
}

/* 商品信息区域 */
.product-info {
    padding: 15px;
}

/* 商品标题 */
.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 价格样式 */
.product-price {
    font-size: 18px;
    color: #165DFF;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.product-price .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: normal;
}

/* 购买按钮 */
.buy-button {
    width: 100%;
    background-color: #165DFF;
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #0E42D2;
}

/* 加载提示 */
.loading {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    display: none;
}

.loading.active {
    display: block;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #165DFF;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 没有更多数据提示 */
.no-more {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
    display: none;
}

.no-more.active {
    display: block;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}