/* iaipediu Marketplace — vitrine premium */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --mp-ink: #0b1220;
  --mp-ink-soft: #1e293b;
  --mp-muted: #64748b;
  --mp-line: rgba(15, 23, 42, .09);
  --mp-surface: #ffffff;
  --mp-bg: #f1f5f9;
  --mp-brand: #e11d48;
  --mp-brand-2: #f97316;
  --mp-ok: #059669;
  --mp-warn: #d97706;
  --mp-radius: 20px;
  --mp-radius-sm: 14px;
  --mp-shadow: 0 22px 50px rgba(15, 23, 42, .12);
  --mp-shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
  --mp-font: 'IBM Plex Sans', system-ui, sans-serif;
  --mp-display: 'Sora', system-ui, sans-serif;
  --mp-nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mp-body {
  margin: 0;
  font-family: var(--mp-font);
  color: var(--mp-ink);
  background: var(--mp-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.mp-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* NAV */
.mp-nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--mp-nav-h);
  display: flex; align-items: center;
  background: rgba(241, 245, 249, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.mp-nav.scrolled {
  background: rgba(255,255,255,.94);
  border-color: var(--mp-line);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.mp-nav-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.mp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mp-display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.04em; flex-shrink: 0;
}
.mp-brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.mp-brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--mp-brand), var(--mp-brand-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, .35);
}
.mp-brand span {
  background: linear-gradient(90deg, var(--mp-ink), var(--mp-brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mp-search {
  flex: 1; max-width: 420px; position: relative; display: none;
}
@media (min-width: 860px) { .mp-search { display: block; } }
.mp-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--mp-muted); pointer-events: none;
}
.mp-search input {
  width: 100%; border: 1px solid var(--mp-line); background: #fff;
  border-radius: 999px; padding: 12px 16px 12px 40px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mp-search input:focus {
  border-color: rgba(225, 29, 72, .45);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .12);
}
.mp-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mp-lang {
  display: none; gap: 4px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--mp-line); background: #fff;
}
@media (min-width: 960px) { .mp-lang { display: inline-flex; } }
.mp-lang a {
  padding: 6px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  color: var(--mp-muted);
}
.mp-lang a.on { background: var(--mp-ink); color: #fff; }
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700;
  font-size: .9rem; cursor: pointer; transition: transform .15s, filter .15s, background .15s;
}
.mp-btn:hover { transform: translateY(-1px); }
.mp-btn-ghost { background: #fff; color: var(--mp-ink-soft); border: 1px solid var(--mp-line); }
.mp-btn-primary {
  background: linear-gradient(135deg, var(--mp-brand), #be123c);
  color: #fff; box-shadow: 0 10px 24px rgba(225, 29, 72, .28);
}
.mp-btn-dark { background: var(--mp-ink); color: #fff; }
.mp-btn-sm { padding: 9px 14px; font-size: .82rem; }
.mp-nav-menu-btn {
  display: inline-flex; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--mp-line); background: #fff; align-items: center; justify-content: center;
}
@media (min-width: 960px) { .mp-nav-menu-btn { display: none; } .mp-nav-desktop { display: flex !important; } }
.mp-nav-desktop { display: none; align-items: center; gap: 8px; }

/* Mobile drawer */
.mp-drawer-bd {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 95;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.mp-drawer-bd.show { opacity: 1; pointer-events: auto; }
.mp-drawer {
  position: fixed; top: 0; right: 0; width: min(360px, 92vw); height: 100dvh;
  background: #fff; z-index: 96; transform: translateX(110%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: -20px 0 50px rgba(15,23,42,.18);
}
.mp-drawer.open { transform: translateX(0); }
.mp-drawer .mp-search { display: block; max-width: none; }

/* HERO full-bleed */
.mp-hero {
  position: relative; min-height: min(72vh, 620px);
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
  background: #0b1220;
}
.mp-hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.28) 0%, rgba(11,18,32,.55) 45%, rgba(11,18,32,.92) 100%),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  transform: scale(1.02);
  animation: mpHeroIn 1.1s ease both;
}
@keyframes mpHeroIn {
  from { transform: scale(1.08); opacity: .7; }
  to { transform: scale(1.02); opacity: 1; }
}
.mp-hero-inner {
  position: relative; z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}
