/* MecaBella 1.2 — styles scoped to affiliate components, independent of theme. */
.mb-product{box-sizing:border-box;border:1px solid #dce3de;border-radius:16px;padding:24px;margin:28px 0;background:#fff;color:#192b24}
.mb-product-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;width:100%}
.mb-product-grid.mb-grid-cols-1{grid-template-columns:minmax(0,1fr)}
.mb-product-grid.mb-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mb-product-grid.mb-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mb-product-grid.mb-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.mb-selection{width:100%;container-type:inline-size}
.mb-selection>.mb-disclosure{font-size:13px;line-height:1.6;color:#526359;margin:0 0 18px}
.mb-product-card{box-sizing:border-box;display:flex;flex-direction:column;min-width:0;max-width:100%;overflow:hidden;border:1px solid #dce3de;border-radius:14px;background:#fff;color:#192b24;box-shadow:0 6px 22px rgba(23,61,49,.045)}
.mb-card-media{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f4f5f0;padding:14px;box-sizing:border-box}
.mb-card-media img.mb-card-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px;margin:0}
.mb-image-placeholder{font-size:14px;color:#526359;text-align:center}
.mb-card-body{display:flex;flex-direction:column;flex:1;padding:16px;gap:10px}
.mb-product-card .mb-card-title{font-size:18px;line-height:1.25;letter-spacing:-.02em;margin:0;font-weight:700;overflow-wrap:anywhere}
.mb-product-card .mb-card-summary{font-size:15px;line-height:1.6;margin:0;overflow-wrap:anywhere;white-space:normal}
.mb-card-bottom{margin-top:auto;padding-top:6px}
.mb-product-card .mb-disclosure,.mb-product .mb-disclosure{font-size:12px;line-height:1.5;color:#526359;margin:0 0 14px;overflow-wrap:anywhere}
.mb-offers{display:flex;flex-wrap:wrap;gap:10px}
.mb-offer{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:#173d31;color:#fff!important;padding:12px 18px;border-radius:8px;text-decoration:none;font-weight:700;font-size:15px;line-height:1.4;text-align:center;min-height:44px;overflow-wrap:anywhere;max-width:100%}
.mb-product-card .mb-offer{width:100%}
.mb-offer:hover{background:#245641;text-decoration:underline;text-underline-offset:3px}
.mb-offer:focus-visible{outline:3px solid #b65227;outline-offset:4px}
@media(max-width:1100px){.mb-product-grid.mb-grid-cols-4,.mb-product-grid.mb-grid-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mb-product-grid,.mb-product-grid.mb-grid-cols-2,.mb-product-grid.mb-grid-cols-3,.mb-product-grid.mb-grid-cols-4{grid-template-columns:minmax(0,1fr)}.mb-card-body{padding:20px}}

/* A narrow content group stays readable even on a wide monitor. */
@container(max-width:860px){.mb-product-grid.mb-grid-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:500px){.mb-product-grid.mb-grid-cols-2,.mb-product-grid.mb-grid-cols-3,.mb-product-grid.mb-grid-cols-4{grid-template-columns:minmax(0,1fr)}}

/* Documented criteria shown with product cards and full product blocks. */
.mb-environment { border-top:1px solid #dce3de; margin-top:8px; padding-top:10px; font-size:13px; line-height:1.55; }
.mb-environment summary { cursor:pointer; color:#173d31; font-weight:700; }
.mb-environment ul { padding-left:18px; margin:10px 0; }
.mb-environment li { margin:8px 0; overflow-wrap:anywhere; }
.mb-environment p { font-size:12px; color:#526359; margin:8px 0; }
.mb-environment a { color:#173d31; }
