.compact-category-section {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    overflow: hidden;
}

.compact-category-wrapper {
    width: 100%;
    padding: 7px 12px;
}

.compact-category-carousel {
    width: 100%;
}

.compact-category-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.compact-category-carousel .owl-item {
    width: auto !important;
}

.compact-category-slide {
    width: auto;
}

.compact-category-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 2px 4px;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.compact-category-item:hover {
    color: #34458f;
    text-decoration: none;
}

.compact-category-item.active {
    color: #34458f;
}

.compact-category-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.compact-all-icon {
    background: #f1f3ff;
    color: #34458f;
    font-size: 16px;
}

.compact-category-name {
    display: block;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: inherit;
}

.compact-category-carousel .owl-nav,
.compact-category-carousel .owl-dots {
    display: none !important;
}

/* Desktop */
@media (min-width: 1200px) {
    .compact-category-wrapper {
        padding: 7px 16px;
    }

    .compact-category-item {
        gap: 8px;
        margin-right: 10px;
    }

    .compact-category-name {
        font-size: 13px;
        max-width: 155px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .compact-category-wrapper {
        padding: 7px 10px;
    }

    .compact-category-item {
        gap: 7px;
        margin-right: 6px;
    }

    .compact-category-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .compact-category-name {
        font-size: 12px;
        max-width: 130px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .compact-category-wrapper {
        padding: 6px 8px;
    }

    .compact-category-item {
        gap: 6px;
        margin-right: 4px;
        min-height: 34px;
    }

    .compact-category-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .compact-category-name {
        font-size: 11px;
        max-width: 105px;
    }
}

/* Mobile Sticky Category Bar */
@media (max-width: 767px) {

    .compact-category-wrapper {
        padding: 8px 5px;
    }

    .compact-category-carousel .owl-item {
        width: auto !important;
    }

    .compact-category-slide {
        width: 25%;
    }

    .compact-category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 4px;
        /* gap: 6px; */
    }

    .compact-category-icon {
        width: 50px;
        height: 60px;
        min-width: 50px;
        border-radius: 6px;
        overflow: hidden;
        border: none;
        background: #f5f5f5;
    }

    .compact-category-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .compact-category-name {
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}