:root {
    --mp-ink: #19223f;
    --mp-text: #3f3f46;
    --mp-muted: #71717a;
    --mp-line: #e4e4e7;
    --mp-bg: #faf8f6;
    --mp-card: #ffffff;
    --mp-navy: #19223f;
    --mp-navy-2: #26325c;
    --mp-brand: #19223f;
    --mp-accent: #fc7044;
    --mp-brand-dark: #0f1630;
    --mp-brand-soft: #eceff8;
    --mp-star: #f5a623;
    --mp-green: #0f9d6b;
    --mp-radius: 16px;
    --mp-shadow: 0 2px 4px rgba(25, 34, 63, .05), 0 12px 28px rgba(25, 34, 63, .08);
    --mp-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--mp-text); background: var(--mp-bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--mp-head); color: var(--mp-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(25, 34, 63, .35); outline-offset: 2px; }
.mp-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* header */
.mp-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--mp-line); }
.mp-header__row { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.mp-brand { display: flex; align-items: center; gap: 10px; }
.mp-brand img { height: 30px; width: auto; }
.mp-brand__text { font-family: var(--mp-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-brand); padding-left: 10px; border-left: 2px solid var(--mp-line); }
.mp-loc-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; cursor: pointer; max-width: 200px; }
.mp-loc-pill svg:first-child { color: var(--mp-brand); flex: none; }
.mp-loc-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-loc-pill:hover { border-color: var(--mp-brand); background: var(--mp-brand-soft); }
.mp-search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; background: var(--mp-bg); border: 1px solid var(--mp-line); border-radius: 999px; padding: 4px 4px 4px 16px; color: var(--mp-muted); }
.mp-search:focus-within { border-color: var(--mp-brand); background: #fff; box-shadow: 0 0 0 4px var(--mp-brand-soft); }
.mp-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 15px; color: var(--mp-ink); padding: 8px 0; }
.mp-search button { border: 0; background: var(--mp-brand); color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.mp-search button:hover { background: var(--mp-brand-dark); }

/* location popup (centered) */
.mp-geo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(25, 34, 63, .55); backdrop-filter: blur(3px); }
.mp-geo__card { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 32px 26px 24px; text-align: center; box-shadow: 0 24px 60px rgba(25, 34, 63, .35); }
.mp-geo__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--mp-brand-soft); color: var(--mp-brand); }
.mp-geo__text { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.mp-geo__text strong { font-family: var(--mp-head); color: var(--mp-ink); font-size: 20px; }
.mp-geo__text span { font-size: 14px; color: var(--mp-muted); }
.mp-geo .mp-btn { width: 100%; }
.mp-geo__later { margin-top: 10px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--mp-muted); cursor: pointer; padding: 6px 10px; }
.mp-geo__later:hover { color: var(--mp-ink); text-decoration: underline; }

/* hero */
.mp-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-navy-2) 100%); color: #fff; padding: 36px 0 28px; }
.mp-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #aab2cf; margin-bottom: 8px; }
.mp-hero h1 { color: #fff; font-size: clamp(26px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.mp-hero p { margin-top: 8px; color: #cfd5ea; max-width: 640px; font-size: 15px; }
.mp-segments { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mp-segments::-webkit-scrollbar { display: none; }
.mp-segments a { flex: none; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.mp-segments a:hover, .mp-segments a.is-on { background: #fff; border-color: #fff; color: var(--mp-navy); }

/* layout */
.mp-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
.mp-filters { background: var(--mp-card); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 20px; position: sticky; top: 88px; box-shadow: 0 1px 2px rgba(25, 34, 63, .04); }
.mp-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--mp-head); font-size: 17px; color: var(--mp-ink); }
.mp-close { display: none; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--mp-muted); }
.mp-field { display: block; margin: 0 0 14px; padding: 0; border: 0; font-size: 12px; font-weight: 600; color: var(--mp-muted); text-transform: uppercase; letter-spacing: .05em; }
.mp-field legend { padding: 0; }
.mp-field select, .mp-range input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--mp-line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--mp-ink); text-transform: none; letter-spacing: 0; font-weight: 400; }
.mp-field select:disabled { background: var(--mp-bg); color: var(--mp-muted); }
.mp-field select:focus, .mp-range input:focus { outline: 0; border-color: var(--mp-brand); box-shadow: 0 0 0 4px var(--mp-brand-soft); }
.mp-range { display: flex; align-items: center; gap: 8px; }
.mp-range span { margin-top: 6px; font-size: 12px; text-transform: none; font-weight: 400; }
.mp-filters__actions { display: flex; gap: 8px; margin-top: 6px; }

