/* 产品列表页面特有样式 */

/* 排序按钮样式 */
.sort-buttons {
    justify-content: space-around;
    margin-top: 10px;
    padding: 0 10px;
}

.sort-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0; /* 灰底 */
    color: #333; /* 黑字 */
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn.active {
    background-color: #336df3; /* 蓝底 */
    color: white; /* 白字 */
}

/* 产品列表样式 */
.product-list {
    padding: 10px;
}
.product-item {
    display: flex;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #fafafa;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #336df3;
    background-color: white;
}

.product-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    min-height: 20px;
}

.product-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    min-height: 25px;
}

.product-price {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.buy-button {
    background-color: #336df3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: auto;
    float: right;
}
