/* ==========================================================================
   JULIA KISELEVA 2026 — каталог.
   Слой поверх assets/css/jk.css: только экран каталога (woocommerce/archive-product.php).
   Значения перенесены из макета JULIA-KISELEVA-CLAUDE-HANDOFF-v10 (app/globals.css,
   секции .catalog-* и «Mobile app pass»). Переменные цвета и шрифтов — из jk.css.
   Откат = удалить этот файл и шаблон, дизайн-система не затронута.
   Порядок правил повторяет макет: база (desktop) → 1180 → 960 → 760 → мобильный
   app-pass → 390. Ничего из jk.css не переопределяется.
   ========================================================================== */

/* --- служебное ----------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Шит и сетки прячутся атрибутом hidden — у них свой display, нужен явный сброс. */
.jk-sheet[hidden],
.catalog-products[hidden],
.catalog-product[hidden],
.catalog-story[hidden],
.catalog-empty[hidden],
.catalog-tool-button i[hidden] {
  display: none;
}

/* --- оболочка app-sheet (в макете её давал shadcn Sheet) ----------------- */

.jk-sheet__overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(14, 12, 11, 0.52);
  opacity: 0;
  transition: opacity 280ms ease;
}

.jk-sheet[data-state="open"] .jk-sheet__overlay {
  opacity: 1;
}

.jk-sheet__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  color: inherit;
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.jk-sheet__close:hover {
  opacity: 1;
}

body.jk-sheet-open {
  overflow: hidden;
}

/* --- каталог: база ------------------------------------------------------- */

.catalog-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background: var(--paper);
}

.catalog-hero {
  display: grid;
  min-height: clamp(560px, 73vh, 760px);
  grid-template-columns: 0.83fr 1.17fr;
  gap: 9px;
  padding: 79px 9px 9px;
  background: var(--canvas);
}

.catalog-hero__copy,
.catalog-hero__feature {
  border-radius: 17px;
}

.catalog-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 78px);
  background: var(--card);
}

.catalog-hero__copy h1 {
  margin: 19px 0 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.catalog-hero__copy h1 em {
  font-family: var(--sans);
  font-weight: 400;

	/* jk-sans-2026 */ font-style: normal; font-weight: 300; letter-spacing: -0.03em;
}

.catalog-hero__copy > p {
  max-width: 410px;
  margin: clamp(28px, 4vw, 52px) 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.75;
}

.catalog-hero__feature {
  position: relative;
  overflow: hidden;
  background: #73604e;
  color: var(--white);
}

.catalog-hero__feature > img {
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.catalog-hero__feature:hover > img {
  transform: scale(1.025);
}

.catalog-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 19, 13, 0.18), transparent 50%, rgba(26, 19, 13, 0.68));
}

.catalog-hero__feature-top,
.catalog-hero__feature-copy,
.catalog-hero__feature > svg {
  position: absolute;
  z-index: 2;
}

.catalog-hero__feature-top {
  top: 25px;
  left: 25px;
  font-size: 0.6rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-hero__feature > svg {
  top: 22px;
  right: 22px;
}

.catalog-hero__feature-copy {
  right: 27px;
  bottom: 29px;
  left: 27px;
  display: grid;
}

.catalog-hero__feature-copy small {
  margin-bottom: 8px;
  color: rgba(253, 246, 236, 0.64);
  font-size: 0.64rem;
}

.catalog-hero__feature-copy strong {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.3vw, 4.7rem);
  font-weight: 400;
  line-height: 1;

	/* jk-sans-2026 */ font-style: normal; font-weight: 300; letter-spacing: -0.03em;
}

.catalog-interface {
  padding: clamp(70px, 7vw, 110px) clamp(16px, 3.7vw, 60px) clamp(100px, 11vw, 180px);
}

.catalog-search {
  display: grid;
  min-height: 66px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(253, 246, 236, 0.7);
}

.catalog-search:focus-within {
  border-color: rgba(112, 40, 59, 0.48);
  background: var(--white);
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.35rem);

	/* jk-sans-2026 */ font-weight: 500; letter-spacing: -0.012em;
}

.catalog-search input::-webkit-search-cancel-button {
  display: none;
}

.catalog-search input::placeholder {
  color: rgba(54, 40, 31, 0.36);
}

.catalog-search > span {
  color: rgba(54, 40, 31, 0.43);
  font-size: 0.64rem;
}

