/* MetalinkPro v24 — visual navigation buttons with local photo assets. */
.mlp-product-directory{width:100%;padding:24px 20px 20px;background:#f8fafc;color:#122037;text-align:left}
.mlp-product-directory *{box-sizing:border-box}
.mlp-product-directory__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.mlp-product-directory__eyebrow{color:#b26f00;font-weight:900;font-size:11px;letter-spacing:.11em}
.mlp-product-directory__head h2{font-size:clamp(22px,2vw,29px);line-height:1.17;margin:5px 0 8px;color:#0f172a}
.mlp-product-directory__head p{font-size:14px;color:#64748b;line-height:1.5;margin:0;max-width:520px}
.mlp-product-directory__quantity{flex:0 0 auto;font-size:12px;font-weight:800;border:1px solid #dce3ed;border-radius:30px;padding:7px 10px;background:#fff;color:#475569;white-space:nowrap}
.mlp-product-directory__search{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:0 14px;margin:16px 0 12px;min-height:46px}
.mlp-product-directory__search span{font-size:25px;color:#607289}
.mlp-product-directory__search input{font:500 15px/1.3 system-ui, sans-serif;color:#0f172a;border:0;background:none;outline:none;width:100%;min-width:0;min-height:45px;box-shadow:none}
.mlp-product-directory__filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 15px}
.mlp-product-directory__filter{background:#fff;border:1px solid #cbd5e1;border-radius:999px;color:#334155;font:700 12px system-ui,sans-serif;min-height:34px;padding:6px 10px;cursor:pointer}
.mlp-product-directory__filter[aria-pressed="true"]{background:#fbbf24;color:#111827;border-color:#e8a112}
.mlp-product-directory__filter:hover{border-color:#d99000}
.mlp-product-directory__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.mlp-product-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #dce2ea;border-radius:14px;overflow:hidden;background:#fff;color:#182337;text-decoration:none;box-shadow:0 5px 14px rgba(15,23,42,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.mlp-product-card:hover{transform:translateY(-3px);box-shadow:0 13px 26px rgba(15,23,42,.15);border-color:#eab308}
.mlp-product-card:focus-visible,.mlp-product-directory__filter:focus-visible,.mlp-product-directory__more:focus-visible,.mlp-product-directory__search:focus-within{outline:3px solid #f59e0b;outline-offset:2px}
.mlp-product-card[hidden]{display:none!important}
.mlp-product-card__picture{display:block;position:relative;width:100%;aspect-ratio:1.4/1;overflow:hidden;background:#182a41}
.mlp-product-card__picture::after{content:"";position:absolute;inset:36% 0 0;background:linear-gradient(transparent,rgba(3,12,26,.63));pointer-events:none}
.mlp-product-card__picture img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .22s ease}
.mlp-product-card:hover img{transform:scale(1.06)}
.mlp-product-card__group{position:absolute;left:9px;bottom:9px;z-index:1;background:rgba(10,20,37,.82);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:800;line-height:1.1}
.mlp-product-card__schematic{position:absolute;top:7px;right:7px;z-index:1;background:#fff7ed;color:#9a3412;border-radius:7px;font-size:10px;padding:3px 6px}
.mlp-product-card__bottom{display:flex;gap:7px;justify-content:space-between;align-items:center;padding:10px 10px 12px;min-height:68px;font-size:14px;line-height:1.26}
.mlp-product-card__bottom strong{font-weight:850;color:#162238;overflow-wrap:anywhere}
.mlp-product-card__chevron{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#ffb400;color:#111827;font-size:19px;font-weight:900}
.mlp-product-directory__more{display:block;width:100%;margin:15px 0 10px;min-height:45px;border:1px solid #fbbf24;border-radius:11px;background:#fff7e6;color:#7c4a03;font:850 14px system-ui,sans-serif;cursor:pointer}
.mlp-product-directory__more[hidden],.mlp-product-directory__no-results[hidden]{display:none!important}
.mlp-product-directory__no-results{padding:24px;text-align:center;color:#475569}
.mlp-product-directory__note{font-size:11px;line-height:1.5;color:#64748b;margin:12px 0 0}
/* override old v23 empty message layout, keep existing JS section switching */
body.mlp-home .mlp-home-explorer__empty{display:block;text-align:left;align-items:stretch;justify-content:flex-start;min-height:0;padding:0}
body.mlp-home .mlp-home-explorer__content:has(.mlp-product-directory){overflow:visible}
body.mlp-home .mlp-home-explorer__content > .mlp-home-explorer__empty{overflow:hidden;border-radius:21px}
/* English homepage uses a separate standalone directory in its main content */
body:not(.mlp-home) main > .mlp-product-directory{max-width:1220px;margin:30px auto;padding:24px;border:1px solid #e2e8f0;border-radius:22px}
body:not(.mlp-home) main > .mlp-product-directory .mlp-product-directory__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1120px){.mlp-product-directory__grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.mlp-home) main > .mlp-product-directory .mlp-product-directory__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.mlp-product-directory{padding:15px 12px 17px}.mlp-product-directory__head{align-items:flex-start}.mlp-product-directory__quantity{font-size:10px}.mlp-product-directory__head p{font-size:13px}.mlp-product-directory__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mlp-product-card__bottom{font-size:12px;min-height:64px;padding:9px}.mlp-product-card__picture{aspect-ratio:1.2/1}.mlp-product-directory__filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}.mlp-product-directory__filter{flex-shrink:0;font-size:12px}.mlp-product-card__group{font-size:9px;padding:4px 6px;left:6px;bottom:6px}.mlp-product-card__chevron{width:23px;height:23px;flex-basis:23px;font-size:16px}body:not(.mlp-home) main > .mlp-product-directory{margin:16px 10px}body:not(.mlp-home) main > .mlp-product-directory .mlp-product-directory__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.mlp-product-directory__head{flex-wrap:wrap}.mlp-product-directory__grid{grid-template-columns:1fr}.mlp-product-card__picture{aspect-ratio:1.7/1}}
@media(prefers-reduced-motion:reduce){.mlp-product-card,.mlp-product-card__picture img{transition:none!important}}
