/* Pasar Dapulik — AppKit-inspired marketplace surfaces. */
.marketplace-page {
  --market-blue: #2d6bb2;
  --market-blue-dark: #23548f;
  --market-blue-soft: #e8f1fc;
  --market-ink: #172333;
  --market-muted: #69798e;
  --market-line: #d8e2ed;
  --market-surface: #fff;
  --market-shadow: 0 8px 24px rgba(31, 62, 96, .10);
  color: var(--market-ink);
}
.marketplace-page a { text-decoration: none; }
.market-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 142px;
  margin: 0 15px 18px;
  padding: 24px 22px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #235c9d 0%, #337ac4 60%, #54a3df 100%);
  box-shadow: var(--market-shadow);
  color: #fff;
}
.market-hero::after {
  position: absolute;
  right: -85px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.06), 0 0 0 70px rgba(255,255,255,.04);
  content: '';
}
.market-hero-copy { position: relative; z-index: 1; min-width: 0; }
.market-hero-copy h1 { margin: 2px 0 6px; color: #fff !important; font-size: 29px; font-weight: 800; line-height: 1.12; }
.market-hero-copy .market-eyebrow { color: rgba(255,255,255,.78) !important; }
.market-hero-copy > span { display: block; color: rgba(255,255,255,.86) !important; font-size: 15px; line-height: 1.45; }
.market-hero-copy .market-hero-count { display: block; margin-top: 10px; color: rgba(255,255,255,.9) !important; font-size: 12px; font-weight: 800; line-height: 1.3; }
#page .page-content .market-hero-copy .market-eyebrow { color: rgba(255,255,255,.78) !important; }
#page .page-content .market-hero-copy > span { color: rgba(255,255,255,.86) !important; }
#page .page-content .market-hero-copy .market-hero-count { color: rgba(255,255,255,.9) !important; }
.market-eyebrow { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; letter-spacing: .11em; line-height: 1.3; }
.market-eyebrow-blue { color: var(--market-blue) !important; }
.market-hero-icon, .market-hero-icon i { position: relative; z-index: 1; color: #fff !important; }
.market-hero-icon { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 17px; background: rgba(255,255,255,.15); font-size: 23px; }
.market-hero-compact { min-height: 125px; }

/* The catalogue hero carries three short lines plus the product count. Keep
 * that introductory card compact without changing the taller form/store
 * heroes used elsewhere in the marketplace. The copy is allowed to grow
 * naturally when a narrow viewport wraps a long regional name or tagline. */
.marketplace-listing-page > .market-hero {
  min-height: 0;
  margin-bottom: 14px;
  padding: 14px 16px;
  gap: 10px;
}
.marketplace-listing-page > .market-hero .market-eyebrow {
  font-size: 11px;
  line-height: 1.2;
}
.marketplace-listing-page > .market-hero .market-hero-copy h1 {
  margin: 1px 0 2px;
  font-size: 26px;
  line-height: 1.08;
}
.marketplace-listing-page > .market-hero .market-hero-copy > span {
  font-size: 13px;
  line-height: 1.25;
}
.marketplace-listing-page > .market-hero .market-hero-copy .market-hero-count {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
}
.marketplace-listing-page > .market-hero .market-hero-icon {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
}
.market-quick-actions { display: flex; gap: 10px; margin: 0 15px 18px; }
.market-action { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 13px; border: 1px solid var(--market-line); border-radius: 12px; background: var(--market-surface); color: var(--market-blue-dark); font-size: 14px; font-weight: 700; box-shadow: 0 3px 11px rgba(31,62,96,.06); }
.market-action i { font-size: 14px; }
.market-action-primary { border-color: var(--market-blue); background: var(--market-blue); color: #fff; }
.market-action-note { justify-content: flex-start; color: var(--market-muted); }
.market-filter-card { margin-bottom: 20px; }
.market-filter-card .content { padding: 19px 15px 15px; }
.market-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.market-section-heading h2 { margin: 3px 0 0; color: var(--market-ink); font-size: 23px; font-weight: 800; line-height: 1.15; }
.market-result-note { flex: 0 0 auto; color: var(--market-muted); font-size: 13px; }
.market-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.market-field { display: block; min-width: 0; }
.market-field > span:first-child { display: block; margin-bottom: 6px; color: var(--market-muted); font-size: 13px; font-weight: 700; }
.market-input-wrap { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 11px; border: 1px solid var(--market-line); border-radius: 10px; background: var(--market-surface); color: var(--market-blue); }
.market-input-wrap:focus-within { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }
.market-input-wrap input, .market-input-wrap select { width: 100%; min-width: 0; height: 43px; border: 0; outline: 0; background: transparent; color: var(--market-ink); font-size: 14px; }
.market-input-wrap select { cursor: pointer; }
.market-filter-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; padding: 0 17px; border: 0; border-radius: 10px; background: var(--market-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.market-search-trigger { display: inline-flex; flex: 0 0 43px; align-items: center; justify-content: center; width: 43px; height: 43px; box-sizing: border-box; padding: 0; border: 1px solid var(--market-line); border-radius: 11px; background: var(--market-blue-soft); color: var(--market-blue); font-size: 15px; line-height: 1; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.market-search-trigger i, .market-input-wrap > i { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.market-search-trigger:hover, .market-search-trigger:focus-visible { border-color: var(--market-blue); background: #dceafb; outline: 0; transform: translateY(-1px); }
.market-filter-form { display: block; }
.market-auto-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 43px; align-items: end; gap: 10px; }
.market-auto-filters > .market-search-trigger { align-self: end; margin-bottom: 0; }
.market-filter-status { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: var(--market-blue-soft); color: var(--market-muted); font-size: 11px; line-height: 1.3; }
.market-filter-status[hidden] { display: none; }
.market-filter-status i { margin-right: 4px; color: var(--market-blue); }
.market-filter-status strong { color: var(--market-ink); font-weight: 800; }
.market-filter-status button { padding: 0; border: 0; background: transparent; color: var(--market-blue); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.market-filter-status button:hover, .market-filter-status button:focus-visible { text-decoration: underline; outline: 0; }
.market-search-modal { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: start center; padding: max(18px, env(safe-area-inset-top)) 15px 18px; }
.market-search-modal[hidden] { display: none; }
.market-search-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12, 30, 52, .54); cursor: pointer; }
.market-search-dialog { position: relative; z-index: 1; width: min(100%, 450px); margin-top: min(17vh, 130px); padding: 18px 16px 16px; border: 1px solid var(--market-line); border-radius: 18px; background: var(--market-surface); box-shadow: 0 18px 50px rgba(13, 36, 66, .25); color: var(--market-ink); }
.market-search-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.market-search-dialog h2 { margin: 3px 0 0; color: var(--market-ink); font-size: 22px; font-weight: 850; line-height: 1.15; }
.market-search-close { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; border: 1px solid var(--market-line); border-radius: 9px; background: transparent; color: var(--market-muted); font-size: 14px; cursor: pointer; }
.market-search-close:hover, .market-search-close:focus-visible { border-color: var(--market-blue); color: var(--market-blue); outline: 0; }
.market-search-input-wrap { min-height: 49px; padding: 0 13px; }
.market-search-input-wrap input { height: 47px; font-size: 15px; }
.market-search-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.market-search-dialog-actions { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.market-search-dialog-actions .market-filter-submit { flex: 1 1 auto; }
.market-search-clear { min-height: 45px; padding: 0 15px; border: 1px solid var(--market-line); border-radius: 10px; background: transparent; color: var(--market-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.market-search-clear:hover, .market-search-clear:focus-visible { border-color: var(--market-blue); color: var(--market-blue); outline: 0; }
body.market-search-open { overflow: hidden; }

/* Pasar discovery controls. The search field stays visible on the page,
 * while the secondary sort/category controls remain behind the filter icon.
 * The composer follows /ausi/produk: the clear action is attached to the
 * input so the whole control reads as one compact search bar. */
.market-inline-search { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; }
.market-inline-search-composer { display: flex; flex: 1 1 auto; min-width: 0; align-items: stretch; overflow: hidden; border: 1px solid var(--market-line); border-radius: 12px; background: var(--market-surface); box-shadow: 0 3px 12px rgba(31,62,96,.05); transition: border-color .18s ease, box-shadow .18s ease; }
.market-inline-search-composer:focus-within { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }
.market-inline-search-field { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 9px; min-height: 45px; margin: 0; padding: 0 13px; border: 0; border-radius: 0; background: transparent; color: var(--market-blue); box-shadow: none; }
.market-inline-search-field > i { flex: 0 0 auto; font-size: 15px; }
.market-inline-search-field input { width: 100%; min-width: 0; height: 43px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--market-ink); font: inherit; font-size: 14px; }
.market-inline-search-field input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.market-inline-search-field input::-ms-clear { display: none; width: 0; height: 0; }
.market-inline-search-field input::placeholder { color: #c8324b; opacity: 1; }
.market-inline-search-clear { display: grid; flex: 0 0 42px; width: 42px; min-height: 45px; place-items: center; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.24); border-radius: 0; background: #f1556c; color: #fff; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; transition: background .18s ease, opacity .18s ease; }
.market-inline-search-clear:hover, .market-inline-search-clear:focus-visible { background: #d94358; color: #fff; outline: 0; }
.market-inline-search-clear.is-empty { opacity: .82; }
.market-inline-search-clear i { color: inherit !important; }
.market-inline-filter { flex: 0 0 45px; width: 45px; height: 45px; border-radius: 12px; font-size: 15px; }

/* AppKit's shared typography layer applies a broad !important placeholder
 * colour and a smaller input size. Keep the marketplace composer readable
 * and visually consistent with the AUSI search affordance. */
#page .marketplace-page .market-inline-search-field input { font-size: 14px !important; }
#page .marketplace-page .market-inline-search-field input::placeholder { color: #c8324b !important; opacity: 1 !important; }
.market-category-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 6px; margin: 0 -1px 4px; overflow: visible; padding: 2px 1px 2px; }
.market-category-chip { display: flex; width: 100%; min-width: 0; align-items: center; flex-direction: column; gap: 5px; padding: 0 1px; border: 0; background: transparent; color: var(--market-muted); font: inherit; cursor: pointer; text-align: center; }
.market-category-chip:focus-visible { outline: 2px solid var(--market-blue); outline-offset: 3px; border-radius: 10px; }
.market-category-chip-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(45,107,178,.25); border-radius: 14px; background: #e0ecfb; color: #1e5b9c; font-size: 17px; box-shadow: 0 4px 10px rgba(31,62,96,.10); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.market-category-chip-icon > i { color: inherit !important; }
.market-category-chip-label { display: -webkit-box; width: 100%; min-height: 2.35em; overflow: hidden; font-size: 10px; font-weight: 750; line-height: 1.17; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-category-chip.is-active { color: var(--market-blue-dark); }
.market-category-chip.is-active .market-category-chip-icon { border-color: var(--market-blue); background: var(--market-blue); color: #fff; box-shadow: 0 6px 15px rgba(45,107,178,.26); transform: translateY(-1px); }
.market-category-chip.is-active .market-category-chip-icon,
.market-category-chip.is-active .market-category-chip-icon i { color: #fff !important; }
.market-category-chip[data-market-category-slug="semua-produk"] .market-category-chip-icon { background: #dceafd; color: #185796; }
.market-category-chip[data-market-category-slug="makanan-minuman"] .market-category-chip-icon { background: #ffe3d2; color: #a64e16; }
.market-category-chip[data-market-category-slug="hasil-tani"] .market-category-chip-icon { background: #d9f0df; color: #246b38; }
.market-category-chip[data-market-category-slug="kerajinan"] .market-category-chip-icon { background: #e8dcfa; color: #5f3b98; }
.market-category-chip[data-market-category-slug="jasa"] .market-category-chip-icon { background: #dceafd; color: #185796; }
.market-category-chip[data-market-category-slug="peternakan-perikanan"] .market-category-chip-icon { background: #d7eff2; color: #176d78; }
.market-category-chip-all .market-category-chip-icon { background: #e3e8ee; color: #3f566b; }
.market-category-chip.is-active[data-market-category-slug] .market-category-chip-icon { background: var(--market-blue); color: #fff; }
/* The shared AppKit typography layer gives plain spans a black colour with
 * higher specificity. Keep each category glyph's semantic colour visible
 * until the chip is selected, then switch the glyph to white. */
#page .marketplace-page .market-category-chip-icon { color: #1e5b9c !important; }
#page .marketplace-page .market-category-chip-icon > i { color: inherit !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="semua-produk"] .market-category-chip-icon { color: #185796 !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="makanan-minuman"] .market-category-chip-icon { color: #a64e16 !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="hasil-tani"] .market-category-chip-icon { color: #246b38 !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="kerajinan"] .market-category-chip-icon { color: #5f3b98 !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="jasa"] .market-category-chip-icon { color: #185796 !important; }
#page .marketplace-page .market-category-chip[data-market-category-slug="peternakan-perikanan"] .market-category-chip-icon { color: #176d78 !important; }
#page .marketplace-page .market-category-chip-all .market-category-chip-icon { color: #3f566b !important; }
#page .marketplace-page .market-category-chip.is-active .market-category-chip-icon,
#page .marketplace-page .market-category-chip.is-active .market-category-chip-icon > i { color: #fff !important; }
.market-results-summary { display: flex; align-items: center; justify-content: flex-end; min-height: 0; margin: 0 0 4px; }
.market-results-summary .market-result-note { font-size: 11px; }

/* Complete category list: the shell is present in the DOM for accessibility,
 * but its contents are requested/rendered only after the user opens it. */
.market-category-modal { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: start center; padding: max(18px, env(safe-area-inset-top)) 15px 18px; }
.market-category-modal[hidden] { display: none; }
.market-category-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12,30,52,.56); cursor: pointer; }
.market-category-dialog { position: relative; z-index: 1; display: flex; width: min(100%, 480px); max-height: min(78vh, 620px); max-height: min(78dvh, 620px); margin-top: min(9vh, 78px); flex-direction: column; overflow: hidden; border: 1px solid var(--market-line); border-radius: 20px; background: var(--market-surface); box-shadow: 0 20px 55px rgba(13,36,66,.28); color: var(--market-ink); }
.market-category-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 17px 13px; border-bottom: 1px solid var(--market-line); }
.market-category-dialog-head h2 { margin: 3px 0 3px; color: var(--market-ink); font-size: 22px; font-weight: 850; line-height: 1.15; }
.market-category-dialog-head small { display: block; color: var(--market-muted); font-size: 12px; line-height: 1.35; }
.market-category-close { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid var(--market-line); border-radius: 10px; background: transparent; color: var(--market-muted); font-size: 14px; cursor: pointer; }
.market-category-close:hover, .market-category-close:focus-visible { border-color: var(--market-blue); color: var(--market-blue); outline: 0; }
.market-category-dialog-scroll { min-height: 0; overflow-y: auto; padding: 14px 15px 17px; }
.market-category-loading { display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 9px; color: var(--market-muted); font-size: 13px; font-weight: 700; }
.market-category-loading[hidden], .market-category-error[hidden], .market-all-category-list[hidden] { display: none; }
.market-category-spinner { display: inline-block; width: 19px; height: 19px; border: 2px solid var(--market-line); border-top-color: var(--market-blue); border-radius: 50%; animation: market-spin .7s linear infinite; }
.market-category-error { display: flex; min-height: 120px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 9px; color: #b6404c; font-size: 13px; text-align: center; }
.market-category-error > i { flex: 0 0 100%; font-size: 22px; }
.market-category-error button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #e3aab1; border-radius: 9px; background: #fff3f4; color: #a93643; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.market-all-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.market-all-category-item { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid var(--market-line); border-radius: 13px; background: var(--market-surface); color: var(--market-ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.market-all-category-item:hover, .market-all-category-item:focus-visible { border-color: #9bbce0; background: var(--market-blue-soft); outline: 0; transform: translateY(-1px); }
.market-all-category-item[aria-pressed="true"] { border-color: var(--market-blue); background: var(--market-blue-soft); }
.market-all-category-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--market-blue-soft); color: var(--market-blue); font-size: 14px; }
.market-all-category-icon > i { color: inherit !important; }
/* Give the lazy category dialog the same visual language as the shortcut
 * row, while retaining a distinct colour for every common category. */
#page .marketplace-page .market-all-category-item[data-market-category-slug="makanan-minuman"] .market-all-category-icon { background: #ffe3d2; color: #a64e16 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="hasil-tani"] .market-all-category-icon { background: #d9f0df; color: #246b38 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="peternakan-perikanan"] .market-all-category-icon { background: #d7eff2; color: #176d78 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="kerajinan"] .market-all-category-icon { background: #e8dcfa; color: #5f3b98 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="pakaian-aksesori"] .market-all-category-icon { background: #f8ddec; color: #a23a78 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="jasa"] .market-all-category-icon { background: #dceafd; color: #185796 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="kebutuhan-rumah-tangga"] .market-all-category-icon { background: #fff0c9; color: #93600c !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="elektronik-aksesori"] .market-all-category-icon { background: #dfe5fb; color: #3e4fa0 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="peralatan-bahan-bangunan"] .market-all-category-icon { background: #f1e1d1; color: #8b4f20 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="pendidikan-buku"] .market-all-category-icon { background: #d8f0ee; color: #176e6a !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="tanaman-bibit"] .market-all-category-icon { background: #e1f3c8; color: #4f7620 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="otomotif-suku-cadang"] .market-all-category-icon { background: #f8d9dc; color: #a12f3d !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="perawatan-pribadi"] .market-all-category-icon { background: #f7dce8; color: #9b3d68 !important; }
#page .marketplace-page .market-all-category-item[data-market-category-slug="lainnya"] .market-all-category-icon { background: #e3e8ee; color: #3f566b !important; }
#page .marketplace-page .market-all-category-item[aria-pressed="true"] .market-all-category-icon,
#page .marketplace-page .market-all-category-item[aria-pressed="true"] .market-all-category-icon > i { background: var(--market-blue); color: #fff !important; }
.market-all-category-label { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; }
body.market-category-open { overflow: hidden; }

.market-products { margin: 0 15px 26px; }
.market-products-heading { align-items: center; margin-bottom: 12px; }
.market-products-heading-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 9px; }
.market-products-heading-actions .market-search-trigger { flex-basis: 39px; width: 39px; height: 39px; }
.marketplace-listing-page > .market-filter-status { margin: 0 15px 12px; }
.market-product-list { display: grid; gap: 11px; }
.market-product-row { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 142px; padding: 10px; overflow: hidden; border: 1px solid var(--market-line); border-radius: 17px; background: var(--market-surface); box-shadow: 0 4px 15px rgba(31,62,96,.07); color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.market-product-row:hover, .market-product-row:focus-visible { border-color: #98b9df; box-shadow: 0 8px 21px rgba(31,62,96,.13); color: inherit; transform: translateY(-1px); }
.market-product-media { position: relative; width: 118px; height: 118px; margin: 0; overflow: hidden; border-radius: 12px; background: var(--market-blue-soft); }
.market-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-product-badge { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 6px; overflow: hidden; border-radius: 5px; background: rgba(15,44,78,.78); color: #fff; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.market-product-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.market-product-stars { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 5px; color: #f0b323 !important; font-size: 10px; }
.market-product-stars i, .market-rating-stars i { color: #f0b323 !important; font-style: normal; }
.market-rating-stars i.is-empty { color: #f3d58b !important; opacity: .9; }
.market-product-rating-trigger { width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; line-height: 1; text-align: left; }
.market-product-rating-trigger:hover, .market-product-rating-trigger:focus-visible { outline: 0; text-decoration: underline; text-decoration-color: #f0b323; text-underline-offset: 3px; }
.market-product-rating-count { margin-left: 3px; color: var(--market-muted); font-size: 9px; font-weight: 700; line-height: 1; }
.market-product-name { display: block; width: 100%; min-width: 0; overflow: hidden; color: var(--market-ink); font-size: 15px; font-weight: 800; line-height: 1.26; text-overflow: ellipsis; white-space: nowrap; }
.market-product-store { display: flex; width: 100%; max-width: 100%; min-width: 0; align-items: center; gap: 4px; margin-top: 4px; overflow: hidden; color: var(--market-muted); font-size: 10px; white-space: nowrap; }
.market-product-store i { flex: 0 0 auto; margin-right: 0; color: var(--market-blue); }
.market-product-store > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-product-village { display: flex; width: 100%; max-width: 100%; min-width: 0; align-items: center; gap: 4px; margin-top: 3px; overflow: hidden; color: var(--market-muted); font-size: 9px; white-space: nowrap; }
.market-product-village i { flex: 0 0 auto; margin-right: 0; color: var(--market-blue); }
.market-product-village > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-product-price { display: block; margin-top: 6px; color: var(--market-blue-dark); font-size: 17px; font-weight: 900; line-height: 1; }
.market-product-stock { margin-top: 5px; color: #3c8b58; font-size: 9px; font-weight: 700; }
.market-product-stock.is-empty { color: #b6404c; }
.market-product-arrow { color: #91a0b0; font-size: 11px; }

/* AppKit store listing uses a compact two-column product catalogue.  Keep the
 * image above the product information so the catalogue remains scannable on
 * small phones as well as wider screens. */
.market-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 11px; }
.market-product-grid > .market-empty-state { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
.market-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--market-line); border-radius: 16px; background: var(--market-surface); box-shadow: 0 5px 16px rgba(31,62,96,.08); color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.market-product-card:hover, .market-product-card:focus-visible { border-color: #98b9df; box-shadow: 0 9px 23px rgba(31,62,96,.15); color: inherit; transform: translateY(-2px); }
.market-product-card .market-product-media { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; background: var(--market-blue-soft); }
.market-product-card .market-product-copy { min-height: 132px; padding: 10px 11px 12px; }
.market-product-card .market-product-stars { margin-bottom: 5px; font-size: 10px; }
.market-product-card .market-product-name { min-height: 0; font-size: 17px; line-height: 1.22; }
.market-product-card .market-product-store { margin-top: 6px; font-size: 12px; }
.market-product-card .market-product-village { font-size: 11px; }
.market-product-card .market-product-price { margin-top: 9px; font-size: 19px; }
.market-product-card .market-product-stock { margin-top: 6px; font-size: 11px; }
.market-empty-state { display: flex; flex-direction: column; align-items: center; margin: 0 0 24px; padding: 35px 20px; border: 1px dashed #a7bfd8; border-radius: 17px; background: rgba(255,255,255,.62); text-align: center; }
.market-empty-icon { display: grid; width: 55px; height: 55px; margin-bottom: 11px; place-items: center; border-radius: 16px; background: var(--market-blue-soft); color: var(--market-blue); font-size: 22px; }
.market-empty-state h3 { margin: 0; color: var(--market-ink); font-size: 17px; font-weight: 800; }
.market-empty-state p { margin: 5px 0 15px; color: var(--market-muted); font-size: 12px; }
.market-empty-state .btn { display: inline-flex; align-items: center; gap: 7px; }
.market-loading-state { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; margin: 12px 0 3px; color: var(--market-muted); font-size: 11px; font-weight: 700; }
.market-loading-state[hidden] { display: none; }
.market-loading-dots { display: inline-flex; align-items: center; gap: 4px; }
.market-loading-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--market-blue); animation: market-loading-pulse 1s ease-in-out infinite; }
.market-loading-dots i:nth-child(2) { animation-delay: .15s; }
.market-loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes market-loading-pulse { 0%, 80%, 100% { opacity: .35; transform: scale(.75); } 40% { opacity: 1; transform: scale(1); } }
.market-infinite-sentinel { display: grid; min-height: 12px; place-items: center; margin: 3px 0 3px; }
.market-infinite-sentinel[hidden] { display: none; }
.market-sentinel-spinner { display: block; width: 17px; height: 17px; border: 2px solid var(--market-line); border-top-color: var(--market-blue); border-radius: 50%; animation: market-spin .7s linear infinite; }
@keyframes market-spin { to { transform: rotate(360deg); } }
.marketplace-listing-page.is-ajax .market-pagination { display: none; }
.marketplace-listing-page:not(.is-ajax) .market-infinite-sentinel { display: none; }
.market-product-skeleton { overflow: hidden; border: 1px solid var(--market-line); border-radius: 16px; background: var(--market-surface); }
.market-product-skeleton-media { width: 100%; aspect-ratio: 1 / 1; background: linear-gradient(110deg, var(--market-blue-soft) 25%, #f5f8fb 37%, var(--market-blue-soft) 63%); background-size: 400% 100%; animation: market-shimmer 1.35s ease-in-out infinite; }
.market-product-skeleton-copy { padding: 11px; }
.market-product-skeleton-line { height: 10px; margin: 0 0 9px; border-radius: 5px; background: linear-gradient(110deg, var(--market-blue-soft) 25%, #f5f8fb 37%, var(--market-blue-soft) 63%); background-size: 400% 100%; animation: market-shimmer 1.35s ease-in-out infinite; }
.market-product-skeleton-line.short { width: 58%; }
@keyframes market-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.market-pagination { display: flex; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.market-pagination a { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--market-line); border-radius: 9px; background: var(--market-surface); color: var(--market-muted); font-size: 11px; font-weight: 800; }
.market-pagination a.is-active { border-color: var(--market-blue); background: var(--market-blue); color: #fff; }

/* Product detail */
.market-product-gallery { margin: 0 15px 8px; }
.market-product-hero-image { position: relative; height: min(62vw, 360px); min-height: 205px; margin: 0; overflow: hidden; border-radius: 20px; background: #dfeaf7; box-shadow: var(--market-shadow); }
.market-product-hero-image::after { position: absolute; right: 0; bottom: 0; left: 0; height: 42%; background: linear-gradient(transparent, rgba(9,29,57,.66)); content: ''; pointer-events: none; }
.market-product-hero-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.market-product-hero-open:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.market-product-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-product-hero-zoom-hint { position: absolute; right: 12px; bottom: 11px; z-index: 2; display: inline-flex; min-height: 34px; padding: 6px 10px; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(11,33,61,.76); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; pointer-events: none; backdrop-filter: blur(4px); }
.market-product-hero-zoom-hint i { color: #fff !important; }
.market-product-thumbs { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; padding: 2px 1px 1px; }
.market-product-thumb { flex: 0 0 58px; width: 58px; height: 50px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #e6eef8; cursor: pointer; }
.market-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-product-thumb.is-active { border-color: var(--market-blue); box-shadow: 0 0 0 2px rgba(45,107,178,.15); }

/* The product photo viewer is intentionally image-lazy: the modal ships
 * without an image src and its small interaction bundle is requested only
 * after the resident taps the main photo. */
body.market-image-viewer-open { overflow: hidden; }
.market-image-viewer-modal[hidden],
.market-image-viewer-modal [hidden] { display: none !important; }
.market-image-viewer-modal { position: fixed; z-index: 10060; inset: 0; display: grid; box-sizing: border-box; padding: 12px; place-items: center; color: #172333; }
.market-image-viewer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8,22,40,.78); cursor: pointer; backdrop-filter: blur(4px); }
.market-image-viewer-dialog { position: relative; z-index: 1; display: flex; width: min(1040px,100%); max-width: 100%; height: min(94vh,900px); height: min(94dvh,900px); overflow: hidden; flex-direction: column; border: 1px solid rgba(255,255,255,.26); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(5,18,31,.42); }
.market-image-viewer-header { display: flex; min-height: 68px; padding: 12px 14px 12px 18px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #dce6ef; background: #fff; }
.market-image-viewer-header > div { min-width: 0; }
.market-image-viewer-header span { display: block; margin: 0 0 2px; color: #55738f; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.market-image-viewer-header h2 { margin: 0; overflow: hidden; color: #172333; font-size: 18px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.market-image-viewer-close { display: grid; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; place-items: center; border: 0; border-radius: 13px; background: #edf3f8; color: #253c51; font-size: 17px; cursor: pointer; }
.market-image-viewer-close:hover, .market-image-viewer-close:focus-visible { outline: 0; background: #dceaf7; color: #235fa4; }
.market-image-viewer-viewport { position: relative; min-height: 0; overflow: auto; flex: 1 1 auto; padding: 14px; background: #e5edf4; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.market-image-viewer-stage { position: relative; width: 1px; height: 1px; margin: auto; overflow: visible; background: #d6e1eb; box-shadow: 0 3px 16px rgba(15,23,42,.18); }
.market-image-viewer-stage img { position: absolute; top: 0; left: 0; display: block; max-width: none; max-height: none; object-fit: contain; transform-origin: top left; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.market-image-viewer-gesture { position: absolute; z-index: 3; inset: 0; touch-action: none; cursor: grab; }
.market-image-viewer-gesture:active { cursor: grabbing; }
.market-image-viewer-status { position: absolute; z-index: 2; inset: 0; display: grid; padding: 20px; place-items: center; pointer-events: none; }
.market-image-viewer-status-card { display: inline-flex; min-width: 150px; min-height: 92px; box-sizing: border-box; padding: 16px 18px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1px solid rgba(35,95,164,.18); border-radius: 15px; background: rgba(255,255,255,.92); color: #235fa4; font-size: 13px; font-weight: 750; box-shadow: 0 8px 22px rgba(16,42,67,.14); }
.market-image-viewer-spinner { display: grid; width: 28px; height: 28px; box-sizing: border-box; place-items: center; border: 3px solid #d7e3ef; border-top-color: #235fa4; border-radius: 50%; animation: market-spin .72s linear infinite; }
.market-image-viewer-spinner[hidden] { display: none !important; }
.market-image-viewer-status.is-error .market-image-viewer-status-card { border-color: rgba(185,28,28,.2); color: #b91c1c; }
.market-image-viewer-zoom { position: absolute; top: 12px; right: 12px; z-index: 4; display: inline-flex; min-height: 38px; padding: 3px; align-items: center; gap: 2px; border: 1px solid rgba(148,163,184,.72); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(15,23,42,.17); }
.market-image-viewer-zoom button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #235fa4; cursor: pointer; }
.market-image-viewer-zoom button:hover, .market-image-viewer-zoom button:focus-visible { outline: 0; background: #eaf2fb; }
.market-image-viewer-zoom button:disabled { opacity: .4; cursor: default; }
.market-image-viewer-zoom output { min-width: 48px; color: #334155; font-size: 12px; font-weight: 800; line-height: 30px; text-align: center; }
.market-image-viewer-hint { position: absolute; right: 14px; bottom: 12px; z-index: 4; max-width: calc(100% - 28px); margin: 0; padding: 6px 10px; border-radius: 999px; background: rgba(15,23,42,.75); color: #fff !important; font-size: 11px; line-height: 1.3; pointer-events: none; }
body.theme-dark .market-image-viewer-header { border-color: #33495c; background: #172431; }
body.theme-dark .market-image-viewer-header h2 { color: #f2f6fa; }
body.theme-dark .market-image-viewer-header span { color: #a9c8e7; }
body.theme-dark .market-image-viewer-close { background: #263b4e; color: #e6eef6; }
body.theme-dark .market-image-viewer-viewport { background: #0f1922; }
@media (max-width: 600px) {
  .market-product-hero-zoom-hint span { display: none; }
  .market-product-hero-zoom-hint { width: 36px; height: 36px; min-height: 36px; box-sizing: border-box; padding: 0; justify-content: center; }
  .market-image-viewer-modal { padding: 6px; padding-top: max(6px,env(safe-area-inset-top)); padding-bottom: max(6px,env(safe-area-inset-bottom)); }
  .market-image-viewer-dialog { height: calc(100vh - 12px); height: calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; }
  .market-image-viewer-header { min-height: 62px; padding: 9px 9px 9px 14px; }
  .market-image-viewer-header h2 { font-size: 16px; }
  .market-image-viewer-viewport { padding: 8px; }
  .market-image-viewer-zoom { top: 8px; right: 8px; }
  .market-image-viewer-hint { right: 8px; bottom: 8px; }
}
.market-product-info-card { position: relative; z-index: 1; margin-top: 0; overflow: visible; }
#page .marketplace-product-page .market-product-info-card > .content { margin-top: 0 !important; padding: 14px 15px 17px; }
.market-product-category { display: inline-flex; align-items: center; gap: 5px; color: var(--market-blue); font-size: 11px; font-weight: 800; }
.market-product-info-card h1 { display: block; max-width: 100%; min-width: 0; margin: 6px 0 7px; overflow: hidden; color: var(--market-ink); font-size: 28px; font-weight: 850; line-height: 1.16; text-overflow: ellipsis; white-space: nowrap; }
/* The detail title is content, not a compact catalogue label. Let long
 * product names occupy additional lines inside the card so they remain
 * readable on narrow phones without pushing into the page header or causing
 * horizontal overflow. */
#page .marketplace-product-page .market-product-info-card h1.market-product-detail-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  color: var(--market-ink);
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.18;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.market-product-detail-description { margin: 0; color: var(--market-muted); font-size: 15px; line-height: 1.55; }
.market-product-detail-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .9fr); align-items: end; gap: 15px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--market-line); }
.market-product-detail-meta > strong { color: var(--market-blue-dark); font-size: 24px; font-weight: 900; }
.market-product-detail-meta i { margin-right: 4px; color: var(--market-blue); }
.market-product-seller-meta { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--market-muted); text-align: right; }
.market-product-seller-meta > span { display: inline-flex; min-width: 0; align-items: center; justify-content: flex-end; line-height: 1.4; }
.market-product-seller-store { color: var(--market-ink); font-size: 17px; }
.market-product-seller-store strong { min-width: 0; overflow: hidden; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.market-product-store-row { display: flex !important; width: 100%; align-items: center; justify-content: space-between !important; gap: 12px; }
.market-product-store-row .market-product-seller-store { display: inline-flex; flex: 1 1 auto; max-width: 100%; min-width: 0; align-items: center; overflow: hidden; text-align: left; text-decoration: none; }
.market-product-store-row .market-product-seller-store > i { flex: 0 0 auto; }
.market-product-store-inline-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--market-blue-dark) !important; font-size: 13px; font-weight: 850; line-height: 1.3; white-space: nowrap; }
.market-product-store-inline-link i { margin: 0 !important; color: var(--market-blue) !important; font-size: 10px; }
.market-product-store-inline-link:hover, .market-product-store-inline-link:focus-visible { color: var(--market-blue) !important; outline: 0; text-decoration: underline; text-underline-offset: 3px; }
.market-product-seller-village { color: var(--market-muted); font-size: 16px; font-weight: 650; }
.market-stock-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 5px 8px; border-radius: 7px; background: #e6f4eb; color: #267842; font-size: 10px; font-weight: 700; }
.market-stock-pill.is-empty { background: #fbe8e8; color: #a3333f; }
.market-contact-trigger { display: grid; grid-template-columns: 20px minmax(0, 1fr) 14px; align-items: center; column-gap: 10px; width: 100%; min-height: 50px; margin-top: 17px; padding: 10px 15px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--market-blue-dark), var(--market-blue)); box-shadow: 0 8px 17px rgba(35,84,143,.19); color: #fff !important; font: inherit; font-size: 15px; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.market-contact-trigger > span { color: #fff !important; text-align: left; }
.market-contact-trigger > i { color: #fff !important; }
.market-contact-trigger > i:last-child { justify-self: end; font-size: 10px; opacity: .82; }
.market-contact-trigger:hover, .market-contact-trigger:focus-visible { outline: 0; box-shadow: 0 10px 22px rgba(35,84,143,.25); filter: brightness(1.04); transform: translateY(-1px); }
.market-contact-note { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0 0; color: #a1454d; font-size: 12px; line-height: 1.45; }
.market-contact-modal { --market-blue: #2d6bb2; --market-blue-dark: #23548f; --market-blue-soft: #e8f1fc; --market-ink: #172333; --market-muted: #69798e; --market-line: #d8e2ed; --market-surface: #fff; position: fixed; z-index: 10000; inset: 0; display: grid; place-items: start center; padding: max(18px, env(safe-area-inset-top)) 15px max(18px, env(safe-area-inset-bottom)); color: var(--market-ink); }
.market-contact-modal[hidden] { display: none; }
.market-contact-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(12,30,52,.62); cursor: pointer; backdrop-filter: blur(2px); }
.market-contact-dialog { position: relative; z-index: 1; width: min(100%, 450px); max-height: calc(100vh - max(36px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); margin-top: min(12vh, 94px); padding: 20px 17px 17px; overflow-y: auto; border: 1px solid var(--market-line); border-radius: 20px; background: var(--market-surface) !important; box-shadow: 0 22px 58px rgba(13,36,66,.3); color: var(--market-ink) !important; opacity: 1; overscroll-behavior: contain; }
.market-contact-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.market-contact-dialog h2 { margin: 3px 0 0; color: var(--market-ink); font-size: 25px; font-weight: 850; line-height: 1.15; }
.market-contact-close { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; padding: 0; border: 1px solid var(--market-line); border-radius: 10px; background: var(--market-surface); color: var(--market-muted); font-size: 14px; cursor: pointer; }
.market-contact-close:hover, .market-contact-close:focus-visible { border-color: var(--market-blue); color: var(--market-blue); outline: 0; }
.market-contact-seller { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--market-line); border-radius: 14px; background: var(--market-blue-soft); }
.market-contact-seller-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: var(--market-blue); color: #fff !important; font-size: 18px; }
.market-contact-seller-icon i { color: #fff !important; }
.market-contact-seller-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.market-contact-seller-copy strong { color: var(--market-ink); font-size: 18px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.market-contact-seller-copy small { display: inline-flex; align-items: center; gap: 6px; color: var(--market-muted); font-size: 14px; font-weight: 650; line-height: 1.35; }
.market-contact-seller-copy small i { flex: 0 0 auto; color: var(--market-blue); }
.market-contact-description { margin: 14px 1px 11px; color: var(--market-muted); font-size: 14px; line-height: 1.5; }
.market-contact-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.market-contact-option { display: grid; grid-template-columns: 43px minmax(0, 1fr) 12px; align-items: center; gap: 11px; min-height: 64px; padding: 9px 13px 9px 10px; border: 0; border-radius: 13px; box-shadow: 0 6px 15px rgba(25,70,50,.12); color: #fff !important; text-decoration: none; transition: filter .18s ease, transform .18s ease; }
.market-contact-option.is-whatsapp { background: linear-gradient(135deg,#168a4b,#23ad61); }
.market-contact-option.is-whatsapp-call { background: linear-gradient(135deg,#116d40,#198f55); }
.market-contact-option.is-phone { background: linear-gradient(135deg,var(--market-blue-dark),var(--market-blue)); box-shadow: 0 6px 15px rgba(35,84,143,.15); }
.market-contact-option:hover, .market-contact-option:focus-visible { color: #fff !important; outline: 0; filter: brightness(1.06); transform: translateY(-1px); }
.market-contact-option-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.17); color: #fff !important; font-size: 18px; }
.market-contact-option > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.market-contact-option strong, .market-contact-option small, .market-contact-option > i, .market-contact-option-icon i { color: #fff !important; }
body.theme-light #page .market-contact-option:not(.is-disabled) strong,
body.theme-light #page .market-contact-option:not(.is-disabled) small,
body.theme-light #page .market-contact-option:not(.is-disabled) > i,
body.theme-dark #page .market-contact-option:not(.is-disabled) strong,
body.theme-dark #page .market-contact-option:not(.is-disabled) small,
body.theme-dark #page .market-contact-option:not(.is-disabled) > i { color: #fff !important; }
.market-contact-option strong { font-size: 15px; font-weight: 850; line-height: 1.25; }
.market-contact-option small { font-size: 12px; font-weight: 550; line-height: 1.3; opacity: .88; }
.market-contact-option > i { justify-self: end; font-size: 10px; opacity: .8; }
.market-contact-option.is-disabled { grid-template-columns: 43px minmax(0, 1fr); border: 1px solid var(--market-line); background: #edf1f5; box-shadow: none; color: #8793a1 !important; cursor: not-allowed; }
.market-contact-option.is-disabled .market-contact-option-icon { background: #dce3ea; color: #7c8996 !important; }
.market-contact-option.is-disabled strong, .market-contact-option.is-disabled small, .market-contact-option.is-disabled i,
body.theme-light #page .market-contact-option.is-disabled strong,
body.theme-light #page .market-contact-option.is-disabled small,
body.theme-light #page .market-contact-option.is-disabled i { color: #7c8996 !important; }
body.market-contact-open { overflow: hidden; }

/* Public storefront */
.market-product-seller-meta > :is(span, a) { display: inline-flex; min-width: 0; align-items: center; justify-content: flex-end; line-height: 1.4; }
.market-product-seller-meta > a.market-product-seller-store { color: var(--market-ink); text-decoration: none; }
.market-product-seller-meta > a.market-product-seller-store:hover,
.market-product-seller-meta > a.market-product-seller-store:focus-visible { color: var(--market-blue-dark); outline: 0; text-decoration: underline; text-decoration-color: var(--market-blue); text-underline-offset: 3px; }
.market-product-seller-store .market-store-link-arrow { margin: 0 0 0 7px; color: var(--market-blue); font-size: 10px; opacity: .8; }
.market-view-store-button { display: flex; align-items: center; gap: 9px; min-height: 45px; margin-top: 9px; padding: 9px 14px; border: 1px solid #b9d1eb; border-radius: 12px; background: var(--market-blue-soft); color: var(--market-blue-dark) !important; font-size: 14px; font-weight: 850; line-height: 1.3; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.market-view-store-button > i:first-child { color: var(--market-blue); font-size: 15px; }
.market-view-store-button > i:last-child { margin-left: auto; color: var(--market-blue); font-size: 11px; }
.market-view-store-button:hover, .market-view-store-button:focus-visible { border-color: var(--market-blue); background: #dceafb; outline: 0; transform: translateY(-1px); }
.market-view-store-button-secondary { min-height: 47px; }
.market-store-public-banner { position: relative; margin: 0 15px 21px; padding: 21px 19px 18px; overflow: hidden; border-radius: 21px; background: linear-gradient(135deg, #235c9d 0%, #337ac4 60%, #54a3df 100%); box-shadow: var(--market-shadow); color: #fff; }
.market-store-public-banner::after { position: absolute; right: -82px; bottom: -118px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.06), 0 0 0 70px rgba(255,255,255,.04); content: ''; pointer-events: none; }
.market-store-public-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; min-width: 0; }
.market-store-public-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 17px; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; }
.market-store-public-icon i { color: #fff !important; }
.market-store-public-copy { min-width: 0; }
.market-store-public-copy .market-eyebrow { color: rgba(255,255,255,.78) !important; }
.market-store-public-copy h1 { margin: 3px 0 5px; color: #fff !important; font-size: 27px; font-weight: 850; line-height: 1.15; overflow-wrap: anywhere; }
.market-store-public-copy > span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9) !important; font-size: 14px; line-height: 1.4; }
.market-store-public-copy > span i { color: inherit !important; }
.market-store-public-description { position: relative; z-index: 1; max-width: 680px; margin: 16px 0 0; color: rgba(255,255,255,.92) !important; font-size: 15px; line-height: 1.55; }
.market-store-public-address { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 7px; margin: 9px 0 0; color: rgba(255,255,255,.84) !important; font-size: 13px; line-height: 1.45; }
.market-store-public-address i { flex: 0 0 auto; margin-top: 2px; color: inherit !important; }
.market-store-public-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.market-store-public-actions .market-store-public-contact-trigger { width: 100%; min-height: 45px; margin-top: 0; column-gap: 10px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.16); box-shadow: 0 6px 15px rgba(11,48,90,.18); color: #fff !important; }
.market-store-public-actions .market-store-public-contact-trigger:hover,
.market-store-public-actions .market-store-public-contact-trigger:focus-visible { border-color: rgba(255,255,255,.78); background: rgba(255,255,255,.25); }
.market-store-public-actions .market-store-public-contact-trigger > span { color: #fff !important; }
.market-store-public-actions .market-store-public-contact-trigger > i { color: #fff !important; }
.market-store-public-actions .market-store-public-contact-trigger > i:last-child { justify-self: end; }
#page .page-content .market-store-public-banner .market-store-public-contact-trigger,
#page .page-content .market-store-public-banner .market-store-public-contact-trigger > span,
#page .page-content .market-store-public-banner .market-store-public-contact-trigger > i { color: #fff !important; }
.market-store-public-products { margin: 0 15px 28px; }
.market-store-public-products .market-section-heading { align-items: center; }
.market-store-public-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--market-line); border-radius: 10px; background: var(--market-surface); color: var(--market-muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.market-store-public-empty { margin-top: 4px; }
#page .page-content .market-store-public-banner .market-store-public-copy .market-eyebrow { color: rgba(255,255,255,.78) !important; }
#page .page-content .market-store-public-banner .market-store-public-copy > span,
#page .page-content .market-store-public-banner .market-store-public-description,
#page .page-content .market-store-public-banner .market-store-public-address { color: rgba(255,255,255,.9) !important; }
#page .page-content .market-store-public-banner .market-store-public-copy > span i,
#page .page-content .market-store-public-banner .market-store-public-address i { color: inherit !important; }
body.theme-dark .market-view-store-button { border-color: #456b94; background: #213c5a; color: #c1dcf7 !important; }
body.theme-dark .market-view-store-button > i { color: #9fc5f3; }
body.theme-dark .market-view-store-button:hover, body.theme-dark .market-view-store-button:focus-visible { background: #294c70; }
body.theme-dark .market-product-seller-meta > a.market-product-seller-store { color: var(--market-ink); }
body.theme-dark .market-product-seller-meta > a.market-product-seller-store:hover,
body.theme-dark .market-product-seller-meta > a.market-product-seller-store:focus-visible { color: #b9d6f7; }
body.theme-dark .market-related-hint { border-color: #456b94; background: #213c5a; color: #b9d6f7; }

/* AppKit-inspired product ratings and comments. */
.market-review-card { margin-top: 16px; }
.market-review-card .content { padding: 14px 15px 16px; }
#page .marketplace-product-page .market-review-card > .content { margin-top: 0 !important; }
.market-review-card .market-eyebrow { font-size: 14px; }
.market-review-card h2 { margin: 4px 0 13px; color: var(--market-ink); font-size: 21px; font-weight: 850; line-height: 1.15; }
.market-review-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--market-line); }
.market-review-score { min-width: 0; }
.market-review-score > strong { color: var(--market-ink); font-size: 34px; font-weight: 900; line-height: 1; }
.market-review-score > span:not(.market-rating-stars) { color: var(--market-muted); font-size: 11px; }
.market-review-summary-stars { display: block; margin-top: 7px; font-size: 14px; }
.market-review-score > small { display: block; margin-top: 5px; color: var(--market-muted); font-size: 16px; font-weight: 750; line-height: 1.35; }
.market-review-open-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid #efbd49; border-radius: 10px; background: #fff8e7; color: #9a6816; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.market-review-open-button i { color: #f0b323; }
.market-review-open-button:hover, .market-review-open-button:focus-visible { border-color: #dfa31c; background: #fff1c9; outline: 0; }
.market-review-list { margin-top: 2px; }
.market-review-item { padding: 14px 0 13px; border-bottom: 1px solid var(--market-line); }
.market-review-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.market-review-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.market-review-item-head > div { min-width: 0; }
.market-review-item strong { display: block; color: var(--market-ink); font-size: 13px; font-weight: 800; }
.market-review-item time { flex: 0 0 auto; color: var(--market-muted); font-size: 10px; }
.market-review-stars { display: block; margin-top: 4px; font-size: 11px; }
.market-review-item p { margin: 8px 0 0; color: var(--market-muted); font-size: 12px; line-height: 1.55; }
.market-review-item .market-review-no-comment { font-style: italic; opacity: .82; }
.market-review-empty { margin: 14px 0 1px; padding: 14px 15px; border-radius: 11px; background: var(--market-blue-soft); color: var(--market-muted); font-size: 16px; font-weight: 700; line-height: 1.55; }
.market-related-products { min-width: 0; margin: 19px 15px 27px; }
.market-related-heading { align-items: center; gap: 10px; margin-bottom: 11px; }
.market-related-heading > div { min-width: 0; flex: 1 1 auto; }
.market-related-heading h2 { margin: 3px 0 0; color: var(--market-ink); font-size: 22px; font-weight: 850; line-height: 1.18; overflow-wrap: anywhere; }
.market-related-hint { display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 5px; max-width: min(42%, 150px); min-width: 0; padding: 5px 8px; border: 1px solid var(--market-line); border-radius: 999px; background: var(--market-blue-soft); color: var(--market-blue-dark); font-size: 10px; font-weight: 750; line-height: 1.2; text-align: right; }
.market-related-hint > i { flex: 0 0 auto; color: inherit; font-size: 10px; }
.market-related-hint > span { min-width: 0; }
.market-related-slider { max-width: 100%; margin: 0 -1px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-color: var(--market-blue) transparent; scrollbar-width: thin; }
.market-related-track { display: flex; align-items: stretch; gap: 11px; min-width: max-content; padding: 2px 1px 9px; }
.market-related-track > .market-product-card { flex: 0 0 min(78vw, 250px); min-width: 0; scroll-snap-align: start; }
.market-related-track > .market-product-card .market-product-copy { min-height: 132px; }
.market-review-modal { --market-blue: #2d6bb2; --market-ink: #172333; --market-muted: #69798e; --market-line: #d8e2ed; --market-surface: #fff; position: fixed; z-index: 10000; inset: 0; display: grid; place-items: start center; padding: max(18px, env(safe-area-inset-top)) 15px 18px; color: var(--market-ink); }
.market-review-modal[hidden] { display: none; }
.market-review-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12, 30, 52, .58); cursor: pointer; }
.market-review-dialog { position: relative; z-index: 1; width: min(100%, 450px); margin-top: min(13vh, 105px); padding: 19px 16px 16px; border: 1px solid var(--market-line); border-radius: 19px; background: var(--market-surface) !important; box-shadow: 0 20px 55px rgba(13, 36, 66, .28); color: var(--market-ink) !important; opacity: 1; }
.market-review-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.market-review-dialog h2 { margin: 3px 0 0; color: var(--market-ink); font-size: 25px; font-weight: 850; line-height: 1.15; }
.market-review-close { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; border: 1px solid var(--market-line); border-radius: 9px; background: transparent; color: var(--market-muted); font-size: 14px; cursor: pointer; }
.market-review-close:hover, .market-review-close:focus-visible { border-color: var(--market-blue); color: var(--market-blue); outline: 0; }
.market-review-product-label { margin: 0 0 13px; color: var(--market-muted); font-size: 13px; line-height: 1.5; }
.market-review-login-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 15px; padding: 12px; border: 1px solid #b7d1ee; border-radius: 13px; background: linear-gradient(135deg, #edf6ff 0%, #e1effd 100%); color: #1f4f84; }
.market-review-login-notice-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--market-blue); color: #fff; font-size: 14px; }
.market-review-login-notice-copy { min-width: 0; flex: 1 1 auto; }
.market-review-login-notice-copy strong { display: block; color: #173f6c; font-size: 14px; font-weight: 900; line-height: 1.3; }
.market-review-login-notice-copy p { margin: 4px 0 10px; color: #315d89; font-size: 12px; font-weight: 700; line-height: 1.45; }
.market-review-login-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 12px; border-radius: 8px; background: #b42331 !important; color: #fff !important; font-size: 12px; font-weight: 900; line-height: 1; }
.market-review-login-link:hover, .market-review-login-link:focus-visible { background: #8f1f2d !important; color: #fff !important; outline: 3px solid rgba(180,35,49,.22); outline-offset: 1px; }
.market-review-picker { display: flex; align-items: center; gap: 8px; }
.market-review-star-button { display: grid; width: 39px; height: 39px; place-items: center; padding: 0; border: 1px solid #f1d58f; border-radius: 11px; background: #fffaf0; color: #e5c06d; font-size: 19px; cursor: pointer; transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease; }
.market-review-star-button:hover, .market-review-star-button:focus-visible, .market-review-star-button.is-selected { border-color: #e1ab2f; background: #fff1c9; color: #f0b323; outline: 0; transform: translateY(-1px); }
.market-review-rating-label { min-height: 17px; margin: 8px 0 13px; color: #a16c16; font-size: 12px; font-weight: 800; }
.market-review-comment-field { display: block; }
.market-review-comment-field > span { display: block; margin-bottom: 5px; color: var(--market-ink); font-size: 13px; font-weight: 800; }
.market-review-comment-field > span small { color: var(--market-muted); font-size: 11px; font-weight: 600; }
.market-review-comment-field textarea { display: block; width: 100%; min-height: 96px; box-sizing: border-box; padding: 10px 11px; resize: vertical; border: 1px solid var(--market-line); border-radius: 10px; outline: 0; background: var(--market-surface); color: var(--market-ink); font: inherit; font-size: 13px; line-height: 1.5; }
.market-review-comment-field textarea:focus { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }
.market-review-status { min-height: 18px; margin: 8px 0 0; color: var(--market-muted); font-size: 12px; line-height: 1.45; }
.market-review-status.is-error { color: #ad3843; }
.market-review-status.is-success { color: #267842; }
.market-review-status.is-login { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 10px 11px; border: 1px solid #b7d1ee; border-radius: 10px; background: #edf6ff; color: #24598d; font-weight: 700; }
.market-review-status.is-login .market-review-status-message { color: #173f6c; font-weight: 900; }
.market-review-status a { color: var(--market-blue); font-weight: 800; text-decoration: underline; }
.market-review-status.is-login a { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 7px; background: #b42331 !important; color: #fff !important; font-size: 12px; font-weight: 900; text-decoration: none; }
.market-review-status.is-login a:hover, .market-review-status.is-login a:focus-visible { background: #8f1f2d !important; color: #fff !important; outline: 3px solid rgba(180,35,49,.22); outline-offset: 1px; }
.market-review-actions { display: flex; gap: 9px; margin-top: 13px; }
.market-review-actions button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-height: 45px; padding: 8px 10px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.market-review-cancel { border: 1px solid var(--market-line); background: transparent; color: var(--market-muted); }
.market-review-submit { border: 0 !important; background: var(--market-blue) !important; color: #fff !important; }
.market-review-submit i, .market-review-submit span { color: #fff !important; }
.market-review-submit:disabled, .market-review-submit.is-loading { cursor: wait; opacity: .78; }
.market-review-submit.is-loading .fa-spinner { animation: fa-spin 1s linear infinite; }
body.market-review-open { overflow: hidden; }

/* Product/store forms */
.market-form-card { margin-bottom: 25px; }
.market-form-card .content { padding: 20px 15px; }
.market-form-alert { display: flex; gap: 8px; margin-bottom: 17px; padding: 10px 11px; border: 1px solid #edbec2; border-radius: 10px; background: #fff0f1; color: #9d2933; font-size: 12px; line-height: 1.4; }
.market-form-section-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.market-form-section-title > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--market-blue); color: #fff; font-size: 11px; font-weight: 800; }
.market-form-section-title h2 { margin: 0; color: var(--market-ink); font-size: 17px; font-weight: 800; line-height: 1.2; }
.market-form-section-title p { margin: 3px 0 0; color: var(--market-muted); font-size: 11px; line-height: 1.35; }
.market-form-section-gap { margin-top: 24px; }
.market-form-field { display: block; margin: 0 0 14px; }
.market-form-field > span:first-child { display: block; margin-bottom: 5px; color: var(--market-ink); font-size: 12px; font-weight: 700; }
.market-form-field em { color: var(--market-muted); font-size: 10px; font-style: normal; font-weight: 400; }
.market-form-field > input, .market-form-field > select, .market-form-field > textarea { display: block; width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid var(--market-line); border-radius: 10px; outline: 0; background: var(--market-surface); color: var(--market-ink); font: inherit; font-size: 12px; }
.market-form-field > textarea { min-height: 92px; resize: vertical; }
.market-form-field > input:focus, .market-form-field > select:focus, .market-form-field > textarea:focus { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }
.market-money-input { display: flex; align-items: center; min-height: 43px; padding: 0 11px; border: 1px solid var(--market-line); border-radius: 10px; background: var(--market-surface); }
.market-money-input:focus-within { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }
.market-money-input b { margin-right: 8px; color: var(--market-blue); font-size: 12px; }
.market-money-input input { width: 100%; min-width: 0; height: 41px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--market-ink); font: inherit; font-size: 12px; }
.market-form-error { display: block; margin-top: 4px; color: #b3313d; font-size: 10px; font-weight: 600; }
.market-form-error-block { margin-top: 8px; }
.market-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 130px; padding: 18px; border: 1px dashed #7ba6d5; border-radius: 12px; background: #f2f7fd; color: var(--market-blue-dark); text-align: center; cursor: pointer; }
.market-upload-zone:hover, .market-upload-zone:focus-within { border-color: var(--market-blue); background: #eaf3ff; }
.market-upload-zone i { margin-bottom: 7px; font-size: 25px; }
.market-upload-zone strong { font-size: 13px; }
.market-upload-zone span { margin-top: 4px; color: var(--market-muted); font-size: 10px; }
.market-upload-zone-small { min-height: 105px; }
.market-upload-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.market-upload-actions .market-upload-zone { min-height: 122px; padding: 16px 12px; }
.market-upload-actions .market-upload-zone.is-camera { border-style: solid; background: #e8f2ff; }
.market-upload-actions .market-upload-zone.is-camera i { color: #fff; }
.market-upload-actions .market-upload-zone.is-camera > i { display: grid; width: 48px; height: 48px; margin-bottom: 10px; place-items: center; border-radius: 15px; background: var(--market-blue); font-size: 20px; box-shadow: 0 8px 18px rgba(45,107,178,.2); }
.market-upload-help { margin: 10px 0 0; color: var(--market-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.market-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.market-image-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.market-image-preview > span { grid-column: 1 / -1; color: var(--market-muted); font-size: 10px; }
.market-image-preview figure { position: relative; height: 72px; margin: 0; overflow: hidden; border-radius: 8px; background: var(--market-blue-soft); }
.market-image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-image-preview figure::after { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; content: attr(data-index); font-size: 8px; }
.market-logo-preview { display: grid; width: 84px; height: 84px; margin-top: 10px; place-items: center; overflow: hidden; border: 1px solid var(--market-line); border-radius: 14px; background: var(--market-blue-soft); color: var(--market-muted); font-size: 9px; text-align: center; }
.market-logo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market-form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-form-actions { display: flex; gap: 9px; margin-top: 22px; }
.market-form-actions .btn { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-height: 43px; margin: 0; font-size: 11px; font-weight: 800; }
.market-form-cancel { border: 1px solid var(--market-line); background: #f4f7fa; color: var(--market-muted) !important; }
.market-form-submit { border: 0; background: var(--market-blue); color: #fff !important; }
.market-form-field { position: static !important; }
.market-form-field > input, .market-form-field > select, .market-form-field > textarea { position: static !important; }

/* Tokoku seller workspace */
.market-store-summary-card { margin: 0 15px 23px; }
.market-store-summary-card .content { padding: 17px 15px 15px; }
.market-tokoku-store-head { display: flex; align-items: flex-start; gap: 11px; }
.market-tokoku-store-icon { display: grid; flex: 0 0 45px; width: 45px; height: 45px; place-items: center; border-radius: 13px; background: var(--market-blue-soft); color: var(--market-blue); font-size: 19px; }
.market-tokoku-store-head > div { min-width: 0; flex: 1 1 auto; }
.market-tokoku-store-head h2 { margin: 3px 0 3px; color: var(--market-ink); font-size: 19px; font-weight: 850; line-height: 1.15; }
.market-tokoku-store-head p:last-child { margin: 0; color: var(--market-muted); font-size: 11px; line-height: 1.4; }
.market-tokoku-edit { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid var(--market-line); border-radius: 10px; color: var(--market-blue); font-size: 12px; }
.market-tokoku-contact-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 13px 0 0 56px; color: var(--market-muted); font-size: 10px; }
.market-tokoku-contact-row span { display: inline-flex; align-items: center; gap: 4px; }
.market-tokoku-contact-row i { color: var(--market-blue); }
.market-tokoku-products { margin: 0 15px 28px; }
.market-tokoku-products .market-section-heading { align-items: center; }
.market-tokoku-add { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 7px 10px; border-radius: 9px; background: var(--market-blue); color: #fff; font-size: 10px; font-weight: 800; }
.market-tokoku-grid { gap: 12px 10px; }
.market-tokoku-product-card { position: relative; }
.market-tokoku-product-link { display: block; color: inherit; }
.market-tokoku-product-card .market-product-copy { min-height: 91px; padding: 9px 10px 7px; }
.market-tokoku-product-card .market-product-name { min-height: 0; font-size: 13px; }
.market-tokoku-product-card .market-product-price { margin-top: 6px; font-size: 14px; }
.market-tokoku-status { display: inline-block; margin-top: 5px; padding: 3px 5px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.market-tokoku-status.status-published { background: #e4f5eb; color: #247843; }
.market-tokoku-status.status-draft { background: #fff2d8; color: #9a6816; }
.market-tokoku-status.status-archived { background: #edf0f3; color: #677484; }
.market-tokoku-product-actions { display: flex; align-items: center; border-top: 1px solid var(--market-line); }
.market-tokoku-product-actions a, .market-tokoku-product-actions button { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 32px; padding: 5px 3px; border: 0; background: transparent; color: var(--market-blue-dark); font: inherit; font-size: 9px; font-weight: 800; text-align: center; }
.market-tokoku-product-actions form { display: flex; flex: 1 1 0; min-width: 0; }
.market-tokoku-product-actions button { color: #a14c55; cursor: pointer; }

/* Readability refinements for the seller workspace and product form. */
.marketplace-tokoku-page .market-tokoku-store-head .market-eyebrow { font-size: 14px; line-height: 1.35; }
.marketplace-tokoku-page .market-tokoku-store-head h2 { font-size: 22px; line-height: 1.2; }
.marketplace-tokoku-page .market-tokoku-store-head p:last-child { font-size: 13px; line-height: 1.45; }
.marketplace-tokoku-page .market-tokoku-edit { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
.marketplace-tokoku-page .market-tokoku-contact-row { font-size: 12px; }
.marketplace-tokoku-page .market-tokoku-add { font-size: 12px; }
.marketplace-tokoku-page .market-tokoku-product-actions a,
.marketplace-tokoku-page .market-tokoku-product-actions button { min-height: 38px; padding: 7px 4px; font-size: 12px; line-height: 1.25; }
.marketplace-form-page .market-form-section-title h2 { font-size: 20px; line-height: 1.25; }
.marketplace-form-page .market-form-section-title p { font-size: 13px; line-height: 1.45; }
.marketplace-form-page .market-form-field > span:first-child { font-size: 14px; }
.marketplace-form-page .market-form-field em { font-size: 12px; }
.marketplace-form-page .market-form-field > input,
.marketplace-form-page .market-form-field > select,
.marketplace-form-page .market-form-field > textarea { min-height: 48px; font-size: 15px; line-height: 1.45; }
.marketplace-form-page .market-money-input { min-height: 48px; }
.marketplace-form-page .market-money-input b { font-size: 14px; }
.marketplace-form-page .market-money-input input { height: 46px; font-size: 15px; }
#page .marketplace-form-page .market-form-field > input::placeholder,
#page .marketplace-form-page .market-money-input input::placeholder,
#page .marketplace-form-page .market-form-field > textarea::placeholder { font-size: 16px !important; line-height: 1.45; opacity: 1; }
#page .marketplace-form-page .market-form-help {
  display: block;
  margin-top: 5px;
  color: var(--market-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35;
}
body.theme-dark #page .page-content .marketplace-form-page .market-form-help { color: #b9c8d8 !important; }
.marketplace-form-page .market-form-submit .fa-spinner { color: #fff !important; }
.marketplace-form-page .market-form-error { font-size: 12px; }
.marketplace-form-page .market-upload-zone strong { font-size: 15px; }
.marketplace-form-page .market-upload-zone span { font-size: 12px; line-height: 1.4; }
.marketplace-form-page .market-image-preview > span { font-size: 12px; }
.marketplace-form-page .market-form-actions .btn { min-height: 48px; font-size: 14px; }

/* Store contacts are frequently checked while typing on a phone. Keep their
 * value text comfortably legible and above iOS' auto-zoom threshold. */
.marketplace-store-page #market-store-name,
.marketplace-store-page #market-store-whatsapp,
.marketplace-store-page #market-store-phone {
  min-height: 54px;
  font-size: 18px;
  line-height: 1.35;
}
.marketplace-store-page #market-store-whatsapp,
.marketplace-store-page #market-store-phone { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Keep the Tokoku and store-identity headers compact on small screens.  The
 * copy can still wrap naturally when a village or store name is long. */
.marketplace-tokoku-page > .market-hero,
.marketplace-store-page > .market-hero {
  min-height: 96px;
  margin-bottom: 14px;
  padding: 14px 17px;
  gap: 12px;
}
.marketplace-tokoku-page > .market-hero .market-hero-copy h1,
.marketplace-store-page > .market-hero .market-hero-copy h1 {
  margin: 1px 0 3px;
  font-size: 26px;
  line-height: 1.08;
}
.marketplace-tokoku-page > .market-hero .market-hero-copy > span,
.marketplace-store-page > .market-hero .market-hero-copy > span {
  font-size: 13px;
  line-height: 1.3;
}
.marketplace-tokoku-page > .market-hero .market-hero-icon,
.marketplace-store-page > .market-hero .market-hero-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
}

/* The identity summary should show the useful contact details without a
 * large empty band between the heading and the first product. */
.marketplace-tokoku-page .market-store-summary-card { margin-bottom: 18px; }
.marketplace-tokoku-page .market-store-summary-card .content { padding: 13px 14px 12px; }
.marketplace-tokoku-page .market-tokoku-store-head { gap: 8px; }
.marketplace-tokoku-page .market-tokoku-store-head .market-eyebrow { font-size: 12px; line-height: 1.2; }
.marketplace-tokoku-page .market-tokoku-store-head h2 { margin: 2px 0 2px; font-size: 20px; line-height: 1.12; }
.marketplace-tokoku-page .market-tokoku-store-head p:last-child { font-size: 13px; line-height: 1.3; }
.marketplace-tokoku-page .market-tokoku-edit { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.marketplace-tokoku-page .market-tokoku-contact-row {
  gap: 5px 12px;
  margin: 8px 0 0 53px;
  font-size: 14px;
  line-height: 1.3;
}
.marketplace-tokoku-page .market-tokoku-contact-row span { min-width: 0; overflow-wrap: anywhere; }
.marketplace-tokoku-page .market-tokoku-contact-row i { flex: 0 0 auto; }

/* Store form: helper text is easier to read than a disappearing placeholder,
 * and all editable values use the same comfortable phone-sized type. */
.marketplace-store-page .market-form-card .content { padding-top: 15px; padding-bottom: 16px; }
.marketplace-store-page .market-form-section-title { margin-bottom: 13px; }
.marketplace-store-page .market-form-field { margin-bottom: 11px; }
.marketplace-store-page .market-form-field > input,
.marketplace-store-page .market-form-field > select,
.marketplace-store-page .market-form-field > textarea {
  min-height: 54px;
  font-size: clamp(16px, 4.6vw, 18px);
  line-height: 1.4;
}
.marketplace-store-page .market-form-field > textarea { min-height: 112px; }
#page .marketplace-store-page .market-form-help {
  display: block;
  margin-top: 5px;
  color: var(--market-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35;
}
body.theme-light #page .page-content .marketplace-store-page .market-form-help { color: var(--market-muted) !important; }
body.theme-dark #page .page-content .marketplace-store-page .market-form-help { color: #b9c8d8 !important; }
.marketplace-store-page .market-form-error { margin-top: 4px; }
.marketplace-store-page .market-form-two-col { gap: 9px; }
.marketplace-store-page .market-form-actions { margin-top: 17px; }

.market-product-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 18px 0 4px;
  padding: 13px 14px;
  border: 1px solid #b9cde4;
  border-radius: 13px;
  background: #eef5fd;
  color: var(--market-ink);
  cursor: pointer;
}
.market-product-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: auto !important;
  accent-color: var(--market-blue);
  cursor: pointer;
}
.market-product-consent > span { min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.5; }
.market-product-consent > span label { cursor: pointer; }
.market-product-consent a { color: var(--market-blue-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.market-product-consent:focus-within { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(45,107,178,.12); }

.market-terms-modal[hidden],
.market-terms-loading[hidden],
.market-terms-content[hidden],
.market-terms-error[hidden] { display: none !important; }
.market-terms-modal {
  --market-blue: #2d6bb2;
  --market-blue-dark: #23548f;
  --market-blue-soft: #e8f1fc;
  --market-ink: #172333;
  --market-muted: #69798e;
  --market-line: #d8e2ed;
  --market-surface: #fff;
  position: fixed;
  z-index: 100010;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}
.market-terms-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14,23,34,.64);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.market-terms-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 620px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: 22px;
  background: var(--market-surface);
  color: var(--market-ink);
  box-shadow: 0 24px 70px rgba(10,24,40,.3);
}
.market-terms-dialog-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.market-terms-dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--market-blue-soft);
  color: var(--market-blue-dark);
  font-size: 18px;
}
.market-terms-dialog-head > div { min-width: 0; }
.market-terms-dialog-head p {
  margin: 0 0 2px;
  color: var(--market-blue-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}
.market-terms-dialog-head h2 {
  margin: 0;
  color: var(--market-ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.25;
}
.market-terms-close {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--market-line);
  border-radius: 12px;
  background: var(--market-page, #eef3f5);
  color: var(--market-ink);
  cursor: pointer;
}
.market-terms-dialog-description {
  margin: 0;
  padding: 0 16px 14px 74px;
  border-bottom: 1px solid var(--market-line);
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.45;
}
.market-terms-dialog-scroll {
  min-height: 200px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}
.market-terms-loading {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--market-muted);
  font-size: 14px;
  font-weight: 700;
}
.market-terms-loading i { color: var(--market-blue-dark); font-size: 18px; }
.market-terms-content { color: var(--market-muted); font-size: 14px; line-height: 1.65; }
.market-terms-content p { margin: 0 0 14px; color: inherit; font-size: inherit; line-height: inherit; }
.market-terms-content p:last-child { margin-bottom: 0; }
.market-terms-content ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 20px; }
.market-terms-content li { color: inherit; font-size: inherit; line-height: inherit; }
.market-terms-error {
  min-height: 230px;
  padding: 34px 18px;
  text-align: center;
  color: #a63743;
}
.market-terms-error > i { font-size: 25px; }
.market-terms-error p { margin: 9px 0 14px; color: inherit; font-size: 14px; line-height: 1.5; }
.market-terms-error button,
.market-terms-dialog-footer button {
  min-height: 44px;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--market-blue-dark);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.market-terms-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 11px 16px;
  border-top: 1px solid var(--market-line);
}
body.market-terms-open { overflow: hidden; }

body.theme-dark .market-tokoku-status.status-published { background: #214c35; color: #a5e0b8; }
body.theme-dark .market-tokoku-status.status-draft { background: #55451f; color: #f3d58b; }
body.theme-dark .market-tokoku-status.status-archived { background: #33404d; color: #b9c5d0; }

#page .community-v22-quick-card.is-marketplace .community-v22-quick-card-icon { color: #2d6bb2 !important; }
body.theme-dark #page .community-v22-quick-card.is-marketplace .community-v22-quick-card-icon { color: #8dbaf0 !important; }

body.theme-dark .marketplace-page { --market-surface: #1c2733; --market-ink: #f2f6fa; --market-muted: #aebdca; --market-line: #354858; --market-blue-soft: #213c5a; }
body.theme-dark .market-product-row, body.theme-dark .market-filter-card, body.theme-dark .market-form-card, body.theme-dark .market-empty-state { background: var(--market-surface); }
body.theme-dark .market-section-heading h2, body.theme-dark .market-product-name, body.theme-dark .market-form-section-title h2, body.theme-dark .market-form-field > span:first-child, body.theme-dark .market-product-info-card h1 { color: var(--market-ink); }
body.theme-dark .market-input-wrap input, body.theme-dark .market-input-wrap select, body.theme-dark .market-form-field > input, body.theme-dark .market-form-field > select, body.theme-dark .market-form-field > textarea, body.theme-dark .market-money-input input { color: var(--market-ink); }
body.theme-dark .market-upload-zone { border-color: #4b77a7; background: #1c3552; }
body.theme-dark .market-upload-actions .market-upload-zone.is-camera { background: #203f61; }
body.theme-dark .market-form-alert { border-color: #704047; background: #46282d; color: #f4a1aa; }
body.theme-dark .market-form-cancel { background: #22303b; }
body.theme-dark .market-product-consent { border-color: #456b94; background: #203b59; color: #e6f2ff; }
body.theme-dark .market-product-consent a { color: #a9cff8; }
body.theme-dark .market-terms-modal { --market-surface: #1c2733; --market-ink: #edf3fa; --market-muted: #aab8c7; --market-line: #405263; --market-blue-soft: #213c5a; --market-blue-dark: #a9cff8; }
body.theme-dark .market-terms-close { background: #283643; color: #edf3fa; }
body.theme-dark .market-search-trigger { background: #213c5a; color: #9fc5f3; }
body.theme-dark .market-search-trigger:hover, body.theme-dark .market-search-trigger:focus-visible { background: #294c70; }
body.theme-dark .market-search-dialog { background: var(--market-surface); color: var(--market-ink); }
body.theme-dark .market-search-dialog h2, body.theme-dark .market-filter-status strong { color: var(--market-ink); }
body.theme-dark .market-inline-search-field { background: var(--market-surface); color: #9fc5f3; }
body.theme-dark .market-inline-search-field input { color: var(--market-ink); }
body.theme-dark .market-inline-search-composer { background: var(--market-surface); }
body.theme-dark .market-inline-search-field input::placeholder { color: #ff9eab; }
body.theme-dark #page .marketplace-page .market-inline-search-field input::placeholder { color: #ff9eab !important; }
body.theme-dark .market-inline-search-clear { border-left-color: rgba(255,255,255,.18); background: #c9475a; }
body.theme-dark .market-inline-search-clear:hover, body.theme-dark .market-inline-search-clear:focus-visible { background: #ad3549; }
body.theme-dark .market-category-chip { color: var(--market-muted); }
body.theme-dark .market-category-chip.is-active { color: #b8d8fa; }
body.theme-dark .market-category-chip-icon { border-color: #4b6b8c; background: #23496d; color: #c2e0ff; }
body.theme-dark .market-category-chip[data-market-category-slug="semua-produk"] .market-category-chip-icon { background: #214d79; color: #c7e5ff; }
body.theme-dark .market-category-chip[data-market-category-slug="makanan-minuman"] .market-category-chip-icon { background: #613b2b; color: #ffc095; }
body.theme-dark .market-category-chip[data-market-category-slug="hasil-tani"] .market-category-chip-icon { background: #245238; color: #a9e2b5; }
body.theme-dark .market-category-chip[data-market-category-slug="kerajinan"] .market-category-chip-icon { background: #4b3769; color: #dec6ff; }
body.theme-dark .market-category-chip-all .market-category-chip-icon { background: #354756; color: #d3e2ee; }
body.theme-dark .market-category-chip.is-active[data-market-category-slug] .market-category-chip-icon { background: var(--market-blue); color: #fff; }
body.theme-dark #page .marketplace-page .market-category-chip-icon { color: #c2e0ff !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="semua-produk"] .market-category-chip-icon { color: #c7e5ff !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="makanan-minuman"] .market-category-chip-icon { color: #ffc095 !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="hasil-tani"] .market-category-chip-icon { color: #a9e2b5 !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="kerajinan"] .market-category-chip-icon { color: #dec6ff !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="jasa"] .market-category-chip-icon { color: #c7e5ff !important; }
body.theme-dark #page .marketplace-page .market-category-chip[data-market-category-slug="peternakan-perikanan"] .market-category-chip-icon { color: #a4e1e8 !important; }
body.theme-dark #page .marketplace-page .market-category-chip-all .market-category-chip-icon { color: #d3e2ee !important; }
body.theme-dark #page .marketplace-page .market-category-chip-icon > i { color: inherit !important; }
body.theme-dark #page .marketplace-page .market-category-chip.is-active .market-category-chip-icon,
body.theme-dark #page .marketplace-page .market-category-chip.is-active .market-category-chip-icon > i { color: #fff !important; }
body.theme-dark .market-category-dialog { background: var(--market-surface); color: var(--market-ink); }
body.theme-dark .market-category-dialog-head h2 { color: var(--market-ink); }
body.theme-dark .market-all-category-item { background: var(--market-surface); color: var(--market-ink); }
body.theme-dark .market-all-category-item:hover, body.theme-dark .market-all-category-item:focus-visible, body.theme-dark .market-all-category-item[aria-pressed="true"] { background: var(--market-blue-soft); }
body.theme-dark .market-all-category-icon { background: var(--market-blue-soft); color: #a9cff8; }
body.theme-dark #page .marketplace-page .market-all-category-icon { background: #23496d; color: #c2e0ff !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="makanan-minuman"] .market-all-category-icon { background: #613b2b; color: #ffc095 !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="hasil-tani"] .market-all-category-icon { background: #245238; color: #a9e2b5 !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="peternakan-perikanan"] .market-all-category-icon { background: #1f525b; color: #a4e1e8 !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="kerajinan"] .market-all-category-icon { background: #4b3769; color: #dec6ff !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="pakaian-aksesori"] .market-all-category-icon { background: #633752; color: #f4b9dc !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="jasa"] .market-all-category-icon { background: #214d79; color: #c7e5ff !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="kebutuhan-rumah-tangga"] .market-all-category-icon { background: #5d4b24; color: #f5d98d !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="elektronik-aksesori"] .market-all-category-icon { background: #343e72; color: #c3ceff !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="peralatan-bahan-bangunan"] .market-all-category-icon { background: #5d4027; color: #edc19a !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="pendidikan-buku"] .market-all-category-icon { background: #245553; color: #a8e1dc !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="tanaman-bibit"] .market-all-category-icon { background: #3d5727; color: #c4e69d !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="otomotif-suku-cadang"] .market-all-category-icon { background: #653039; color: #f2abb4 !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="perawatan-pribadi"] .market-all-category-icon { background: #63374d; color: #f1b5d0 !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[data-market-category-slug="lainnya"] .market-all-category-icon { background: #354756; color: #d3e2ee !important; }
body.theme-dark #page .marketplace-page .market-all-category-icon > i { color: inherit !important; }
body.theme-dark #page .marketplace-page .market-all-category-item[aria-pressed="true"] .market-all-category-icon,
body.theme-dark #page .marketplace-page .market-all-category-item[aria-pressed="true"] .market-all-category-icon > i { background: var(--market-blue); color: #fff !important; }
body.theme-dark .market-category-error button { border-color: #704047; background: #46282d; color: #f4a1aa; }
body.theme-dark .market-product-skeleton-media, body.theme-dark .market-product-skeleton-line { background: linear-gradient(110deg, #213c5a 25%, #2b4054 37%, #213c5a 63%); background-size: 400% 100%; }
body.theme-dark .market-contact-modal { --market-ink: #edf3fa; --market-muted: #aab8c7; --market-line: #405263; --market-blue-soft: #213c5a; --market-surface: #1c2733; }
body.theme-dark .market-contact-dialog, body.theme-dark .market-contact-close { background: var(--market-surface) !important; color: var(--market-ink) !important; }
body.theme-dark .market-contact-dialog h2, body.theme-dark .market-contact-seller-copy strong { color: var(--market-ink); }
body.theme-dark .market-contact-option.is-disabled { border-color: #405263; background: #283643; }
body.theme-dark .market-contact-option.is-disabled .market-contact-option-icon { background: #354656; }
body.theme-dark #page .market-contact-option.is-disabled strong, body.theme-dark #page .market-contact-option.is-disabled small, body.theme-dark #page .market-contact-option.is-disabled i { color: #9cabb9 !important; }
body.theme-dark .market-review-modal { --market-ink: #edf3fa; --market-muted: #aab8c7; --market-line: #405263; --market-surface: #1c2733; }

@media (max-width: 360px) {
  .market-upload-actions { grid-template-columns: minmax(0, 1fr); }
  .market-upload-actions .market-upload-zone { min-height: 108px; }
  .market-terms-modal { padding: 8px; }
  .market-terms-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .market-terms-dialog-head { grid-template-columns: 42px minmax(0, 1fr) 38px; gap: 9px; padding: 13px 12px 10px; }
  .market-terms-dialog-icon { width: 42px; height: 42px; }
  .market-terms-dialog-head h2 { font-size: 18px; }
  .market-terms-dialog-description { padding: 0 12px 12px 63px; font-size: 12px; }
  .market-terms-dialog-scroll { padding: 15px 13px; }
  .market-terms-content { font-size: 13px; }
}
body.theme-dark .market-review-card, body.theme-dark .market-review-dialog { background: var(--market-surface) !important; color: var(--market-ink) !important; }
body.theme-dark .market-review-card h2, body.theme-dark .market-review-score > strong, body.theme-dark .market-review-item strong, body.theme-dark .market-review-dialog h2, body.theme-dark .market-review-comment-field > span { color: var(--market-ink); }
body.theme-dark .market-review-open-button { background: #4c3b1e; color: #f4d58d; }
body.theme-dark .market-review-star-button { background: #3c3425; border-color: #7e6730; }
body.theme-dark .market-review-star-button:hover, body.theme-dark .market-review-star-button:focus-visible, body.theme-dark .market-review-star-button.is-selected { background: #5a4822; }
body.theme-dark .market-review-comment-field textarea { background: var(--market-surface); color: var(--market-ink); }
body.theme-dark .market-review-cancel { background: #22303b; }
body.theme-dark .market-review-login-notice, body.theme-dark .market-review-status.is-login { border-color: #456b94; background: #203b59; color: #c1dcf7; }
body.theme-dark .market-review-login-notice-copy strong, body.theme-dark .market-review-status.is-login .market-review-status-message { color: #e6f2ff; }
body.theme-dark .market-review-login-notice-copy p { color: #c1dcf7; }

@media (max-width: 560px) {
  .market-search-filter-grid { gap: 7px; }
  .market-products-heading .market-result-note { display: none; }
  .market-search-dialog { margin-top: 10vh; }
  .market-category-dialog { max-height: min(82vh, 620px); max-height: min(82dvh, 620px); margin-top: 6vh; }
  .market-all-category-list { gap: 8px; }
  .market-all-category-item { padding: 9px 8px; }
  .market-all-category-label { font-size: 11px; }
  .market-store-public-banner { margin-right: 14px; margin-left: 14px; padding: 19px 16px 16px; border-radius: 18px; }
  .market-store-public-icon { flex-basis: 51px; width: 51px; height: 51px; border-radius: 15px; font-size: 21px; }
  .market-store-public-copy h1 { font-size: 23px; }
  .market-store-public-copy > span { font-size: 13px; }
  .market-store-public-description { margin-top: 13px; font-size: 14px; }
  .market-store-public-address { font-size: 12px; }
  .market-store-public-products { margin-right: 14px; margin-left: 14px; }
  .market-store-public-products .market-section-heading { gap: 8px; }
  .market-store-public-products .market-section-heading h2 { font-size: 20px; }
  .market-store-public-count { padding: 6px 8px; font-size: 11px; }
  .market-product-row { grid-template-columns: 96px minmax(0, 1fr) 13px; gap: 10px; min-height: 118px; padding: 8px; }
  .market-product-media { width: 96px; height: 96px; }
  .market-product-name { font-size: 13px; }
  .market-product-price { font-size: 15px; }
  .market-product-stars { font-size: 9px; }
  .market-result-note { display: none; }
  .market-product-detail-meta { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .market-product-seller-meta { width: 100%; align-items: flex-start; text-align: left; }
  .market-product-seller-meta > span { justify-content: flex-start; }
  .market-contact-dialog { margin-top: 7vh; padding: 18px 15px 15px; }
  .market-review-summary-row { align-items: flex-start; flex-direction: column; }
  .market-review-open-button { width: 100%; }
  .market-related-products { margin-right: 14px; margin-left: 14px; }
  .market-related-heading { gap: 8px; margin-bottom: 10px; }
  .market-related-heading h2 { font-size: 20px; }
  .market-related-hint { max-width: 120px; padding: 5px 7px; font-size: 10px; }
}
@media (max-width: 380px) {
  .market-hero { padding: 20px 17px; }
  .market-hero-copy h1 { font-size: 25px; }
  .market-hero-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .market-inline-search { gap: 6px; }
  .market-inline-search-clear { flex-basis: 39px; width: 39px; }
  .market-category-shortcuts { gap: 3px; }
  .market-category-chip { gap: 4px; padding-right: 0; padding-left: 0; }
  .market-category-chip-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
  .market-category-chip-label { font-size: 8.5px; line-height: 1.15; }
  .market-quick-actions { gap: 7px; }
  .market-action { padding-right: 8px; padding-left: 8px; font-size: 12px; }
  .market-form-two-col { grid-template-columns: 1fr; gap: 0; }
  .market-related-hint { max-width: 98px; padding: 4px 6px; font-size: 9px; }
  .market-related-hint > i { font-size: 9px; }
}

@media (max-width: 340px) {
  .market-category-shortcuts { gap: 2px; }
  .market-category-chip-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  .market-category-chip-label { font-size: 8px; }
}
