/* =====================================================
   IVORY PRO THEME — общая дизайн-система
   Подключается ПОСЛЕ bootstrap.min.css и style.css
   Перебивает цвета/шрифты/радиусы, оставляет сетку bootstrap
   ===================================================== */

/* Базовая шкала — всё ниже использует rem.
   Юзер увеличивает шрифт в браузере → весь сайт растёт пропорционально */
html { font-size: 1rem; }
@media (max-width: 768px) { html { font-size: 0.9375rem; } }

/* Глобальный сброс — :where() имеет нулевую специфичность,
   так Bootstrap-ный 'a' перебивается, но любой явный цвет сохраняется */
:where(a) { color: inherit; text-decoration: none; }
:where(a):hover { color: var(--accent); }

/* Bootstrap втыкает text-decoration: underline на свои .text-primary и подобные классы.
   Принудительно убираем подчёркивания у любых ссылок */
a, a:hover, a:focus, a:active { text-decoration: none !important; }

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}
button:focus { outline: none !important; box-shadow: none !important; }

/* qty-control глобально — везде одинаковые круглые кнопки без квадратов */
.qty-control {
  display: inline-flex; align-items: center;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem;
}
.qty-control button {
  width: 2.25rem; height: 2.25rem;
  border: none !important; outline: none !important;
  background: transparent !important; box-shadow: none !important;
  cursor: pointer; font-size: 1.125rem; color: var(--ink); border-radius: 50% !important;
  transition: all .2s; display: grid; place-items: center; padding: 0;
}
.qty-control button:hover { background: var(--ink) !important; color: var(--bg) !important; }
.qty-control button:focus, .qty-control button:active {
  outline: none !important; box-shadow: none !important; border: none !important;
}
.qty-control input {
  width: 3.125rem; text-align: center; border: none; outline: none;
  background: transparent; font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Хлебные крошки — глобально (используются на каталоге, продукте, корзине, etc) */
.crumbs {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
  color: var(--muted); margin: 0.5rem 0 1rem;
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }

:root {
  --bg:#f4f1ea; --panel:#fffbf3; --panel2:#ebe6dc;
  --line:#d9d2c4; --line2:#e8e2d3;
  --ink:#1a1a1a; --ink-soft:#3a3a3a; --muted:#6b665b;
  --accent:#e85d3a; --accent-soft:#f4bca9;
  --gold:#a88a3d; --green:#2a8a4f; --info:#3963a8;
}

/* ---------- Базовая типографика ---------- */
html, body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Instrument Serif', serif !important; font-weight: 400; }
.mono  { font-family: 'JetBrains Mono', monospace !important; }

/* ---------- Контейнер ---------- */
.container, .container-fluid { max-width: 1320px; }

/* ---------- Хедер: верхняя инфо-полоса ---------- */
.h-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; color: var(--muted);
}
.h-top .right { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.h-top a { color: var(--ink); text-decoration: none; }
.h-top .live { display: flex; align-items: center; gap: 6px; }
.pulse {
  width: 7px; height: 7px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(42,138,79,.5); animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(42,138,79,.5); }
  50%     { box-shadow: 0 0 0 8px rgba(42,138,79,0); }
}

/* ---------- Хедер: оформление (sticky-top работает через bootstrap класс) ---------- */
header.bg-white,
header.site-h {
  background: rgba(244,241,234,.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line) !important;
}
.logo-ivory {
  font-family: 'Instrument Serif', serif; font-size: 2rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline;
}
.logo-ivory sup {
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem;
  color: var(--accent); margin-left: 2px;
}

/* поле поиска */
.h-search {
  display: flex; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  gap: 10px; transition: border-color .2s;
}
.h-search:focus-within { border-color: var(--accent); }
.h-search input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 0.875rem; color: var(--ink); font-family: inherit;
}
.h-search input::placeholder { color: var(--muted); }
.h-search .key {
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem;
  padding: 3px 8px; background: var(--panel2); border-radius: 4px; color: var(--muted);
}