/* buttons */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--mp-brand); background: var(--mp-brand); color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 12px; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; }
.mp-btn:hover { background: var(--mp-brand-dark); box-shadow: 0 6px 16px rgba(25, 34, 63, .3); }
.mp-btn:active { transform: translateY(1px); }
.mp-btn[disabled] { opacity: .65; cursor: progress; }
.mp-btn--ghost { background: #fff; color: var(--mp-brand-dark); }
.mp-btn--ghost:hover { background: var(--mp-brand-soft); box-shadow: none; }
.mp-btn--accent { white-space: nowrap; }
.mp-btn--block { width: 100%; }
.mp-filters__actions .mp-btn { flex: 1; padding-left: 10px; padding-right: 10px; }

/* results bar */
.mp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-count { color: var(--mp-muted); font-size: 14px; margin-right: auto; }
.mp-count strong { color: var(--mp-ink); font-family: var(--mp-head); font-size: 18px; }
.mp-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mp-muted); }
.mp-sort select { padding: 10px 12px; border: 1px solid var(--mp-line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--mp-ink); }
.mp-filter-toggle { display: none; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mp-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--mp-brand-soft); color: var(--mp-brand-dark); font-size: 13px; font-weight: 500; }
.mp-chip:hover { background: #dde2f1; }
.mp-chip--clear { background: transparent; border: 1px dashed var(--mp-line); color: var(--mp-muted); }

/* grid + card */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.mp-card { display: flex; flex-direction: column; background: var(--mp-card); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.mp-card:hover { box-shadow: var(--mp-shadow); transform: translateY(-3px); border-color: #c9d0e6; }
.mp-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f1eeea; overflow: hidden; }
.mp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mp-card:hover .mp-card__media img { transform: scale(1.05); }
.mp-badge { position: absolute; top: 10px; left: 10px; background: var(--mp-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(252, 112, 68, .35); }
.mp-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.mp-tag { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--mp-navy-2); background: #eceff8; padding: 3px 9px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mp-card__title a:hover { color: var(--mp-brand-dark); }
.mp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mp-price strong { font-family: var(--mp-head); font-size: 18px; font-weight: 800; color: var(--mp-ink); }
.mp-price s { color: var(--mp-muted); font-size: 13px; }
.mp-price__ask { color: var(--mp-muted); font-size: 14px; }
.mp-shop { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--mp-text); }
.mp-shop svg { color: var(--mp-brand); flex: none; }
.mp-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-shop:hover { color: var(--mp-brand-dark); }
.mp-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mp-muted); flex-wrap: wrap; }
.mp-rating svg { color: var(--mp-star); }
.mp-rating b { color: var(--mp-ink); font-size: 13px; }
.mp-place { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mp-muted); }
.mp-cta { margin-top: auto; text-align: center; padding: 11px 12px; border-radius: 12px; background: var(--mp-navy); color: #fff; font-size: 14px; font-weight: 600; transition: background .15s; }
.mp-cta:hover { background: var(--mp-brand); }
.mp-card__body > .mp-place + .mp-cta, .mp-card__body > .mp-shop + .mp-cta, .mp-card__body > .mp-rating + .mp-cta { margin-top: 12px; }

.mp-more { display: flex; justify-content: center; margin-top: 30px; }
.mp-empty { text-align: center; background: var(--mp-card); border: 1px dashed var(--mp-line); border-radius: var(--mp-radius); padding: 60px 20px; }
.mp-empty h2 { font-size: 20px; }
.mp-empty p { margin: 6px 0 18px; color: var(--mp-muted); }

/* location modal */
.mp-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(25, 34, 63, .55); backdrop-filter: blur(3px); }
.mp-modal__card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 26px 24px 22px; box-shadow: 0 24px 60px rgba(25, 34, 63, .35); }
.mp-modal__card h2 { font-size: 20px; }
.mp-modal__card > p { margin: 4px 0 18px; color: var(--mp-muted); font-size: 14px; }
.mp-modal__x { display: block; position: absolute; top: 12px; right: 14px; }
.mp-modal__msg { min-height: 18px; margin-top: 4px; font-size: 13px; color: var(--mp-brand-dark); }
.mp-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--mp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mp-or::before, .mp-or::after { content: ''; flex: 1; height: 1px; background: var(--mp-line); }

