/* One shared card geometry for all material-selection widgets and public catalogs.
   Dimensions copied from the approved 07-11-2026 quotation design.
   Contact-page quotation remains unmodified. No changes to data or controls. */
/* 07-11-2026: four compact material-category cards per desktop row.
   Only detailed quote > Materials. Original 4x lightbox kept intact. */
.quote-constructor:not(#detailed-quote) .quote-products-block .product-checkboxes{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;align-items:stretch!important;
 margin:0!important;padding:0!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-choice-card{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:auto 164px minmax(0,1fr)!important;
 min-height:0!important;min-width:0!important;
 border-radius:10px!important;box-shadow:0 2px 8px #28343610!important;
 overflow:hidden!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-card-title{
 grid-column:1!important;grid-row:1!important;
 min-height:49px!important;padding:9px 10px!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-select-label{
 font-size:15px!important;gap:8px!important;
 line-height:1.25!important;min-width:0!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-select-name{
 white-space:normal!important;overflow-wrap:anywhere!important;
 font-size:15px!important;line-height:1.24!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-select-label input{
 width:19px!important;height:19px!important;min-width:19px!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-carousel{
 grid-column:1!important;grid-row:2!important;
 width:100%!important;height:164px!important;min-height:0!important;
 align-self:stretch!important;overflow:hidden!important;
 background:#f7f6f3!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .product-carousel img{
 width:100%!important;height:100%!important;
 object-fit:contain!important;cursor:zoom-in;touch-action:manipulation;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-arrow{
 width:33px!important;height:38px!important;font-size:27px!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-prev{left:5px!important}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-next{right:5px!important}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-bottom{
 grid-column:1!important;grid-row:3!important;
 display:flex!important;flex-direction:column!important;
 min-width:0!important;min-height:140px!important;
 padding:10px 11px 12px!important;gap:7px!important;
 align-self:stretch!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-line{
 display:flex!important;align-items:flex-start!important;
 font-size:14px!important;gap:7px!important;min-width:0!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-name{
 min-width:0!important;font-size:14px!important;line-height:1.3!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;overflow:hidden!important;
 overflow-wrap:anywhere!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-count{
 font-size:12px!important;white-space:nowrap!important;flex:none!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-price-row{
 display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;
 gap:5px!important;min-width:0!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-price{
 font-size:21px!important;line-height:1.25!important;white-space:normal!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-unit{
 font-size:13px!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-controls{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:6px!important;min-height:38px!important;margin-top:auto!important;padding-top:2px!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-quantity-label{
 font-size:14px!important;gap:6px!important;flex-wrap:wrap!important;
}
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-quantity{
 width:63px!important;min-height:36px!important;font-size:15px!important;padding:5px!important;
}
/* Card count follows available viewport; the four-column layout is for desktop. */
@media(max-width:1199px){
 .quote-constructor:not(#detailed-quote) .quote-products-block .product-checkboxes{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
@media(max-width:900px){
 .quote-constructor:not(#detailed-quote) .quote-products-block .product-checkboxes{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(max-width:600px){
 .quote-constructor:not(#detailed-quote) .quote-products-block .product-checkboxes{
  grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
 }
 .quote-constructor:not(#detailed-quote) .quote-products-block .product-choice-card{
  grid-template-rows:auto 205px minmax(0,1fr)!important;
 }
 .quote-constructor:not(#detailed-quote) .quote-products-block .product-carousel{
  height:205px!important;
 }
 .quote-constructor:not(#detailed-quote) .quote-products-block .variant-bottom{
  min-height:125px!important;
 }
}

/* Main material-category catalogue: four compact cards, same 164px photo as quote. */
#products .apg-catalog-card{
 display:flex!important;flex-direction:column!important;min-width:0!important;
 border:1px solid #dfd0b4!important;border-radius:10px!important;
 box-shadow:0 2px 8px #28343610!important;overflow:hidden!important;
}
#products .apg-catalog-card .card-img{
 height:164px!important;min-height:164px!important;flex:none!important;
 overflow:hidden!important;background:#f7f6f3!important;
}
#products .apg-catalog-card .card-img img{
 width:100%!important;height:100%!important;object-fit:contain!important;
 padding:4px!important;transform:none!important;
}
#products .apg-catalog-card .card-body{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 gap:7px!important;min-height:135px!important;min-width:0!important;
 padding:10px 11px 12px!important;
}
#products .apg-catalog-card .card-body small{
 font-size:12px!important;letter-spacing:.035em!important;line-height:1.2!important;
}
#products .apg-catalog-card .card-body h3{
 font-family:var(--sans),Arial,sans-serif!important;font-size:16px!important;
 line-height:1.26!important;font-weight:800!important;min-height:0!important;
 margin:0!important;overflow-wrap:anywhere!important;
}
#products .apg-catalog-card .apg-catalog-product-summary{
 font-size:14px!important;line-height:1.3!important;margin:0!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;overflow:hidden!important;overflow-wrap:anywhere!important;
}
#products .apg-catalog-card .link{
 margin-top:auto!important;padding-top:3px!important;
 font-size:14px!important;line-height:1.3!important;
}
/* Material-variant catalogue list. Keep linked product pages and full descriptions there. */
#apg-ducci-catalog .apg-ducci-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;align-items:stretch!important;
}
#apg-ducci-catalog .apg-ducci-card{
 border:1px solid #dfd0b4!important;border-radius:10px!important;
 box-shadow:0 2px 8px #28343610!important;min-width:0!important;
 overflow:hidden!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-photo{
 height:164px!important;min-height:164px!important;flex:0 0 164px!important;
 background:#f7f6f3!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-photo img{
 inset:4px!important;width:calc(100% - 8px)!important;
 height:calc(100% - 8px)!important;object-fit:contain!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-copy{
 gap:6px!important;padding:10px 11px 12px!important;min-height:145px!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-tag{
 font-size:12px!important;letter-spacing:0!important;line-height:1.25!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-name{
 font-size:14px!important;line-height:1.3!important;min-height:0!important;
 display:-webkit-box!important;-webkit-line-clamp:3!important;
 -webkit-box-orient:vertical!important;overflow:hidden!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-desc{
 font-size:13px!important;line-height:1.25!important;max-height:none!important;
 display:-webkit-box!important;-webkit-line-clamp:2!important;
 -webkit-box-orient:vertical!important;overflow:hidden!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-price-block{
 padding-top:5px!important;gap:3px!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-price{
 font-size:21px!important;line-height:1.25!important;padding-top:0!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-price-note{
 font-size:12px!important;line-height:1.25!important;
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;overflow:hidden!important;
}
#apg-ducci-catalog .apg-ducci-card .apg-ducci-action{
 font-size:14px!important;margin-top:0!important;
}
@media(max-width:1199px){
 #apg-ducci-catalog .apg-ducci-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
 #apg-ducci-catalog .apg-ducci-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 #apg-ducci-catalog .apg-ducci-grid{grid-template-columns:minmax(0,1fr)!important}
 #apg-ducci-catalog .apg-ducci-card .apg-ducci-photo{
  height:205px!important;min-height:205px!important;flex-basis:205px!important;
 }
 #products .apg-catalog-card .card-img{height:205px!important;min-height:205px!important}
}
/* Category cards use the existing .cards grid, ensure four on wide monitors. */
@media(min-width:1200px){
 #products.cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
}
@media(min-width:901px) and (max-width:1199px){
 #products.cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
}
@media(min-width:601px) and (max-width:900px){
 #products.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
@media(max-width:600px){
 #products.cards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
}

/* Match the approved quote-card density: the full description remains on the
   individual product page, not repeated inside a compact selection card. */
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-status,
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-description,
.quote-constructor:not(#detailed-quote) .quote-products-block .variant-selected-total,
.quote-constructor:not(#detailed-quote) .quote-products-block .product-card-title .demo-tag{
 display:none!important;
}
