/* =====================================================================
   Zayyrah Marketplace shell — mp.css
   Used by: / (home), /stores/ (directory), /store/shop/<slug>/ (store page)

   Identity: a deep "shutter green" header board (the bazaar signboard),
   marigold for ratings and offers, chili for discounts. Bilingual
   English + Nastaliq Urdu labels on categories and cities.
   ===================================================================== */

:root {
    --mp-green-950: #072b1b;
    --mp-green-900: #0b3d27;
    --mp-green-800: #0f5132;
    --mp-green-700: #146c43;
    --mp-green-600: #1b8a55;
    --mp-green-100: #e3f3ea;
    --mp-green-50:  #f0f8f3;
    --mp-marigold:  #f4b400;
    --mp-marigold-100: #fff4cc;
    --mp-chili:     #d3341c;
    --mp-chili-100: #fde9e5;
    --mp-ink:       #101915;
    --mp-ink-2:     #55625b;
    --mp-ink-3:     #8a958f;
    --mp-line:      #e2e8e4;
    --mp-line-2:    #eef2ef;
    --mp-bg:        #f2f5f2;
    --mp-surface:   #ffffff;
    --mp-radius:    12px;
    --mp-radius-sm: 8px;
    --mp-radius-xs: 6px;
    --mp-shadow-sm: 0 1px 2px rgba(16,25,21,.06);
    --mp-shadow:    0 2px 8px rgba(16,25,21,.08);
    --mp-shadow-lg: 0 12px 32px rgba(16,25,21,.14);
    --mp-ease:      cubic-bezier(.2,.7,.3,1);
    --mp-font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mp-display:   'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --mp-urdu:      'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    --mp-container: 1320px;
    --mp-header-h:  64px;
    --mp-bottom-nav: 62px;

    /* Aliases so the shared location-modal include renders correctly */
    --ch-primary: var(--mp-green-700);
    --ch-primary-light: var(--mp-green-100);
    --ch-primary-dark: var(--mp-green-900);
    --ch-surface: var(--mp-surface);
    --ch-bg: var(--mp-bg);
    --ch-text: var(--mp-ink);
    --ch-text-secondary: var(--mp-ink-2);
    --ch-border: var(--mp-line);
    --ch-ease: var(--mp-ease);
    --ch-transition: 160ms var(--mp-ease);
    --qc-green: var(--mp-green-700);
    --qc-green-light: var(--mp-green-100);
    --qc-green-dark: var(--mp-green-900);
    --qc-bg: var(--mp-bg);
    --qc-text: var(--mp-ink);
    --qc-text-secondary: var(--mp-ink-2);
    --qc-border: var(--mp-line);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--mp-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--mp-ink);
    background: var(--mp-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--mp-display); letter-spacing: -.015em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--mp-marigold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ur { font-family: var(--mp-urdu); direction: rtl; unicode-bidi: isolate; line-height: 1.9; }

.mp-container { width: 100%; max-width: var(--mp-container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .mp-container { padding: 0 28px; } }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.mp-header { position: sticky; top: 0; z-index: 120; background: var(--mp-green-950); color: #fff; }
.mp-topbar { display: none; background: var(--mp-green-950); border-bottom: 1px solid rgba(255,255,255,.08); font-size: .76rem; }
.mp-topbar .mp-container { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.mp-topbar-left, .mp-topbar-right { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.72); }
.mp-topbar a:hover, .mp-topbar button:hover { color: #fff; }
.mp-topbar button { background: none; border: 0; color: inherit; font-size: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.mp-topbar strong { color: #fff; font-weight: 600; }
.mp-topbar .mp-pill-note { color: var(--mp-marigold); font-weight: 600; }

.mp-mainbar .mp-container { display: flex; align-items: center; gap: 12px; height: var(--mp-header-h); }
.mp-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.mp-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--mp-marigold); color: var(--mp-green-950); display: grid; place-items: center; font-family: var(--mp-display); font-weight: 800; font-size: 20px; }
.mp-logo-text { display: flex; flex-direction: column; line-height: 1; }
.mp-logo-name { font-family: var(--mp-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: #fff; }
.mp-logo-tag { font-size: .62rem; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.mp-loc { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 6px 10px; flex-shrink: 0; min-width: 0; transition: background 140ms; }
.mp-loc:hover { background: rgba(255,255,255,.14); }
.mp-loc-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; min-width: 0; }
.mp-loc-label { font-size: .62rem; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .06em; }
.mp-loc-value { font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mp-loc svg { flex-shrink: 0; }

.mp-search { flex: 1; min-width: 0; position: relative; }
.mp-search-form { display: flex; background: #fff; border-radius: 10px; overflow: hidden; height: 44px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.mp-search-input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: .92rem; color: var(--mp-ink); background: transparent; }
.mp-search-input::placeholder { color: var(--mp-ink-3); }
.mp-search-input:focus { outline: none; }
.mp-search-btn { width: 52px; border: 0; background: var(--mp-marigold); color: var(--mp-green-950); display: grid; place-items: center; transition: filter 120ms; }
.mp-search-btn:hover { filter: brightness(1.06); }
.mp-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--mp-ink); border-radius: 12px; box-shadow: var(--mp-shadow-lg); border: 1px solid var(--mp-line); overflow: hidden; z-index: 130; display: none; }
.mp-suggest.open { display: block; }
.mp-suggest-group { padding: 6px 0; }
.mp-suggest-group + .mp-suggest-group { border-top: 1px solid var(--mp-line-2); }
.mp-suggest-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mp-ink-3); padding: 6px 14px 2px; font-weight: 700; }
.mp-suggest-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: .86rem; }
.mp-suggest-item:hover, .mp-suggest-item.active { background: var(--mp-green-50); }
.mp-suggest-item img, .mp-suggest-item .mp-suggest-ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--mp-bg); flex-shrink: 0; }
.mp-suggest-item .mp-suggest-price { margin-left: auto; font-weight: 700; font-size: .8rem; color: var(--mp-green-800); }
.mp-suggest-item.all { color: var(--mp-green-700); font-weight: 600; }

