/* style.css - Category Carousel (screenshot style, 4 items on mobile) */

.cc-carousel-wrap {
    padding: 8px 12px;
}

/* Horizontal scroll */
.cc-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar */
.cc-carousel::-webkit-scrollbar {
    display: none;
}
.cc-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Each clickable item */
.cc-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-decoration: none;
}

/* Card design */
.cc-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    padding: 8px;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.cc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Image */
.cc-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* Title */
.cc-title {
    font-size: 12px;
    color: #222;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✅ Responsive: 4 items on mobile */
@media (max-width: 480px) {
    .cc-item {
        flex: 0 0 calc(25% - 10px); /* 4 items per row */
    }
    .cc-card {
        padding: 6px;
    }
    .cc-card img {
        width: 32px;
        height: 32px;
    }
    .cc-title {
        font-size: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .cc-item {
        flex: 0 0 calc(25% - 10px); /* Tablet: 4 items */
    }
    .cc-card img {
        width: 36px;
        height: 36px;
    }
    .cc-title {
        font-size: 11px;
    }
}

/* Larger screens - more items fit naturally */
@media (min-width: 769px) {
    .cc-item {
        flex: 0 0 auto;
    }
    .cc-card {
        width: 86px;
    }
}
