/* avemed/catalog — Figma 04 Catalog: sidebar 280 + 3-col grid */
.av-catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 32px 0 24px; }
.av-catalog__count { font-size: 16px; font-weight: 400; color: var(--av-muted); letter-spacing: 0; vertical-align: super; }
.av-catalog__sub { margin: 8px 0 0; font-size: 14px; color: var(--av-slate); }
.av-catalog__promo { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--av-accent-75); font-size: 12px; color: var(--av-navy); }
.av-catalog__chips { margin-bottom: 32px; }
.av-catalog__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 64px; }
.av-filters { position: relative; } /* desktop: full height, no inner scroll (page scrolls) */
.av-filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--av-divider); }
.av-filters__close { display: none; }
.av-fgroup { border-bottom: 1px solid var(--av-divider); }
.av-fgroup summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.av-fgroup summary::-webkit-details-marker { display: none; }
.av-fgroup summary .av-icon { color: var(--av-muted); transition: transform .25s var(--av-ease); }
.av-fgroup[open]:not(.is-closing) summary .av-icon { transform: rotate(180deg); }
.av-fgroup ul { display: grid; gap: 2px; margin: 0 0 12px; padding: 0; list-style: none; }
.av-fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--av-slate); text-decoration: none; cursor: pointer; }
.av-fopt em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--av-muted); }
.av-fbox { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1px solid var(--av-border-strong); border-radius: 5px; background: #fff; color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.av-fopt.is-on .av-fbox, .av-fopt input:checked + .av-fbox { background: var(--av-accent); border-color: var(--av-accent); color: #fff; }
.av-fopt input:focus-visible + .av-fbox { outline: 2px solid var(--av-accent); outline-offset: 2px; }
.av-fopt:hover { color: var(--av-navy); }
.av-fprice { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.av-fprice .av-input { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.av-filters__apply { display: none; margin-top: 16px; }
.av-catalog__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.av-catalog__fbtn { display: none; }
.av-catalog__active { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--av-slate); }
.av-catalog__active .av-badge { text-transform: none; letter-spacing: 0; text-decoration: none; transition: background-color .2s; }
.av-catalog__active .av-badge:hover { background: var(--av-accent-100); }
.av-catalog__sort { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.av-catalog__found { font-size: 12px; color: var(--av-muted); }
.av-catalog__sort select { min-height: 40px; padding: 8px 36px 8px 12px; font-size: 13px; border-radius: 10px; width: auto; }
.av-catalog__products { --cols: 3; row-gap: 40px; }
.av-catalog__empty { padding: 48px; text-align: center; border-radius: var(--av-r-large); background: var(--av-surface); }
.av-catalog__seo { max-width: 1000px; padding-bottom: var(--av-section-y); }
.av-catalog__seo h2 { font-size: 20px; line-height: 28px; font-weight: 500; }
.av-catalog__seotext { font-size: 14px; line-height: 22px; overflow: hidden; }
.av-catalog__seotext.is-clamped { max-height: 96px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.av-catalog__more { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 1023px) {
	.av-catalog__grid { grid-template-columns: 1fr; }
	.av-catalog__fbtn { display: inline-flex; }
	.av-filters { position: fixed; inset: 0 auto 0 0; z-index: 1000; width: min(100%, 400px); max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--av-ease), visibility .3s; }
	.av-filters.is-open { transform: none; visibility: visible; }
	.av-filters__close { display: grid; place-items: center; border: 0; background: none; color: var(--av-navy); cursor: pointer; }
	.av-filters__head .av-link { margin-left: auto; margin-right: 12px; }
	.av-filters__apply { display: flex; position: sticky; bottom: 0; }
	.av-filters-overlay { z-index: 999; }
	.av-catalog__products { --cols: 2; }
}
@media (max-width: 767px) {
	.av-catalog__head { padding: 16px 0; display: block; }
	.av-catalog__promo { display: none; }
	.av-catalog__chips { margin-bottom: 16px; }
	.av-catalog__bar { gap: 8px; }
	.av-catalog__found { display: none; }
	.av-catalog__sort { margin-left: 0; flex: 1; }
	.av-catalog__sort label, .av-catalog__sort select { width: 100%; }
	.av-catalog__active { order: 3; width: 100%; }
	.av-catalog__products { row-gap: 24px; }
}
/* chips: always one scrollable row (Figma), with edge fade */
.av-catalog__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 48px; }
.av-catalog__chips::-webkit-scrollbar { display: none; }

/* AJAX states */
.av-catalog__main { transition: opacity .2s var(--av-ease); }
.av-catalog.is-loading .av-catalog__main { opacity: .45; pointer-events: none; }
.av-catalog.is-loading .av-catalog__products { cursor: progress; }
.av-catalog__products > .av-pcard { animation: av-card-in .35s var(--av-ease) both; }
.av-catalog__products > .av-pcard:nth-child(3n+2) { animation-delay: .03s; }
.av-catalog__products > .av-pcard:nth-child(3n) { animation-delay: .06s; }
.av-filters__apply.is-loading { position: relative; }
.av-fopt em { transition: opacity .2s; }
