
.category-header {
    padding: 2rem 0;
    background: linear-gradient(165deg, var(--card-bg) 0%, rgba(252, 252, 252, 0.95) 100%);
    border-bottom: 1px solid var(--bg-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    z-index: 100;
    position: relative;
}

.category-header .container {
    width: 80%;
    margin: 0 auto;
}

.category-header .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-header .breadcrumbs a,
.category-header .breadcrumbs span {
    font-size: 0.8rem;
    color: var(--text-dark-low);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.category-header .breadcrumbs i {
    font-size: 0.7rem;
    color: var(--text-dark-low);
}

.category-header .breadcrumbs a:hover {
    color: var(--text-dark);
}

.category-header .content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.category-header .info {
    flex: 1;
}

.category-header .title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.category-header .description {
    font-size: 1rem;
    color: var(--text-dark-low);
}

.category-header .description span {
    color: var(--text-dark);
    font-weight: 600;
}

.category-header .actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header .filter-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.category-header .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 232, 0, 0.2);
}

.category-header .filter-btn i {
    font-size: 0.9rem;
}

.category-header .filter-btn .badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--text-dark);
    color: var(--primary-color);
    font-size: 0.75rem;
}

.category-header .sort-dropdown {
    position: relative;
}

.category-header .sort-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.category-header .sort-btn i {
    font-size: 0.9rem;
    color: var(--text-dark-low);
}

.category-header .sort-btn span {
    font-weight: 500;
}

.category-header .sort-btn:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-header .sort-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.category-header .sort-dropdown:hover .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-header .sort-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-header .sort-item i {
    font-size: 0.9rem;
    color: var(--text-dark-low);
    transition: all 0.2s ease;
}

.category-header .sort-item:hover {
    background: var(--bg-color);
    transform: translateX(5px);
}

.category-header .sort-item.active {
    background: var(--primary-color);
    color: var(--text-dark);
}

.category-header .sort-item.active i {
    color: var(--text-dark);
}

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-dark-low);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-btn.prev:hover i {
    transform: translateX(-3px);
}

.nav-btn.next:hover i {
    transform: translateX(3px);
}

.nav-btn:hover {
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-numbers a,
.page-numbers .dots {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-dark-low);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers a:hover {
    background: var(--bg-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.page-numbers a.active {
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 232, 0, 0.2);
}

.page-numbers .dots {
    color: var(--text-dark-low);
    cursor: default;
}

@media (max-width: 1200px) {
    .category-header .container {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .category-header .container {
        width: 95%;
    }
    
    .category-header .content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-header .actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .category-header .title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .category-header .title {
        font-size: 1.6rem;
    }
    
    .category-header .description {
        font-size: 0.9rem;
    }
    
    .page-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .category-header {
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .category-header .container {
        width: calc(100% - 2rem);
        padding: 0 1rem;
    }
    
    .category-header .breadcrumbs {
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .category-header .title {
        font-size: 1.4rem;
    }
    
    .category-header .actions {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .category-header .filter-btn,
    .category-header .sort-btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-header .sort-dropdown {
        width: 100%;
    }
    
    .category-header .sort-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}




.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 20px);
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 10px;
}

.filter-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.filter-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
    animation-delay: 0.1s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-modal-header h3 i {
    color: var(--primary-color);
}

.filter-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.filter-close-btn:hover {
    background: var(--text-dark);
    color: #fff;
    transform: rotate(90deg);
}

.filter-modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.filter-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.filter-column {
    flex: 1;
    min-width: 300px;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-color);
}

/* Price Range Styles */
.price-range-container {
    padding: 0.5rem 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark-low);
    margin-bottom: 0.4rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .currency-symbol {
    position: absolute;
    left: 10px;
    color: var(--text-dark-low);
    font-weight: 500;
}

.price-input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2rem;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.price-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.2);
}

.price-separator {
    font-size: 1.2rem;
    color: var(--text-dark-low);
    font-weight: 500;
}

.price-slider-container {
    padding: 0 0.5rem;
    margin: 1.5rem 0;
}

.price-slider {
    height: 6px;
    background: var(--bg-color);
    border-radius: 4px;
    position: relative;
}

.price-quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.price-quick-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.price-quick-btn:hover {
    background: var(--primary-color-low);
}

.price-quick-btn.active {
    background: var(--primary-color);
    font-weight: 500;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--bg-color);
    outline: none;
    cursor: pointer;
    margin-right: 0.8rem;
    position: relative;
    appearance: none;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-dark);
    font-size: 0.7rem;
}

