/* Mobile Category Tabs - Force Override All Styles */
.mobile-category-tabs {
    display: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.5rem;
    margin: 0 1rem 2rem 1rem;
    padding: 0;
}

.category-tab {
    /* Reset all button styles */
    all: unset;
    
    /* Our styles */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 0.25rem;
    
    /* Colors - NOT BLUE! */
    background-color: #FFFFFF;
    color: #2C3E50;
    
    /* Border */
    border: 3px solid #F8F9FA;
    border-radius: 12px;
    
    /* Interaction */
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Typography */
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    
    /* Remove tap effects */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.category-tab span {
    display: block;
    color: #2C3E50;
    white-space: nowrap;
}

.category-tab i {
    font-size: 1.6rem;
    color: #7F8C8D;
    transition: all 0.3s ease;
    display: block;
}

.category-tab span {
    display: block;
    color: #2C3E50;
}

/* Active state - GREEN! */
.category-tab.active {
    background-color: #009246;
    background-image: linear-gradient(to bottom, #009246, #007A3D);
    color: #FFFFFF;
    border-color: #009246;
    box-shadow: 0 4px 12px rgba(0, 146, 70, 0.3);
}

.category-tab.active i {
    color: #FFFFFF;
}

.category-tab.active span {
    color: #FFFFFF;
}

/* Hover state */
.category-tab:hover:not(.active) {
    border-color: #009246;
    background-color: #F8F9FA;
}

/* Mobile only */
@media (max-width: 768px) {
    .mobile-category-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Position Extra in the center of row 2 */
    .category-tab[data-category="extra"] {
        grid-column: 3 / 4;
    }
}

@media (max-width: 480px) {
    .mobile-category-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        margin: 0 0.75rem 1.5rem 0.75rem;
    }
    
    .category-tab {
        font-size: 0.62rem;
        padding: 0.65rem 0.1rem;
        gap: 0.3rem;
    }
    
    .category-tab i {
        font-size: 1.2rem;
    }
    
    .category-tab span {
        font-size: 0.62rem;
        line-height: 1.1;
    }
    
    /* On small screens, center Extra between columns 2 and 3 */
    .category-tab[data-category="extra"] {
        grid-column: 2 / 4;
        grid-row: 3;
    }
}