/* Small, additive visual repair for the existing 59-site codebases. */
:root{--mx59-line:#d8d9d7;--mx59-ink:#2a3538}
.mx59-markets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0 10px;min-width:0}
.mx59-market-link{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:40px;padding:9px 7px;border:1px solid var(--mx59-line);border-radius:8px;color:var(--mx59-ink);background:#fff;font:650 12px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;overflow-wrap:anywhere;word-break:normal;white-space:normal;text-decoration:none!important;transition:background .16s,border-color .16s}
.mx59-market-link:hover{border-color:#66818a;background:#f5f8f9}
.mx59-market-note{grid-column:1/-1;font:400 10px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#707b7b;padding:0 2px;overflow-wrap:anywhere}
.mx59-markets--dense .mx59-market-link{min-height:34px;padding:6px 7px;font-size:11px}
.mx59-is-concept{position:relative}
.mx59-is-concept img{object-fit:contain!important;mix-blend-mode:normal!important}

/* 57 curated sites: remove one-line clipping and give retailer links room. */
.mx57 .thumb .tag{max-width:calc(100% - 20px)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important;border-radius:11px!important;overflow-wrap:anywhere!important}
.mx57 .product h3,.mx57 .bundle h3,.mx57 .product p,.mx57 .section h2{min-width:0;height:auto!important;max-height:none!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}
.mx57 .product .links{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.mx57 .product .links a{min-width:0;min-height:45px;display:flex;align-items:center;justify-content:center;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;padding:7px 8px}
.mx57 .mx59-alternates{border:1px solid var(--line);border-radius:8px;padding:8px 11px;margin-top:10px;color:var(--muted);font-size:11px}
.mx57 .mx59-alternates summary{cursor:pointer;user-select:none;line-height:1.5}
.mx57 .mx59-alternates>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:9px}
.mx57 .mx59-alternates .mx59-market-link{font-size:11px;min-height:34px}
.mx57 .thumb.mx59-is-concept{background:transparent}

/* SmartAccess: distinguish real brand imagery from locally generated concept art. */
.sau .sau-product-card,.sau-page .sau-product-card{min-width:0;overflow-wrap:anywhere}
.sau .sau-product-name,.sau-page .sau-product-name,.sau .sau-card-title,.sau-page .sau-card-title{height:auto!important;max-height:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}
.sau .sau-product-card .sau-card-content{min-width:0}
.sau .sau-product-card .sau-actions{min-width:0;flex-wrap:wrap}
.sau .sau-btn,.sau-page .sau-btn{white-space:normal!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important;height:auto!important;max-height:none!important;line-height:1.45!important;text-align:center}
.sau .mx59-markets{border-top:1px solid #dfe4df;padding-top:9px}
.sau .mx59-markets .mx59-market-link{color:#274e41;background:#fff;border-color:#d3dfd6}
.sau .mx59-markets .mx59-market-link:hover{background:#edf4ef}
.sau .sau-extra-merchants[open] summary{margin-bottom:10px}
.sau .sau-detail-product figure.mx59-is-concept{padding:0;background:#f0f3ef}
.sau .sau-detail-product figure.mx59-is-concept img{height:auto;aspect-ratio:4/3}

/* HomeTech stays a professional design and installation catalog. */
.shop-product{min-width:0;overflow-wrap:anywhere}
.shop-product .shop-product-copy{min-width:0}
.shop-product .shop-product-copy h3,.shop-product .shop-product-copy h3 a,.shop-product .shop-product-summary{white-space:normal!important;max-height:none!important;height:auto!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}
.shop-product .mx59-markets{margin:12px 0 6px}
.shop-product .mx59-market-link{font:650 11px/1.35 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;min-height:34px;color:#373632;border:1px solid #d6d2c8;border-radius:3px;background:#f9f8f5}
.shop-product .mx59-market-note{color:#7c7870}

@media(max-width:560px){
  .mx57 .links{grid-template-columns:1fr!important}
  .mx57 .mx59-alternates>div{grid-template-columns:1fr}
  .sau .sau-product-card .mx59-markets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shop-product .mx59-markets{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
  .mx59-markets{grid-template-columns:1fr!important}
}