/* Дропдаун подсказок поиска */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0,0,0,.12);
  z-index: 1100;
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px 0;
}
/* Каждая строка результата */
.search-suggest .ss-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: var(--ink) !important;
  border: none !important;
  background: transparent !important;
  transition: background .15s !important;
}
.search-suggest .ss-item:hover { background: #f4f1ea !important; }
.ss-thumb {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
}
.ss-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.ss-ph { color: var(--muted); font-size: 0.75rem; }
.ss-info { flex: 1 1 auto; min-width: 0; }
.ss-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1px;
}
.ss-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink) !important;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-price {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink) !important;
  margin-left: auto;
}
.ss-all {
  display: block !important;
  padding: 12px 16px !important;
  text-align: center !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent) !important;
  text-decoration: none !important;
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
  margin-top: 4px;
  transition: background .15s;
}
.ss-all:hover { background: var(--accent) !important; color: #fff !important; }
.ss-empty {
  padding: 24px 16px !important;
  text-align: center !important;
  color: var(--muted) !important;
  font-size: 0.875rem !important;
}

/* круглые иконочные кнопки */
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: all .2s; position: relative;
  color: var(--ink); font-size: 1rem; text-decoration: none;
}
.icon-btn:hover {
  background: var(--ink); color: var(--panel);
  border-color: var(--ink); transform: translateY(-2px);
}
.icon-btn .badge-ivory {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font: 700 10px/1 'JetBrains Mono', monospace;
  display: grid; place-items: center; border-radius: 8px;
}

/* ---------- Тёмная навигация под хедером ---------- */
.h-nav-ivory {
  background: var(--ink); border-top: none !important;
}
.h-nav-ivory .navbar-nav .nav-link {
  color: var(--bg) !important; opacity: .7;
  font-size: 0.8125rem !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0;
  padding: 14px 0 !important; transition: opacity .2s;
  border: none !important;
}
.h-nav-ivory .navbar-nav .nav-link:hover,
.h-nav-ivory .navbar-nav .nav-link.active { opacity: 1; }
.h-nav-ivory .navbar-nav .nav-item { padding: 0 14px; border: none !important; }
.h-nav-ivory .navbar-toggler {
  border-color: rgba(255,255,255,.3); color: #fff;
}
.h-nav-ivory .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}
.h-nav-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Маркиз (бегущая строка) ---------- */
.marquee {
  background: var(--ink); color: var(--bg); padding: 14px 0;
  overflow: hidden; border-top: 1px solid rgba(255,255,255,.1);
}
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: scroll-x 45s linear infinite;
}
.marquee span {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.125rem;
  display: inline-flex; align-items: center; gap: 18px;
}
.marquee span::after { content: '✱'; color: var(--accent); font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Кнопки ---------- */
.btn-ivory {
  padding: 14px 26px; background: var(--ink); color: var(--bg);
  border: none; border-radius: 999px; font-weight: 500; font-size: 0.875rem;
  cursor: pointer; transition: all .2s; display: inline-flex;
  align-items: center; gap: 8px; font-family: inherit; text-decoration: none;
}
.btn-ivory:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn-ivory.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ivory.ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ivory.accent { background: var(--accent); }
.btn-ivory.accent:hover { background: var(--ink); }

/* перекрываем стандартные bootstrap-кнопки в ivory-стиль */
.btn-primary {
  background: var(--ink) !important; border-color: var(--ink) !important;
  color: var(--bg) !important; border-radius: 999px !important;
  font-weight: 500 !important;
}
.btn-primary:hover { background: var(--accent) !important; border-color: var(--accent) !important; }
.btn-outline-primary {
  color: var(--ink) !important; border-color: var(--ink) !important;
  border-radius: 999px !important;
}
.btn-outline-primary:hover { background: var(--ink) !important; color: var(--bg) !important; }
.btn-success { background: var(--green) !important; border-color: var(--green) !important; border-radius: 999px !important; }
.btn-danger  { background: var(--accent) !important; border-color: var(--accent) !important; border-radius: 999px !important; }

/* ---------- Заголовки секций ---------- */
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: 'Instrument Serif', serif; font-size: clamp(36px, 5vw, 64px);
  font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0;
}
.section-head h2 em { color: var(--accent); font-style: italic; }
.section-head .meta {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--muted); display: flex; align-items: center; gap: 16px;
}
.section-head .meta a {
  color: var(--ink); text-decoration: none;
  padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px;
  transition: all .2s;
}
.section-head .meta a:hover { background: var(--ink); color: var(--bg); }

/* ---------- "Эй-броу" подзаголовок (КАТЕГОРИЯ · ОПИСАНИЕ) ---------- */
.eye {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--muted); display: inline-flex; align-items: center; gap: 14px;
  letter-spacing: .04em;
}
.eye::before { content: ''; width: 32px; height: 1px; background: var(--accent); }

/* ---------- Карточки общие ---------- */
.card-ivory {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  transition: all .3s;
}
.card-ivory:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.06); border-color: var(--accent-soft);
}

