body { margin: 0; font-family: "Manrope", sans-serif; color: var(--ink); }
.page { padding: 0 7% 80px; }

.catalog-head { padding: 32px 0 24px; max-width: 720px; }
.catalog-head h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.catalog-head p { color: var(--ink-muted); font-size: 17px; margin: 0; }

/* Пилюли фильтра по категориям */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #EEF1F0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.pill input:checked + span { background: var(--accent); color: white; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.results-count { color: var(--ink-muted); margin: 0 0 16px; }
.results-count strong { color: var(--ink); }

/* Сетка товаров: сама решает, сколько карточек помещается в ряд */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}
.product-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}
.product-photo { aspect-ratio: 4 / 3; background: #EEF1F0; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.product-category { font-size: 12px; color: var(--ink-muted); }
.product-info h3 { margin: 0; font-size: 16px; }
.product-price { margin-top: 4px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.empty {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--ink-muted);
}
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }