.page-head { padding-top: 20px; padding-bottom: 24px; max-width: 620px; }
.page-head h1 { font-size: 32px; font-weight: 600; margin-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 15px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--card-line); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted); }
.chip.active { border-color: var(--ink); color: var(--ink); background: var(--card); }
.search-box { position: relative; }
.search-box input { padding: 10px 16px 10px 34px; border-radius: 100px; border: 1.5px solid var(--card-line); background: var(--card); font-size: 13px; width: 200px; font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--orange); }
.search-box::before { content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }

.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acc-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .1s ease, border-color .2s ease; will-change: transform; }
.acc-card:active { transform: scale(.97); }
.acc-card.in-focus { transform: scale(1.02); border-color: var(--orange); }
.acc-thumb { aspect-ratio: 1/1; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; touch-action: pan-y; }
.thumb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-badge { position: absolute; top: 8px; left: 8px; font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px; z-index: 2; }
.acc-badge.hit { background: var(--ink); color: var(--paper); }
.acc-badge.new { background: var(--orange); color: #fff; }
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); border: none; font-size: 12px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s ease; z-index: 2; }
.acc-thumb:hover .thumb-arrow { opacity: 1; }
.thumb-arrow.left { left: 6px; } .thumb-arrow.right { right: 6px; }
/* На тач-устройстве hover не бывает — стрелки листания были бы невидимы и
   недоступны навсегда (mobile-instructions/03 п.2), хотя свайп и так работает
   основным способом. Показываем + тап-цель ≥44px невидимым ::before. */
@media (hover: none) {
  .thumb-arrow { opacity: 1 !important; }
  .thumb-arrow::before { content: ''; position: absolute; inset: -11px; }
}
.thumb-dots { position: absolute; bottom: 7px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.thumb-dots .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(23,24,28,.25); border: none; padding: 0; }
.thumb-dots .dot.active { background: var(--orange); }
.video-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.thumb-label { position: absolute; top: 8px; right: 8px; font-size: 9px; color: var(--muted); background: var(--paper); padding: 2px 7px; border-radius: 100px; z-index: 2; }
.acc-name { font-size: 13px; font-weight: 600; }
.acc-row { display: flex; align-items: center; justify-content: space-between; }
.acc-price { font-size: 13px; color: var(--muted); }
.add-fab { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); border: none; font-size: 16px; line-height: 1; transition: transform .15s cubic-bezier(.3,1.4,.4,1); }
.add-fab:active { transform: scale(.85); }
.add-fab.added { background: var(--orange); }

.empty-note { text-align: center; color: var(--muted); font-size: 14px; padding: 60px 0; grid-column: 1 / -1; }

.load-more-row { text-align: center; margin-top: 28px; }
.load-more { padding: 12px 26px; border-radius: 100px; border: 1.5px solid var(--ink); background: none; font-size: 13.5px; font-weight: 600; }

footer { margin-top: 60px; }

@media (max-width: 860px) {
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box input { width: 140px; }
}

/* mobile-instructions: карточки аксессуаров слишком узкие в 2 колонки на
   телефоне — текст рвётся. Схлопываем в одну, как .details-grid. */
@media (max-width: 640px) {
  .acc-grid { grid-template-columns: 1fr; }
}