.mp-hero-brand {
  font-family: var(--mp-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -.05em; line-height: .95; margin: 0 0 12px;
  animation: mpFadeUp .7s ease both;
}
.mp-hero h1 {
  margin: 0 0 10px; max-width: 16ch;
  font-family: var(--mp-display); font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem); letter-spacing: -.03em; line-height: 1.2;
  animation: mpFadeUp .7s .08s ease both;
}
.mp-hero p {
  margin: 0 0 22px; max-width: 42ch; color: rgba(255,255,255,.82);
  font-size: 1.05rem; animation: mpFadeUp .7s .14s ease both;
}
@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.mp-hero-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
  max-width: 640px; animation: mpFadeUp .7s .2s ease both;
}
.mp-hero-bar .mp-addr {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); color: var(--mp-ink);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.mp-hero-bar .mp-addr i { color: var(--mp-brand); }
.mp-hero-bar .mp-addr input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-weight: 600; font-size: .95rem; min-width: 0;
}
.mp-hero-bar .mp-addr button {
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--mp-brand), #be123c); color: #fff; cursor: pointer;
}
.mp-addr-note {
  margin-top: 12px; font-size: .88rem; color: rgba(255,255,255,.78);
  display: none; align-items: center; gap: 8px; animation: mpFadeUp .5s ease both;
}
.mp-addr-note.show { display: inline-flex; }

/* SECTIONS */
.mp-section { padding: 36px 0 8px; }
.mp-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.mp-section-head h2 {
  margin: 0; font-family: var(--mp-display); font-size: 1.35rem;
  letter-spacing: -.03em; font-weight: 800;
}
.mp-section-head p { margin: 4px 0 0; color: var(--mp-muted); font-size: .92rem; }
.mp-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--mp-line); border-radius: 999px;
  padding: 6px 12px; font-size: .78rem; font-weight: 700; color: var(--mp-muted);
}

/* Verticals */
.mp-verts {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr);
  gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.mp-verts::-webkit-scrollbar { display: none; }
.mp-vert {
  border: 1px solid var(--mp-line); background: #fff; border-radius: var(--mp-radius-sm);
  padding: 16px 12px; text-align: center; cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mp-vert:hover { transform: translateY(-3px); box-shadow: var(--mp-shadow-sm); }
.mp-vert.on {
  border-color: rgba(225, 29, 72, .45);
  background: linear-gradient(180deg, #fff1f2, #fff);
  box-shadow: 0 12px 28px rgba(225, 29, 72, .12);
}
.mp-vert i {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: #fff1f2; color: var(--mp-brand); font-size: 1.05rem;
}
.mp-vert span { font-size: .78rem; font-weight: 700; color: var(--mp-ink-soft); line-height: 1.25; }

/* Featured */
.mp-featured {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px);
  gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none;
}
.mp-featured::-webkit-scrollbar { display: none; }
.mp-feat-card {
  position: relative; border-radius: var(--mp-radius); overflow: hidden;
  min-height: 190px; color: #fff; isolation: isolate;
  box-shadow: var(--mp-shadow-sm); transition: transform .2s, box-shadow .2s;
}
.mp-feat-card:hover { transform: translateY(-4px); box-shadow: var(--mp-shadow); }
.mp-feat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.mp-feat-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(11,18,32,.88) 100%);
}
.mp-feat-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px;
}
.mp-feat-body strong { display: block; font-family: var(--mp-display); font-size: 1.15rem; letter-spacing: -.02em; }
.mp-feat-meta { margin-top: 6px; font-size: .82rem; opacity: .9; display: flex; gap: 10px; flex-wrap: wrap; }

/* Filters sticky */
.mp-filters {
  position: sticky; top: calc(var(--mp-nav-h) + 1px); z-index: 40;
  background: rgba(241,245,249,.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0 10px; margin: 8px 0 18px;
  border-bottom: 1px solid transparent;
}
.mp-filters.stuck { border-color: var(--mp-line); }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mp-chip {
  border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink-soft);
  border-radius: 999px; padding: 9px 14px; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 7px;
}
.mp-chip:hover { border-color: #cbd5e1; }
.mp-chip.on {
  background: var(--mp-ink); color: #fff; border-color: var(--mp-ink);
}
.mp-chip .n {
  background: rgba(15,23,42,.08); border-radius: 999px; padding: 1px 7px;
  font-size: .7rem; font-weight: 800;
}
.mp-chip.on .n { background: rgba(255,255,255,.2); }
.mp-sort {
  margin-left: auto; border: 1px solid var(--mp-line); background: #fff;
  border-radius: 999px; padding: 9px 14px; font-size: .8rem; font-weight: 700;
  color: var(--mp-ink-soft); outline: none; cursor: pointer;
}

/* Grid cards */
.mp-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .mp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .mp-grid { grid-template-columns: repeat(3, 1fr); } }

