/* Breadcrumb */
.breadcrumb {
    padding: 15px 15px;
    font-size: 14px;
    color: #333;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .sep {
    margin: 0 5px;
    color: #999;
    font-family: serif;
}

/* Filter Section */
.filter-section {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.filter-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
}

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

.filter-label {
    width: 80px;
    color: #999;
    font-weight: bold;
}

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

.filter-options a {
    padding: 2px 8px;
    border-radius: 2px;
    color: #333;
}

.filter-options a:hover {
    color: var(--primary-color);
}

.filter-options a.active {
    background-color: var(--primary-color);
    color: #333;
    font-weight: bold;
}

/* List Layout */
.list-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0; /* Override container padding to align with filter section */
}

.product-list {
    flex: 1;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    min-width: 0; /* Prevent overflow */
}

.list-sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    gap: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
}

.sort-item {
    color: #666;
}

.sort-item.active {
    color: var(--primary-color);
    font-weight: bold;
}

.sort-item:hover {
    color: var(--primary-color);
}

/* List Item */
.list-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.list-item:first-child {
    padding-top: 0;
}

.list-item:last-of-type {
    border-bottom: none;
}

.item-img {
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    margin-right: 20px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-index {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FB2;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 0 0 4px 0;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.item-title a {
    color: #333;
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.stars {
    color: #F60;
}

.score {
    color: #F60;
    font-weight: bold;
}

.comment-count {
    color: #999;
}

.item-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.item-deals {
    border-top: 1px dotted #eee;
    padding-top: 10px;
}

.deal-entry {
    margin-bottom: 5px;
}

.deal-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.deal-link:hover .deal-title {
    color: var(--primary-color);
}

.deal-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-price {
    color: #F60;
    font-weight: bold;
    margin: 0 15px;
}

.deal-price .num {
    font-size: 18px;
}

.deal-sales {
    font-size: 12px;
    color: #999;
    width: 80px;
    text-align: right;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}

.page-link:hover, .page-link.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff; /* Active text usually white or dark depending on contrast, let's keep it simple or match brand */
}

.page-link.active {
    color: #333; /* Brand yellow background usually pairs with dark text */
    font-weight: bold;
}

.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

.page-link.disabled:hover {
    background-color: transparent;
    border-color: #eee;
    color: #ccc;
}

/* Sidebar */
.sidebar-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hot-list li {
    margin-bottom: 15px;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list a {
    display: flex;
    gap: 10px;
}

.hot-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.hot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.hot-price {
    font-size: 16px;
    color: #F60;
    font-weight: bold;
}
