/* PRODUCT LISTING PAGE STYLES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}
.breadcrumbs {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    font-weight: 600;
}
.page-title {
    font-size: 42px;
    font-weight: 900;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.page-desc {
    font-size: 14px;
    color: #555;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 60px;
}
.listing-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
}

/* Sidebar Filters */
.filter-group {
    margin-bottom: 40px;
}
.filter-title {
    font-size: 11px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.filter-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 14px;
    cursor: pointer;
}
.filter-opt input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0052a3;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 2px;
}
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
}
.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.color-swatch:hover {
    transform: scale(1.1);
}

/* Main Content Area */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
}
.item-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}
.sort-dropdown {
    font-size: 12px;
    font-weight: 800;
    color: #111;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    appearance: none;
    padding-right: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

/* Product Grid (Dynamically Populated) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    background-color: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
.badge-yellow {
    background: #fcd535;
    color: #111;
}
.badge-white {
    background: #fff;
    color: #111;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.badge-blue {
    background: #0052a3;
    color: #fff;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.product-name {
    font-size: 14px;
    font-weight: 900;
    color: #111;
    line-height: 1.3;
    max-width: 80%;
}
.product-price {
    font-size: 14px;
    font-weight: 900;
    color: #111;
}
.product-material {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}
.product-rating {
    font-size: 10px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-rating .filled {
    color: #fcd535;
}
.product-rating-count {
    color: #888;
    margin-left: 2px;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.page-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f4f5f5;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}
.page-item:hover {
    background: #e5e7eb;
}
.page-item.active {
    background: #0052a3;
    color: #fff;
}
.page-dots {
    font-size: 14px;
    font-weight: 800;
    color: #666;
    padding: 0 4px;
}
.page-arrow {
    background: #f4f5f5;
}
.page-arrow svg {
    width: 14px;
    height: 14px;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 24px 16px 60px !important;
    }
    
    .breadcrumbs {
        font-size: 9px !important;
        margin-bottom: 16px !important;
    }
    
    .page-title {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .page-desc {
        max-width: 100% !important;
        margin-bottom: 32px !important;
    }
    
    /* Layout - sidebar becomes top horizontal scroll */
    .listing-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Sidebar */
    .filter-group {
        margin-bottom: 24px;
    }
    .filter-title {
        font-size: 10px !important;
        margin-bottom: 12px !important;
    }
    .filter-opt {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    
    /* Toolbar */
    .toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    /* Product Grid - 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 40px !important;
    }
    
    .product-img-wrapper {
        height: 200px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        max-width: 90% !important;
    }
    
    .product-price {
        font-size: 12px !important;
    }
    
    .product-material {
        font-size: 10px !important;
    }
    
    .product-rating {
        font-size: 9px !important;
    }
    
    .badge {
        font-size: 8px !important;
        padding: 3px 8px !important;
    }
    
    /* Pagination */
    .pagination {
        gap: 6px !important;
    }
    .page-item {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 480px) {
    .container {
        padding: 20px 14px 40px !important;
    }
    
    .page-title {
        font-size: 24px !important;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .product-img-wrapper {
        height: 160px !important;
    }
    
    .product-name {
        font-size: 11px !important;
    }
    
    .product-price {
        font-size: 11px !important;
    }
}
