/* V81: keep every painted card's native ratio and its full gold edge. */
.tools-cabinet-illustrated.v81-natural .shelf-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(14px,1.7vw,21px)!important;
  align-items:start!important;
  margin:0!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted {
  display:block!important;
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:2px 2px 9px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  position:relative!important;
  align-self:start!important;
  transform:none!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted img {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  filter:drop-shadow(0 5px 5px rgba(73,32,43,.22))!important;
  transform:none!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted:hover img,
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted:focus-visible img {
  filter:brightness(1.055) drop-shadow(0 8px 9px rgba(73,32,43,.27))!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted:focus-visible {
  outline:3px solid #78407d!important;
  outline-offset:2px!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-top {
  overflow:hidden!important;
  line-height:0!important;
  height:auto!important;
  position:relative!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-top img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-top::after {display:none!important;}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-content {
  margin:-2px 0!important;
  padding:10px 7% clamp(20px,2.5vw,36px)!important;
  box-shadow:none!important;
  background-color:#f1d7af!important;
}
.tools-cabinet-illustrated.v81-natural .tool-controls {
  margin:0 0 clamp(16px,2vw,24px)!important;
  gap:13px!important;
  padding:12px 15px!important;
  align-items:center!important;
}
.tools-cabinet-illustrated.v81-natural .filter-row {gap:8px!important;}
.tools-cabinet-illustrated.v81-natural .tool-controls input {min-width:0!important;max-width:100%!important;}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-bottom {margin-top:-2px!important;}
.tools-cabinet-illustrated.v81-natural .shelf-illustrated-bottom img {width:100%!important;height:auto!important;display:block!important;}
@media(max-width:940px){
 .tools-cabinet-illustrated.v81-natural .shelf-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-content{padding:10px 7% 26px!important;}
}
@media(max-width:620px){
 .tools-cabinet-illustrated.v81-natural .shelf-grid {grid-template-columns:1fr!important;gap:9px!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-top {height:auto!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-top img {height:auto!important;max-height:none!important;object-fit:contain!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-content {padding:10px 6.5% 21px!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-bottom {height:auto!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-bottom img {height:auto!important;object-fit:contain!important;}
 .tools-cabinet-illustrated.v81-natural .tool-controls{padding:10px 8px!important;gap:9px!important;}
 .tools-cabinet-illustrated.v81-natural .tool-controls input{width:100%!important;}
}


/* Give the long painted header a readable crop on phones, without squashing it. */
@media(max-width:620px){
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-top{height:clamp(126px,36vw,174px)!important;overflow:hidden!important;}
 .tools-cabinet-illustrated.v81-natural .shelf-illustrated-top img{height:100%!important;width:100%!important;max-height:none!important;object-fit:cover!important;object-position:center center!important;}
}


/* V95: New complete painted cards; never crop their gold frames. */
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted{
  padding: 4px 4px 11px!important;
  overflow:visible!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted img{
  display:block!important;width:100%!important;height:auto!important;max-height:none!important;
  object-fit:contain!important;border-radius:0!important;
  filter:drop-shadow(0 6px 7px rgba(74,30,49,.24))!important;
}
.tools-cabinet-illustrated.v81-natural .shelf-grid{
  row-gap:clamp(18px,2.4vw,30px)!important;
}
@media(max-width:620px){
 .tools-cabinet-illustrated.v81-natural .shelf-grid{row-gap:13px!important;}
}

/* Restore the filter's hidden state despite the painted-card display rule. */
.tools-cabinet-illustrated.v81-natural .shelf-card.shelf-painted[hidden] { display:none!important; }

/* V120: Matching Model, Material and Export cards share the same 1536x1024
   outer frame and exact alpha silhouette. No per-card scaling or cropping. */

/* v126: hand-picked mirrored gear flourishes beside the Tool Cabinet title.
   The right image is pre-mirrored; never flip it again. */
.tools-hero-v43 .tools-hero-illustration-right { transform:none; }
.tools-hero-v43 .tools-hero-illustration img { object-fit:contain; }