.mp-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mp-iconbtn { background: none; border: 0; padding: 0; position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; height: 48px; border-radius: 10px; color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .02em; transition: background 140ms; }
.mp-iconbtn:hover { background: rgba(255,255,255,.1); }
.mp-iconbtn .mp-badge { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mp-chili); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.mp-iconbtn .mp-badge:empty, .mp-iconbtn .mp-badge[data-zero="1"] { display: none; }
.mp-btn-login { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: .84rem; white-space: nowrap; }
.mp-btn-login:hover { background: rgba(255,255,255,.1); }
.mp-btn-sell { display: none; align-items: center; gap: 6px; padding: 0 14px; height: 40px; border-radius: 10px; background: var(--mp-green-700); color: #fff; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.mp-btn-sell:hover { background: var(--mp-green-600); }

/* account menu */
.mp-account { position: relative; }
.mp-account-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; color: var(--mp-ink); border-radius: 12px; box-shadow: var(--mp-shadow-lg); border: 1px solid var(--mp-line); padding: 6px; z-index: 140; }
.mp-account.open .mp-account-menu { display: block; }
.mp-account-head { padding: 10px 12px; border-bottom: 1px solid var(--mp-line-2); margin-bottom: 4px; }
.mp-account-head strong { display: block; font-size: .9rem; }
.mp-account-head span { font-size: .72rem; color: var(--mp-ink-3); }
.mp-account-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .86rem; }
.mp-account-menu a:hover { background: var(--mp-green-50); }
.mp-account-menu a.danger { color: var(--mp-chili); }

/* mobile search row (inside header, below main bar) */
.mp-mobile-search { padding: 0 16px 10px; }
.mp-mobile-search .mp-search-form { height: 42px; }

/* Category nav rail */
.mp-catnav { background: var(--mp-surface); border-bottom: 1px solid var(--mp-line); color: var(--mp-ink); }
.mp-catnav .mp-container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; height: 44px; }
.mp-catnav .mp-container::-webkit-scrollbar { display: none; }
.mp-catnav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 32px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--mp-ink-2); white-space: nowrap; flex-shrink: 0; transition: background 120ms, color 120ms; }
.mp-catnav a svg { width: 16px; height: 16px; opacity: .8; }
.mp-catnav a:hover { background: var(--mp-bg); color: var(--mp-ink); }
.mp-catnav a.active { background: var(--mp-green-100); color: var(--mp-green-900); }
.mp-catnav a .n { font-size: .68rem; color: var(--mp-ink-3); font-weight: 600; }
.mp-catnav a.deals { color: var(--mp-chili); }
.mp-catnav a.deals:hover { background: var(--mp-chili-100); }
.mp-catnav .sep { width: 1px; height: 18px; background: var(--mp-line); margin: 0 6px; flex-shrink: 0; }

@media (min-width: 1024px) {
    .mp-topbar { display: block; }
    .mp-mobile-search { display: none; }
    .mp-btn-sell { display: inline-flex; }
    .mp-loc-value { max-width: 190px; }
}
@media (max-width: 1023px) {
    .mp-logo-text { display: none; }
    .mp-mainbar .mp-container { height: 58px; gap: 8px; }
    .mp-mainbar > .mp-container > .mp-search { display: none; }
    .mp-loc { flex: 1; min-width: 0; justify-content: flex-start; }
    .mp-loc-value { max-width: none; }
    .mp-iconbtn { min-width: 42px; height: 42px; }
    .mp-iconbtn span.lbl { display: none; }
    .mp-btn-login { padding: 0 10px; height: 36px; font-size: .78rem; }
}

/* ---------------------------------------------------------------------
   Sections & rails
   --------------------------------------------------------------------- */
.mp-main { padding-bottom: 40px; }
.mp-section { margin-top: 28px; }
.mp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mp-section-head h2 { font-size: 1.28rem; font-weight: 800; }
.mp-section-head .sub { display: block; font-family: var(--mp-font); font-size: .8rem; color: var(--mp-ink-2); margin-top: 3px; letter-spacing: 0; font-weight: 500; }
.mp-section-head .more { font-size: .82rem; font-weight: 700; color: var(--mp-green-700); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mp-section-head .more:hover { text-decoration: underline; }
.mp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mp-green-700); margin-bottom: 6px; }
.mp-eyebrow.hot { color: var(--mp-chili); }

.mp-rail-wrap { position: relative; }
.mp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; margin: -4px 0 -8px; -webkit-overflow-scrolling: touch; }
.mp-rail::-webkit-scrollbar { display: none; }
.mp-rail > * { scroll-snap-align: start; flex-shrink: 0; }
.mp-rail-btn { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--mp-line); box-shadow: var(--mp-shadow); place-items: center; color: var(--mp-ink); z-index: 3; }
.mp-rail-btn.prev { left: -14px; } .mp-rail-btn.next { right: -14px; }
.mp-rail-btn:hover { background: var(--mp-green-50); }
.mp-rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .mp-rail-wrap:hover .mp-rail-btn { display: grid; } }

/* ---------------------------------------------------------------------
   Home hero — location is the thesis
   --------------------------------------------------------------------- */
