/* Categories Section */
.categories-section {
    padding: 20px 0 20px 0;
    background-color: #F2F2F2;
    overflow: hidden;
}

.categories-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1D2939;
    margin-bottom: 40px;
}

/* Categories Carousel */
.categories-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-right: -60vw;
    padding-right: 60vw;
}

/* Hide scrollbar while keeping functionality */
.categories-carousel::-webkit-scrollbar {
    display: none;
}

.categories-wrapper {
    display: flex;
    gap: 20px;
    min-width: min-content;
    padding: 0 0;
}

.category-item {
    flex: 0 0 130px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.category-item:hover {
    border-color: #475467;
    background-color: transparent;
}

.category-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background-color: #FCFCFD;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-item:hover .category-image {
    border: 1.07px solid #475467;
    box-shadow: none;
}

.category-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.category-item h3 {
    font-size: 13px;
    font-weight: 600;
    color: #1D2939;
    margin-bottom: 0;
    line-height: 1.4;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filters Carousel Section */
.filters-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-right: -60vw;
    padding-right: 60vw;
}

.filters-carousel::-webkit-scrollbar {
    display: none;
}

.filters-wrapper {
    display: flex;
    gap: 10px;
    min-width: min-content;
    padding: 0 0;
}

.filter-tag {
    display: inline-block;
    font-size: 13px;
    color: #344054;
    background-color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 2px;
    /* border: 2px solid #E5E7EB; */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    background-color: #475467;
    color: white;
    border-color: #475467;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-section {
        padding: 40px 20px;
    }

    .categories-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .category-item {
        flex: 0 0 110px;
        padding: 10px;
    }

    .category-image {
        width: 90px;
        height: 90px;
    }

    .category-item h3 {
        font-size: 12px;
    }

    .filter-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 30px 15px;
    }

    .categories-section h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .category-item {
        flex: 0 0 100px;
        padding: 8px;
    }

    .category-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .category-item h3 {
        font-size: 11px;
    }

    .filter-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}
