/* ============================================================
   KMB TRANS GROUP — второй уровень каталога (правка №38)
   Раскладка и размеры перенесены из макетов аккаунтера
   (fixes/catalog-category.html, product.html, search-results.html,
   filtered-results.html, empty-results.html, catalog-states.html, 404.html).
   Переменные, .wrap/.catalog-wrap, .breadcrumbs, .catalog-hero и кнопка
   «Запросить КП» — из существующей дизайн-системы проекта.
   ============================================================ */

/* блоки каталога переключаются атрибутом hidden — он должен побеждать display */
.catalog-page [hidden],.not-found [hidden],.product-page [hidden],.related[hidden]{display:none!important}

/* ---------- шапка внутренней страницы (поверх .catalog-hero) ---------- */
.shop-hero .catalog-hero__inner{align-items:end}
.hero-count{flex:none;padding-left:22px;border-left:3px solid var(--yellow);
  font-family:var(--font-cond);font-size:13px;text-transform:uppercase;line-height:1.25}
.hero-count b{display:block;color:#fff;font-size:28px}
.hero-count span{color:#c5ced1}
.shop-hero__lead{max-width:560px;margin:10px 0 0;color:#d4dade;font-size:14px;line-height:1.6}

/* ---------- каркас страницы категории ---------- */
.catalog-main{padding:44px 0 78px;background:#fff}
.catalog-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:28px;align-items:start}
.catalog-layout--solo{grid-template-columns:minmax(0,1fr)}

/* ---------- фильтры ---------- */
.filter-sidebar{position:sticky;top:calc(var(--header-offset,114px) + 12px);border:1px solid var(--line);background:#fff}
.filter-sidebar__head{padding:18px 20px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--steel);color:#fff}
.filter-sidebar__head h2{margin:0;font-family:var(--font-cond);font-size:16px;font-weight:700;text-transform:uppercase}
.filter-reset,.filter-close{border:0;background:none;color:#b7c3c7;font-size:11px;padding:2px 0}
.filter-reset:hover,.filter-close:hover{color:#fff}
.filter-close{display:none}
.filter-group{border-bottom:1px solid var(--line)}
.filter-group:last-child{border-bottom:0}
.filter-group summary{min-height:49px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  cursor:pointer;list-style:none;font-family:var(--font-cond);font-size:13px;font-weight:700;text-transform:uppercase}
.filter-group summary::-webkit-details-marker{display:none}
.filter-group summary::marker{content:""}
.filter-group summary:after{content:"+";color:var(--blue);font-size:19px;font-weight:400;flex:none}
.filter-group[open] summary:after{content:"−"}
.filter-options{padding:0 18px 17px;display:grid;gap:10px;max-height:290px;overflow-y:auto}
.filter-option{display:grid;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:9px;
  color:#50595d;font-size:13px;line-height:1.35;cursor:pointer}
.filter-option input{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin:0;flex:none;
  border:1px solid #bcc5c9;background:#fff}
.filter-option input:checked{border-color:var(--blue);background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.7 11 12.5 4.8' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat}
.filter-option span{overflow-wrap:anywhere}
.filter-option small{color:#92999c;font-size:11px}
.filter-mobile-open{display:none;width:100%;height:46px;border:0;background:var(--steel);color:#fff;
  font-family:var(--font-cond);font-size:13px;font-weight:700;text-transform:uppercase}
.filter-overlay{display:none}

/* ---------- панель сортировки и чипсы ---------- */
.listing-toolbar{min-height:48px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;
  gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.result-count{color:#626b6f;font-size:13px}
.result-count b{color:var(--ink)}
.toolbar-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sort-control{display:flex;align-items:center;gap:9px;color:#6b7478;font-size:12px;white-space:nowrap}
.sort-control select{height:36px;padding:0 26px 0 11px;border:1px solid var(--line);background:#fff;color:#30383c;outline:none;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330383c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 7px center;background-size:14px}
.sort-control select:focus{border-color:var(--blue)}
.active-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.active-filters:not(:empty){margin-bottom:17px}
.filter-chip{min-height:31px;padding:0 6px 0 10px;display:inline-flex;align-items:center;gap:5px;
  border:1px solid #b9c5ca;background:#fff;color:#485155;font-size:11px;max-width:100%}
.filter-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
.filter-chip button{width:18px;height:18px;flex:none;padding:0;border:0;background:none;color:var(--blue);
  font-size:17px;line-height:15px}
.filter-chip button:hover{color:var(--blue-deep)}
.filter-chip--query{border-color:var(--blue);background:#edf7fb;color:var(--blue)}
.filter-chip--reset{border-style:dashed;color:#6c7579}
.filter-chip--reset:hover{border-color:var(--blue);color:var(--blue)}

/* ---------- карточка товара в сетке ---------- */
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.product-card{position:relative;min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);background:#fff;
  transition:transform .2s,border-color .2s,box-shadow .2s}
.product-card:after{content:"";position:absolute;left:0;right:100%;bottom:0;height:4px;background:var(--yellow);transition:right .24s}
.product-card:hover{z-index:2;transform:translateY(-4px);border-color:var(--blue);box-shadow:0 13px 30px rgba(30,50,59,.11)}
.product-card:hover:after{right:0}
.product-card__visual{position:relative;height:205px;padding:20px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(#f4f6f7,#fff);overflow:hidden}
.product-card__visual img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .3s}
.product-card:hover .product-card__visual img{transform:scale(1.045)}
/* Бейдж статуса поверх фото (правка №42): фирменный синий, белый текст,
   Roboto Condensed 700, высота 25px, радиус 3px, отступ 11px от края изображения. */
.stock-badge{position:absolute;left:11px;top:11px;z-index:2;height:25px;padding:0 10px;
  display:inline-flex;align-items:center;border-radius:3px;
  background:var(--steel);color:#fff;font-family:var(--font-cond);font-size:11px;font-weight:700;
  line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.stock-badge--order{background:var(--blue)}
.product-card__body{flex:1;min-height:206px;padding:18px 18px 17px;display:flex;flex-direction:column}
.product-meta{margin-bottom:7px;color:var(--blue);font-family:var(--font-cond);font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;overflow-wrap:anywhere}
.product-card h3{margin:0 0 14px;font-family:var(--font-cond);font-size:18px;font-weight:700;line-height:1.16;
  text-transform:uppercase;overflow-wrap:anywhere;hyphens:auto}
.product-card h3 a:hover{color:var(--blue)}
.product-specs{margin:0 0 17px;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.product-specs div{min-width:0;display:flex;justify-content:space-between;gap:12px;padding-bottom:5px;border-bottom:1px solid #edf0f1;font-size:11px}
.product-specs dt{color:#838b8f;flex:none;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-specs dd{margin:0;flex:1;min-width:0;color:#424b4f;font-weight:600;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-card__foot{margin-top:auto;display:flex;align-items:end;justify-content:space-between;gap:10px}
.price-request small{display:block;color:#8a9295;font-size:10px}
.price-request strong{font-family:var(--font-cond);font-size:14px;font-weight:700;text-transform:uppercase}
.request-icon{width:40px;height:40px;flex:none;border:0;background:var(--steel);color:#fff;display:flex;align-items:center;
  justify-content:center;transition:.2s}
.request-icon:hover{background:var(--blue)}
.request-icon.is-added{background:var(--blue)}
.request-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.product-card.is-filtered-out,.product-card[hidden]{display:none}

/* ---------- пагинация ---------- */
.pagination{margin-top:29px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pagination a,.pagination span{min-width:39px;height:39px;padding:0 8px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);font-family:var(--font-cond);font-size:12px;font-weight:700}
.pagination .current{border-color:var(--blue);background:var(--blue);color:#fff}
.pagination .gap{border-color:transparent}
.pagination a:hover{border-color:var(--blue);color:var(--blue)}

/* ---------- пустая выдача ---------- */
.empty-state{padding:64px 24px;border:1px solid var(--line);background:#f6f8f9;text-align:center}
.empty-state__icon{width:72px;height:72px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;
  border:1px solid #cfd7da;color:var(--blue)}
.empty-state__icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6}
.empty-state h2{margin:0 0 10px;font-family:var(--font-cond);font-size:28px;font-weight:700;text-transform:uppercase}
.empty-state p{max-width:560px;margin:0 auto 23px;color:#70797d;font-size:14px;line-height:1.55}
.btn-row{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.kmb-btn{min-height:47px;padding:0 21px;border:1px solid var(--steel);display:inline-flex;align-items:center;
  justify-content:center;gap:8px;background:var(--steel);color:#fff;font-family:var(--font-cond);font-size:12px;
  font-weight:700;letter-spacing:.03em;text-transform:uppercase;text-align:center;transition:.2s}
.kmb-btn:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.kmb-btn--outline{background:#fff;color:var(--steel)}
.kmb-btn--outline:hover{color:#fff}
.kmb-btn svg{width:17px;height:17px;flex:none;fill:currentColor}

/* ---------- поиск ---------- */
.search-panel{margin-bottom:28px;padding:23px;background:#f3f5f6;border-left:4px solid var(--blue)}
.search-panel__form{display:grid;grid-template-columns:minmax(0,1fr) auto}
.search-panel input{height:52px;padding:0 16px;border:2px solid var(--steel);outline:none;font-size:15px;min-width:0}
.search-panel input:focus{border-color:var(--blue)}
.search-panel button{width:58px;border:0;background:var(--steel);color:#fff;display:flex;align-items:center;justify-content:center}
.search-panel button:hover{background:var(--blue)}
.search-panel svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.search-summary{margin-top:11px;color:#667075;font-size:12px}
.category-hits{margin-bottom:31px}
.subheading{margin:0 0 15px;font-family:var(--font-cond);font-size:22px;font-weight:700;text-transform:uppercase}
.category-hit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.category-hit{min-height:94px;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  border:1px solid var(--line);background:#fff;transition:.2s}
.category-hit:hover{border-color:var(--blue);transform:translateY(-2px)}
.category-hit span{display:block;margin-bottom:5px;color:var(--blue);font-size:10px;font-weight:700;
  letter-spacing:.05em;text-transform:uppercase}
.category-hit strong{font-family:var(--font-cond);font-size:16px;font-weight:700;text-transform:uppercase;overflow-wrap:anywhere}
.category-hit svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--blue);stroke-width:2}

/* ---------- карточка товара ---------- */
.product-page{padding:44px 0 70px}
.product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:52px;align-items:start}
.gallery{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px}
.gallery--solo{grid-template-columns:minmax(0,1fr)}
.gallery-thumbs{display:grid;gap:10px;align-content:start}
.thumb{height:78px;padding:8px;border:1px solid var(--line);background:#fff}
.thumb.is-active{border:2px solid var(--blue)}
.thumb img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.gallery-main{position:relative;min-height:460px;padding:34px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);background:linear-gradient(#f4f6f7,#fff)}
.gallery-main img{width:100%;height:auto;max-height:400px;object-fit:contain;mix-blend-mode:multiply}
.product-summary__eyebrow{margin-bottom:9px;color:var(--blue);font-family:var(--font-cond);font-size:11px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;overflow-wrap:anywhere}
.product-summary h1{margin:0 0 13px;font-family:var(--font-cond);font-size:clamp(28px,3.1vw,44px);font-weight:700;
  line-height:1.02;text-transform:uppercase;overflow-wrap:anywhere;hyphens:auto}
.product-code{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:23px;color:#768085;font-size:12px}
.product-code .stock-badge{position:static}
.product-lead{margin:0 0 25px;color:#646e72;font-size:14px;line-height:1.65}
.summary-specs{margin:0 0 25px;border-top:1px solid var(--line)}
.summary-specs div{min-height:42px;padding:8px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;gap:12px;border-bottom:1px solid var(--line);font-size:13px}
.summary-specs dt{color:#778085;overflow-wrap:anywhere}
.summary-specs dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.product-actions{padding:22px;background:#f3f5f6;border-left:4px solid var(--yellow)}
.product-actions__price{margin-bottom:15px}
.product-actions__price small{display:block;color:#7e878b;font-size:11px}
.product-actions__price strong{font-family:var(--font-cond);font-size:22px;font-weight:700;text-transform:uppercase}
.product-actions__buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.product-actions__buttons .kmb-btn{width:100%}
.product-actions__buttons .kmb-btn:first-child{background:var(--blue);border-color:var(--blue)}
.product-actions__buttons .kmb-btn:first-child:hover{background:var(--blue-dark)}
.product-assurance{margin-top:13px;color:#6e777b;font-size:11px;line-height:1.5}
.product-tabs{margin-top:52px}
.tab-buttons{display:flex;border-bottom:2px solid var(--steel)}
.tab-button{min-height:46px;padding:0 20px;border:0;background:#fff;color:#697276;font-family:var(--font-cond);
  font-size:13px;font-weight:700;text-transform:uppercase}
.tab-button.is-active{background:var(--steel);color:#fff}
.tab-panel{display:none;padding:26px 0;color:#5e686c;font-size:14px;line-height:1.7}
.tab-panel.is-active{display:block}
.tab-panel p{margin:0 0 12px}
.tab-panel ul,.tab-panel ol{margin:0 0 14px;padding-left:20px}
.tab-panel li{margin-bottom:6px}
.tab-panel h3,.tab-panel h4{margin:18px 0 8px;font-family:var(--font-cond);font-size:17px;color:var(--ink);text-transform:uppercase}
.tab-panel table{width:100%;border-collapse:collapse;margin-bottom:14px}
.tab-panel table td,.tab-panel table th{padding:9px 12px;border:1px solid var(--line);text-align:left;vertical-align:top}
.tab-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.spec-table{width:100%;border-collapse:collapse}
.spec-table th,.spec-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.spec-table th{width:38%;color:#737c80;font-weight:400}
.spec-table td{color:#343d41;font-weight:600}
.related{padding:56px 0 70px;background:#f3f5f6}
.related h2{margin:0 0 25px;font-family:var(--font-cond);font-size:31px;font-weight:700;text-transform:uppercase}

/* ---------- системные состояния ---------- */
.skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.skeleton{height:190px;background:linear-gradient(90deg,#eef1f2 25%,#f8f9f9 50%,#eef1f2 75%);background-size:200% 100%;
  animation:kmb-shine 1.3s infinite}
.skeleton:after{content:"";display:block;width:70%;height:13px;margin:132px 12px 0;background:#dfe4e6;box-shadow:0 24px #e7eaeb}
@keyframes kmb-shine{to{background-position:-200% 0}}
.skeleton-product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:52px}
.skeleton-product .skeleton{height:420px}
.skeleton-product .skeleton:last-child{height:360px}
.error-box{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;
  background:#f6f7f8;text-align:center}
.error-box svg{width:40px;height:40px;margin-bottom:13px;fill:none;stroke:var(--blue);stroke-width:1.6}
.error-box strong{font-family:var(--font-cond);font-size:18px;text-transform:uppercase}
.error-box span{max-width:360px;margin:7px 0 15px;color:#768085;font-size:12px;line-height:1.5}
.mini-toast{padding:16px 18px;display:flex;align-items:center;gap:12px;background:var(--steel);color:#fff}
.mini-toast i{width:28px;height:28px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--yellow);color:#252d30;font-style:normal;font-weight:700}
.mini-toast b{display:block;font-family:var(--font-cond);font-size:13px;text-transform:uppercase}
.mini-toast span{color:#cbd3d6;font-size:11px}
.unavailable-note{margin-top:13px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;
  background:#f3f0e8;color:#6d5c22;font-size:12px;line-height:1.5}
.unavailable-note svg{width:18px;height:18px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8}
.shop-toast{position:fixed;z-index:250;right:24px;bottom:96px;max-width:360px;padding:16px 18px;display:none;
  align-items:center;gap:12px;background:var(--steel);color:#fff;box-shadow:0 14px 35px rgba(0,0,0,.25)}
.shop-toast.is-visible{display:flex}
.shop-toast i{width:29px;height:29px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--yellow);color:#283034;font-style:normal;font-weight:700}
.shop-toast b{display:block;font-family:var(--font-cond);font-size:13px;text-transform:uppercase}
.shop-toast span{color:#d1d8da;font-size:11px;overflow-wrap:anywhere}

/* ---------- 404 ---------- */
.not-found{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
  background:linear-gradient(112deg,#303b3f,#3b484c);color:#fff}
.not-found:before{content:"404";position:absolute;z-index:-1;right:-30px;top:50%;transform:translateY(-54%);
  color:rgba(255,255,255,.035);font-family:var(--font-cond);font-size:clamp(260px,38vw,590px);font-weight:700;line-height:1}
.not-found__inner{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;padding:70px 0}
.error-code{display:flex;align-items:center;gap:12px;margin-bottom:16px;color:var(--yellow);font-family:var(--font-cond);
  font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.error-code:after{content:"";width:42px;height:3px;background:var(--blue)}
.not-found h1{margin:0 0 17px;font-family:var(--font-cond);font-size:clamp(42px,6vw,82px);font-weight:700;
  line-height:.95;text-transform:uppercase}
.not-found p{max-width:570px;margin:0 0 27px;color:#cbd4d7;font-size:15px;line-height:1.65}
.not-found__search{max-width:560px;margin-bottom:20px;display:grid;grid-template-columns:minmax(0,1fr) 55px}
.not-found__search input{height:51px;padding:0 15px;border:0;outline:none;min-width:0}
.not-found__search button{border:0;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.not-found__search button:hover{background:var(--blue-deep)}
.not-found__search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.not-found__visual{height:400px;display:flex;align-items:center;justify-content:center}
.not-found__visual img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(0,0,0,.28))}

/* ---------- адаптив ---------- */
@media (max-width:1080px){
  .catalog-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-hit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}
  .skeleton-product{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}
  .gallery-main{min-height:400px}
  .related h2{font-size:26px}
}
@media (max-width:820px){
  .catalog-main{padding:32px 0 56px}
  .catalog-layout,.catalog-layout--solo{grid-template-columns:minmax(0,1fr)}
  .filter-mobile-open{display:block;margin-bottom:13px}
  .filter-sidebar{position:fixed;z-index:220;left:0;top:0;bottom:0;width:min(340px,88vw);overflow:auto;
    transform:translateX(-105%);transition:transform .25s;border:0}
  .filter-sidebar.is-open{transform:translateX(0)}
  .filter-overlay.is-open{position:fixed;z-index:210;inset:0;display:block;border:0;background:rgba(25,32,35,.62)}
  .filter-sidebar__head{position:sticky;top:0;z-index:2}
  .filter-close{display:block}
  .filter-options{max-height:none}
  .product-layout,.skeleton-product{grid-template-columns:minmax(0,1fr)}
  .skeleton-product .skeleton,.skeleton-product .skeleton:last-child{height:300px}
  .gallery-main{min-height:380px}
  .product-actions__buttons{grid-template-columns:1fr}
  .tab-buttons{overflow-x:auto}
  .tab-button{white-space:nowrap;padding:0 15px}
  .product-tabs{margin-top:38px}
  .not-found__inner{grid-template-columns:minmax(0,1fr);gap:32px;padding:52px 0}
  .not-found__visual{height:230px;order:-1}
  .not-found:before{font-size:300px}
  .category-hit-grid{grid-template-columns:minmax(0,1fr)}
  .related{padding:44px 0 52px}
}
@media (max-width:560px){
  .shop-hero .catalog-hero__inner{grid-template-columns:minmax(0,1fr)}
  .hero-count{margin-top:16px}
  .listing-toolbar{align-items:flex-start;flex-direction:column;gap:10px;padding-bottom:12px}
  .toolbar-controls{width:100%;justify-content:space-between;gap:10px}
  .sort-control{font-size:11px}
  .product-grid{grid-template-columns:minmax(0,1fr)}
  .product-card__visual{height:220px}
  /* правка №42: на телефоне бейдж чуть компактнее, пропорции те же */
  .stock-badge{height:23px;padding:0 9px;font-size:10.5px}
  .product-card__body{min-height:0}
  .skeleton-grid{grid-template-columns:1fr 1fr}
  .skeleton-grid .skeleton:nth-child(3){display:none}
  .search-panel{padding:15px}
  .gallery{grid-template-columns:minmax(0,1fr)}
  .gallery-thumbs{grid-template-columns:repeat(4,1fr);order:2}
  .gallery-main{min-height:300px;padding:20px}
  .summary-specs div{grid-template-columns:minmax(0,1fr);gap:4px;padding:9px 0;min-height:0}
  .empty-state{padding:48px 18px}
  .empty-state h2{font-size:22px}
  .spec-table th{width:44%}
  .spec-table th,.spec-table td{padding:10px 8px;font-size:13px}
  .related h2{font-size:23px}
  .shop-toast{left:12px;right:12px;bottom:84px;max-width:none}
  .pagination a,.pagination span{min-width:35px;height:35px}
}
@media (prefers-reduced-motion:reduce){
  .skeleton{animation:none}
  .product-card,.product-card__visual img,.category-hit{transition:none}
}
