/* 尚品购（ShangPinGou） - 二级商品列表页专用样式表 (list.css) */

/* 面包屑导航 (.breadcrumb) */
.breadcrumb {
    padding: 15px 0;
    font-size: 12px;
    color: #666666;
}

.breadcrumb a {
    color: #666666;
}

.breadcrumb span.sep {
    margin: 0 8px;
    color: #ccc;
}

/* 多维筛选条件区 (.filter-box) */
.filter-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.filter-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    align-items: flex-start;
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-row .filter-title {
    width: 90px;
    color: #888888;
    font-weight: bold;
    font-size: 13px;
    padding-top: 2px;
}

.filter-row .filter-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-row .filter-items a {
    color: #333333;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.filter-row .filter-items a:hover,
.filter-row .filter-items a.active {
    background-color: #e4393c;
    color: #ffffff;
}

/* 排序控制栏 (.sort-bar) */
.sort-bar {
    background-color: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-options .sort-item {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 5px 14px;
    font-size: 13px;
    color: #333333;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-options .sort-item.active {
    background-color: #e4393c;
    color: #ffffff;
    border-color: #e4393c;
}

.total-count {
    font-size: 12px;
    color: #888888;
}

/* 商品网格列表 (.product-grid) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #e4393c;
}

/* 商品角标定位 */
.product-card .badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e4393c;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 2;
}

.product-card .img-wrap {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-card .img-wrap img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card .product-price {
    font-size: 20px;
    font-weight: bold;
    color: #e4393c;
    margin-bottom: 6px;
}

.product-card .product-title {
    font-size: 13px;
    color: #333333;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-card .product-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999999;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
    padding-top: 8px;
}

.product-card .product-info .comment-count {
    color: #005aa0;
    font-weight: bold;
}