/* Лента категорий. В макете это кнопки состояния, в WordPress — ссылки на разделы. */
.catalog-category-rail {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  overflow-x: auto;
  margin: 42px 0 clamp(68px, 8vw, 116px);
  padding: 8px 2px 14px;
  scrollbar-width: none;
}

.catalog-category-rail::-webkit-scrollbar {
  display: none;
}

.catalog-category-rail a {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 10px;
  color: rgba(54, 40, 31, 0.46);
}

.catalog-category-rail a > span {
  position: relative;
  width: clamp(65px, 6vw, 86px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #e2cfaf;
  transition: border-color 180ms ease, transform 180ms ease;
}

.catalog-category-rail a img {
  object-fit: cover;
  object-position: center 5%;
  filter: saturate(0.72);
}

.catalog-category-rail a strong {
  font-size: 0.65rem;
  font-weight: 620;
}

.catalog-category-rail a:hover,
.catalog-category-rail a.is-active {
  color: var(--ink);
}

.catalog-category-rail a.is-active > span {
  border-color: var(--wine);
  transform: scale(1.06);
}

/* Листание рейла категорий: обёртка и стрелки (десктоп). */
.catalog-category-wrap {
  position: relative;
}

.catalog-category-nav {
  position: absolute;
  top: 8px;
  z-index: 5;
  display: none;
  width: 44px;
  height: clamp(65px, 6vw, 86px);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(16, 13, 12, 0.16);
  cursor: pointer;
}

.catalog-category-nav.is-prev { left: -8px; }
.catalog-category-nav.is-next { right: -8px; }
.catalog-category-nav[hidden] { display: none !important; }

@media (min-width: 761px) {
  .catalog-category-nav { display: flex; }
  .catalog-category-nav[hidden] { display: none !important; }
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar h2 {
  margin: 11px 0 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.025em;
}

.catalog-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-tool-button,
.catalog-sort,
.catalog-view-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(253, 246, 236, 0.6);
}

.catalog-tool-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  font-size: 0.67rem;
  font-weight: 640;
}

/* Кнопка гаснет, когда у товаров страницы нет размеров, цветов и материалов. */
.catalog-tool-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.catalog-tool-button i {
  display: flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-size: 0.5rem;
  font-style: normal;
}

.catalog-sort {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.catalog-sort select {
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.65rem;
}

.catalog-sort__go {
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-view-toggle {
  display: flex;
  padding: 3px;
}

.catalog-view-toggle button {
  display: flex;
  width: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: rgba(54, 40, 31, 0.38);
}

.catalog-view-toggle button.is-active {
  background: var(--ink);
  color: var(--white);
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 20px);
}

.catalog-products.is-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-product {
  min-width: 0;
  padding-bottom: clamp(36px, 5vw, 70px);
}

.catalog-product__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #e8d7bb;
}

.catalog-product__media > a {
  position: absolute;
  inset: 0;
}

.catalog-product__media img {
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.catalog-product:hover .catalog-product__media img {
  transform: scale(1.025);
}

.catalog-product__index,
.catalog-product__badge {
  position: absolute;
  top: 13px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.78);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.catalog-product__index {
  left: 13px;
}

.catalog-product__badge {
  top: auto;
  bottom: 13px;
  left: 13px;
  color: var(--wine);
  text-transform: uppercase;
}

.catalog-product .favorite-button {
  z-index: 3;
}

.catalog-product__quick {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 100px;
  background: rgba(253, 246, 236, 0.88);
  font-size: 0.58rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
  backdrop-filter: blur(8px);
}

.catalog-product:hover .catalog-product__quick,
.catalog-product__quick.is-selected {
  opacity: 1;
  transform: translateY(0);
}

.catalog-product__quick.is-selected {
  background: var(--wine);
  color: var(--white);
}

.catalog-product__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 15px 2px 0;
}

.catalog-product__meta h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.25vw, 1.16rem);
  font-weight: 400;
  letter-spacing: -0.025em;

	/* jk-sans-2026 */ font-weight: 500; letter-spacing: -0.012em;
}

.catalog-product__meta p {
  margin: 0;
  color: rgba(54, 40, 31, 0.5);
  font-size: 0.61rem;
}

.catalog-product__meta > strong {
  font-size: 0.68rem;
  white-space: nowrap;
}

/* Цена приходит из WooCommerce со своими span — гасим их оформление. */
.catalog-product__meta > strong .woocommerce-Price-amount,
.catalog-product__meta > strong bdi,
.catalog-product__meta > strong ins,
.catalog-product__meta > strong del {
  font: inherit;
  text-decoration: inherit;
}