.mp-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: mpCardIn .45s ease both;
}
.mp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mp-shadow);
  border-color: rgba(225, 29, 72, .18);
}
.mp-card.is-closed { filter: grayscale(.35); opacity: .82; }
.mp-card.is-closed:hover { filter: none; opacity: 1; }
@keyframes mpCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mp-card-media {
  position: relative; height: 168px; background: #e2e8f0; overflow: hidden;
}
.mp-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.mp-card:hover .mp-card-media img { transform: scale(1.05); }
.mp-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  border-radius: 999px; padding: 6px 10px; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.mp-badge.open { background: var(--mp-ok); }
.mp-badge.closed { background: rgba(15,23,42,.72); }
.mp-badge.free {
  left: auto; right: 12px;
  background: rgba(255,255,255,.95); color: var(--mp-ok);
}
.mp-logo {
  position: absolute; left: 14px; bottom: -18px; z-index: 3;
  width: 48px; height: 48px; border-radius: 14px; overflow: hidden;
  border: 3px solid #fff; background: #fff; box-shadow: var(--mp-shadow-sm);
}
.mp-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-card-body {
  padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.mp-card-body.has-logo { padding-top: 28px; }
.mp-card-body h3 {
  margin: 0; font-family: var(--mp-display); font-size: 1.08rem;
  letter-spacing: -.02em; font-weight: 800; line-height: 1.25;
}
.mp-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  font-size: .82rem; color: var(--mp-muted); font-weight: 600;
}
.mp-meta .star { color: var(--mp-warn); }
.mp-meta .dist {
  background: #eff6ff; color: #2563eb; border-radius: 8px; padding: 2px 7px; font-size: .75rem;
}
.mp-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--mp-muted); font-weight: 600;
}
.mp-foot .free { color: var(--mp-ok); font-weight: 800; }
.mp-card-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.mp-card-actions .mp-btn { flex: 1; }

/* Empty */
.mp-empty {
  display: none; text-align: center; padding: 56px 24px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--mp-radius);
}
.mp-empty.show { display: block; }
.mp-empty strong { display: block; font-family: var(--mp-display); font-size: 1.15rem; margin-bottom: 6px; }
.mp-empty p { margin: 0 0 16px; color: var(--mp-muted); }

/* CTA band */
.mp-cta-band {
  margin: 48px 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 760px) { .mp-cta-band { grid-template-columns: 1fr 1fr; } }
.mp-cta {
  border-radius: var(--mp-radius); padding: 28px; min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  color: #fff; position: relative; overflow: hidden;
}
.mp-cta::before {
  content: ''; position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.mp-cta.dark { background: linear-gradient(145deg, #0f172a, #1e293b); }
.mp-cta.brand { background: linear-gradient(145deg, var(--mp-brand), #9f1239); }
.mp-cta small { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.mp-cta h3 { margin: 6px 0 0; font-family: var(--mp-display); font-size: 1.35rem; letter-spacing: -.03em; }
.mp-cta .mp-btn { align-self: flex-start; background: #fff; color: var(--mp-ink); }

/* Footer */
.mp-footer {
  margin-top: 40px; background: #fff; border-top: 1px solid var(--mp-line);
  padding: 28px 0 36px;
}
.mp-footer-inner {
  width: min(1200px, calc(100% - 32px)); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  color: var(--mp-muted); font-size: .88rem;
}
.mp-footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; }
.mp-footer-links a:hover { color: var(--mp-ink); }

/* WA FAB */
.mp-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  font-size: 1.6rem; box-shadow: 0 14px 30px rgba(37, 211, 102, .4);
  transition: transform .15s;
}
.mp-wa:hover { transform: scale(1.06); }

/* Store modal body extras */
.mp-modal-store {
  display: grid; gap: 12px;
}
.mp-modal-store img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 14px;
}
.mp-modal-store .row {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--mp-muted); font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mp-hero-media, .mp-card, .mp-hero-brand, .mp-hero h1, .mp-hero p, .mp-hero-bar { animation: none !important; }
  .mp-card:hover, .mp-feat-card:hover, .mp-vert:hover { transform: none; }
}