.mp-hero { background: linear-gradient(180deg, var(--mp-green-950) 0%, var(--mp-green-900) 100%); color: #fff; padding: 18px 0 22px; position: relative; overflow: hidden; }
.mp-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; mask-image: linear-gradient(90deg, transparent 40%, #000 100%); }
.mp-hero .mp-container { position: relative; z-index: 1; display: grid; gap: 18px; }
.mp-hero-copy h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mp-hero-copy h1 .place { color: var(--mp-marigold); }
.mp-hero-copy h1 .ur { display: block; font-size: .5em; font-weight: 400; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.8; }
.mp-hero-copy p { margin: 12px 0 0; font-size: .95rem; color: rgba(255,255,255,.78); max-width: 520px; }
.mp-hero-stats { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.mp-hero-stat { display: flex; flex-direction: column; line-height: 1.1; }
.mp-hero-stat b { font-family: var(--mp-display); font-size: 1.25rem; font-weight: 800; }
.mp-hero-stat span { font-size: .68rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.mp-hero-ctas { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 639px) { .mp-hero-ctas .mp-btn { height: 42px; padding: 0 14px; font-size: .84rem; } .mp-hero-copy p { font-size: .9rem; } }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: .88rem; border: 1px solid transparent; transition: transform 120ms var(--mp-ease), background 120ms, box-shadow 120ms; white-space: nowrap; }
.mp-btn:active { transform: translateY(1px); }
.mp-btn-primary { background: var(--mp-marigold); color: var(--mp-green-950); }
.mp-btn-primary:hover { filter: brightness(1.05); }
.mp-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.mp-btn-ghost:hover { background: rgba(255,255,255,.16); }
.mp-btn-green { background: var(--mp-green-700); color: #fff; }
.mp-btn-green:hover { background: var(--mp-green-600); }
.mp-btn-outline { background: #fff; color: var(--mp-ink); border-color: var(--mp-line); }
.mp-btn-outline:hover { border-color: var(--mp-ink-3); }
.mp-btn-sm { height: 36px; padding: 0 12px; font-size: .8rem; border-radius: 8px; }

.mp-hero-banner { position: relative; border-radius: 14px; overflow: hidden; background: var(--mp-green-800); min-height: 190px; box-shadow: var(--mp-shadow-lg); }
.mp-hero-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mp-hero-banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--mp-ease); }
.mp-hero-banner .slide.active { opacity: 1; }
.mp-hero-banner .slide-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: linear-gradient(0deg, rgba(7,43,27,.92), rgba(7,43,27,0)); }
.mp-hero-banner .slide-copy h3 { font-size: 1.1rem; font-weight: 800; }
.mp-hero-banner .slide-copy p { margin: 3px 0 0; font-size: .78rem; color: rgba(255,255,255,.8); }
.mp-hero-dots { position: absolute; right: 12px; top: 12px; display: flex; gap: 5px; z-index: 2; }
.mp-hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.mp-hero-dots button.active { background: var(--mp-marigold); width: 20px; border-radius: 4px; }

@media (min-width: 1024px) {
    .mp-hero { padding: 36px 0 40px; }
    .mp-hero .mp-container { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
    .mp-hero-banner { min-height: 300px; aspect-ratio: 16/9; }
}

/* ---------------------------------------------------------------------
   Category tiles (bilingual)
   --------------------------------------------------------------------- */
.mp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mp-cat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 6px 12px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); transition: transform 160ms var(--mp-ease), box-shadow 160ms, border-color 160ms; min-width: 0; }
.mp-cat:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow); border-color: var(--mp-green-600); }
.mp-cat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--mp-green-800); background: var(--mp-green-50); }
.mp-cat-name { font-size: .76rem; font-weight: 700; line-height: 1.2; color: var(--mp-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-cat-ur { font-size: .74rem; color: var(--mp-ink-2); line-height: 1.6; }
.mp-cat-n { position: absolute; top: 8px; right: 8px; font-size: .62rem; font-weight: 700; background: var(--mp-green-100); color: var(--mp-green-900); border-radius: 999px; padding: 2px 7px; }
.mp-cat.empty .mp-cat-ic { color: var(--mp-ink-3); background: var(--mp-bg); }
.mp-cat.empty .mp-cat-name { color: var(--mp-ink-2); }
@media (min-width: 640px) { .mp-cats { grid-template-columns: repeat(5, 1fr); gap: 10px; } }
@media (min-width: 1024px) { .mp-cats { grid-template-columns: repeat(10, 1fr); } .mp-cat { padding: 16px 8px 14px; } .mp-cat-ic { width: 52px; height: 52px; } }

/* ---------------------------------------------------------------------
   City chips
   --------------------------------------------------------------------- */
.mp-cities { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mp-cities::-webkit-scrollbar { display: none; }
.mp-city { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: 999px; transition: border-color 140ms, background 140ms; }
.mp-city:hover, .mp-city.active { border-color: var(--mp-green-700); background: var(--mp-green-50); }
.mp-city-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mp-green-100); color: var(--mp-green-800); flex-shrink: 0; }
.mp-city.active .mp-city-pin { background: var(--mp-green-700); color: #fff; }
.mp-city-name { display: flex; flex-direction: column; line-height: 1.1; }
.mp-city-name b { font-size: .84rem; font-weight: 700; }
.mp-city-name .ur { font-size: .74rem; color: var(--mp-ink-2); line-height: 1.5; }
.mp-city-n { font-size: .7rem; color: var(--mp-ink-3); font-weight: 600; margin-left: 2px; white-space: nowrap; }

/* ---------------------------------------------------------------------
   Store card
   --------------------------------------------------------------------- */
.mp-scard { position: relative; display: flex; flex-direction: column; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); overflow: hidden; transition: transform 160ms var(--mp-ease), box-shadow 160ms, border-color 160ms; min-width: 0; }
.mp-scard:hover { transform: translateY(-3px); box-shadow: var(--mp-shadow-lg); border-color: transparent; }
.mp-rail .mp-scard { width: 268px; }
.mp-scard-cover { position: relative; aspect-ratio: 16/8; }
.mp-scard-cover-img { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, var(--mp-green-900), var(--mp-green-700)); }
.mp-scard-cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--mp-ease); }
.mp-scard:hover .mp-scard-cover-img img { transform: scale(1.04); }
.mp-scard-cover-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,43,27,.55) 0%, rgba(7,43,27,0) 55%); }
.mp-scard-cat { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--mp-green-900); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.mp-scard-offer { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: .64rem; font-weight: 800; background: var(--mp-marigold); color: var(--mp-green-950); padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.mp-scard-open { position: absolute; bottom: 10px; right: 10px; z-index: 2; font-size: .62rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 5px; background: rgba(7,43,27,.55); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.mp-scard-open i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.mp-scard-open.closed i { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.mp-scard-logo { position: absolute; left: 12px; bottom: -20px; z-index: 3; width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 3px; box-shadow: var(--mp-shadow); }
.mp-scard-logo img, .mp-scard-logo .ini { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; display: grid; place-items: center; background: var(--mp-green-100); color: var(--mp-green-900); font-family: var(--mp-display); font-weight: 800; font-size: 1.1rem; }
.mp-scard-body { padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mp-scard-name { font-family: var(--mp-display); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 5px; min-width: 0; }
.mp-scard-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-verified { flex-shrink: 0; width: 16px; height: 16px; color: #0ea5e9; }
.mp-scard-meta { font-size: .76rem; color: var(--mp-ink-2); display: flex; align-items: center; gap: 5px; min-width: 0; }
.mp-scard-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-scard-meta svg { flex-shrink: 0; color: var(--mp-ink-3); }
.mp-scard-row { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--mp-ink-2); margin-top: 2px; flex-wrap: wrap; }
.mp-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--mp-ink); }
.mp-stars { display: inline-flex; gap: 1px; }
.mp-star { width: 11px; height: 11px; background: #d9ded9; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mp-star.on { background: var(--mp-marigold); }
.mp-new { color: var(--mp-green-700); font-weight: 700; }
.mp-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mp-ink-3); }
.mp-scard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mp-line-2); }
.mp-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.mp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--mp-bg); color: var(--mp-ink-2); white-space: nowrap; }
.mp-chip.delivery { background: var(--mp-green-100); color: var(--mp-green-900); }
.mp-chip.pickup { background: #eef4ff; color: #1e40af; }
.mp-chip.cod { background: var(--mp-marigold-100); color: #7a5600; }
.mp-scard-visit { font-size: .76rem; font-weight: 700; color: var(--mp-green-700); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.mp-scard > a.mp-scard-link { position: absolute; inset: 0; z-index: 4; }
.mp-scard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
@media (max-width: 639px) { .mp-scard-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .mp-scard-body { padding: 24px 10px 10px; } .mp-scard-name { font-size: .9rem; } .mp-scard-visit { display: none; } }
@media (max-width: 420px) { .mp-scard-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Product card
   --------------------------------------------------------------------- */
.mp-pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .mp-pgrid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px) { .mp-pgrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .mp-pgrid { grid-template-columns: repeat(5, 1fr); } }
.mp-rail .mp-pcard { width: 190px; }
@media (max-width: 639px) { .mp-rail .mp-pcard { width: 160px; } }
.mp-pcard { position: relative; display: flex; flex-direction: column; background: var(--mp-surface); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); overflow: hidden; transition: transform 160ms var(--mp-ease), box-shadow 160ms; min-width: 0; }
.mp-pcard:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow); }
.mp-pcard-img { position: relative; aspect-ratio: 1; background: #fafbfa; display: grid; place-items: center; overflow: hidden; }
.mp-pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.mp-pcard-img .ph { color: #cfd6d1; }
.mp-off { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--mp-chili); color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .02em; }
.mp-soldout { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(16,25,21,.8); color: #fff; font-size: .6rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; text-transform: uppercase; }
.mp-pcard-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mp-pcard-ful { font-size: .62rem; font-weight: 700; color: var(--mp-green-800); display: inline-flex; align-items: center; gap: 4px; }
.mp-pcard-ful.pickup { color: #1e40af; }
.mp-pcard-name { font-size: .84rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; color: var(--mp-ink); }
.mp-pcard-store { font-size: .7rem; color: var(--mp-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-pcard-store b { color: var(--mp-green-700); font-weight: 600; }
.mp-pcard-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.mp-pcard-price .now { font-family: var(--mp-display); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.mp-pcard-price .was { font-size: .72rem; color: var(--mp-ink-3); text-decoration: line-through; }
.mp-pcard-price .save { font-size: .66rem; color: var(--mp-chili); font-weight: 700; }
.mp-pcard-act { display: flex; gap: 6px; margin-top: 8px; }
.mp-add { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--mp-green-700); background: #fff; color: var(--mp-green-800); font-weight: 800; font-size: .76rem; letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background 120ms, color 120ms; }
.mp-add:hover { background: var(--mp-green-700); color: #fff; }
.mp-add.added { background: var(--mp-green-700); color: #fff; }
.mp-add[disabled] { opacity: .5; cursor: not-allowed; }
.mp-add.collect { border-color: var(--mp-line); color: var(--mp-ink-2); }
.mp-add.collect:hover { background: var(--mp-bg); color: var(--mp-ink); }
.mp-pcard > a.mp-pcard-link { position: absolute; inset: 0; z-index: 1; }
.mp-pcard-act { position: relative; z-index: 2; }

/* ---------------------------------------------------------------------
   Deals & offers strip
   --------------------------------------------------------------------- */
.mp-deals { background: linear-gradient(135deg, #fff8e6 0%, #fff 60%); border: 1px solid #f6e3a8; border-radius: 16px; padding: 16px; }
.mp-deals .mp-section-head { margin-bottom: 10px; }
.mp-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mp-promo { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed var(--mp-marigold); border-radius: 12px; padding: 12px; }
.mp-promo-code { font-family: var(--mp-display); font-weight: 800; font-size: 1rem; background: var(--mp-marigold-100); color: #7a5600; padding: 6px 10px; border-radius: 8px; letter-spacing: .04em; flex-shrink: 0; }
.mp-promo-body b { display: block; font-size: .86rem; }
.mp-promo-body span { font-size: .74rem; color: var(--mp-ink-2); }

.mp-dealgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mp-dealcard { display: flex; gap: 12px; background: #fff; border: 1px solid #f1e3b3; border-radius: 12px; padding: 10px; transition: transform 140ms var(--mp-ease), box-shadow 140ms; }
.mp-dealcard:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow); }
.mp-dealcard-img { width: 92px; height: 92px; border-radius: 10px; background: #fafbfa; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; color: #cfd6d1; }
.mp-dealcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.mp-dealcard-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-dealcard-body b { font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-dealcard.cta { border-style: dashed; border-color: var(--mp-marigold); background: #fffdf5; }

/* ---------------------------------------------------------------------
   Merchant band
   --------------------------------------------------------------------- */
.mp-merchant { margin-top: 36px; background: var(--mp-green-950); color: #fff; border-radius: 18px; padding: 26px 20px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.mp-merchant::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(244,180,0,.35), transparent 65%); }
.mp-merchant h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.mp-merchant h2 .ur { display: block; font-size: .6em; color: rgba(255,255,255,.7); font-weight: 400; margin-top: 6px; }
.mp-merchant p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: .9rem; max-width: 560px; }
.mp-merchant ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); font-size: .8rem; color: rgba(255,255,255,.85); }
.mp-merchant li { display: flex; align-items: center; gap: 8px; }
.mp-merchant li svg { color: var(--mp-marigold); flex-shrink: 0; }
@media (min-width: 900px) { .mp-merchant { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 36px; } }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.mp-footer { margin-top: 40px; background: var(--mp-green-950); color: rgba(255,255,255,.72); padding: 36px 0 calc(24px + var(--mp-bottom-nav)); font-size: .82rem; }
.mp-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.mp-footer h4 { color: #fff; font-family: var(--mp-font); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.mp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mp-footer a:hover { color: #fff; }
.mp-footer-brand { grid-column: 1 / -1; }
.mp-footer-brand p { margin: 10px 0 0; max-width: 420px; line-height: 1.55; }
.mp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .74rem; color: rgba(255,255,255,.5); }
@media (min-width: 900px) { .mp-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .mp-footer-brand { grid-column: auto; } .mp-footer { padding-bottom: 24px; } }

/* ---------------------------------------------------------------------
   Mobile bottom nav
   --------------------------------------------------------------------- */
.mp-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--mp-bottom-nav); background: #fff; border-top: 1px solid var(--mp-line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 110; padding-bottom: env(safe-area-inset-bottom); }
.mp-bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .62rem; font-weight: 600; color: var(--mp-ink-3); position: relative; }
.mp-bottomnav a.active { color: var(--mp-green-800); }
.mp-bottomnav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--mp-green-700); border-radius: 0 0 2px 2px; }
.mp-bottomnav .mp-badge { position: absolute; top: 6px; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--mp-chili); color: #fff; font-size: .6rem; font-weight: 800; display: grid; place-items: center; }
.mp-bottomnav .mp-badge[data-zero="1"] { display: none; }
.mp-bottomnav a.sell { color: var(--mp-green-950); }
.mp-bottomnav a.sell .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--mp-marigold); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 4px 12px rgba(244,180,0,.4); }
@media (min-width: 1024px) { .mp-bottomnav { display: none; } .mp-main { padding-bottom: 0; } }
@media (max-width: 1023px) { .mp-main { padding-bottom: calc(var(--mp-bottom-nav) + 20px); } }

/* ---------------------------------------------------------------------
   Directory page
   --------------------------------------------------------------------- */
.mp-dir-hero { background: var(--mp-surface); border-bottom: 1px solid var(--mp-line); padding: 18px 0 14px; }
.mp-dir-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em; }
.mp-dir-hero h1 .place { color: var(--mp-green-700); }
.mp-dir-hero .count { font-size: .84rem; color: var(--mp-ink-2); margin-top: 4px; }
.mp-crumbs { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--mp-ink-3); margin-bottom: 8px; flex-wrap: wrap; }
.mp-crumbs a:hover { color: var(--mp-green-700); }
.mp-crumbs .cur { color: var(--mp-ink-2); font-weight: 600; }
.mp-dir-catrail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; }
.mp-dir-catrail::-webkit-scrollbar { display: none; }
.mp-fchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: .8rem; font-weight: 600; color: var(--mp-ink-2); transition: all 120ms; }
.mp-fchip svg { width: 15px; height: 15px; }
.mp-fchip .n { font-size: .68rem; color: var(--mp-ink-3); }
.mp-fchip:hover { border-color: var(--mp-green-600); color: var(--mp-ink); }
.mp-fchip.active { background: var(--mp-green-950); border-color: var(--mp-green-950); color: #fff; }
.mp-fchip.active .n { color: rgba(255,255,255,.7); }

.mp-dir-layout { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 1024px) { .mp-dir-layout { grid-template-columns: 250px 1fr; gap: 28px; } }
.mp-side { display: none; }
@media (min-width: 1024px) { .mp-side { display: block; align-self: start; } }
.mp-side-box { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.mp-side-box h3 { font-family: var(--mp-font); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mp-ink-3); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.mp-side-box h3 a { font-size: .68rem; letter-spacing: 0; text-transform: none; color: var(--mp-green-700); font-weight: 700; }
.mp-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mp-side-list a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: .82rem; color: var(--mp-ink-2); }
.mp-side-list a:hover { background: var(--mp-bg); color: var(--mp-ink); }
.mp-side-list a.active { background: var(--mp-green-100); color: var(--mp-green-900); font-weight: 700; }
.mp-side-list a .n { margin-left: auto; font-size: .7rem; color: var(--mp-ink-3); }
.mp-side-list a svg { width: 16px; height: 16px; flex-shrink: 0; }
.mp-side-list .ur { font-size: .72rem; color: var(--mp-ink-3); margin-left: 4px; }
.mp-side-list.compact a { padding: 5px 8px; font-size: .8rem; }
.mp-check { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: .82rem; color: var(--mp-ink-2); cursor: pointer; }
.mp-check:hover { background: var(--mp-bg); }
.mp-check input { accent-color: var(--mp-green-700); width: 16px; height: 16px; margin: 0; }
.mp-check.on { color: var(--mp-ink); font-weight: 600; }

.mp-dir-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mp-dir-toolbar .left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--mp-ink-2); }
.mp-active { display: inline-flex; align-items: center; gap: 6px; background: var(--mp-green-100); color: var(--mp-green-900); font-size: .74rem; font-weight: 700; padding: 4px 6px 4px 10px; border-radius: 999px; }
.mp-active a { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(7,43,27,.12); font-size: .7rem; }
.mp-active a:hover { background: var(--mp-green-900); color: #fff; }
.mp-clear { font-size: .76rem; color: var(--mp-chili); font-weight: 700; }
.mp-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--mp-ink-2); }
.mp-sort select { height: 36px; border: 1px solid var(--mp-line); border-radius: 8px; padding: 0 10px; font-size: .8rem; background: #fff; color: var(--mp-ink); }
.mp-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--mp-line); background: #fff; font-size: .8rem; font-weight: 600; }
@media (min-width: 1024px) { .mp-filter-btn { display: none; } }

