.market-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f4fa;
}
.market-wrap { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.market-icon { width: 22px; height: 22px; flex: none; fill: currentColor; }
.market-search .market-icon { fill: none; }
.market-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.market-skip:focus { z-index: 2; width: auto; height: auto; clip-path: none; padding: 10px; margin: 10px; background: white; }
.market-header { background: #102c55; color: white; box-shadow: 0 2px 8px #102c5522; }
.market-header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(14px, 4vw, 54px); align-items: center; padding-block: 13px; }
.market-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.market-logo img { width: 71px; height: 43px; border-radius: 999px; object-fit: cover; background: white; }
.market-logo span { font-size: 1.28rem; font-weight: 700; line-height: 1; }
.market-logo small { display: block; margin-top: 5px; color: #cbe075; font-size: .57rem; letter-spacing: .14em; }
.market-search, .market-filters, .market-managed-actions form, .market-confirm-actions form { padding: 0; border: 0; }
.market-filters, .market-managed-actions form, .market-confirm-actions form { background: transparent; }
.market-search { display: flex; align-items: stretch; min-width: 0; border-radius: 9px; background: white; color: var(--navy); }
.market-search input[type="search"] { min-width: 0; border: 0; margin: 0; padding-inline: 14px; background: transparent; font-size: .88rem; }
.market-search button { display: grid; place-items: center; width: 51px; flex: none; border: 0; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; background: #edf4ff; color: #104ba9; cursor: pointer; }
.market-search button:hover { background: #dceaff; }
.market-header-home { color: #f0f5ff; text-decoration: none; font-weight: 600; font-size: .85rem; }
.market-header-home:hover { text-decoration: underline; }
.market-content { flex: 1; padding-block: 26px 56px; outline: none; }
.market-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 254px; isolation: isolate; overflow: hidden; border-radius: 23px; padding: 29px clamp(26px, 5vw, 57px); color: white; background: linear-gradient(116deg, #0d2240 10%, #143b79 65%, #1855b6); }
.market-hero-copy { z-index: 1; }
.market-hero h1 { margin-block: 7px 10px; font-size: clamp(2rem, 4.5vw, 3.65rem); letter-spacing: -.055em; }
.market-hero-copy > p:not(.market-eyebrow) { max-width: 41ch; color: #e5efff; font-size: clamp(.93rem, 1.6vw, 1.09rem); }
.market-hero .market-button { margin-top: 20px; }
.market-eyebrow, .market-kicker { display: flex; gap: 8px; align-items: center; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .67rem; }
.market-eyebrow { color: #e4f0ff; }
.market-eyebrow span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #cae363; box-shadow: 0 0 0 4px #cae36324; }
.market-kicker { color: #1550ab; }
.market-wave { position: absolute; inset: -35% -5% -65% 36%; z-index: -1; border-radius: 50%; transform: rotate(-23deg) skewX(-13deg); background: linear-gradient(146deg, #5292fd 24%, #63c6ff 45%, #c3df54 66%, #f5a623 87%); mask-image: repeating-radial-gradient(ellipse at 57% 61%, transparent 0 11px, #000 12px 13px, transparent 14px 17px); opacity: .64; }
.market-hero-stamp { display: grid; place-items: center; width: clamp(98px, 15vw, 175px); aspect-ratio: 1; flex: none; margin-right: 4%; border-radius: 31%; transform: rotate(12deg); border: 1px solid #c8e9ff70; color: #e1efac; background: linear-gradient(145deg, #c8e9ff40, #c8e9ff0c); box-shadow: 0 16px 35px #081a3c47; }
.market-hero-stamp .market-icon { width: 52%; height: 52%; }
.market-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid transparent; border-radius: 9px; padding: 7px 13px; background: #155bd0; color: white; font-weight: 700; font-size: .84rem; line-height: 1.28; text-align: center; text-decoration: none; cursor: pointer; }
.market-button:hover { background: #104ba9; }
.market-accent { background: #c9df64; color: #0d2240; }
.market-accent:hover { background: #d7ec77; }
.market-secondary { border-color: #c9d8ed; background: white; color: #104ba9; }
.market-secondary:hover { background: #eaf2ff; }
.market-quiet { background: transparent; color: #445571; }
.market-quiet:hover { background: #eef3fb; }
.market-danger { background: #a12d28; }
.market-danger:hover { background: #86201b; }
.market-categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 4px 10px; margin: 16px -4px 10px; }
.market-categories a { display: flex; align-items: center; gap: 7px; flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #213f65; text-decoration: none; font-weight: 600; font-size: .79rem; }
.market-categories a .market-icon { width: 17px; height: 17px; color: #155bd0; }
.market-categories a:hover, .market-categories a[aria-current="page"] { background: #e1ecff; border-color: #bfd4f3; }
.market-catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 15px; }
.market-catalog-head h2 { font-size: clamp(1.26rem, 3vw, 1.85rem); margin-block: 4px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.market-count, .market-seller, .market-detail-note { color: var(--muted); font-size: .83rem; }
.market-filters { display: flex; align-items: end; gap: 8px; flex: none; }
.market-filters label { margin: 0; color: var(--muted); font-size: .73rem; font-weight: 700; }
.market-filters select { display: block; min-height: 42px; margin: 3px 0 0; padding: 7px 24px 7px 8px; border-color: #c9d8ed; background: white; font-size: .81rem; }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.market-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--navy); text-decoration: none; box-shadow: 0 5px 12px #0d224008; }
.market-card:hover { box-shadow: 0 9px 22px #0d224017; border-color: #adcaed; }
.market-image { position: relative; display: grid; place-items: center; overflow: hidden; min-width: 0; aspect-ratio: 4 / 3; background: #eef4fc; }
.market-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.market-placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; background: radial-gradient(ellipse at 84% 90%, #c5e78161, transparent 55%), repeating-linear-gradient(141deg, #f0f6ff 0 19px, #f7faff 20px 22px); color: #204c8a; text-align: center; font-weight: 700; font-size: .75rem; }
.market-art-casa .market-placeholder, .market-art-eventos .market-placeholder { background: radial-gradient(ellipse at 84% 90%, #ffd98a9c, transparent 62%), repeating-linear-gradient(141deg, #fbf4e8 0 19px, #fff9ee 20px 22px); color: #745021; }
.market-art-alimentacao .market-placeholder, .market-art-bemestar .market-placeholder { background: radial-gradient(ellipse at 84% 90%, #b0ce4873, transparent 55%), repeating-linear-gradient(141deg, #edf4dc 0 19px, #f6f9ed 20px 22px); color: #3b591e; }
.market-placeholder .market-icon { width: 44px; height: 44px; }
.market-card-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; gap: 5px; overflow-wrap: anywhere; }
.market-card-info h3 { font-size: .95rem; line-height: 1.33; }
.market-tag { display: inline-flex; align-self: start; border-radius: 999px; padding: 3px 8px; color: #244b80; background: #eaf1fc; font-size: .69rem; font-weight: 700; }
.market-tag-live { color: #315422; background: #edf5d8; }
.market-price { font-size: clamp(1.08rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.035em; }
.market-card-link { margin-top: auto; padding-top: 4px; color: #104ba9; font-size: .78rem; font-weight: 700; }
.market-card-link span { margin-left: 3px; }
.market-result-title { margin-top: 10px; font-size: 1.75rem; letter-spacing: -.03em; }
.market-empty { display: grid; gap: 9px; justify-items: center; padding: 34px 16px; text-align: center; border-radius: 15px; background: white; border: 1px solid var(--line); }
.market-empty :is(h1,h2,h3) { font-size: 1.4rem; overflow-wrap: anywhere; max-width: 100%; }
.market-empty p { color: var(--muted); font-size: .89rem; }
.market-empty > .market-icon { color: var(--blue-text); width: 36px; height: 36px; }
.market-empty .market-button { margin-top: 6px; }
.market-pages, .market-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: .85rem; }
.market-crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.market-crumb a { text-decoration: none; color: var(--blue-text); font-weight: 600; }
.market-crumb a:hover { text-decoration: underline; }
.market-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 34px); padding: clamp(14px, 3.5vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.market-detail .market-image { border-radius: 13px; }
.market-detail-info { display: grid; align-content: start; justify-items: start; gap: 10px; padding-block: 5px; overflow-wrap: anywhere; }
.market-detail-info h1 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); letter-spacing: -.035em; }
.market-detail-info .market-price { font-size: clamp(1.3rem, 2.8vw, 2rem); }
.market-detail-seller { display: flex; align-items: center; gap: 8px; padding-block: 4px; }
.market-detail-seller .market-icon { color: var(--blue-text); }
.market-detail-seller :is(small,strong) { display: block; }
.market-detail-seller small { color: var(--muted); }
.market-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-referral-note { display: flex; align-items: center; gap: 6px; color: #104ba9; font-size: .8rem; font-weight: 600; }
.market-referral-note .market-icon, .market-detail-actions .market-icon { width: 18px; height: 18px; }
.market-contact { background: #147749; }
.market-contact:hover { background: #10623c; }
.market-contact .market-icon { width: 19px; height: 19px; }
.market-description { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.market-description h2 { font-size: 1.18rem; }
.market-description p { margin-top: 9px; max-width: 72ch; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.market-footer { padding-block: 24px; background: #e6edf8; border-top: 1px solid #d9e3f3; }
.market-footer .market-wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.market-footer p { color: var(--muted); font-size: .82rem; }
.market-footer a { color: #104ba9; font-size: .84rem; font-weight: 700; }

.market-manage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.market-stats { display: flex; flex-wrap: wrap; gap: 9px; }
.market-stats span { padding: 8px 12px; border-radius: 10px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.market-stats strong { color: var(--navy); }
.market-feedback { padding: 10px 13px; border-radius: 8px; margin-block: 0 12px; background: #e6f1dd; color: #315422; font-size: .86rem; }
.market-error { background: #fff0ef; color: #922e25; margin: 0; }
.market-managed { display: grid; gap: 10px; }
.market-managed-card { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.market-managed-card .market-image { border-radius: 8px; }
.market-managed-card .market-placeholder { font-size: .61rem; gap: 4px; }
.market-managed-card .market-placeholder .market-icon { width: 28px; height: 28px; }
.market-managed-info { overflow-wrap: anywhere; }
.market-managed-info h2 { margin: 5px 0 2px; font-size: 1.05rem; }
.market-managed-info :is(p,small) { color: var(--muted); font-size: .78rem; }
.market-managed-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.market-return { display: inline-block; margin-bottom: 12px; color: #104ba9; font-size: .84rem; font-weight: 700; }
.market-edit { display: grid; grid-template-columns: minmax(0, 690px) minmax(160px, 1fr); align-items: start; gap: 14px; }
.market-editor, .market-edit-aside { border: 1px solid var(--line); border-radius: 14px; padding: clamp(13px, 3vw, 22px); background: white; }
.market-editor { display: grid; gap: 13px; }
.market-edit-head h2, .market-edit-aside h2 { font-size: 1.22rem; }
.market-edit-head p, .market-edit-aside p:not(.market-kicker) { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.market-edit-aside h2 { margin-top: 4px; }
.market-edit-aside a { display: inline-block; margin-top: 12px; font-size: .82rem; color: #922e25; }
.market-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.market-editor label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; align-content: start; }
.market-editor small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.market-editor :is(input,select,textarea) { width: 100%; min-width: 0; margin: 0; padding: 9px 10px; font: inherit; font-weight: 400; border: 1px solid #a6b5ca; border-radius: 8px; background: white; color: var(--navy); }
.market-editor textarea { resize: vertical; }
.market-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-edit-image { width: min(100%, 160px); }
.market-edit-image .market-image { border-radius: 8px; }
.market-share-dialog .member-dialog-header h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); }
.market-share-dialog .member-dialog-close { display: grid; place-items: center; line-height: 1; text-decoration: none; }
.market-share-dialog form > p:not([role="alert"]), .market-share-dialog form > small { display: block; color: var(--muted); font-size: .84rem; }
.market-share-dialog label { margin-top: 15px; font-size: .88rem; }
.market-share-dialog input[type="tel"] { margin-bottom: 12px; }
.market-share-dialog form > small { margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .market-card, .market-button, .market-categories a { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
}
@media (max-width: 950px) {
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-managed-card { grid-template-columns: 95px minmax(0, 1fr); }
  .market-managed-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 670px) {
  .market-wrap { width: calc(100% - 28px); }
  .market-header-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .market-search { grid-row: 2; grid-column: 1 / -1; }
  .market-content { padding-block: 14px 32px; }
  .market-hero { min-height: 210px; border-radius: 16px; padding: 20px; }
  .market-hero-stamp { display: none; }
  .market-wave { inset: -35% -37% -60% 22%; opacity: .42; }
  .market-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .market-catalog-head { align-items: start; flex-direction: column; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .market-card-info { padding: 10px; }
  .market-card-info h3 { font-size: .85rem; }
  .market-detail, .market-edit { grid-template-columns: minmax(0, 1fr); }
  .market-footer .market-wrap { align-items: start; flex-direction: column; }
}
@media (max-width: 390px) {
  .market-filters { width: 100%; flex-wrap: wrap; }
  .market-field-row { grid-template-columns: minmax(0, 1fr); }
  .market-managed-card { grid-template-columns: 73px minmax(0, 1fr); }
}
