/* Interior pages only. Homepage assets and database blocks stay untouched. */
body.lm-interior{background:#fff}
body.lm-interior #content>.ast-container{display:block;width:90%;max-width:1500px;padding:0;margin:0 auto}
body.lm-interior #primary{width:100%;min-width:0;margin:0;padding:0}
body.lm-interior #secondary{display:none}
.lm-inner-shell{width:100%;margin:0;padding:0}
.lm-inner-shell .lm-native-header{width:100%;max-width:none}
.lm-inner-shell .lm-footer{margin-top:60px}
.lm-inner-shell .lm-footer-columns{width:90%;max-width:1500px;margin-left:auto;margin-right:auto}
.lm-inner-shell .lm-footer .lm-copyright{margin:24px 0 0;text-align:center}
.lm-catalog{padding:32px 0 0!important}
.lm-catalog .woocommerce-breadcrumb{font:13px/1.6 Inter,Arial,sans-serif;margin:0 0 24px;color:#70757b;overflow-wrap:anywhere}
.lm-catalog .lm-catalog-heading{margin-bottom:32px}
.lm-catalog .lm-catalog-heading h1{font-size:36px;margin:0 0 16px}
.lm-catalog .lm-category-description{font:16px/1.65 Inter,Arial,sans-serif;color:#333}
.lm-catalog .lm-catalog-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;align-items:start}
.lm-catalog .lm-category-sidebar{min-width:0;border:1px solid #e4e5e7;border-top:3px solid #d9262e;background:#fff}
.lm-category-sidebar summary{padding:16px;font-weight:600;list-style:none}
.lm-category-sidebar summary::-webkit-details-marker{display:none}
.lm-category-sidebar ul{list-style:none;margin:0!important;padding:0 16px 16px!important}
.lm-category-sidebar li{margin:0;padding:0;border-top:1px solid #e4e5e7}
.lm-category-sidebar a{display:block;padding:12px 0;font-size:14px;overflow-wrap:anywhere}
.lm-category-sidebar a[aria-current=page]{color:#d9262e;font-weight:600}
.lm-catalog-results{min-width:0}
.lm-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.lm-catalog-toolbar .lm-result-count{margin:0;font-size:14px;color:#70757b}
.lm-catalog-toolbar .woocommerce-ordering{float:none;margin:0;max-width:100%}
.lm-catalog-toolbar select{font:14px/1.4 Inter,Arial,sans-serif;padding:10px 30px 10px 12px;max-width:100%;border:1px solid #e4e5e7;background-color:#fff;color:#333}
.lm-catalog-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 30px;margin:0!important;padding:0!important;list-style:none}
.lm-catalog-products .lm-product-card{min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;list-style:none}
.lm-catalog-products .lm-product-card>a{display:block}
.lm-catalog-products .lm-catalog-product-image{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;transition:transform .3s}
.lm-catalog-products .lm-product-card a:hover .lm-catalog-product-image{transform:scale(1.025)}
.lm-catalog-products .lm-product-card h2{font:600 16px/1.5 Inter,Arial,sans-serif;margin:14px 0 8px;overflow-wrap:anywhere}
.lm-catalog-products .lm-product-sku{font-size:12px;color:#70757b;margin:0}
.lm-catalog-empty{padding:48px 32px;text-align:center;background:#f8f9fa;border:1px solid #e4e5e7}
.lm-catalog-empty h2{font-size:26px;margin:0 0 18px}
.lm-catalog-empty p{max-width:580px;margin:0 auto 24px}
.lm-catalog .lm-catalog-cta{display:inline-block;border-radius:24px;background:#003e83;color:#fff;font-size:14px;padding:11px 26px}
.lm-catalog .lm-catalog-cta:hover{background:#d9262e;color:#fff}
.lm-catalog .woocommerce-pagination{margin:32px 0;text-align:center}
@media(max-width:1000px){.lm-catalog .lm-catalog-layout{grid-template-columns:minmax(0,1fr);gap:32px}.lm-catalog-results{grid-row:1}.lm-category-sidebar{grid-row:2}.lm-catalog-products{gap:30px 16px}.lm-inner-shell .lm-footer-columns{flex-wrap:wrap}}
@media(max-width:767px){body.lm-interior #content>.ast-container{width:94%}.lm-catalog{padding-top:24px!important}.lm-catalog .lm-catalog-heading h1{font-size:28px}.lm-catalog .lm-catalog-heading{margin-bottom:24px}.lm-catalog-empty{padding:32px 20px}.lm-catalog-empty h2{font-size:23px}.lm-inner-shell .lm-footer-columns{width:94%}}
@media(max-width:600px){.lm-catalog-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}.lm-catalog-products .lm-product-card h2{font-size:14px}.lm-catalog-toolbar{gap:12px}.lm-catalog .lm-catalog-cta{max-width:100%}}

/* Native search thumbnails only; keep the query, result order and image ratio. */
body.lm-interior.search #primary article img.wp-post-image {
    width:auto;
    height:auto;
    max-width:min(100%,240px);
    max-height:240px;
    object-fit:contain;
}
