/* Размерные сетки: фильтры и карточка. */
.catalog-layout{align-items:start;grid-template-columns:280px minmax(0,1fr)}
.catalog-layout.no-sidebar{grid-template-columns:minmax(0,1fr)}
.catalog-section .filters-sidebar{position:static;max-height:none;display:block;padding:20px}
.catalog-section .filters-content{min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 6px 0 0;scrollbar-width:thin;scrollbar-color:#bac3ae #f4f5f1}
.catalog-section .filter-actions-sticky{position:static;flex-shrink:0;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #e1e6d8}
.catalog-section .catalog-filters>summary{list-style-position:inside}
.filter-summary-hint{font-size:12px;font-weight:400;margin-left:auto;color:#73796c}
.catalog-section .filter-group{margin-bottom:20px;padding-bottom:20px}
.catalog-section .sizing-filters{margin:0;padding:0}
.sizing-hint{font-size:12px;line-height:1.55;color:#717568;margin:8px 0 12px}
.size-family{border-top:1px solid #e5e8e0}
.size-family:last-of-type{border-bottom:1px solid #e5e8e0}
.size-family>summary{display:flex;align-items:center;gap:8px;min-height:52px;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.size-family>summary::-webkit-details-marker{display:none}
.size-family>summary::after{content:'+';margin-left:auto;font-size:20px;font-weight:400;color:#64754c}
.size-family[open]>summary::after{content:'−'}
.size-family-body{padding:2px 2px 14px}
.size-selection-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;background:#edf1e6;color:#52643b;border-radius:4px;font-size:11px}
.size-fieldset{border:0;margin:0;padding:0;min-width:0}
.size-fieldset legend{font-size:12px;color:#717568;padding:0 0 10px}
.size-height-fieldset{margin-top:0}
.size-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,92px),1fr));gap:6px}
.size-height-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.size-choice{display:block;position:relative;min-width:0;cursor:pointer}
.size-choice input{position:absolute;width:1px;height:1px;opacity:0}
.size-choice>span{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 5px;border:1px solid #dce1d4;border-radius:5px;font-size:13px;line-height:1.25;background:#fff;color:#242a20;white-space:nowrap;overflow-wrap:normal;word-break:normal;text-align:center}
.size-choice-value,.size-choice small{flex-shrink:0;white-space:nowrap}
.size-choice--wide{grid-column:1/-1}
.size-choice small{font-size:10px;color:#818875}
.size-choice:hover>span{border-color:#74865c;background:#f5f7f0}
.size-choice input:checked+span{border-color:#5a6b3f;background:#edf1e6;color:#344524;box-shadow:inset 0 0 0 1px #5a6b3f}
.size-choice input:checked+span small{color:#52643b}
.size-choice input:focus-visible+span,.size-family>summary:focus-visible,.size-help>summary:focus-visible,.product-size-table-wrap:focus-visible{outline:2px solid #52643b;outline-offset:3px}
.sizing-count-help{margin-top:14px;margin-bottom:0}
.filter-reset{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px;color:#5a6b3f;text-decoration:underline;text-underline-offset:3px}
.catalog-results{margin-bottom:18px;font-size:14px;color:#717568}
.catalog-results>p{margin:0}.catalog-results strong{color:#242a20}
.active-size-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.active-size-filters a{display:inline-flex;gap:12px;align-items:center;min-height:44px;border:1px solid #dce1d4;border-radius:5px;padding:8px 12px;font-size:12px;line-height:1.4;color:#344524;background:#f4f6ef;overflow-wrap:anywhere;max-width:100%}
.active-size-filters a:hover{border-color:#5a6b3f}
.product-sizing{margin:28px 0;border-top:1px solid #e5e8e0;padding-top:22px}
.product-sizing-header{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin-bottom:16px}
.product-sizing-header h2{font-size:19px;font-weight:600;margin:0}
.product-sizing-header>span{color:#717568;font-size:12px}
.product-size-values{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;list-style:none}
.product-size-values li{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;padding:10px 12px;background:#f4f6ef;border:1px solid #e1e6d8;border-radius:5px;font-size:14px}
.product-size-values small{color:#717568;font-size:11px}
.product-size-table-wrap{max-height:330px;overflow:auto;scrollbar-width:thin;border:1px solid #e1e6d8;border-radius:6px}
.product-size-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;text-align:left}
.product-size-table thead th{position:sticky;top:0;background:#f4f6ef;color:#717568;font-size:11px;font-weight:500;z-index:1}
.product-size-table th,.product-size-table td{padding:10px 12px;border-bottom:1px solid #edf0e7}
.product-size-table tbody th{width:90px;font-weight:600}
.product-size-table tr:last-child>*{border-bottom:0}
.product-size-tag{display:inline-block;margin:2px 8px 2px 0;white-space:nowrap}
.size-help{margin-top:12px;font-size:12px;color:#717568;line-height:1.6}
.size-help summary{cursor:pointer;min-height:44px;padding:12px 0;color:#5a6b3f}.size-help p{margin:0;max-width:65ch}
@media(max-width:1023px){
.catalog-layout{grid-template-columns:minmax(0,1fr);gap:20px}
.catalog-section .filters-sidebar{padding:0;border:1px solid #e1e6d8;box-shadow:none}
.catalog-section .catalog-filters>summary{display:flex;align-items:center;gap:8px;min-height:52px;padding:14px 18px;border:0;background:#f8f9f5;border-radius:8px}
.catalog-filters[open] .filters-content{padding:16px 18px}
.catalog-section .filter-actions-sticky{margin:0;padding:12px 18px;gap:4px}
.catalog-filters:not([open])>.filter-actions-sticky{display:none}
.size-choice-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,92px),1fr))}
.size-height-grid{grid-template-columns:repeat(auto-fill,minmax(85px,1fr))}
}
@media(prefers-reduced-motion:reduce){.catalog-section *,.product-sizing *{scroll-behavior:auto}}


/* Одна область прокрутки; кнопки остаются внутри панели у её нижнего края. */
.catalog-filters-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 150px);min-height:0}
.size-growth{border-top:1px solid #edf0e7;margin-top:12px}
.size-growth>summary{cursor:pointer;font-size:13px;min-height:44px;padding:12px 0}
.size-growth>summary span{font-size:11px;color:#717568;margin-left:6px}
.size-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1024px){.catalog-section .filters-sidebar{position:sticky;top:90px}}
@media(max-width:1023px){.catalog-filters-panel{max-height:min(75dvh,640px)}}

/* Универсальный размер — самостоятельная строка, вне колонок размерной сетки. */
.universal-size-filter{display:block;min-width:0;width:100%}
.universal-size-choice{display:grid;grid-template-columns:20px minmax(0,1fr) max-content;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 12px;border:1px solid #dce1d4;border-radius:5px;background:#fff;color:#242a20;cursor:pointer;box-sizing:border-box}
.universal-size-choice input{position:static;opacity:1;width:20px;height:20px;margin:0;accent-color:#5a6b3f;cursor:pointer}
.universal-size-text{font-size:13px;line-height:1.4;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.universal-size-count{font-size:11px;line-height:1.4;color:#818875;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.universal-size-choice:hover{border-color:#74865c;background:#f5f7f0}
.universal-size-choice:has(input:checked){border-color:#5a6b3f;background:#edf1e6;box-shadow:inset 0 0 0 1px #5a6b3f}
.universal-size-choice:has(input:focus-visible){outline:2px solid #52643b;outline-offset:3px}
