/* Catalog typography: installed system fonts; scoped away from other modules. */
html body[data-home-direction] #main .ps-catalog{--catalog-font:Arial,'Segoe UI',sans-serif;font-family:var(--catalog-font)}
html:is([data-script=cjk],[data-script=arabic],[data-script=cyrillic]) body[data-home-direction] #main .ps-catalog{--catalog-font:var(--preview-language-font,Arial,sans-serif)}
html body[data-home-direction] #main .ps-catalog :is(h1,h2,h3,h4,button,input,select,textarea){font-family:var(--catalog-font)!important}
html body[data-home-direction] #main .ps-catalog .ps-catalog-intro h1{font-weight:700}
html body[data-home-direction] #main .ps-catalog :is(.ps-product-copy h2,.ps-filter,.ps-selection-links,.ps-product-model){font-weight:700}
html body[data-home-direction] #main .ps-catalog .ps-catalog-bottom>p{font-weight:700}
html body[data-home-direction] #main .ps-catalog .ps-card-actions button{font-size:14px;line-height:1.5;min-height:44px;font-weight:400}
html body[data-home-direction] #main .ps-catalog .ps-card-model-row{flex-wrap:wrap;gap:6px 12px}
html body[data-home-direction] #main .ps-catalog .ps-product-model{font-size:12px;line-height:1.5}
html body[data-home-direction] #main .ps-catalog .ps-product-category{font-size:12px;line-height:1.5;white-space:normal}
@media(max-width:760px){
 html body[data-home-direction] #main .ps-catalog .ps-product-copy h2{font-weight:700;line-height:1.45;letter-spacing:normal}
 html body[data-home-direction] #main .ps-catalog .ps-product-caption{font-size:13px!important;line-height:1.65}
 html body[data-home-direction] #main .ps-catalog .ps-card-actions button{font-size:14px!important;padding-block:10px;white-space:normal}
 html body[data-home-direction] #main .ps-catalog :is(.ps-filter,.ps-selection-links a){font-size:14px!important;line-height:1.5}
 html body[data-home-direction] #main .ps-catalog .ps-selection-links{flex-wrap:wrap;gap:8px 16px}
 html body[data-home-direction] #main .ps-catalog .ps-product-category{padding:0;max-width:calc(100% - 16px)}
 html body[data-home-direction] #main .ps-catalog .ps-product:has(.ps-model-badge) .ps-product-category{max-width:calc(100% - 54px)}
}

/* Supporting copy stays readable at narrow widths; keep only regular/bold. */
html body[data-home-direction] #main .ps-catalog{font-weight:400}
html body[data-home-direction] #main .ps-catalog :is(.ps-product-category,.ps-product-caption,.ps-breadcrumb,.ps-result-count,.ps-layout-controls){font-weight:400}
html body[data-home-direction] #main .ps-catalog :is(.ps-filter.ps-is-active,.ps-page-button,.ps-model-badge){font-weight:700}
html body[data-home-direction] #main .ps-catalog :is(.ps-product-category,.ps-product-caption){color:#465A70;opacity:1}
html body[data-home-direction] #main .ps-catalog :is(.ps-breadcrumb,.ps-breadcrumb a,.ps-breadcrumb span,.ps-result-count,.ps-result-count span,.ps-layout-controls,.ps-layout-controls>span,.ps-layout-mobile>span){font-size:12px!important;line-height:1.6}
html body[data-home-direction] #main .ps-catalog :is(.ps-result-count,.ps-layout-controls){color:#465A70;opacity:1}
html body[data-home-direction] #main .ps-catalog .ps-breadcrumb{color:#102E65;opacity:1}
html body[data-home-direction] #main .ps-catalog .ps-breadcrumb :is(a,span){color:inherit;opacity:1}
/* Search labels and long translated category names. */
html body[data-home-direction] #main .ps-catalog .ps-catalog-search label{font-size:12px!important;line-height:1.6;font-weight:400}
html body[data-home-direction] #main .ps-catalog .ps-catalog-search button{font-size:14px!important;line-height:1.5;font-weight:700}
html body[data-home-direction] #main .ps-catalog :is(.ps-catalog-bottom .ps-text-link,.ps-layout-controls button){font-weight:700}
html body[data-home-direction] #main .ps-catalog .ps-product-category{overflow-wrap:anywhere;word-break:normal;hyphens:auto;box-sizing:border-box}
@media(max-width:760px){
 html[lang=ru] body[data-home-direction] #main .ps-catalog .ps-product-copy h2{hyphens:none;overflow-wrap:anywhere;word-break:normal}
}
/* Catalog mobile tools follow the product list instead of covering cards. */
@media(max-width:1000px){
 html body:has(#main .ps-catalog) .side-tools{position:relative;inset:auto;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:12px;width:auto;margin:0 6% 28px;padding:18px 0;border-top:1px solid #cedee9;border-bottom:1px solid #cedee9;z-index:1}
 html body:has(#main .ps-catalog) .side-tools .side-social{display:block;position:relative;width:100%}
 html body:has(#main .ps-catalog) .side-tools :is(.social-trigger,.quick-trigger){width:100%;min-height:48px;writing-mode:horizontal-tb;border-radius:8px;box-shadow:none;padding:12px 18px;font-size:14px;line-height:1.5}
 html body:has(#main .ps-catalog) .side-tools .social-panel{position:relative;inset:auto;transform:none;width:100%;max-height:none;overflow:visible;box-sizing:border-box;margin-top:10px;box-shadow:none;padding:30px 24px 24px}
}
/* Separate touch targets; keep real destinations and existing panel controls. */
@media(max-width:1000px){
 html body:has(#main .ps-catalog) .side-tools .side-social-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
 html body:has(#main .ps-catalog) .side-tools .side-social-list a{display:flex;align-items:center;min-width:0;min-height:48px;box-sizing:border-box;width:100%;padding:12px 0;border-bottom:1px solid #cedee9;font:400 14px/1.5 Arial,sans-serif;white-space:nowrap;text-align:start;direction:ltr;unicode-bidi:isolate;text-decoration:none;color:#102e65}
 html[dir=rtl] body:has(#main .ps-catalog) .side-tools .side-social-list a{justify-content:flex-end}
 html body:has(#main .ps-catalog) .side-tools .side-social-list a:focus-visible{outline:2px solid #102e65;outline-offset:2px}
}