.catalog-product__meta > strong del {
  margin-right: 6px;
  color: rgba(54, 40, 31, 0.42);
  text-decoration: line-through;
}

.catalog-product__meta > strong ins {
  text-decoration: none;
}

.catalog-story {
  position: relative;
  display: grid;
  min-height: clamp(430px, 52vw, 660px);
  grid-template-columns: 1fr 1fr;
  align-content: end;
  gap: 40px;
  overflow: hidden;
  margin: clamp(18px, 3vw, 50px) 0 clamp(70px, 8vw, 120px);
  padding: clamp(25px, 4vw, 58px);
  border-radius: 16px;
  color: var(--white);
}

.catalog-story > img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.catalog-story__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.12), rgba(10, 9, 8, 0.72));
}

.catalog-story > *:not(img):not(.catalog-story__veil) {
  position: relative;
  z-index: 2;
}

.catalog-story > .eyebrow {
  position: absolute !important;
  top: clamp(25px, 4vw, 50px);
  left: clamp(25px, 4vw, 58px);
}

.catalog-story h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.035em;
}

.catalog-story p {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(253, 246, 236, 0.66);
  font-size: 0.72rem;
}

.catalog-story__cta {
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.67rem;
  font-weight: 650;
  text-transform: uppercase;
}

.catalog-empty {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.catalog-empty > span {
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-empty h2 {
  margin: 16px 0 28px;
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.04;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.025em;
}

.catalog-empty button,
.catalog-empty a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 650;
}

/* Постраничная навигация: в макете её нет, в каталоге без неё теряются товары. */
.catalog-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: clamp(30px, 4vw, 56px);
}

.catalog-pagination .page-numbers {
  display: flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(253, 246, 236, 0.6);
  font-size: 0.68rem;
  font-weight: 640;
}

.catalog-pagination .page-numbers.current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.catalog-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* --- app-sheet фильтров -------------------------------------------------- */
/* Макет открывал фильтры снизу на мобильном (CLAUDE_PROMPT.md: «фильтры должны
   оставаться app-sheet снизу»). Здесь шит снизу на всех ширинах: на большом
   экране он центрируется и ограничен по ширине. */

