/* New Wrapper for Horizontal Scroll (Mobile Default) */
.category-filter-wrapper {
    /* CRITICAL: Must be position relative to hold the absolute overlay */
    position: relative; 
    
    overflow-x: auto; 
    white-space: nowrap; 
    padding: 20px 0;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    
    /* Hide scrollbar for cleaner mobile look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-filter-wrapper::-webkit-scrollbar {
    display: none;
}

/* ---------------------------------------------------- */
/* B. SCROLL INDICATOR GRADIENT OVERLAY (The visual cue) */
/* ---------------------------------------------------- */
.category-filter-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    /* Width of the fade area */
    width: 70px; 
    height: 100%;
    /* Gradient: fades from transparent (left) to the wrapper background (right) */
    background: linear-gradient(to left, 
        rgba(249, 249, 249, 1) 0%, /* #f9f9f9 (wrapper background) */
        rgba(249, 249, 249, 0) 100% /* Transparent */
    );
    pointer-events: none; /* Allows clicks to pass through to the buttons */
    /* Ensure the overlay is above the content but below any fixed header/footer */
    z-index: 10; 
}

/* Updated Category Filter */
.category-filter {
    display: flex;
    flex-wrap: nowrap; /* Ensure single line by preventing wrap */
    justify-content: flex-start; /* Start content from the left */
    gap: 12px;
    padding: 0 10px; /* Padding ensures buttons don't touch screen edges */
}

/* Category Button: ensure they do not shrink */
.category-btn {
    flex-shrink: 0; /* CRITICAL: Prevents buttons from squeezing smaller than their content */
    padding: 10px 15px;
    background-color: #fff;
    border: 2px solid #00c88c;
    color: #00c88c;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #00c88c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 200, 140, 0.2);
}

.category-btn.active {
    background-color: #00c88c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 200, 140, 0.2);
}