/* Каталог на главной (второй блок): горизонтальная полоса фильтра по типу вещи + сетка карточек каталога (.cat-grid).
   Полоса прилипает под шапкой, пока листаешь сетку; на телефоне прокручивается вбок. Логика — js/shop.js */
.shop { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.shop__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shop__title { font: 700 clamp(40px, 6vw, 88px)/.9 var(--f-display); letter-spacing: -.05em; }

/* 07.11 полоса фильтра — такая же парящая капсула, как шапка (css/site.css → .hdr--over::before): тот же радиус,
   заливка и тень, тот же отступ от краёв экрана; прилипает прямо под шапкой. Выбранный раздел — чёрная «таблетка»,
   на телефоне разделы листаются внутри капсулы, правый край растворяется — видно, что дальше есть ещё */
.shop__bar { --cap-x: clamp(8px, 1.2vw, 20px);
  position: sticky; top: var(--hdr); z-index: 5; display: flex; align-items: center; gap: 4px;
  margin: 0 calc(var(--cap-x) - var(--gutter)) 28px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .06), 0 1px 2px rgba(11, 11, 11, .04), 0 12px 32px -14px rgba(11, 11, 11, .22); }
.shop__chips { display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: 999px; scroll-padding-inline: 24px; }
.shop__chips::-webkit-scrollbar { display: none; }
.shop__chips.is-more { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.shop__chips a, .shop__reset { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  font: 500 13px/1 var(--f-display); text-transform: uppercase; white-space: nowrap; color: var(--muted);
  transition: color .2s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .shop__chips a:not([aria-current="true"]):hover, .shop__reset:hover { color: var(--ink); background: rgba(11, 11, 11, .05); } }
/* выбранный раздел: одна чёрная капсула (js/shop.js → .shop__pill) лежит под текстом и перетекает к нему —
   передний край приходит первым, задний догоняет. Текст белеет к приходу капсулы, у прежнего раздела гаснет.
   (07.11: вариант с mix-blend-mode в Safari на iPhone давал бледную капсулу — убран.) Без скрипта — обычная таблетка */
.shop__chips { position: relative; }
.shop__chips a { position: relative; z-index: 1; }
.shop__chips a[aria-current="true"] { color: var(--white); }
.shop__chips:not(.has-pill) a[aria-current="true"] { background: var(--ink); }
.shop__pill { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: var(--ink);
  pointer-events: none; will-change: transform, width; }
.shop__chips.is-moving a[aria-current="true"] { animation: chip-in .48s linear both; }
.shop__chips.is-moving a.was-on { animation: chip-out .48s linear both; }
@keyframes chip-in { 0%, 38% { color: var(--muted); } 100% { color: var(--white); } }
@keyframes chip-out { 0% { color: var(--white); } 40%, 100% { color: var(--muted); } }
.shop__chips a:active { transform: scale(.97); }
.shop__chips a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.shop__reset { margin-left: 2px; }
.shop__reset[hidden] { display: none; }

.shop .cat-grid > * { animation: shop-in .45s var(--ease) both; }
@keyframes shop-in { from { opacity: 0; transform: translateY(10px); } }
.shop__empty { padding: 48px 0; color: var(--muted); }
.shop__all { display: inline-flex; margin-top: 40px; }

@media (max-width: 760px) {
  .shop__top { margin-bottom: 12px; }
  .shop__bar { margin-bottom: 20px; padding: 4px; }
  .shop__chips a, .shop__reset { height: 36px; padding: 0 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .shop .cat-grid > * { animation: none; } }
