/* Recherche / liste articles — extrait de products/search.php */
.products {
    margin-top: 2rem;
}

.categories-section {
    max-width: var(--max-width);
    margin: 4rem 5px;
    padding: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.boutique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.boutique-card {
    cursor: pointer;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    display: block;
}

.boutique-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.boutique-banner {
    height: 100px;
    background: #f8f9fa;
    position: relative;
}

.boutique-logo-circle {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boutique-info {
    padding: 40px 20px 20px;
}

.search-empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: 2rem;
}

.scroll-loader {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
}

.scroll-loader i {
    color: var(--primary);
    font-size: 1.4rem;
}

.scroll-end-msg {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}