/* browse + footer */
.mp-browse { background: #fff; border-top: 1px solid var(--mp-line); padding: 32px 0; }
.mp-browse h2 { font-size: 15px; margin: 20px 0 10px; }
.mp-browse h2:first-child { margin-top: 0; }
.mp-browse ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mp-browse a { font-size: 13px; color: var(--mp-muted); }
.mp-browse a:hover { color: var(--mp-brand-dark); text-decoration: underline; }
.mp-footer { background: var(--mp-navy); color: #aab2cf; font-size: 13px; padding: 28px 0; }
.mp-footer__logo { height: 26px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.mp-footer p + p { margin-top: 4px; }

/* tablet / mobile */
@media (max-width: 900px) {
    .mp-layout { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
    .mp-filter-toggle { display: inline-flex; }
    .mp-filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; max-height: 86vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .22s ease; padding-bottom: 26px; }
    .mp-filters.is-open { transform: none; }
    .mp-close { display: block; }
    .mp-scrim { position: fixed; inset: 0; background: rgba(25, 34, 63, .5); z-index: 40; }
    .mp-brand__text { display: none; }
    .mp-search { order: 3; flex-basis: 100%; }
    .mp-loc-pill { margin-left: auto; }
}
@media (max-width: 560px) {
    .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mp-card__body { padding: 10px 11px 12px; }
    .mp-card__title { font-size: 14px; }
    .mp-price strong { font-size: 16px; }
    .mp-rating span { display: none; }
    .mp-sort span, .mp-sort { font-size: 12px; }
    .mp-sort { flex: 1; justify-content: flex-end; }
    .mp-sort select { max-width: 150px; padding: 8px; }
    .mp-hero { padding: 24px 0 18px; }
    .mp-modal { align-items: end; padding: 0; }
    .mp-modal__card { max-width: none; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .mp-card, .mp-card__media img, .mp-filters { transition: none; } }

/* ---- mockup refresh ---- */
/* header: My Store */
.mp-mystore { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mp-ink); padding: 8px 10px; border-radius: 10px; }
.mp-mystore svg { color: var(--mp-accent); }
.mp-mystore:hover { background: var(--mp-brand-soft); }

/* hero: two-tone heading, illustration, pills */
.mp-hero .mp-wrap { position: relative; }
.mp-hero h1 span { color: var(--mp-accent); }
.mp-hero__art { position: absolute; right: 16px; bottom: -8px; opacity: .95; pointer-events: none; }
.mp-segments a { display: inline-flex; align-items: center; gap: 6px; }
.mp-segments a:hover, .mp-segments a.is-on { background: var(--mp-accent); border-color: var(--mp-accent); color: #fff; }

/* filters */
.mp-filters__head strong { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.mp-clearlink { font-size: 13px; font-weight: 600; color: var(--mp-accent); padding: 4px 10px; border-radius: 999px; background: #fff1ec; }
.mp-clearlink:hover { background: #ffe2d8; }
.mp-filters__actions .mp-btn:first-child { flex: 1.2; }

/* card extras */
.mp-card { position: relative; }
.mp-card__media { margin: 10px 10px 0; border-radius: 12px; aspect-ratio: 1 / 1; }
.mp-card__media img { border-radius: 12px; }
.mp-badge { top: 8px; left: 8px; background: var(--mp-accent); }
.mp-heart { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--mp-muted); cursor: pointer; box-shadow: 0 2px 8px rgba(25, 34, 63, .18); transition: color .15s, transform .15s; }
.mp-heart:hover { color: var(--mp-accent); transform: scale(1.08); }
.mp-heart.is-on { color: var(--mp-accent); }
.mp-heart.is-on svg path { fill: currentColor; }
.mp-card__body { padding-top: 12px; }

/* promo banner */
.mp-promo { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; padding: 20px 26px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-navy-2) 100%); }
.mp-promo__art { flex: none; }
.mp-promo__text { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.mp-promo__text strong { font-family: var(--mp-head); font-size: 20px; }
.mp-promo__text span { font-size: 14px; color: #cfd5ea; }
.mp-promo .mp-btn { background: var(--mp-accent); border-color: var(--mp-accent); white-space: nowrap; }
.mp-promo .mp-btn:hover { background: #e5582b; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* footer */
.mp-footer { padding: 40px 0 0; }
.mp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 28px; }
.mp-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.mp-footer__grid a { display: block; color: #cfd5ea; margin-bottom: 8px; }
.mp-footer__grid a:hover { color: #fff; text-decoration: underline; }
.mp-footer__logo { height: 30px; }
.mp-footer__note { margin-top: 10px; font-size: 12px; max-width: 320px; }
.mp-footer a.mp-social { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: 14px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mp-footer a.mp-social:hover { background: var(--mp-accent); text-decoration: none; }
.mp-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; }
.mp-footer__bar a { color: #fff; }

@media (max-width: 900px) {
    .mp-hero__art { transform: scale(.7); transform-origin: bottom right; right: 4px; }
    .mp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .mp-mystore span { display: none; }
    .mp-hero__art { opacity: .5; }
    .mp-promo { flex-wrap: wrap; padding: 18px; }
    .mp-promo .mp-btn { width: 100%; }
    .mp-footer__grid { grid-template-columns: 1fr; gap: 22px; }
    .mp-heart { top: 14px; right: 14px; width: 28px; height: 28px; }
}

/* category scroller */
.mp-segwrap { position: relative; margin-top: 20px; }
.mp-segwrap .mp-segments { margin-top: 0; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mp-segments.is-drag { cursor: grabbing; user-select: none; }
.mp-segments.is-drag a { pointer-events: none; }
.mp-segarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--mp-navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.mp-segarrow:hover { background: var(--mp-accent); color: #fff; }
.mp-segarrow--prev { left: -6px; }
.mp-segarrow--next { right: -6px; }
@media (max-width: 560px) { .mp-segarrow { display: none; } }