/* ---------- Чипы / пилы фильтров ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 10px 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.8125rem; cursor: pointer; transition: all .2s;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .qty {
  margin-left: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem; opacity: .6;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Тосты IVORY ---------- */
#toast-stack {
  position: fixed; top: 24px; right: 24px;
  display: flex; flex-direction: column-reverse; gap: 12px;
  z-index: 99999;
  pointer-events: none;
  max-width: 380px;
}
@media (max-width: 600px) {
  #toast-stack { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; }
}

.toast-ivory {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
  transform: translateX(110%) scale(.96);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.toast-ivory.show { transform: translateX(0) scale(1); opacity: 1; }
.toast-ivory.hide { transform: translateX(110%) scale(.96); opacity: 0; }

/* Цветная полоска слева (через border-left для каждого типа) */
.toast-ivory::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}

.ti-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.125rem; font-weight: 400;
  flex-shrink: 0;
  border: 1px solid;
}

.ti-body { min-width: 0; }
.ti-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ti-text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink);
  word-wrap: break-word;
}

.ti-close {
  background: none; border: none;
  color: var(--muted);
  font-size: 1.25rem; line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all .15s;
  flex-shrink: 0;
}
.ti-close:hover { background: var(--bg); color: var(--ink); }

/* Прогресс-бар оставшегося времени */
.ti-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.ti-progress-fill {
  height: 100%; width: 100%;
  transform-origin: left;
  animation: ti-shrink linear forwards;
}
@keyframes ti-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Типы */
.toast-ivory.toast-success::before { background: var(--green); }
.toast-ivory.toast-success .ti-ico { color: var(--green); border-color: rgba(42,138,79,.3); background: rgba(42,138,79,.08); }
.toast-ivory.toast-success .ti-progress-fill { background: var(--green); }

.toast-ivory.toast-error::before { background: var(--accent); }
.toast-ivory.toast-error .ti-ico { color: var(--accent); border-color: rgba(232,93,58,.3); background: rgba(232,93,58,.08); }
.toast-ivory.toast-error .ti-progress-fill { background: var(--accent); }

.toast-ivory.toast-warning::before { background: var(--gold); }
.toast-ivory.toast-warning .ti-ico { color: var(--gold); border-color: rgba(168,138,61,.3); background: rgba(168,138,61,.08); }
.toast-ivory.toast-warning .ti-progress-fill { background: var(--gold); }

.toast-ivory.toast-info::before { background: var(--info); }
.toast-ivory.toast-info .ti-ico { color: var(--info); border-color: rgba(57,99,168,.25); background: rgba(57,99,168,.08); }
.toast-ivory.toast-info .ti-progress-fill { background: var(--info); }

/* ---------- Подвал ---------- */
footer.site-footer {
  background: var(--ink) !important; color: var(--bg) !important;
  padding: 80px 0 40px !important; margin-top: 80px !important;
  border: none !important;
}
.site-footer * { color: inherit !important; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-family: 'Instrument Serif', serif; font-size: 3.5rem;
  line-height: .9; margin-bottom: 16px;
}
.footer-logo .accent { color: var(--accent); font-style: italic; }
.footer-desc {
  font-size: 0.8125rem; opacity: .6; line-height: 1.6;
  margin-bottom: 24px; max-width: 320px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; display: grid; place-items: center;
  text-decoration: none; transition: all .2s;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: .08em; opacity: .5; margin-bottom: 16px;
}
.footer-col a {
  display: block; text-decoration: none; font-size: 0.8125rem;
  opacity: .8; padding: 6px 0; transition: opacity .2s;
}
.footer-col a:hover { opacity: 1; color: var(--accent) !important; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; opacity: .5;
  flex-wrap: wrap; gap: 16px;
}

/* ---------- Алерты в стиле темы ---------- */
.alert {
  border-radius: 14px !important; border: 1px solid var(--line) !important;
  background: var(--panel) !important; color: var(--ink) !important;
  font-size: 0.875rem;
}
.alert-success  { border-color: var(--green) !important; }
.alert-danger   { border-color: var(--accent) !important; }
.alert-warning  { border-color: var(--gold) !important; }
.alert-info     { border-color: var(--info) !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 576px) {
  .footer-top { grid-template-columns: 1fr; }
  .h-top { font-size: 0.625rem; }
  .h-top .right { gap: 12px; }
}

/* убрать стрелочку у заказов из старой шапки (если осталась) */
header .nav-link::after { display: none !important; }

/* убрать резкие тени bootstrap */
.shadow-sm { box-shadow: 0 4px 12px rgba(26,26,26,.04) !important; }

