/* === CATEGORIES FILTER === */
.categories-filter {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-full);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    background: var(--background);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

/* === SUGGESTIONS === */
.suggestions-container {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background-color: var(--background);
}

.suggestion-name {
    font-weight: 500;
}

.suggestion-detail {
    color: #666;
    font-size: 0.9em;
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
    .search-bar {
        padding: 8px;
    }
    
    .store-card {
        margin: 8px;
        padding: 16px;
    }
    
    .details-btn {
        width: 100%;
        margin: 16px 0;
        padding: 12px;
    }
    
    .product-tag {
        font-size: 0.8125rem;
        padding: 4px 10px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* === LOADING === */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}