:root {
  --ml-ink:#151c2d; --ml-muted:#515f6c; --ml-stroke:#dadee4; --ml-accent:#a0f5d6;
  --ml-green:#006545; --ml-blue:#263c79;
}
.ml-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:clamp(12px,1.5vw,24px)}
.ml-card {position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--ml-stroke);border-radius:12px;color:var(--ml-ink);overflow:hidden;min-width:0;box-shadow:0 2px 4px #17243708;transition:box-shadow .2s,border-color .2s}
.ml-card:focus-within,.ml-card:hover {border-color:#92aaa8;box-shadow:0 5px 18px #17243716}
.ml-icon,.ml-icon svg {display:inline-block;width:1.05em;height:1.05em;flex:none;vertical-align:middle}
.ml-face {position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;background:#f3f3f2;border:0;padding:0;border-radius:0;cursor:zoom-in}
.ml-face img {display:block;width:100%;height:100%;object-fit:contain}
.ml-face:hover {filter:none}
.ml-body {display:flex;flex-direction:column;flex:1;gap:7px;padding:clamp(13px,1.35vw,23px);overflow-wrap:anywhere}
.ml-cat,.ml-sku {font:600 .68rem/1.4 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--ml-muted)}
.ml-body h3 {margin:0;font:550 clamp(1.02rem,1.42vw,1.34rem)/1.28 "Inter",system-ui,sans-serif;letter-spacing:-.035em}
.ml-title {display:block;text-align:left;padding:0;border:0;border-radius:0;color:inherit;background:none;font:inherit;letter-spacing:inherit;overflow-wrap:anywhere}
.ml-title:hover {text-decoration:underline;text-underline-offset:3px}
.ml-prices {margin:.32rem 0 .1rem}
.ml-prices del {display:block;color:#66717c;font-size:.86rem}
.ml-price-line {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.ml-price-line strong {font:600 clamp(1.45rem,2.25vw,2.12rem)/1.08 "Inter",system-ui,sans-serif;letter-spacing:-.065em}
.ml-discount {background:#d5fae5;color:#00583e;border-radius:4px;padding:3px 6px;font-size:.72rem;font-weight:750;white-space:nowrap}
.ml-count,.ml-state {position:absolute;display:inline-flex;align-items:center;gap:6px;font:650 .74rem/1.1 "Inter",system-ui,sans-serif;border-radius:6px;padding:6px 8px}
.ml-count {right:10px;bottom:10px;background:#111925df;color:#fff}
.ml-state {left:10px;top:10px;background:#fffffff2;color:#414750;border:1px solid #ffffff88}
.ml-state::before {content:"";width:6px;height:6px;border-radius:50%;background:#83929c}
.ml-state.active::before {background:#008b5a}
.ml-ship,.ml-offer {font-size:.84rem;line-height:1.32;margin:0;color:var(--ml-green);font-weight:600}
.ml-ship {display:flex;align-items:center;gap:6px}.ml-offer {color:#524086}
.ml-actions {display:flex;gap:8px;margin-top:auto;padding-top:13px}
.ml-buy,.ml-edit,.ml-remove {display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;min-height:40px;padding:8px 12px;line-height:1.2;font-weight:650;font-size:.9rem;text-decoration:none}
.ml-buy,.ml-edit {flex:1;background:#162834;color:#fff;border:1px solid #162834;text-align:center}
.ml-buy:hover,.ml-edit:hover {background:#124b42;color:white}
.ml-remove {border:1px solid #e7ced3;background:#fff;color:#a23248;min-width:40px}
.ml-remove:hover {background:#fff2f4}
dialog.ml-viewer {padding:0;width:min(980px,94vw);max-width:94vw;max-height:91dvh;overflow:auto;background:white;border:1px solid var(--ml-stroke);border-radius:15px;color:var(--ml-ink)}
dialog.ml-viewer[open] {display:grid;grid-template-columns:1.32fr 1fr}
.ml-viewer::backdrop {background:#101a2cbb}
.ml-gallery {background:#f3f4f4;min-width:0}
.ml-stage {position:relative;aspect-ratio:1;max-height:67vh}
.ml-stage>img {width:100%;height:100%;object-fit:contain}
.ml-info {align-self:center;min-width:0;padding:44px clamp(20px,3vw,44px);overflow-wrap:anywhere}
.ml-info h2 {font:660 clamp(1.6rem,3.1vw,2.65rem)/1.07 "Inter",system-ui,sans-serif;letter-spacing:-.055em;margin:.5em 0}
.ml-description {white-space:pre-line;color:#475561}.ml-sku {display:block}
.ml-info>.ml-buy,.ml-info>.ml-edit {margin-top:1.4rem}
.ml-close,.ml-arrow {position:absolute;z-index:1;border:1px solid #d4dadd;background:#fffffff2;color:#202a37;border-radius:50%;width:38px;height:38px;padding:0;line-height:1;font-size:1.45rem}
.ml-close {top:9px;right:9px}.ml-arrow {top:46%;left:8px}.ml-arrow+.ml-arrow {left:auto;right:8px}
.ml-thumbs {display:flex;gap:5px;justify-content:center;padding:10px}
.ml-thumbs button {border:2px solid transparent;background:#fff;overflow:hidden;border-radius:6px;padding:0;width:min(15%,64px);aspect-ratio:1}
.ml-thumbs button[aria-pressed=true] {border-color:#075b55}
.ml-thumbs img {width:100%;height:100%;object-fit:contain}
@media(max-width:1060px){.ml-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.ml-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ml-body{padding:11px;gap:5px}.ml-buy,.ml-edit{font-size:.82rem;padding-inline:6px}.ml-actions{gap:5px}.ml-cat{font-size:.61rem}.ml-ship{font-size:.75rem}.ml-price-line{gap:5px}.ml-state{top:6px;left:6px}.ml-count{bottom:6px;right:6px}.ml-body h3{font-size:1rem}.ml-info{padding:18px}.ml-viewer .ml-stage{max-height:44dvh}dialog.ml-viewer[open]{grid-template-columns:1fr}}
@media(max-width:340px){.ml-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ml-card{transition:none}}
.ml-stickers{position:absolute;bottom:10px;left:10px;right:10px;display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;pointer-events:none}
.ml-sticker{display:inline-flex;align-items:center;gap:3px;background:#b6450b;color:white;border-radius:4px;padding:4px 7px;font:750 clamp(.69rem,.9vw,.85rem)/1.1 "Inter",system-ui,sans-serif;letter-spacing:.005em;box-shadow:0 1px 3px #38241728}
.ml-sticker.last{background:#b94304}.ml-sticker.sold{background:#535e67}
.ml-face .ml-count,.ml-stage .ml-count{top:10px;right:10px;bottom:auto}
.ml-discount{background:#00864d;color:#fff;font-size:clamp(.74rem,1vw,.95rem);padding:3px 6px;border-radius:3px}
.ml-prices del{color:#68717a;margin-bottom:3px}
.ml-unavailable{color:#56616b;background:#eef1f2;text-align:center;padding:9px;border-radius:7px;flex:1;font-weight:650}
dialog.ml-send-photo{width:min(420px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;padding:22px;border:1px solid #d2dadd;border-radius:14px;color:#182937;background:white}
.ml-send-photo h2{font-size:1.5rem;margin:0 35px 12px 0;letter-spacing:-.04em}.ml-send-photo>img{width:100%;height:min(28vh,210px);object-fit:contain;background:#f5f6f5;border-radius:7px}
.ml-send-photo>p{margin:.6rem 0}.ml-share-hint{color:#4c5a61;font-size:.9rem}
.ml-file-actions{display:flex;gap:6px;flex-wrap:wrap}.ml-reopen{display:inline-block;margin-top:.8rem;color:#145348;text-decoration:underline}
.ml-send-photo::backdrop{background:#132230a8}
.ml-stage .ml-count{top:auto;bottom:10px}