/* =====================================================
   ОБЩИЕ КОМПОНЕНТЫ — карточки товаров, секции, пагинация
   Используются на главной, каталоге, product, wishlist
   ===================================================== */

/* Обёртка секции */
.section-ivory { padding: 90px 0; }
.section-ivory.tight { padding: 60px 0; }

/* Сетка карточек товара */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Карточка товара */
.feat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; cursor: pointer; transition: all .4s; position: relative;
  text-decoration: none; color: var(--ink); display: block;
}
.feat-card:hover {
  transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.06);
  border-color: var(--accent-soft);
}
.feat-card > a {
  display: block; text-decoration: none; color: inherit;
}
.feat-img {
  aspect-ratio: 1; background: var(--panel2); display: grid; place-items: center;
  position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.025) 8px 16px);
}
.feat-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.feat-img .ph {
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem;
  padding: 6px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted);
}
.feat-num {
  position: absolute; top: 14px; left: 14px;
  font-family: 'Instrument Serif', serif; font-size: 2rem; line-height: 1;
  color: var(--accent); z-index: 2;
}
.feat-tag {
  position: absolute; top: 14px; right: 14px; padding: 4px 10px;
  background: var(--ink); color: var(--bg); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; z-index: 2;
}
.feat-tag.new   { background: var(--accent); }
.feat-tag.hit   { background: var(--gold); }
.feat-tag.out   { background: var(--muted); }
.feat-tag.low   { background: var(--gold); }
.feat-fav {
  position: absolute; bottom: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; transition: all .2s;
  z-index: 3; color: var(--ink);
}
.feat-fav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.feat-fav.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.feat-fav button { background: none; border: none; color: inherit; cursor: pointer; }
.feat-info { padding: 22px; }
.feat-cat-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.feat-info h4 {
  font-family: 'Instrument Serif', serif; font-size: 1.375rem; font-weight: 400;
  margin-bottom: 8px; line-height: 1.1; color: var(--ink);
}
.feat-desc { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; min-height: 36px; }
.feat-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line); gap: 8px;
}
.feat-price { font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 600; color: var(--ink); }
.feat-price .unit { font-size: 0.625rem; color: var(--muted); font-weight: 400; display: block; }
.feat-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; transition: transform .3s; flex-shrink: 0;
  border: none; cursor: pointer; font-size: 0.875rem;
}
.feat-card:hover .feat-arrow { transform: rotate(-45deg); background: var(--accent); }
.feat-arrow.cart-btn { width: auto; height: 36px; padding: 0 16px; border-radius: 999px; font-family: 'Manrope', sans-serif; font-size: 0.75rem; font-weight: 500; }

/* Каталог: hero и инструменты */
.catalog-hero { padding: 40px 0 32px; }
.catalog-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0 0 12px;
}
.catalog-hero h1 em { color: var(--accent); font-style: italic; }
.catalog-hero .crumbs {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
  color: var(--muted); margin-bottom: 16px;
}
.catalog-hero .crumbs span { color: var(--ink); }
.catalog-hero .meta-line {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted);
}

.catalog-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 32px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--muted); flex-wrap: wrap;
}
.catalog-tools .ct-left, .catalog-tools .ct-right {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.catalog-tools strong { color: var(--ink); font-weight: 600; }

.sort-pill {
  padding: 8px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; color: var(--ink);
  font-family: inherit; font-size: 0.75rem; outline: none;
}
.sort-pill:focus { border-color: var(--accent); }

/* Внутренний поиск */
.search-ivory {
  display: flex; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  gap: 8px; transition: border-color .2s; max-width: 360px;
}
.search-ivory:focus-within { border-color: var(--accent); }
.search-ivory input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 0.8125rem; color: var(--ink); font-family: inherit;
}
.search-ivory button {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px;
}

