/* --------------------------------------------------
  MODERN CITYMALL CATEGORY NAVIGATION STYLES
  (Self-contained in the plugin)
-------------------------------------------------- */

.cmc-category-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Ensures the inner shadow is contained */
}

.cmc-category-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px 0;
    color: #0f172a; /* Using a dark color similar to theme's --ink */
    letter-spacing: -0.02em;
    display: none;
}

.cmc-category-scroll-container {
    /* Force horizontal scrolling and prevent vertical */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
    position: relative; /* Needed for the gradient overlay */
    
    /* Ensure it takes up the full width and doesn't wrap */
    width: 100%;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.cmc-category-scroll-container::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome, Safari, Opera */
}

.cmc-category-list {
    display: flex;
    gap: 16px; /* Space between category items */
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0; 
}

.cmc-category-item {
    flex-shrink: 0; /* Prevents items from shrinking on small screens */
    text-align: center;
}

.cmc-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.cmc-category-link:hover {
    transform: scale(1.05);
}

.cmc-category-image-wrapper {
    width: 45px;
    height: 45px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f7f7f7;
    padding: 4px; /* Creates a border effect */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease-in-out;
}

.cmc-category-link:hover .cmc-category-image-wrapper {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cmc-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 50%;
    display: block;
}

.cmc-category-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    margin: 0 auto;
    text-wrap: auto;
}