/* TRIkotaZZZ - розділ і фільтр (модуль trikotazzzrozdil), 21.11.2026. Етап 3 дизайну, вибір власниці:
   вигляд 2 «спокійний, як магазин бренду», кути 2 (фото і блоки 10, кнопки 8, позначки 8, вікна 16, «У кошик» 12),
   дві плитки в ряд з тонкою рамкою (правило 100), розміри кнопками в рядок, об'ємна жовта «У кошик» (як на картці),
   «Новинка» зелена, знижка - теракотова таблетка (поки як є). Усе під html.tzr-on і класами tzr-, щоб не зачепити інших сторінок.
   Телефон першим; від 768 - три в ряд, від 1200 - чотири. */

@font-face { font-family: "TZ Lora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/modules/trikotazzzkartka/views/fonts/lora-700-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TZ Lora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/modules/trikotazzzkartka/views/fonts/lora-700-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "TZ Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/modules/trikotazzzkartka/views/fonts/nunitosans-cyr-2.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TZ Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/modules/trikotazzzkartka/views/fonts/nunitosans-lat-2.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

/* .tzr-vars - ті самі кольори для плиток поза розділом (низ картки, модуль trikotazzzporady), без класу на <html> */
html.tzr-on, .tzr-vars {
  --tzr-ink: #2B2418; --tzr-muted: #6B6255; --tzr-line: #E6DFD3; --tzr-line2: #CFC5B5; --tzr-soft: #F3ECE1;
  --tzr-sel-bg: #FFF1D2; --tzr-sel-bd: #D99A2B; --tzr-new-bg: #E3F0DF; --tzr-new: #2E5E35; --tzr-sale-bg: #FCE3D6; --tzr-sale: #9A3412;
  --tzr-deep: #4A3A22;
  --tz-rT: 10px; --tz-rB: 8px; --tz-rP: 8px; --tz-rS: 16px; --tz-rI: 6px; --tz-rX: 4px;
  --tzr-fh: "TZ Lora", Georgia, serif; --tzr-ft: "TZ Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tzr-top: 0px;
}
html.tzr-on body#category { background: #FFFFFF; }

/* ---------- старе, що замінює новий верх: крихти, банер з назвою, перемикач сітка/список і сортування теми ---------- */
html.tzr-on body#category nav.breadcrumb, html.tzr-on body#category .breadcrumb-wrapper, html.tzr-on body#category .tvcms-breadcrumb,
html.tzr-on body#category .tv-category-cover, html.tzr-on body#category .tv-all-page-main-title-wrapper,
html.tzr-on body#category #js-product-list-top { display: none !important; }
html.tzr-on body#category .tv-category-block-wrapper { background: none; box-shadow: none; border: 0; padding: 0; margin: 0; }
html.tzr-on body#category #amazzing_filter .compact-toggle.sticky { display: none !important; }

/* ---------- верх і смуга над товарами з першого показу, без перенесення скриптом (інакше список стрибав - зсув 0,164 на телефоні).
   Тема ставить #content-wrapper «знизу догори» (flex column-reverse, щоб опис розділу був унизу), тож #main розгортаємо
   (display: contents) і задаємо порядок: більший - вище. Опис розділу (у #main) лишається внизу. ---------- */
html.tzr-on body#category #content-wrapper > #main { display: contents; }
html.tzr-on body#category #content-wrapper > #products { order: 1; }
html.tzr-on body#category .tzr-bar, html.tzr-on body#category .tzr-bar-ph { order: 2; }
/* плитки підрозділів теми (product-list.tpl, «Хлопчикам (3 - 14)») - одразу під заголовком, над смугою і товарами, як було до 21.11
   (Baymard 4.47: на проміжній сторінці першими підрозділи). Без порядку вони опинялись під усіма товарами (власниця 21.11 15:30). */
html.tzr-on body#category #content-wrapper > .tv-subcategories-grid-section { order: 3; }
html.tzr-on body#category .tzr-top { order: 4; }
/* поки сторінка вантажиться (футера ще немає), опис розділу ховаємо - як правило теми 15.11 у head.tpl (п. 48 «що перевірити»),
   інакше він на мить стає вгорі і потім стрибає вниз; верх і смуга видно з першого показу */
@supports selector(:has(a)) {
  html.tzr-on body#category:not(:has(#footer)) #content-wrapper > #main > .block-category { display: none; }
}

/* ---------- верх: крихти, заголовок з кількістю, інші розділи ---------- */
.tzr-top { padding: 2px 2px 0; color: var(--tzr-ink); font-family: var(--tzr-ft); text-align: left; }
.tzr-crumbs { display: flex; align-items: center; gap: 6px; min-height: 26px; font: 700 14px/1.2 var(--tzr-ft); color: var(--tzr-muted); white-space: nowrap; overflow: hidden; }
.tzr-crumbs a { color: var(--tzr-muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.tzr-crumbs .tzr-cc { color: var(--tzr-ink); overflow: hidden; text-overflow: ellipsis; }
.tzr-h1 { margin: 0 0 4px; padding: 0; font: 700 22px/1.16 var(--tzr-fh); color: var(--tzr-ink); letter-spacing: -.005em; text-transform: none; }
.tzr-h1w { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin: 0 0 4px; }
.tzr-h1w .tzr-h1 { margin: 0; }
.tzr-cnt { font: 600 14px/1 var(--tzr-ft); color: var(--tzr-muted); white-space: nowrap; }
.tzr-sib { display: flex; align-items: center; gap: 2px; overflow-x: auto; margin: 0 -2px; padding: 0 0 2px; border-bottom: 1px solid var(--tzr-line); scrollbar-width: none; }
.tzr-sib::-webkit-scrollbar { display: none; }
.tzr-sib-l { flex: 0 0 auto; max-width: 72px; padding: 0 8px 0 2px; font: 700 13.5px/1.15 var(--tzr-ft); color: var(--tzr-muted); }
.tzr-sib-a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 10px; font: 600 15px/1 var(--tzr-ft); color: var(--tzr-muted) !important;
  text-decoration: none !important; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
/* поточний розділ - чорна риска 3 точки (власниця 21.11 ~20:20: «лишаємо як є, лише риска чорна, трохи помітніша»; було 2) */
.tzr-sib-a.on { color: var(--tzr-ink) !important; box-shadow: inset 0 -3px 0 var(--tzr-ink); }

/* тонкі стрілки з країв стрічки розділів (власниця 21.11 ~22:00: «один рядок, але незрозуміло, що там є - охайну тонку стрілку»):
   видно, лише коли в той бік є ще розділи; натиск гортає стрічку на ~70% ширини */
.tzr-sibw { position: relative; }
.tzr-sib-ar { position: absolute; top: 0; bottom: 3px; width: 44px; display: flex; align-items: center; margin: 0; padding: 0; border: 0; cursor: pointer;
  color: var(--tzr-ink); box-shadow: none; -webkit-tap-highlight-color: transparent; z-index: 2; }
.tzr-sib-ar[hidden] { display: none; }
.tzr-sib-ar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tzr-sib-ar-r { right: -2px; justify-content: flex-end; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #FFFFFF 55%); }
.tzr-sib-ar-l { left: -2px; justify-content: flex-start; background: linear-gradient(270deg, rgba(255, 255, 255, 0), #FFFFFF 55%); }

/* ---------- смуга швидких фільтрів (липка під шапкою) ---------- */
.tzr-bar { position: sticky; top: var(--tzr-top); z-index: 50; margin: 0 -15px; padding: 6px 0; background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--tzr-line); font-family: var(--tzr-ft); }
.tzr-bar-row { display: flex; gap: 8px; min-height: 40px; overflow-x: auto; padding: 0 15px; scrollbar-width: none; } /* висота наперед - таблетки з'являються без поштовху */
/* тема має обгортку з overflow, через яку sticky не тримає - тоді скрипт закріплює смугу сам (tzr-stuck), а на її місці лишає порожнє місце */
.tzr-bar.tzr-stuck { position: fixed; top: var(--tzr-top); left: 0; right: 0; margin: 0; }
.tzr-bar-ph { display: none; }
.tzr-bar-ph.on { display: block; }
.tzr-bar-row::-webkit-scrollbar { display: none; }
.tzr-fb { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; margin: 0; padding: 0 12px;
  border: 1px solid var(--tzr-line); border-radius: var(--tz-rB); background: #FFFFFF; color: var(--tzr-ink); font: 600 15px/1 var(--tzr-ft);
  cursor: pointer; white-space: nowrap; box-shadow: none; text-transform: none; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
.tzr-fb:active { transform: scale(.97); }
.tzr-fb.on { border-color: var(--tzr-ink); box-shadow: inset 0 0 0 1px var(--tzr-ink); }
.tzr-fb.on::before { content: "✓"; font-weight: 900; }
.tzr-fb svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tzr-fb .tzr-n1 { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--tzr-ink); color: #FFFFFF; font: 800 11px/19px var(--tzr-ft); text-align: center; }

/* ---------- список: дві в ряд, частини плиток на одному рівні (subgrid) ---------- */
/* .tzr-grid ставить скрипт (для iOS до 15.4 без :has()); правило з :has() - окремо, щоб старий браузер не відкинув обидва */
html.tzr-on #js-product-list .products.tzr-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 0;
  margin: 0 !important; padding: 8px 0 4px; }
html.tzr-on #js-product-list .products.tzr-grid > article:not(.tzr-t) { grid-row: span 5; width: auto !important; max-width: none !important; }
html.tzr-on #js-product-list .products.tzr-grid::before, html.tzr-on #js-product-list .products.tzr-grid::after { content: none !important; display: none !important; }
html.tzr-on #js-product-list .products:has(> .tzr-t) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 0;
  margin: 0 !important; padding: 8px 0 4px; }
html.tzr-on #js-product-list .products:has(> .tzr-t) > article:not(.tzr-t) { grid-row: span 5; width: auto !important; max-width: none !important; }
html.tzr-on #js-product-list .products:has(> .tzr-t)::before, html.tzr-on #js-product-list .products:has(> .tzr-t)::after { content: none !important; display: none !important; }
.tzr-t { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; min-width: 0; margin: 0 0 14px; padding: 0;
  background: #FFFFFF; border-radius: var(--tz-rT); box-shadow: 0 0 0 1px var(--tzr-line); overflow: hidden; color: var(--tzr-ink); font-family: var(--tzr-ft); text-align: left; }
/* клас product-miniature потрібен прокрутці теми (tvcmsinfinitescroll шукає останню плитку) - її стилі тут не діють */
html.tzr-on .products .tzr-t.product-miniature { float: none !important; width: auto !important; max-width: none !important; margin: 0 0 14px !important; padding: 0 !important; }
.tzr-go { display: contents; color: inherit !important; text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
/* без жовтої заливки теми на фото під пальцем (знімок власниці 21.11 21:15) */
.tzr-t a, .tzr-ph, .tzr-sl { -webkit-tap-highlight-color: transparent; }
.tzr-ph { grid-row: 1; position: relative; display: block; aspect-ratio: 310 / 413; background: #FFFFFF; overflow: hidden; }
.tzr-sl { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tzr-sl::-webkit-scrollbar { display: none; }
.tzr-sl img[data-tzr-src], .tzr-sl img[data-tzr-lazy] { background: #F7F4EF; }
.tzr-sl img { flex: 0 0 100%; width: 100%; height: 100%; max-width: none; object-fit: cover; scroll-snap-align: start; display: block; }
/* точки фото: з 21.11 ~21:45 у плитці їх немає (рішення власниці «сторінка перевантажена»), стиль лишається на випадок повернення */
.tzr-dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  border-radius: 10px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 4px rgba(43, 36, 24, .18); pointer-events: none; }
.tzr-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(43, 36, 24, .3); transition: width .25s ease, background .25s ease; }
.tzr-dots i.on { width: 18px; background: rgba(43, 36, 24, .8); }
.tzr-new { position: absolute; top: 6px; left: 6px; height: 18px; padding: 0 6px; border-radius: var(--tz-rP); background: var(--tzr-new-bg); color: var(--tzr-new);
  font: 800 9.5px/18px var(--tzr-ft); letter-spacing: .07em; text-transform: uppercase; }
.tzr-n { grid-row: 2; display: block; padding: 6px 8px 0; font: 400 14px/1.3 var(--tzr-ft); color: var(--tzr-ink); overflow-wrap: anywhere; }
.tzr-pr { grid-row: 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 2px 8px 0; }
.tzr-p { font: 700 16px/1.2 var(--tzr-ft); color: var(--tzr-ink); white-space: nowrap; }
.tzr-old { font: 400 14px/1.2 var(--tzr-ft); color: var(--tzr-muted); text-decoration: line-through; white-space: nowrap; }
.tzr-pct { padding: 2px 6px; border-radius: min(6px, var(--tz-rP)); background: var(--tzr-sale-bg); color: var(--tzr-sale); font: 800 13px/1.2 var(--tzr-ft); white-space: nowrap; }

/* розміри кнопками в рядок, гортаються вбік; праворуч згасання, поки є що гортати (вибір власниці 21.11, варіант 5) */
.tzr-szr { grid-row: 4; display: flex; gap: 6px; overflow-x: auto; padding: 6px 8px 0; scrollbar-width: none; align-self: start; }
.tzr-szr::-webkit-scrollbar { display: none; }
.tzr-szr.tzr-szr-more { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.tzr-sz { flex: 0 0 auto; min-width: 50px; height: 44px; margin: 0; padding: 0 6px; border: 1px solid var(--tzr-line); border-radius: var(--tz-rB); background: #FFFFFF;
  color: var(--tzr-ink); font: 700 15px/1 var(--tzr-ft); font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
  -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.tzr-sz.fit { color: var(--tzr-new); box-shadow: inset 0 0 0 1px rgba(46, 94, 53, .45); }
.tzr-sz[aria-pressed="true"] { background: var(--tzr-sel-bg); border-color: var(--tzr-sel-bd); box-shadow: inset 0 0 0 1px var(--tzr-sel-bd); color: var(--tzr-ink); }
/* розмір, який вибрав сайт (лишився один або зріст з фільтра), виглядає як решта; жовта рамка - лише від натиску людини (власниця 21.11 15:30) */
.tzr-sz.tzr-auto[aria-pressed="true"] { background: #FFFFFF; border-color: var(--tzr-line); box-shadow: none; }
.tzr-sz.fit.tzr-auto[aria-pressed="true"] { color: var(--tzr-new); box-shadow: inset 0 0 0 1px rgba(46, 94, 53, .45); }
.tzr-sz:disabled { color: #A89E8F; background: #F7F4EF; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.tzr-szr.tzr-nudge { animation: tzr-nudge .45s ease; }
@keyframes tzr-nudge { 30% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }

/* «У кошик» - об'ємна, як на картці (власниця 21.11: не пласка, не квадратна, яскрава жовта завжди) */
.tzr-f { grid-row: 5; align-self: end; margin: 0; padding: 7px 8px 8px; }
.tzr-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin: 0 0 3px; padding: 0 8px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #F8D186 0%, #EFB653 100%); color: #3B2A0B; font: 700 16px/1 var(--tzr-ft); text-transform: none; letter-spacing: 0; cursor: pointer;
  box-shadow: 0 3px 0 #C98E2E, 0 6px 14px rgba(239, 182, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .65); transition: transform .1s, box-shadow .1s;
  -webkit-tap-highlight-color: transparent; }
.tzr-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #C98E2E, inset 0 1px 0 rgba(255, 255, 255, .65); }
.tzr-btn:disabled { filter: grayscale(.6); opacity: .55; cursor: not-allowed; }
.tzr-btn .tzr-ci { width: 17px; height: 17px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tzr-btn .tzr-bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzr-t.tzr-in .tzr-ph::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 12px; background: var(--tzr-sel-bg);
  border: 1px solid var(--tzr-sel-bd); color: #6B430C; font: 800 13px/22px var(--tzr-ft); text-align: center; }
.tzr-t :focus-visible, .tzr-bar :focus-visible, .tzr-top :focus-visible { outline: 3px solid var(--tzr-sel-bd); outline-offset: 2px; }

/* ---------- текст розділу: унизу і згорнутий (для Google лишається повністю) ---------- */
.tzr-desc { margin: 10px 0 18px; padding: 14px 2px; border-top: 1px solid var(--tzr-line); font-family: var(--tzr-ft); color: var(--tzr-muted); }
.tzr-desc #category-description { position: relative; max-height: 4.6em; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--tzr-muted); }
.tzr-desc.open #category-description { max-height: none; }
.tzr-desc:not(.open) #category-description::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF); }
.tzr-desc-b { display: inline-flex; align-items: center; min-height: 40px; margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--tzr-ink);
  font: 800 14px var(--tzr-ft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none; text-transform: none; }

/* ---------- вікно сортування знизу ---------- */
.tzr-dim { position: fixed; inset: 0; z-index: 10020; background: rgba(30, 24, 16, .38); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tzr-dim.on { opacity: 1; pointer-events: auto; }
.tzr-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10021; max-height: 88vh; overflow-y: auto; padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF; border-radius: var(--tz-rS) var(--tz-rS) 0 0; transform: translateY(104%); visibility: hidden; font-family: var(--tzr-ft); color: var(--tzr-ink);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
.tzr-sheet.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
/* комп'ютер: сортування - список під кнопкою (власниця 21.11 19:16 - смуга на всю ширину знизу виглядала чужою) */
.tzr-sheet.tzr-pop { right: auto; bottom: auto; width: 300px; max-height: 70vh; padding: 6px 10px 10px; border-radius: 12px; box-shadow: 0 0 0 1px var(--tzr-line), 0 14px 34px rgba(30, 24, 16, .18);
  transform: translateY(-6px); opacity: 0; transition: transform .18s ease, opacity .18s ease, visibility 0s linear .18s; }
.tzr-sheet.tzr-pop.on { transform: none; opacity: 1; transition: transform .18s ease, opacity .18s ease, visibility 0s; }
.tzr-sheet.tzr-pop .tzr-sh-t b { font-size: 17px; }
.tzr-dim.tzr-pop { background: transparent; }
/* комп'ютер: фільтр ліворуч, на який навели кнопкою смуги */
#amazzing_filter.tzr-flash, #af_form .af_filter.tzr-flash { animation: tzr-flash 1.6s ease; border-radius: 10px; }
@keyframes tzr-flash { 0%, 35% { box-shadow: 0 0 0 3px #D99A2B; background-color: #FFF7E6; } 100% { box-shadow: 0 0 0 3px rgba(217, 154, 43, 0); background-color: transparent; } }
.tzr-sh-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0 6px; }
.tzr-sh-t b { font: 700 20px/1.2 var(--tzr-fh); }
.tzr-x { width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 20px; background: var(--tzr-soft); color: var(--tzr-ink); font: 700 20px/1 var(--tzr-ft); cursor: pointer; }
.tzr-srt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0; padding: 0 6px; border: 0; border-radius: var(--tz-rB); background: none;
  color: var(--tzr-ink); font: 600 15.5px var(--tzr-ft); text-align: left; cursor: pointer; text-transform: none; box-shadow: none; }
.tzr-srt i { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 10px; border: 2px solid #BFB3A0; }
.tzr-srt.on i { border: 6px solid var(--tzr-sel-bd); }

/* ---------- телефон: легший верх (власниця 21.11 19:1x-19:3x: «кількість біля назви на телефоні захаращує - не показувати»,
   «полегшити верх, щоб потрібне лишилось», «де крихти?»). Крихти - повністю, з ключем; кількість на телефоні не показуємо
   (внизу списку тема пише «Показано 1-16 з 66 товарів» - правило 25, «внизу»); підпис «Інші розділи:» прибрано
   (поточний розділ у стрічці підкреслено). ---------- */
@media (max-width: 767px) {
  .tzr-cnt { display: none; }
  .tzr-sib-l { display: none; }
  /* більший шрифт без втрати першого екрана (2 плитки повністю на 390×664): відступи в плитці на 1-3 точки менші */
  .tzr-n { padding-top: 4px; }
  .tzr-szr { padding-top: 5px; }
  .tzr-f { padding: 6px 8px 6px; }
}

/* ---------- фільтр Amazzing на телефоні: вікно знизу замість бічної панелі (його ж механіка і кнопки) ---------- */
@media (max-width: 767px) {
  html.tzr-on .has-compact-filter #amazzing_filter { top: auto !important; bottom: 0; right: 0; left: 0; height: auto; max-height: 86vh; max-width: none;
    transform: translateY(104%); border-radius: var(--tz-rS) var(--tz-rS) 0 0; overflow: hidden; font-family: var(--tzr-ft); }
  html.tzr-on .has-compact-filter.show-filter #amazzing_filter { transform: none; box-shadow: 0 -10px 30px rgba(30, 24, 16, .18); }
  html.tzr-on .has-compact-filter #amazzing_filter .title_block { margin: 0; padding: 14px 16px 8px; background: #FFFFFF; color: var(--tzr-ink);
    font: 700 20px/1.2 var(--tzr-fh); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--tzr-line); }
  html.tzr-on .has-compact-filter #amazzing_filter .compact-close { font: 700 14px var(--tzr-ft); color: var(--tzr-ink); text-transform: none; letter-spacing: 0; padding: 5px 16px; }
  html.tzr-on .has-compact-filter .af.block .block_content { max-height: calc(86vh - 56px); padding: 6px 16px 96px; }
  html.tzr-on .has-compact-filter #amazzing_filter .btn-holder { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; border-top: 1px solid var(--tzr-line); }
  html.tzr-on .has-compact-filter #amazzing_filter .btn-holder .btn { width: 100%; min-height: 50px; border: 0; border-radius: var(--tz-rB); background: var(--tzr-deep); color: #FFFFFF;
    font: 800 15.5px var(--tzr-ft); text-transform: none; letter-spacing: 0; box-shadow: none; }
}

/* ---------- фільтр Amazzing: вибраний вигляд 3 «один список, в один рядок» (власниця 21.11 ~21:40; макет розмови швидкості,
   `сайт/макети/2026-11-21 фільтр - зараз і стане (вибрано 3).png`): рядок 46, прапорець 22 з галочкою кольору вибраного розміру,
   без кількості, шрифт 16 (як на картці - «Наші правила» 7), зріст першим (її «спершу зріст дитини, потім усе інше»), без поля
   пошуку посеред розмірів. Підписи розмірів - як у товарах («8 років (128 зріст )»), не змінюємо (її рішення 21.11 ~21:35). ---------- */
html.tzr-on #amazzing_filter #af_form { display: flex; flex-wrap: wrap; align-items: flex-start; }
html.tzr-on #amazzing_filter #af_form > * { width: 100%; }
html.tzr-on #amazzing_filter .af_filter { border: 0 !important; margin: 0 !important; padding: 4px 0 10px !important; }
html.tzr-on #amazzing_filter .af_filter + .af_filter { border-top: 1px solid #F0EAE0 !important; }
html.tzr-on #amazzing_filter .af_subtitle { font: 800 17px/1.3 "TZ Nunito", system-ui, sans-serif !important; color: #2B2418 !important; text-transform: none !important;
  letter-spacing: 0 !important; padding: 12px 0 6px !important; }
html.tzr-on #amazzing_filter .af_filter.a4 .af-quick-search { display: none !important; }
html.tzr-on #amazzing_filter .af_filter ul { padding: 0 !important; margin: 0 !important; max-height: none !important; overflow: visible !important; }
html.tzr-on #amazzing_filter .af_filter li { margin: 0 !important; padding: 0 !important; list-style: none; }
html.tzr-on #amazzing_filter .af_filter label.af-checkbox-label { position: relative; display: flex !important; align-items: center; gap: 12px; margin: 0 !important; min-height: 46px;
  padding: 0 2px !important; border: 0; background: none; cursor: pointer; }
html.tzr-on #amazzing_filter .af_filter label.af-checkbox-label input.af.checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
html.tzr-on #amazzing_filter .af_filter label.af-checkbox-label::after { display: none !important; }
html.tzr-on #amazzing_filter .af_filter label.af-checkbox-label::before { content: "" !important; display: block !important; position: static !important; flex: 0 0 22px; width: 22px !important; height: 22px !important;
  margin: 0 !important; border: 1.5px solid #CFC5B5 !important; border-radius: 6px !important; background: #FFFFFF !important; transform: none !important; box-shadow: none !important; }
html.tzr-on #amazzing_filter .af_filter label:has(input:checked)::before { background: #D99A2B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat !important; border-color: #D99A2B !important; }
html.tzr-on #amazzing_filter .af_filter label .name { font: 600 16px/1.3 "TZ Nunito", system-ui, sans-serif; color: #2B2418; }
html.tzr-on #amazzing_filter .af_filter label:has(input:checked) .name { font-weight: 800; }
html.tzr-on #amazzing_filter .af_filter label .count { display: none !important; }
html.tzr-on #amazzing_filter .af_filter li.no-matches label { opacity: .45; }
/* «Новинки» і «Зі знижкою» - останніми і в панелі, і в смузі вгорі (власниця 21.11 ~21:45: «не першими, а останніми»;
   «можна лишити і в панелі, лише теж останніми») */
html.tzr-on #amazzing_filter #af_form > .af_filter.special { order: 10; }
html.tzr-on #amazzing_filter .af_filter .af_filter_content { padding: 0 !important; margin: 0 !important; }
html.tzr-on #amazzing_filter #af_form > .af_filter.a4 { padding-top: 0 !important; }
html.tzr-on .has-compact-filter #amazzing_filter .compact-close { font-size: 0 !important; width: 44px; height: 44px; padding: 0 !important; align-items: center; justify-content: center; }
html.tzr-on .has-compact-filter #amazzing_filter .compact-close::before { display: none !important; }
html.tzr-on .has-compact-filter #amazzing_filter .compact-close::after { content: "×" !important; font: 400 32px/1 "TZ Nunito", system-ui, sans-serif !important; color: #2B2418; border: 0 !important;
  transform: none !important; width: auto !important; height: auto !important; position: static !important; }
html.tzr-on #amazzing_filter #af_form > .af_filter.a4 { order: -1; }

/* ---------- комп'ютер: та сама плитка, більше в ряд ---------- */
@media (min-width: 768px) {
  html.tzr-on #js-product-list .products.tzr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  html.tzr-on #js-product-list .products:has(> .tzr-t) { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .tzr-bar { margin: 0; }
  .tzr-bar-row { padding: 0 2px; }
  .tzr-h1 { font-size: 28px; }
  /* комп'ютер: шрифт як на картці (розміри і «У кошик» 16) - власниця 21.11 19:0x «шрифт дрібний, нічого не видно» */
  .tzr-n { font-size: 16px; }
  .tzr-p { font-size: 18px; }
  .tzr-sz { font-size: 16px; }
}
@media (min-width: 1200px) {
  html.tzr-on #js-product-list .products.tzr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
  html.tzr-on #js-product-list .products:has(> .tzr-t) { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }
}
/* друге фото - як у старій плитці теми (власниця 21.11 ~21:44: «залиш, як було, без фантазій»): комп'ютер - при наведенні мишки
   (через 150 мс, плавно, мишка пішла - перше); телефон - перший дотик до фото показує друге, наступний відкриває товар (rozdil.js).
   Гортання пальцем і крапок немає. Всупереч аркушу «Розділ» 70, 72, 85 (Baymard) - рішення власниці. */
.tzr-ph .tzr-sl { overflow: hidden; scroll-snap-type: none; }
.tzr-ph .tzr-sl img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.tzr-ph.tzr-h2 .tzr-sl img + img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tzr-t *, .tzr-sheet, .tzr-dim, .tzr-szr, #amazzing_filter, #af_form .af_filter { animation: none !important; transition: none !important; }
}
