/* catalog.css — catalog, section and search (template 2): R41 left panel · R37 vertical kind cards · R35 cards · R61 on the phone */

.cat-head h1 { max-width: none; }
.cat-head .crumbs [hidden] { display: none; }

/* 2.B1 · kinds as vertical cards (R37: the product fills the whole tall card, a pill with the name on top) */
.vk { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 11vw, 250px); gap: clamp(10px, 1vw, 20px); overflow-x: auto;
  scrollbar-width: none; margin-top: clamp(22px, 2vw, 40px); padding-bottom: 4px; }
.vk::-webkit-scrollbar { display: none; }
.vk__w { position: relative; display: block; }
.vk:empty { display: none; }
.vk__c { position: relative; display: block; aspect-ratio: .74; border-radius: 22px; overflow: hidden; background: var(--tone, var(--sand)); isolation: isolate; }
.vk__c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s var(--ease); }
.vk__c img.is-cut { inset: 22% 6% 4%; width: 88%; height: 74%; object-fit: contain; }
.vk__c:hover img { transform: scale(1.04); }
.vk__p { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--white);
  border-radius: var(--r-pill); padding: 7px 12px; font-weight: 600; font-size: var(--fs-small); box-shadow: 0 6px 16px -10px rgba(45, 41, 38, .4); }
.vk__p sup { color: var(--ink-3); font-size: 12px; }
.vk__c[aria-current="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }

/* layout: panel + results */
.shop { display: grid; grid-template-columns: clamp(250px, 19vw, 360px) 1fr; gap: clamp(22px, 2.6vw, 56px); align-items: start; padding-bottom: var(--sec); }

/* 2.B2 · left panel (R41) */
.flt { position: sticky; top: 140px; background: var(--white); border-radius: var(--r-card); border: 1px solid var(--line); max-height: calc(100vh - 160px);
  display: flex; flex-direction: column; overflow: hidden; }
.flt__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.flt__head h2 { font-size: 24px; }
.flt__x { display: none; }
.flt__body { overflow: auto; padding: 0 20px 6px; scrollbar-width: thin; }
.flt__foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.flt__apply { display: none; }
.fg { border-top: 1px solid var(--line); padding: 14px 0; }
.fg:first-child { border-top: 0; }
.fg h3 { font-family: var(--f-txt); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; color: var(--clay); margin-bottom: 10px; }
.fg__list { display: grid; gap: 2px; }
.fg__list.is-cut .chk:nth-child(n + 8) { display: none; }
.fg__more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; cursor: pointer; font-size: var(--fs-small); }
.chk:hover { background: var(--cream); }
.chk input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--white); flex: none; display: grid; place-items: center; margin: 0; }
.chk input:checked { background: var(--sun); border-color: var(--sun); }
.chk input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.chk sup { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.chk.is-tree { font-weight: 500; }
.chk.is-tree[aria-current="true"] { background: var(--butter); font-weight: 700; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; }
.wchips button { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: var(--fs-small); }
.wchips button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.range input { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: var(--cream); font-size: var(--fs-small); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: var(--fs-small); cursor: pointer; }
.toggle input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white);
  transition: transform .25s var(--ease); box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(20px); }

/* 2.B3 · bar */
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.bar__found { font-size: calc(var(--fs-body) * 1.02); }
.bar__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 500; }
.chip i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.chip--clear { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); margin-left: auto; }
.sort select { min-height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line); padding: 0 38px 0 16px; background: var(--white); font-weight: 600; color: var(--ink);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.mbtn { display: none; }

