.cat-circle-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.cat-circle-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 15px 5px;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    
    /* Calculate item width based on available space and gap */
    --gap-count: calc(var(--items-to-show, 5) - 1);
    --total-gap: calc(var(--gap-count) * 20px); /* 20px is default gap, overridden by JS/CSS var if needed */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cat-circle-track::-webkit-scrollbar {
    display: none;
}

.cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    
    /* Dynamically size items based on how many to show */
    width: calc((100% - var(--total-gap)) / var(--items-to-show, 5));
    min-width: max-content; /* Ensure it doesn't shrink below content */
}

.cat-circle-item:hover {
    transform: translateY(-5px);
}

.cat-circle-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
}

.cat-circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-circle-title {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: color 0.3s ease;
    word-break: break-word;
    max-width: 100%;
}