.mp-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.mp-drawer.open { display: block; }
.mp-drawer-bg { position: absolute; inset: 0; background: rgba(16,25,21,.5); }
.mp-drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; background: #fff; border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; animation: mpUp 240ms var(--mp-ease); }
@keyframes mpUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mp-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-drawer-head h3 { font-size: 1.05rem; }
.mp-drawer-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--mp-bg); display: grid; place-items: center; }

.mp-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.mp-pager a, .mp-pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--mp-line); background: #fff; font-size: .82rem; font-weight: 600; color: var(--mp-ink-2); gap: 5px; }
.mp-pager a:hover { border-color: var(--mp-green-700); color: var(--mp-green-800); }
.mp-pager .cur { background: var(--mp-green-950); border-color: var(--mp-green-950); color: #fff; }
.mp-pager .gap { border: 0; background: none; min-width: 20px; }

.mp-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--mp-line); border-radius: 14px; }
.mp-empty h3 { font-size: 1.15rem; margin-bottom: 6px; }
.mp-empty p { margin: 0 0 14px; color: var(--mp-ink-2); font-size: .88rem; }
.mp-empty .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mp-green-50); color: var(--mp-green-700); display: grid; place-items: center; margin: 0 auto 14px; }
.mp-empty .acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Store page
   --------------------------------------------------------------------- */
