/* seo-040: two independent horizontal product rails; native forms stay unchanged. */
.st-product-relations { clear:both; min-width:0; max-width:100%; margin:40px 0; padding:24px; box-sizing:border-box; border:1px solid #e0e3dc; border-radius:12px; background:#f8f9f6; }
.st-product-relations__heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.st-product-relations__heading h2 { margin:0 0 8px; text-align:left; font-size:28px; line-height:1.25; }
.st-product-relations__hint { margin:0; color:#555; font-size:16px; line-height:1.45; }
.st-product-relations__controls { display:flex; flex:none; gap:8px; }
.st-product-relations__controls button { display:flex; justify-content:center; align-items:center; width:44px; height:44px; padding:0; border:1px solid #c4c9bd; border-radius:50%; background:#fff; color:#20251d; font-size:24px; cursor:pointer; }
.st-product-relations__controls button:disabled { opacity:.35; cursor:default; }
.st-product-relations__track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 48px)/3); gap:24px; align-items:stretch; width:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:4px 0 16px; box-sizing:border-box; }
.st-product-relations__track > .catalog__item { float:none; width:auto !important; max-width:none; min-width:0; margin:0 !important; padding:0 0 16px; box-sizing:border-box; background:#fff; border:1px solid #e3e5de; border-radius:8px; overflow:hidden; scroll-snap-align:start; display:flex; flex-direction:column; }
.st-product-relations .catalog__pic { display:block; width:100%; height:180px; min-height:0; padding:0; margin:0 0 12px; }
.st-product-relations .catalog__pic img { display:block; width:100%; height:100%; object-fit:contain; }
.st-product-relations .catalog__form { padding:0 16px; margin:0; display:flex; flex-direction:column; flex:1; box-sizing:border-box; min-width:0; }
.st-product-relations .catalog__unit { display:block; min-width:0; width:100%; }
.st-product-relations .catalog__info { min-width:0; width:100%; }
.st-product-relations .catalog__name { display:block; width:auto; margin:0 0 12px; font-size:19px; line-height:1.35; min-height:52px; overflow-wrap:anywhere; }
.st-product-relations .catalog__txt { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; line-height:1.4; max-height:4.2em; margin-bottom:12px; }
.st-product-relations .catalog__txt p { margin:0; font-size:inherit; line-height:inherit; }
.st-product-relations .catalog__prices { width:100%; margin:0 0 12px; }
.st-product-relations .catalog__price { font-size:22px; line-height:1.35; white-space:normal; }
.st-product-relations .catalog__ui { width:100%; margin-top:auto; }
.st-product-relations .pay__block__flex { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.st-product-relations .count-box { flex:none; margin:0; }
.st-product-relations .btn_bay { position:static; display:flex; align-items:center; justify-content:center; flex:1 1 140px; min-height:44px; height:auto; padding:10px 12px; margin:0; box-sizing:border-box; white-space:normal; font-size:16px; line-height:1.25; }
.st-product-relations .new_name { padding:8px 16px 0; text-align:left; }
.st-product-relations .new_name a { display:inline-flex; align-items:center; min-height:44px; font-size:16px; }
.st-product-relations__status { margin:12px 0 0; text-align:center; font-size:14px; line-height:1.3; color:#555; }
.st-product-relations__empty { margin:0; font-size:17px; line-height:1.55; }
.st-product-relations__empty a { display:inline-flex; align-items:center; min-height:44px; white-space:nowrap; }
.st-product-relations button:focus-visible,
.st-product-relations__track:focus-visible,
.st-product-relations a:focus-visible { outline:3px solid #557d29; outline-offset:2px; }
@media(min-width:1280px) {
 .st-product-relations__track { grid-auto-columns:calc((100% - 72px)/4); }
}
@media(max-width:1000px) {
 .st-product-relations__track { grid-auto-columns:calc((100% - 24px)/2); }
}
@media(max-width:600px) {
 .st-product-relations { padding:16px; margin:28px 0; border-radius:8px; }
 .st-product-relations__heading { align-items:flex-start; gap:12px; flex-wrap:wrap; }
 .st-product-relations__heading h2 { font-size:24px; }
 .st-product-relations__hint { font-size:15px; }
 .st-product-relations__track { grid-auto-columns:100%; gap:16px; }
 .st-product-relations .catalog__pic { height:190px; }
 .st-product-relations .catalog__name { min-height:0; }
 .st-product-relations .catalog__form { padding:0 12px; }
}