.custom-checkbox label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
    margin-left: 0.5rem;
}

.custom-checkbox .checkbox-count {
    font-size: 0.8rem;
    color: var(--text-dark-low);
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

/* Location Search Styles */
.location-search {
    margin-bottom: 1rem;
}

.input-with-icon.search {
    position: relative;
}

.input-with-icon.search i {
    position: absolute;
    left: 12px;
    color: var(--text-dark-low);
}

.input-with-icon.search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.input-with-icon.search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.2);
}

.radius-select {
    margin-bottom: 1.5rem;
}

.radius-select label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark-low);
    margin-bottom: 0.4rem;
}

.radius-select select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    transition: all 0.2s ease;
}

.radius-select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.2);
}

.popular-locations h5 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-tag {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.location-tag:hover {
    background: var(--primary-color-low);
    transform: translateY(-2px);
}

.location-tag.active {
    background: var(--primary-color);
    font-weight: 500;
}

/* Size Range Styles */
.size-range {
    padding: 0.5rem 0;
}

.size-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.size-field {
    flex: 1;
}

.size-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark-low);
    margin-bottom: 0.4rem;
}

.size-field .input-with-icon input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.size-field .input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.2);
}

.size-field .input-with-icon .unit {
    position: absolute;
    right: 10px;
    color: var(--text-dark-low);
    font-size: 0.8rem;
}

.size-separator {
    font-size: 1.2rem;
    color: var(--text-dark-low);
    font-weight: 500;
}

/* Seller Options Styles */
.seller-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-option {
    display: flex;
    align-items: center;
}

.seller-option input[type="radio"] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--bg-color);
    outline: none;
    cursor: pointer;
    margin-right: 0.8rem;
    position: relative;
    appearance: none;
    transition: all 0.2s ease;
}

.seller-option input[type="radio"]:checked {
    border: 5px solid var(--primary-color);
}

.seller-option label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Filter Chips Styles */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.filter-chip {
    padding: 0.6rem 1rem;
    border-radius: 20px;
    background: var(--primary-color-low);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: var(--primary-color);
}

.filter-chip .remove-chip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.filter-chip:hover .remove-chip {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

.filter-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-reset-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: #f0f0f0;
}

.filter-reset-btn i {
    font-size: 0.8rem;
}

.filter-results-info {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.filter-results-info span {
    font-weight: 600;
}

.filter-apply-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 232, 0, 0.3);
}

@media (max-width: 992px) {
    .filter-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-column {
        width: 100%;
    }

    .filter-modal-content {
        width: 95%;
    }

    .filter-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-results-info {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .filter-apply-btn, .filter-reset-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Media Queries */
@media (max-width: 1400px) {
    .main-section {
        width: 90%;
    }

    .main-section .sidebar-wrapper {
        width: 260px;
    }
}

@media (max-width: 992px) {
    .main-section {
        flex-direction: column;
        gap: 1rem;
        width: 95%;

    }
    
    .main-section .sidebar-wrapper {
        width: 100%;
        position: relative;
        top: 0;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .main-section .sidebar-wrapper .sidebar-title,
    .main-section .sidebar-wrapper .sidebar-nav {
        display: none;
    }
    
    .main-section .content-wrapper {
        width: calc(100% - 0.4rem);
        padding: 1rem 0.2rem;
    }

    .filter-modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
}

@media (max-width: 576px) {
    .main-section {
        width: calc(100% - 1rem);
        padding: 1rem 0.5rem;
        padding-top: 0;
    }
}

