/* v8 — category tabs and larger mount cards. Loaded after legacy catalog styles. */
/* The legacy tab script toggles inline display:none / display:flex.
   Never let a display:grid!important declaration override hidden tabs. */
body .pzh-v4-shell .item_container.osnastka_container[style*="display:none"],
body .pzh-v4-shell .item_container.osnastka_container[style*="display: none"],
body .pzh-v4-shell .item_container.imprint_container[style*="display:none"],
body .pzh-v4-shell .item_container.imprint_container[style*="display: none"] {
  display:none!important;
}
/* Preview panel is removed from JS, and not resurrected by stale markup. */
.pzh-v4-shell .pzh-v4-gallery { display:none!important; }
.pzh-v4-shell .pzh-choice-grid { grid-template-columns:minmax(0,1fr)!important; }
.pzh-v4-shell .pzh-choice-grid > .pzh-imprint-choice { grid-column:1!important; }
/* Bigger and readable mount choices. */
.pzh-v4-shell .item_container.osnastka_container:not([style*="display:none"]):not([style*="display: none"]){
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:stretch!important;
}
.pzh-v4-shell .osnastka_container .item_wrapper {
  min-height:220px!important;
  grid-template-columns:minmax(106px,40%) minmax(0,1fr)!important;
  gap:12px!important;
  padding:16px!important;
  border-radius:17px!important;
}
.pzh-v4-shell .osnastka_container .item_wrapper .img_wrap {
  height:135px!important;
  max-width:none!important;
  width:100%!important;
}
.pzh-v4-shell .osnastka_container .item_wrapper .img_wrap img {
  height:130px!important;
  width:100%!important;
  object-fit:contain!important;
}
.pzh-v4-shell .osnastka_container .item_wrapper .item_title {font-size:15px!important;line-height:1.33!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .item_price {font-size:22px!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .pzh-model-note {font-size:12px!important;line-height:1.45!important;}
.pzh-v4-shell .osnastka_container .item_wrapper .pzh-view-image {font-size:12px!important;}
@media(max-width:1080px){
 .pzh-v4-shell .item_container.osnastka_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 .pzh-v4-shell .item_container.osnastka_container:not([style*="display:none"]):not([style*="display: none"]){grid-template-columns:1fr!important;}
 .pzh-v4-shell .osnastka_container .item_wrapper {min-height:180px!important;grid-template-columns:108px minmax(0,1fr)!important;}
 .pzh-v4-shell .osnastka_container .item_wrapper .img_wrap {height:115px!important;}
 .pzh-v4-shell .osnastka_container .item_wrapper .img_wrap img {height:110px!important;}
}
