/* ======= Categories Section ======= */
.categories-section {
    padding: 15px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    color: #222;
    font-size: 24px;
    font-weight: 700;
}

.categories-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE & Edge */
}

.categories-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    width: 110px;
    transition: transform 0.3s ease;
}

.category-link {
    text-decoration: none;
    color: #333;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item:hover .category-image {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .category-item {
        width: 90px;
    }
    .category-image {
        width: 70px;
        height: 70px;
    }
    .category-name {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .category-item {
        width: 80px;
    }
    .category-image {
        width: 65px;
        height: 65px;
    }
    .category-name {
        font-size: 12px;
    }
}