.catalog-filter-sheet {
  position: fixed;
  z-index: 95;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0;
  width: min(560px, calc(100vw - 28px));
  height: min(80svh, 760px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 30px 30px 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(20, 16, 14, 0.32);
  color: var(--ink);
  overscroll-behavior: contain;
  transform: translateY(calc(100% + 32px));
  transition: transform 420ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.jk-sheet[data-state="open"] .catalog-filter-sheet {
  transform: translateY(0);
}

.catalog-filter-sheet__title {
  margin: 38px 0 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;

	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.025em;
}

.catalog-filter-sheet__description {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.filter-group {
  display: grid;
  gap: 11px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.filter-group > span {
  margin-bottom: 5px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.filter-group label input {
  width: 15px;
  height: 15px;
  accent-color: var(--wine);
}

.filter-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.filter-sizes button {
  aspect-ratio: 1.1;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.68rem;
}

.filter-sizes button.is-active {
  background: var(--ink);
  color: var(--white);
}

.filter-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.filter-colors button {
  display: grid;
  min-height: 44px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
  font-size: 0.65rem;
}

.filter-colors button.is-active {
  border-color: var(--wine);
}

/* Галочка есть в разметке всегда, видна только у выбранного цвета (в макете её
   дорисовывал React). */
.filter-colors button svg {
  opacity: 0;
  transition: opacity 160ms ease;
}

.filter-colors button.is-active svg {
  opacity: 1;
}

.color-dot {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(54, 40, 31, 0.16);
  border-radius: 50%;
}

.color-dot--black { background: #36281f; }
.color-dot--milk { background: #efe0c8; }
.color-dot--brown { background: #5a3b30; }
.color-dot--wine { background: var(--wine); }
/* Значения сверх четырёх из макета — встречаются в каталоге. */
.color-dot--graphite { background: #6e5b49; }
.color-dot--white { background: #fdf6ec; }
.color-dot--beige { background: #d9c5a0; }
.color-dot--plain { background: var(--canvas); }

.filter-reset {
  margin-top: 16px;
  color: var(--wine);
  font-size: 0.64rem;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Панель с кнопкой закреплена снизу шита: content прокручивается, бар остаётся
   на месте и не наезжает на текст (фон перекрывает уезжающий список). */
.filter-apply-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 26px -30px 0;
  padding: 16px 30px calc(16px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -18px 26px -14px rgba(20, 16, 14, 0.22);
}

.filter-apply {
  width: 100%;
}

/* --- 1180 --------------------------------------------------------------- */

@media (max-width: 1180px) {
  .catalog-products.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- 960 ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .catalog-hero { grid-template-columns: 1fr 1.15fr; }
  .catalog-products, .catalog-products.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- 760: мобильный каталог --------------------------------------------- */

@media (max-width: 760px) {
  .catalog-page { padding-bottom: 72px; }
  .catalog-hero { min-height: 0; grid-template-columns: 1fr; padding: 69px 7px 7px; }
  .catalog-hero__copy { min-height: 52svh; padding: 28px 20px; }
  .catalog-hero__copy h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .catalog-hero__feature { min-height: 62svh; }
  .catalog-interface { padding: 64px 12px 110px; }
  .catalog-search { min-height: 57px; padding: 0 15px; }
  .catalog-search > span { display: none; }
  .catalog-category-rail { gap: 19px; margin: 32px -12px 72px; padding-right: 14px; padding-left: 14px; }
  .catalog-category-rail a > span { width: 64px; }
  .catalog-toolbar { display: grid; align-items: start; }
  .catalog-toolbar__actions { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .catalog-toolbar__actions::-webkit-scrollbar { display: none; }
  .catalog-tool-button, .catalog-sort, .catalog-view-toggle { flex: 0 0 auto; }
  .catalog-view-toggle { margin-left: auto; }
  .catalog-products, .catalog-products.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .catalog-product { padding-bottom: 42px; }
  .catalog-product__media { border-radius: 7px; }
  .catalog-product__index { top: 8px; left: 8px; }
  .catalog-product .favorite-button { top: 7px; right: 7px; width: 31px; height: 31px; }
  .catalog-product__quick { right: 8px; bottom: 8px; min-height: 31px; padding: 0 9px; opacity: 1; transform: none; }
  .catalog-product__quick span { display: none; }
  .catalog-product__badge { bottom: 8px; left: 8px; }
  .catalog-product__meta { grid-template-columns: 1fr; gap: 5px; padding-top: 11px; }
  .catalog-product__meta h3 { font-size: 0.9rem; }
  .catalog-product__meta p { display: none; }
  .catalog-product__meta > strong { font-size: 0.63rem; }
  .catalog-story { min-height: 78svh; grid-template-columns: 1fr; align-content: end; margin-right: -5px; margin-left: -5px; padding: 22px; border-radius: 12px; }
  .catalog-story h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .catalog-story__cta { justify-self: start; }
  .catalog-empty { min-height: 320px; }
}

@media (max-width: 520px) {
  .catalog-toolbar__actions { gap: 5px; }
  .catalog-sort { max-width: 145px; }
  .catalog-sort select { width: 125px; }
  .catalog-view-toggle { display: none; }
  .filter-colors { grid-template-columns: 1fr; }
}

/* --- мобильный app-pass: сначала инструмент, потом редакция -------------- */

.catalog-mobile-head {
  display: none;
}

@media (max-width: 760px) {
  .catalog-hero {
    display: none;
  }

  .catalog-page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .catalog-interface {
    padding: 74px 10px 98px;
  }

  .catalog-mobile-head {
    display: grid;
    min-height: 120px;
    grid-template-columns: 1fr 132px;
    gap: 7px;
    margin-bottom: 9px;
  }

  .catalog-mobile-head > div,
  .catalog-mobile-head > a {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
  }

  .catalog-mobile-head > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    background: var(--card);
  }

  .catalog-mobile-head > div span,
  .catalog-mobile-head > a > span {
    font-size: 0.53rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .catalog-mobile-head > div span {
    color: rgba(54, 40, 31, 0.44);
  }

  .catalog-mobile-head > div strong {
    font-family: var(--sans);
    font-size: clamp(2.35rem, 11vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
  
	/* jk-sans-2026 */ font-weight: 700; letter-spacing: -0.025em;
}

  .catalog-mobile-head > a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 13px;
    color: var(--white);
  }

  .catalog-mobile-head > a::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.66));
    content: "";
  }

  .catalog-mobile-head > a img {
    object-fit: cover;
  }

  .catalog-mobile-head > a > span,
  .catalog-mobile-head > a > strong,
  .catalog-mobile-head > a > svg {
    position: relative;
    z-index: 2;
  }

  .catalog-mobile-head > a > span {
    color: rgba(253, 246, 236, 0.62);
  }

  .catalog-mobile-head > a > strong {
    margin-top: 5px;
    font-family: var(--sans);
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 0.96;
  
	/* jk-sans-2026 */ font-style: normal; font-weight: 300; letter-spacing: -0.03em;
}

  .catalog-mobile-head > a > svg {
    position: absolute;
    top: 13px;
    right: 13px;
  }

  .catalog-search {
    min-height: 54px;
    border-radius: 13px;
  }

  .catalog-search input {
    font-size: 1rem;
  }

  .catalog-category-rail {
    gap: 14px;
    margin: 18px -10px 23px;
    padding: 0 12px 5px;
  }

  .catalog-category-rail a {
    gap: 7px;
  }

  .catalog-category-rail a > span {
    width: 56px;
  }

  .catalog-category-rail a strong {
    font-size: 0.58rem;
  }

  .catalog-toolbar {
    position: sticky;
    z-index: 24;
    top: 62px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 -10px 12px;
    padding: 10px;
    border-top: 1px solid rgba(54, 40, 31, 0.08);
    border-bottom: 1px solid rgba(54, 40, 31, 0.1);
    background: rgba(247, 243, 237, 0.94);
    backdrop-filter: blur(18px) saturate(125%);
  }

  .catalog-toolbar > div:first-child {
    min-width: 0;
    margin-right: auto;
  }

  .catalog-toolbar .eyebrow {
    display: none;
  }

  /* Заголовок занимает всё свободное место тулбара, а не фиксированные 130px из
     макета: там длинных имён разделов не было, у нас есть «Связано с любовью».
     Вычет = padding 20 + блок инструментов 298 + зазор 9. Многоточие оставлено
     страховкой на случай ещё более длинного названия. */
  .catalog-toolbar h2 {
    overflow: hidden;
    max-width: calc(100vw - 327px);
    margin: 0;
    font-size: 1.43rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-toolbar__actions {
    width: auto;
    gap: 5px;
    overflow: visible;
  }

  .catalog-tool-button,
  .catalog-sort {
    min-height: 39px;
    border-radius: 9px;
  }

  .catalog-tool-button {
    gap: 6px;
    padding: 0 10px;
    font-size: 0.61rem;
  }

  .catalog-sort {
    max-width: 126px;
    padding: 0 7px;
  }

  .catalog-sort select {
    width: 108px;
    font-size: 0.58rem;
  }

  .catalog-products,
  .catalog-products.is-compact {
    gap: 7px;
  }

  .catalog-product {
    padding-bottom: 29px;
  }

  .catalog-product__meta {
    padding: 10px 2px 0;
  }

  .catalog-product__meta h3 {
    margin-bottom: 7px;
    font-size: 0.96rem;
    line-height: 1.05;
  }

  .catalog-product__meta > strong {
    font-size: 0.65rem;
  }

  .catalog-story {
    min-height: 58svh;
    margin: 13px -3px 36px;
  }

  .catalog-filter-sheet {
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: 7px;
    width: auto;
    height: min(88svh, 720px);
    max-width: none;
    padding: 23px 20px 0;
  }

  .catalog-filter-sheet__title {
    margin-top: 18px;
    font-size: 2rem;
  }

  .filter-group {
    margin-top: 25px;
    padding-top: 18px;
  }

  .filter-apply-bar {
    margin: 20px -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  }
}

/* Ниже 520 инструментов меньше: переключатель вида скрыт, сортировка ужата —
   заголовку остаётся больше места. Вычет = padding 20 + инструменты 217 + зазор 9. */
@media (max-width: 520px) {
  .catalog-toolbar h2 {
    max-width: calc(100vw - 246px);
  }
}

@media (max-width: 390px) {
  .catalog-mobile-head {
    grid-template-columns: 1fr 124px;
  }

  /* На 390 это ровно 186px — всё свободное место тулбара (padding 20 +
     кнопка-иконка «Фильтры» с сортировкой 175 + зазор 9). На экранах уже
     заголовок ужимается сам, чтобы не выдавить инструменты. */
  .catalog-toolbar h2 {
    max-width: calc(100vw - 204px);
    font-size: 1.3rem;
  }

  .catalog-tool-button {
    font-size: 0;
  }

  .catalog-tool-button svg {
    width: 18px;
    height: 18px;
  }

  .catalog-tool-button i {
    font-size: 0.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filter-sheet,
  .jk-sheet__overlay,
  .catalog-product__media img,
  .catalog-hero__feature > img {
    transition: none;
  }
}