.mp-sp-cover { position: relative; height: 180px; background: linear-gradient(120deg, var(--mp-green-950), var(--mp-green-700)); overflow: hidden; }
.mp-sp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-sp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,43,27,.65), rgba(7,43,27,.05) 60%), linear-gradient(180deg, rgba(7,43,27,.7), rgba(7,43,27,0) 34%); }
.mp-sp-cover .mp-crumbs { position: absolute; top: 12px; left: 0; right: 0; z-index: 2; color: rgba(255,255,255,.75); }
.mp-sp-cover .mp-crumbs a:hover, .mp-sp-cover .mp-crumbs .cur { color: #fff; }
.mp-sp-cover .mp-crumbs .mp-container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (min-width: 768px) { .mp-sp-cover { height: 260px; } }
@media (min-width: 1200px) { .mp-sp-cover { height: 320px; } }

.mp-sp-id { margin-top: -54px; position: relative; z-index: 3; }
.mp-sp-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 16px; padding: 16px; box-shadow: var(--mp-shadow-lg); display: grid; gap: 14px; }
.mp-sp-top { display: flex; gap: 14px; align-items: flex-start; }
.mp-sp-logo { width: 84px; height: 84px; border-radius: 18px; background: #fff; padding: 4px; border: 1px solid var(--mp-line); flex-shrink: 0; margin-top: -40px; box-shadow: var(--mp-shadow); }
.mp-sp-logo img, .mp-sp-logo .ini { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: var(--mp-green-100); color: var(--mp-green-900); font-family: var(--mp-display); font-weight: 800; font-size: 1.6rem; }
.mp-sp-title { min-width: 0; flex: 1; }
.mp-sp-title h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-sp-title h1 .mp-verified { width: 22px; height: 22px; }
.mp-sp-tag { color: var(--mp-ink-2); font-size: .86rem; margin-top: 2px; }
.mp-sp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .8rem; color: var(--mp-ink-2); }
.mp-sp-meta a:hover { color: var(--mp-green-700); text-decoration: underline; }
.mp-open { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #166534; }
.mp-open i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mp-open.closed { background: #fee2e2; color: #991b1b; }
.mp-sp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mp-sp-chips .mp-chip { font-size: .72rem; padding: 5px 9px; }
.mp-sp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-sp-acts .mp-btn { height: 40px; padding: 0 14px; font-size: .82rem; }
.mp-btn-wa { background: #25d366; color: #fff; }
.mp-btn-wa:hover { background: #1fb457; }
.mp-sp-stats { display: flex; gap: 0; border-top: 1px solid var(--mp-line-2); padding-top: 12px; }
.mp-sp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.mp-sp-stat + .mp-sp-stat { border-left: 1px solid var(--mp-line-2); }
.mp-sp-stat b { font-family: var(--mp-display); font-size: 1.2rem; font-weight: 800; line-height: 1; }
.mp-sp-stat span { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mp-ink-3); font-weight: 700; }
.mp-sp-stat.rate b { color: #b45309; display: inline-flex; align-items: center; gap: 4px; }
@media (min-width: 900px) {
    .mp-sp-card { grid-template-columns: 1fr auto; padding: 20px 22px; }
    .mp-sp-logo { width: 110px; height: 110px; margin-top: -58px; }
    .mp-sp-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; min-width: 260px; }
    .mp-sp-stats { border-top: 0; padding-top: 0; width: 100%; }
}

.mp-sp-tabs { position: sticky; top: var(--mp-header-h); z-index: 90; background: var(--mp-bg); margin-top: 16px; }
.mp-sp-tabs .mp-container { display: flex; gap: 2px; border-bottom: 1px solid var(--mp-line); overflow-x: auto; scrollbar-width: none; }
.mp-sp-tab { height: 46px; padding: 0 16px; border: 0; background: none; font-size: .86rem; font-weight: 700; color: var(--mp-ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mp-sp-tab .n { font-size: .68rem; background: var(--mp-line-2); color: var(--mp-ink-2); padding: 2px 7px; border-radius: 999px; }
.mp-sp-tab.active { color: var(--mp-green-900); border-bottom-color: var(--mp-green-700); }
.mp-sp-tab.active .n { background: var(--mp-green-100); color: var(--mp-green-900); }
@media (max-width: 1023px) { .mp-sp-tabs { top: 58px; } }
.mp-sp-panel { display: none; margin-top: 16px; }
.mp-sp-panel.active { display: block; }

.mp-sp-layout { display: grid; gap: 16px; }
.mp-sp-layout > *, .mp-dir-layout > *, .mp-hero .mp-container > * { min-width: 0; }
@media (min-width: 1024px) { .mp-sp-layout { grid-template-columns: 230px 1fr; gap: 24px; } }
.mp-sp-catside { display: none; }
@media (min-width: 1024px) { .mp-sp-catside { display: block; position: sticky; top: calc(var(--mp-header-h) + 46px + 16px); align-self: start; } }
.mp-sp-catrail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.mp-sp-catrail::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .mp-sp-catrail { display: none; } }
.mp-sp-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.mp-sp-search { flex: 1; position: relative; }
.mp-sp-search input { width: 100%; height: 40px; border: 1px solid var(--mp-line); border-radius: 9px; padding: 0 12px 0 36px; font-size: .86rem; background: #fff; }
.mp-sp-search svg { position: absolute; left: 12px; top: 12px; color: var(--mp-ink-3); }
.mp-sp-toolbar select { height: 40px; border: 1px solid var(--mp-line); border-radius: 9px; padding: 0 10px; background: #fff; font-size: .82rem; }
.mp-sp-result { font-size: .78rem; color: var(--mp-ink-2); margin-bottom: 10px; }

.mp-about { display: grid; gap: 14px; }
@media (min-width: 900px) { .mp-about { grid-template-columns: 1.4fr 1fr; } }
.mp-about-box { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 18px; }
.mp-about-box h3 { font-size: 1rem; margin-bottom: 10px; }
.mp-about-box p { margin: 0; color: var(--mp-ink-2); font-size: .9rem; line-height: 1.65; white-space: pre-line; }
.mp-about-rows { display: flex; flex-direction: column; gap: 10px; }
.mp-about-row { display: flex; gap: 10px; font-size: .86rem; }
.mp-about-row svg { flex-shrink: 0; color: var(--mp-green-700); margin-top: 2px; }
.mp-about-row b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mp-ink-3); }
.mp-about-row a { color: var(--mp-green-800); font-weight: 600; }
.mp-about-row a:hover { text-decoration: underline; }
.mp-social { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-social a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--mp-line); font-size: .78rem; font-weight: 600; }
.mp-social a:hover { border-color: var(--mp-green-700); }

.mp-rev-summary { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.mp-rev-big { font-family: var(--mp-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.mp-rev-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.mp-rev-card .who { font-size: .74rem; color: var(--mp-ink-3); margin-top: 4px; }
.mp-rev-card .txt { font-size: .88rem; color: var(--mp-ink-2); margin-top: 6px; line-height: 1.55; }
.mp-rev-card .owner { margin-top: 8px; background: var(--mp-green-50); border-left: 3px solid var(--mp-green-700); padding: 8px 10px; border-radius: 6px; font-size: .8rem; }
.mp-rev-form { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.mp-rev-form h3 { font-size: .95rem; margin-bottom: 8px; }
.mp-star-sel { display: flex; gap: 4px; font-size: 1.5rem; color: #d9ded9; cursor: pointer; margin-bottom: 8px; }
.mp-star-sel .star.active, .mp-star-sel .star:hover { color: var(--mp-marigold); }
.mp-rev-form textarea { width: 100%; min-height: 80px; border: 1px solid var(--mp-line); border-radius: 8px; padding: 10px; font-size: .86rem; resize: vertical; }
.mp-rev-sort { display: flex; gap: 6px; margin-bottom: 10px; }
.mp-rev-sort button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: .74rem; font-weight: 600; color: var(--mp-ink-2); }
.mp-rev-sort button.active { background: var(--mp-green-950); color: #fff; border-color: var(--mp-green-950); }
.mp-helpful { margin-top: 8px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: .72rem; color: var(--mp-ink-2); }
.mp-helpful:hover { border-color: var(--mp-green-700); color: var(--mp-green-800); }

/* skeleton */
.mp-skel { background: linear-gradient(90deg, #eef1ee 25%, #e4e8e5 50%, #eef1ee 75%); background-size: 200% 100%; animation: mpShimmer 1.4s infinite; border-radius: 10px; }
@keyframes mpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* toast */
.mp-toasts { position: fixed; top: 76px; right: 14px; z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mp-toast { background: var(--mp-green-950); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .84rem; font-weight: 600; box-shadow: var(--mp-shadow-lg); opacity: 0; transform: translateY(-6px); transition: opacity 200ms, transform 200ms; pointer-events: auto; }
.mp-toast.show { opacity: 1; transform: none; }
.mp-toast.error { background: var(--mp-chili); }

/* WhatsApp FAB (desktop only; mobile has the bottom nav) */
.mp-wa-fab { position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: none; place-items: center; box-shadow: 0 8px 20px rgba(37,211,102,.4); z-index: 100; }
@media (min-width: 1024px) { .mp-wa-fab { display: grid; } }

/* Location modal — ensure the shared include sits above the sticky header */
.location-modal-overlay { z-index: 400; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   Product detail page (PDP)
   --------------------------------------------------------------------- */
.mp-pdp { display: grid; gap: 18px; margin-top: 14px; }
@media (min-width: 900px) { .mp-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; } }
.mp-notice { display: flex; gap: 12px; align-items: center; background: var(--mp-marigold-100); border: 1px solid #f1dd8f; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: .84rem; color: #7a5600; }
.mp-notice svg { flex-shrink: 0; color: #b45309; }
.mp-notice a { font-weight: 700; text-decoration: underline; }

.mp-gal { position: sticky; top: calc(var(--mp-header-h) + 32px + 44px + 14px); }
@media (max-width: 899px) { .mp-gal { position: static; } }
.mp-gal-main { position: relative; background: #fff; border: 1px solid var(--mp-line); border-radius: 16px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.mp-gal-main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.mp-gal-main .ph { color: #cfd6d1; }
.mp-gal-main .mp-off { font-size: .8rem; padding: 5px 10px; top: 12px; left: 12px; }
.mp-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--mp-line); display: grid; place-items: center; box-shadow: var(--mp-shadow); }
.mp-gal-nav.prev { left: 10px; } .mp-gal-nav.next { right: 10px; }
.mp-gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mp-gal-thumbs::-webkit-scrollbar { display: none; }
.mp-gal-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--mp-line); background: #fff; overflow: hidden; padding: 0; }
.mp-gal-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.mp-gal-thumb.active { border-color: var(--mp-green-700); }
.mp-gal-dots { display: none; justify-content: center; gap: 5px; margin-top: 8px; }
.mp-gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mp-line); }
.mp-gal-dots i.active { background: var(--mp-green-700); width: 16px; border-radius: 3px; }
.mp-gal-share { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--mp-line); display: grid; place-items: center; color: var(--mp-ink-2); }
.mp-gal-share:hover { color: var(--mp-green-700); }
.mp-gal-wish { position: absolute; top: 56px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--mp-line); display: grid; place-items: center; color: var(--mp-ink-2); }
.mp-gal-wish.on { color: var(--mp-chili); }
.mp-gal-wish.on svg { fill: currentColor; }

.mp-pinfo { min-width: 0; }
.mp-pinfo-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .76rem; color: var(--mp-ink-2); }
.mp-pinfo-top a:hover { color: var(--mp-green-700); text-decoration: underline; }
.mp-pinfo h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; }
.mp-pinfo-seller { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .84rem; color: var(--mp-ink-2); flex-wrap: wrap; }
.mp-pinfo-seller a { color: var(--mp-green-800); font-weight: 700; }
.mp-pinfo-seller a:hover { text-decoration: underline; }
.mp-pinfo-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--mp-ink-2); }
.mp-pinfo-rating b { color: var(--mp-ink); }
.mp-pinfo-rating a:hover { text-decoration: underline; }

.mp-pricebox { margin-top: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; }
.mp-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-price-now { font-family: var(--mp-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.mp-price-was { font-size: .95rem; color: var(--mp-ink-3); text-decoration: line-through; }
.mp-price-save { font-size: .74rem; font-weight: 800; color: var(--mp-chili); background: var(--mp-chili-100); padding: 3px 8px; border-radius: 6px; }
.mp-price-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .78rem; color: var(--mp-ink-2); }
.mp-price-meta b { color: var(--mp-ink); font-weight: 600; }
.mp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; margin-top: 10px; }
.mp-stock i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.mp-stock.low i { background: #f59e0b; } .mp-stock.out i { background: var(--mp-chili); }
.mp-stock.low { color: #b45309; } .mp-stock.out { color: var(--mp-chili); } .mp-stock.in { color: #166534; }

.mp-variants { margin-top: 14px; }
.mp-variants h3, .mp-block h3 { font-family: var(--mp-font); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mp-ink-3); margin-bottom: 8px; }
.mp-variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-variant { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--mp-line); border-radius: 10px; background: #fff; font-size: .82rem; cursor: pointer; }
.mp-variant input { position: absolute; opacity: 0; pointer-events: none; }
.mp-variant.selected { border-color: var(--mp-green-700); background: var(--mp-green-50); }
.mp-variant .vp { font-weight: 700; color: var(--mp-green-800); }
.mp-variant.out { opacity: .5; text-decoration: line-through; }

.mp-buy { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.mp-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--mp-line); border-radius: 10px; background: #fff; height: 48px; }
.mp-qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.2rem; color: var(--mp-ink-2); display: grid; place-items: center; }
.mp-qty button:hover { color: var(--mp-green-700); }
.mp-qty input { width: 40px; text-align: center; border: 0; font-weight: 700; font-size: .95rem; background: none; -moz-appearance: textfield; }
.mp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mp-buy .mp-btn { flex: 1; height: 48px; font-size: .95rem; }
.mp-btn-wish { width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid var(--mp-line); background: #fff; display: grid; place-items: center; color: var(--mp-ink-2); flex-shrink: 0; }
.mp-btn-wish.on { color: var(--mp-chili); border-color: var(--mp-chili); }
.mp-btn-wish.on svg { fill: currentColor; }
.mp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mp-trust div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; background: #fff; border: 1px solid var(--mp-line-2); border-radius: 10px; font-size: .68rem; font-weight: 600; color: var(--mp-ink-2); line-height: 1.25; }
.mp-trust svg { color: var(--mp-green-700); }

.mp-pickup { margin-top: 14px; background: #fff; border: 1.5px solid var(--mp-green-100); border-radius: 14px; padding: 14px 16px; }
.mp-pickup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mp-pickup-head strong { font-family: var(--mp-display); font-size: 1rem; }
.mp-pickup-row { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--mp-ink-2); margin-top: 6px; }
.mp-pickup-row svg { flex-shrink: 0; color: var(--mp-green-700); margin-top: 2px; }
.mp-pickup-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mp-pickup-note { margin: 10px 0 0; font-size: .74rem; color: var(--mp-ink-3); }

.mp-sellercard { margin-top: 16px; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 12px 14px; position: relative; }
.mp-sellercard-logo { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--mp-green-100); flex-shrink: 0; display: grid; place-items: center; font-family: var(--mp-display); font-weight: 800; color: var(--mp-green-900); }
.mp-sellercard-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-sellercard-body { min-width: 0; flex: 1; }
.mp-sellercard-name { font-family: var(--mp-display); font-weight: 800; font-size: .98rem; display: flex; align-items: center; gap: 5px; }
.mp-sellercard-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-sellercard-meta { font-size: .76rem; color: var(--mp-ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.mp-sellercard-visit { flex-shrink: 0; }

.mp-block { margin-top: 26px; }
.mp-block h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.mp-desc { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 16px 18px; font-size: .9rem; color: var(--mp-ink-2); line-height: 1.65; }
.mp-desc p { margin: 0 0 10px; } .mp-desc p:last-child { margin: 0; }
.mp-desc.clamp { max-height: 160px; overflow: hidden; position: relative; }
.mp-desc.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); }
.mp-desc-more { margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--mp-green-700); background: none; border: 0; padding: 0; }
.mp-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.mp-spec { background: #fff; border: 1px solid var(--mp-line-2); border-radius: 10px; padding: 8px 12px; font-size: .8rem; }
.mp-spec b { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mp-ink-3); }

/* reviews */
.mp-rv { display: grid; gap: 14px; }
@media (min-width: 900px) { .mp-rv { grid-template-columns: 300px 1fr; gap: 20px; align-items: start; } }
.mp-rv-summary { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 16px; }
.mp-rv-summary .big { font-family: var(--mp-display); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.mp-rv-summary .sub { font-size: .78rem; color: var(--mp-ink-2); margin-top: 4px; }
.mp-rv-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.mp-rv-bar { display: grid; grid-template-columns: 22px 1fr 32px; gap: 8px; align-items: center; font-size: .74rem; color: var(--mp-ink-2); background: none; border: 0; padding: 2px 0; text-align: left; }
.mp-rv-bar .track { height: 8px; border-radius: 4px; background: var(--mp-line-2); overflow: hidden; }
.mp-rv-bar .fill { height: 100%; background: var(--mp-marigold); border-radius: 4px; }
.mp-rv-bar.active { color: var(--mp-ink); font-weight: 700; }
.mp-rv-write { margin-top: 14px; width: 100%; }
.mp-rv-tools { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.mp-rv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-rv-filters button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--mp-line); background: #fff; font-size: .74rem; font-weight: 600; color: var(--mp-ink-2); }
.mp-rv-filters button.active { background: var(--mp-green-950); color: #fff; border-color: var(--mp-green-950); }
.mp-rv-item { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.mp-rv-item-top { display: flex; gap: 10px; align-items: center; }
.mp-rv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mp-green-100); color: var(--mp-green-900); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.mp-rv-name { font-weight: 700; font-size: .86rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mp-rv-verified { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #166534; background: #dcfce7; padding: 2px 6px; border-radius: 4px; }
.mp-rv-date { font-size: .72rem; color: var(--mp-ink-3); }
.mp-rv-item h4 { font-family: var(--mp-font); font-size: .9rem; margin-top: 8px; }
.mp-rv-item p { margin: 6px 0 0; font-size: .86rem; color: var(--mp-ink-2); line-height: 1.55; }
.mp-rv-photos { display: flex; gap: 6px; margin-top: 8px; }
.mp-rv-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.mp-rv-owner { margin-top: 8px; background: var(--mp-green-50); border-left: 3px solid var(--mp-green-700); padding: 8px 10px; border-radius: 6px; font-size: .8rem; }
.mp-rv-form { background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.mp-rv-form h3 { font-size: 1rem; margin-bottom: 8px; }
.mp-rv-form label.lbl { display: block; font-size: .74rem; font-weight: 700; color: var(--mp-ink-2); margin: 10px 0 4px; }
.mp-rv-form input[type=text], .mp-rv-form textarea { width: 100%; border: 1px solid var(--mp-line); border-radius: 8px; padding: 9px 10px; font-size: .86rem; }
.mp-rv-form textarea { min-height: 90px; resize: vertical; }
.mp-rv-photoslots { display: flex; gap: 8px; }
.mp-rv-slot { width: 64px; height: 64px; border: 1.5px dashed var(--mp-line); border-radius: 10px; display: grid; place-items: center; color: var(--mp-ink-3); cursor: pointer; overflow: hidden; position: relative; }
.mp-rv-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mp-rv-slot img { width: 100%; height: 100%; object-fit: cover; }
.mp-rv-login { background: #fff; border: 1px dashed var(--mp-line); border-radius: 12px; padding: 14px; font-size: .86rem; color: var(--mp-ink-2); }
.mp-rv-login a { color: var(--mp-green-700); font-weight: 700; }
.mp-flash { padding: 10px 14px; border-radius: 10px; font-size: .84rem; font-weight: 600; margin-bottom: 10px; background: var(--mp-green-100); color: var(--mp-green-900); }
.mp-flash.error { background: var(--mp-chili-100); color: var(--mp-chili); }

/* sticky mobile buy bar */
.mp-buybar { display: none; position: fixed; left: 0; right: 0; bottom: var(--mp-bottom-nav); z-index: 105; background: #fff; border-top: 1px solid var(--mp-line); padding: 8px 12px; gap: 10px; align-items: center; }
.mp-buybar .p { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.mp-buybar .p b { font-family: var(--mp-display); font-size: 1.2rem; font-weight: 800; }
.mp-buybar .p span { font-size: .68rem; color: var(--mp-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-buybar .mp-btn { flex: 1; height: 44px; }
@media (max-width: 899px) { .mp-buybar { display: flex; } body.mp-pdp-page .mp-main { padding-bottom: calc(var(--mp-bottom-nav) + 76px); } }

/* Product list page + legacy-page polish */
.mp-input { height: 36px; border: 1px solid var(--mp-line); border-radius: 8px; padding: 0 10px; font-size: .82rem; background: #fff; }
.mp-input:focus { outline: none; border-color: var(--mp-green-700); }
.mp-pgrid--plp { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .mp-pgrid--plp { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .mp-pgrid--plp { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .mp-pgrid--plp { grid-template-columns: repeat(5, 1fr); } }
.mp-check .mp-stars { display: inline-flex; }
/* Pages converted mechanically keep marketplace.css for their inner layout;
   these overrides re-assert the shell's typography & ground on top of it. */
body { font-family: var(--mp-font); background: var(--mp-bg); color: var(--mp-ink); }
.qc-layout, .cart-page, .checkout-page, .oc-page, .od-page, .dash-page { max-width: var(--mp-container); margin-left: auto; margin-right: auto; }
.toast-container { z-index: 300; }