/* 2.B4 · grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 26px); }
@media (min-width: 1800px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cell { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; border-radius: var(--r-card); background: var(--sun); padding: clamp(18px, 1.6vw, 30px); min-height: 100%; }
.cell__t { font-family: var(--f-acc); font-weight: 700; font-size: clamp(21px, 1.1vw + 6px, 32px); line-height: 1.14; }
.cell__dr { width: 82%; align-self: center; mix-blend-mode: multiply; }
.cell--ink { background: var(--ink); color: var(--white); }
.cell--ink .cell__dr { mix-blend-mode: normal; filter: invert(1) brightness(1.8); }
.cell--ink .link-arrow { border-color: var(--sun); }
.notify { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px dashed var(--ink-3); font-size: 14px; font-weight: 600; margin-left: auto; }
.more { display: grid; justify-items: center; gap: 12px; margin-top: clamp(26px, 2.4vw, 46px); }
.more[hidden] { display: none; }

/* 2.B7 · empty search */
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 10px 20px; }
.empty[hidden] { display: none; }
.empty img { width: 150px; mix-blend-mode: multiply; }
.empty h2 { font-size: var(--fs-h3); max-width: 30ch; }
.empty__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* 2.B8 · SEO */
.seo { padding-bottom: var(--sec); }
.seo[hidden] { display: none; }
.seo__d { background: var(--white); border-radius: var(--r-card); padding: 22px clamp(18px, 2vw, 40px); border: 1px solid var(--line); }
.seo__d summary { cursor: pointer; font-family: var(--f-acc); font-weight: 700; font-size: var(--fs-h3); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.seo__d summary::-webkit-details-marker { display: none; }
.seo__d summary::after { content: "Подробнее"; font-family: var(--f-txt); font-size: var(--fs-small); font-weight: 600; border-bottom: 2px solid var(--sun); align-self: center; }
.seo__d[open] summary::after { content: "Свернуть"; }
.seo__d h2 { display: none; }
.seo__d p, .seo__d ul { margin-top: 12px; color: var(--ink-2); max-width: 80ch; }

/* mobile sheets */
.sheet-scrim { position: fixed; inset: 0; background: rgba(45, 41, 38, .4); z-index: 88; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.sheet-scrim.is-on { opacity: 1; pointer-events: auto; }
.sortsheet { display: none; }

@media (max-width: 1100px) and (min-width: 768px) {
  .shop { grid-template-columns: 240px 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cat-head { padding-top: 14px; }
  .cat-head h1 { font-size: 28px; margin-top: 4px; }
  .vk { grid-auto-columns: 74px; gap: 12px; margin-top: 14px; }
  .vk__c { aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
  .vk__c img.is-cut { inset: 12%; width: 76%; height: 76%; }
  .vk__p { position: static; background: none; box-shadow: none; padding: 6px 0 0; justify-content: center; font-size: 12px; text-align: center; }
  .vk__p sup { display: none; }
  .vk a { display: block; }
  .vk__w { display: grid; gap: 0; }
  .shop { grid-template-columns: 1fr; }
  .flt { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 89; max-height: 82vh; border-radius: 24px 24px 0 0; border: 0;
    transform: translateY(104%); transition: transform .4s var(--ease); box-shadow: 0 -20px 40px -20px rgba(45, 41, 38, .4); }
  .flt.is-on { transform: none; }
  .flt__x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); }
  .flt__apply { display: inline-flex; flex: 1; }
  .bar { display: none; }
  .mbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; position: sticky; top: 58px; z-index: 20; background: var(--cream); padding: 6px 0; }
  .mbtn__b { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; }
  .mbtn__b b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--sun); font-size: 12px; line-height: 22px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .grid .cell { display: none; }
  .sortsheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; background: var(--white); border-radius: 24px 24px 0 0; padding: 20px 16px 28px;
    transform: translateY(104%); transition: transform .4s var(--ease); }
  .sortsheet.is-on { transform: none; }
  .sortsheet h3 { font-family: var(--f-acc); font-size: 22px; margin-bottom: 10px; }
  .sortsheet__list { display: grid; gap: 6px; }
  .sortsheet__list button { text-align: left; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--cream); font-weight: 600; }
  .sortsheet__list button[aria-pressed="true"] { background: var(--sun); }
}

/* R50–R52: a section of jars opens with its scene */
.cban { margin: clamp(14px, 1.4vw, 26px) 0 0; border-radius: 32px; overflow: hidden; aspect-ratio: 16 / 5.4; background: var(--butter); }
.cban img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
@media (max-width: 767px) { .cban { border-radius: 22px; aspect-ratio: 16 / 9; } }