/* Пагинация */
.pagination-ivory {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 48px; flex-wrap: wrap;
}
.pagination-ivory a, .pagination-ivory span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  transition: all .2s;
}
.pagination-ivory a:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pagination-ivory .current {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.pagination-ivory .disabled {
  opacity: .4; cursor: default; pointer-events: none;
}
.pagination-ivory .ellipsis { border: none; background: transparent; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
}
.empty-state .ico {
  font-family: 'Instrument Serif', serif; font-size: 4rem;
  color: var(--accent); opacity: .4; line-height: 1; margin-bottom: 16px;
}
.empty-state h5 {
  font-family: 'Instrument Serif', serif; font-size: 1.75rem; font-weight: 400;
  margin-bottom: 8px;
}
.empty-state p { font-size: 0.875rem; color: var(--muted); margin-bottom: 24px; }

/* Sale-цена / зачёркнутая */
.feat-price .old {
  font-size: 0.6875rem; text-decoration: line-through;
  color: var(--muted); display: block; font-weight: 400;
}

/* Сетка адаптив */
@media (max-width: 1100px) {
  .feat-grid, .feat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .feat-grid, .feat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .section-ivory { padding: 60px 0; }
  .catalog-tools { font-size: 0.6875rem; }
}
@media (max-width: 480px) {
  .feat-grid, .feat-grid.cols-3 { grid-template-columns: 1fr; }
}

/* =====================================================
   КАТАЛОГ: крупные чипы, сайдбар фильтров, view-toggle
   ===================================================== */

/* Крупные чипы категорий (как в примере) */
.chips-lg {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.chip-lg {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 12px 22px; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: all .25s; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.chip-lg:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip-lg.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-lg .chip-label { font-size: 0.875rem; font-weight: 500; line-height: 1; }
.chip-lg .chip-qty {
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem;
  opacity: .55; line-height: 1;
}

/* Активные фильтры — пилюли с × */
.active-filters {
  display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.active-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px; font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace; text-decoration: none;
  transition: all .2s;
}
.active-filter-pill:hover { background: var(--accent); color: #fff; }
.active-filter-pill .x { font-weight: 700; }

/* Переключатель Grid/List */
.view-toggle {
  display: inline-flex; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px;
}
.view-toggle button {
  padding: 6px 10px; background: transparent; border: none;
  color: var(--muted); cursor: pointer; border-radius: 6px;
  font-family: inherit; font-size: 0.875rem; transition: all .2s;
  display: grid; place-items: center; min-width: 32px;
}
.view-toggle button.on { background: var(--ink); color: var(--bg); }

/* Раскладка каталога с сайдбаром */
.catalog-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  align-items: start;
}

/* Сайдбар фильтров */
.filters {
  position: sticky; top: 220px; align-self: start;
  max-height: calc(100vh - 240px); overflow-y: auto; padding-right: 8px;
}
.filters::-webkit-scrollbar { width: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.filter-block {
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-block:last-child { border: none; }
.filter-block h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center;
}
.filter-block h5 .reset {
  color: var(--accent); cursor: pointer; text-transform: none;
  text-decoration: none; font-size: 0.6875rem;
}
.filter-block h5 .reset:hover { text-decoration: underline; }

.price-row { display: flex; gap: 8px; margin-bottom: 12px; }
.price-row input {
  flex: 1; padding: 10px 14px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; outline: none;
  color: var(--ink);
}
.price-row input:focus { border-color: var(--accent); }
.price-hint {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; color: var(--muted);
}

.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer; font-size: 0.8125rem;
  user-select: none;
}
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.check-row .ct {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; color: var(--muted);
}

/* Apply / Reset кнопки фильтров */
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.filter-actions button, .filter-actions a {
  width: 100%; padding: 11px 16px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: all .2s; text-align: center;
  font-family: inherit; border: 1px solid;
}
.filter-actions .apply {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.filter-actions .apply:hover { background: var(--accent); border-color: var(--accent); }
.filter-actions .reset-all {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.filter-actions .reset-all:hover { border-color: var(--ink); }

/* List-режим карточек */
.feat-grid.list-view { grid-template-columns: 1fr; gap: 12px; }
.feat-grid.list-view .feat-card { display: block; }
.feat-grid.list-view .feat-card > a {
  display: grid !important; grid-template-columns: 220px 1fr;
  align-items: stretch;
}
.feat-grid.list-view .feat-img {
  aspect-ratio: 1; width: 220px; height: 220px;
}
.feat-grid.list-view .feat-info {
  padding: 24px 28px; display: flex; flex-direction: column;
}
.feat-grid.list-view .feat-desc {
  min-height: auto; -webkit-line-clamp: 3;
}
.feat-grid.list-view .feat-foot { margin-top: auto; }
.feat-grid.list-view .feat-card form { top: 14px; bottom: auto !important; }

/* Адаптив каталога */
@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .filters {
    position: static; max-height: none; overflow: visible;
    padding: 24px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 18px; margin-bottom: 24px;
  }
  .feat-grid.list-view .feat-card > a { grid-template-columns: 140px 1fr; }
}
@media (max-width: 600px) {
  .feat-grid.list-view .feat-card > a { grid-template-columns: 1fr; }
  .chip-lg { padding: 10px 16px; }
  .chip-lg .chip-label { font-size: 0.75rem; }
}