/* Listing Layout */
.mainContent {
    max-width: 1280px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.listingLayout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Sidebar */
.filterSidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.filterSection {
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
}

.filterSection:last-child {
    border-bottom: none;
}

.filterHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.filterHeader h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1d252c;
}

.filterHeader i {
    font-size: 12px;
    color: #666;
}

.categoryList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.categoryList a {
    display: flex;
    justify-content: space-between;
    color: #1d252c;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    padding: 2px 0;
}

.categoryList a:hover {
    color: #0046be;
    text-decoration: underline;
}

.categoryList span {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 8px;
}

.checkboxList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkboxList label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d252c;
    cursor: pointer;
}

.checkboxList input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0046be;
    cursor: pointer;
}

.checkboxList span {
    color: #666;
    font-size: 12px;
}

/* Product Listing Area */
.productListing {
    flex: 1;
    min-width: 0;
}

.listingToolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.resultsCount {
    font-size: 14px;
    font-weight: 600;
    color: #1d252c;
}

.toolbarControls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Custom Toggle Switch */
.toggleLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d252c;
    cursor: pointer;
    user-select: none;
}

.toggleInput {
    display: none;
}

.toggleSwitch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    transition: background 0.2s;
}

.toggleSwitch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggleInput:checked + .toggleSwitch {
    background: #0046be;
}

.toggleInput:checked + .toggleSwitch::after {
    transform: translateX(16px);
}

.sortControl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.sortControl label {
    color: #666;
}

.sortControl select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
    appearance: none;
    cursor: pointer;
    min-width: 130px;
}

/* Product Grid */
.productGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.productCard {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.productCard:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.productImageWrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 16px;
}

.productImageWrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.productInfo {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.productTitle {
    font-size: 13px;
    font-weight: 500;
    color: #0046be;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.productTitle:hover {
    text-decoration: underline;
    cursor: pointer;
}

.productRating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.stars {
    color: #ffc107;
    letter-spacing: 1px;
}

.ratingCount {
    color: #666;
}

.productPrice {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.currentPrice {
    font-size: 18px;
    font-weight: 700;
    color: #1d252c;
}

.saveBadge {
    font-size: 12px;
    font-weight: 700;
    color: #c41e3a;
}

.availability {
    font-size: 12px;
    color: #067d62;
    margin-top: 2px;
}

.availability.onlineOnly {
    color: #666;
}

.btnAddToCart {
    margin-top: auto;
    background-color: #fff200;
    color: #1d252c;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s;
    width: 100%;
}

.btnAddToCart:hover {
    background-color: #e6da00;
}

.btnAddToCart i {
    font-size: 14px;
}
