:root {
  --market-bg: #f5f7fb;
  --market-surface: #ffffff;
  --market-surface-2: #f8fafc;
  --market-surface-3: #eef4ff;
  --market-panel: var(--market-surface);
  --market-panel-alt: var(--market-surface-2);
  --market-border: #e2e8f0;
  --market-text: #0f172a;
  --market-text-secondary: #334155;
  --market-muted: #64748b;
  --market-primary: #2f6fed;
  --market-primary-strong: #1e4fd8;
  --market-primary-soft: rgba(47, 111, 237, 0.09);
  --market-success: #138a62;
  --market-danger: #d92d20;
  --market-danger-soft: rgba(217, 45, 32, 0.08);
  --market-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --market-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] {
  --market-bg: #0b1220;
  --market-surface: #111827;
  --market-surface-2: #172235;
  --market-surface-3: #1e293b;
  --market-panel: #111827;
  --market-panel-alt: #172235;
  --market-border: rgba(148, 163, 184, 0.18);
  --market-text: #f8fafc;
  --market-text-secondary: #cbd5e1;
  --market-muted: #94a3b8;
  --market-primary: #60a5fa;
  --market-primary-strong: #7ab4ff;
  --market-primary-soft: rgba(96, 165, 250, 0.12);
  --market-success: #39c48b;
  --market-danger: #ff8d7d;
  --market-danger-soft: rgba(255, 141, 125, 0.08);
  --market-shadow: 0 20px 48px rgba(2, 6, 23, 0.42);
  --market-shadow-soft: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.market-create-page {
  padding: 28px 0 48px;
  background: var(--market-bg);
  color: var(--market-text);
}

.market-create-shell {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 18px;
}

.market-create-header {
  margin-bottom: 26px;
}

.market-breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: var(--market-muted);
}

.market-breadcrumbs a,
.market-breadcrumbs span {
  color: inherit;
  text-decoration: none;
}

.market-breadcrumbs a:hover,
.market-breadcrumbs a:focus-visible {
  color: var(--market-text);
}

.market-create-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.market-create-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-badge,
.mini-badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--market-primary-soft);
  color: var(--market-primary);
  border: 1px solid rgba(47, 111, 237, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-create-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2vw + 1.1rem, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--market-text);
}

.market-create-heading p {
  margin: 0;
  color: var(--market-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
}

.market-status-card {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 14px 18px;
  background: var(--market-surface-2);
  border: 1px solid var(--market-border);
  border-radius: 18px;
  box-shadow: var(--market-shadow-soft);
  color: var(--market-text);
}

.market-status-card strong {
  font-size: 0.93rem;
  color: var(--market-text);
}

.status-chip--soft {
  background: rgba(19, 138, 98, 0.08);
  color: var(--market-success);
  border: 1px solid rgba(19, 138, 98, 0.1);
}

.market-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(290px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.market-editor {
  min-width: 0;
}

.create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editor-section,
.panel-card {
  background: var(--market-surface);
  color: var(--market-text);
  border: 1px solid var(--market-border);
  border-radius: 24px;
  box-shadow: var(--market-shadow-soft);
  opacity: 1;
  filter: none;
}

.editor-section {
  padding: 20px 20px 18px;
  position: relative;
}

.editor-section::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.05), rgba(47, 111, 237, 0.14), rgba(47, 111, 237, 0.05));
}

.editor-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-left: 16px;
}

.section-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 42px;
  height: 42px;
  margin-top: 2px;
  border-radius: 12px;
  background: var(--market-primary-soft);
  color: var(--market-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-copy span {
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--market-text);
}

.section-copy small {
  color: var(--market-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-left: 16px;
}

.field-grid--compact {
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--market-text);
}

.input-shell,
.textarea-shell,
.file-input-shell,
.price-shell {
  position: relative;
  width: 100%;
  background: var(--market-surface-2);
  border: 1px solid var(--market-border);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.input-shell:focus-within,
.textarea-shell:focus-within,
.file-input-shell:focus-within,
.price-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.7);
  background: var(--market-surface-3);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.input-shell--error,
.textarea-shell.input-shell--error,
.file-input-shell.input-shell--error,
.price-shell.input-shell--error {
  border-color: rgba(217, 45, 32, 0.4);
  background: var(--market-danger-soft);
}

.create-form input,
.create-form select,
.create-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid var(--market-border);
  border-radius: 16px;
  background: var(--market-surface-2);
  color: var(--market-text);
  font: inherit;
  font-size: 0.97rem;
  line-height: 1.45;
  box-shadow: none;
  opacity: 1;
}

.create-form textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.7;
}

.create-form input::placeholder,
.create-form textarea::placeholder {
  color: #64748b;
}

.create-form input:focus,
.create-form select:focus,
.create-form textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.create-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--market-muted) 50%), linear-gradient(135deg, var(--market-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.price-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.price-input-wrap {
  min-width: 0;
}

.currency-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 100%;
  padding: 0 16px;
  background: rgba(47, 111, 237, 0.06);
  border-left: 1px solid var(--market-border);
  color: var(--market-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.field-inline-checkbox {
  justify-content: flex-end;
  margin-bottom: 8px;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: var(--market-surface-2);
  border: 1px solid var(--market-border);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--market-text);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.checkbox-wrap:hover,
.checkbox-wrap:focus-within {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.04);
}

.checkbox-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--market-primary);
}

.checkbox-text {
  font-size: 0.88rem;
}

.field-hint {
  color: var(--market-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.field-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.char-counter {
  color: var(--market-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.upload-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 18px 18px 18px 20px;
  border: 1.5px dashed rgba(96, 165, 250, 0.4);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.06), rgba(15, 23, 42, 0.02));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: rgba(47, 111, 237, 0.45);
  transform: translateY(-1px);
  background: rgba(47, 111, 237, 0.04);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.06);
}

.upload-graphic {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(47, 111, 237, 0.08);
  color: var(--market-primary);
  flex-shrink: 0;
}

.upload-graphic svg {
  width: 24px;
  height: 24px;
}

.upload-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.upload-copy strong {
  font-size: 1.02rem;
  color: var(--market-text);
}

.upload-copy span {
  color: var(--market-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--market-border);
  background: var(--market-surface-2);
  color: var(--market-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.file-input-shell {
  overflow: hidden;
}

.create-form input[type="file"] {
  min-height: 52px;
  padding: 10px 12px;
  border: none;
  background: transparent;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.preview-item {
  width: 110px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--market-border);
  border-radius: 14px;
  background: var(--market-panel-alt);
  box-shadow: var(--market-shadow-soft);
}

.preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-create-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel-card {
  padding: 18px;
  position: sticky;
  top: 92px;
}

.summary-panel {
  top: 92px;
}

.panel-header-row,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mini-badge--alt {
  background: rgba(47, 111, 237, 0.06);
  color: var(--market-primary);
}

.summary-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(19, 138, 98, 0.08);
  color: var(--market-success);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-media {
  width: 100%;
  aspect-ratio: 1.6;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.06), rgba(15, 23, 42, 0.02));
  border: 1px solid var(--market-border);
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--market-primary);
}

.preview-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.7;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-label {
  color: var(--market-muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-body h3 {
  margin: 0;
  color: var(--market-text);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--market-muted);
}

.preview-price {
  margin-top: 4px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--market-text);
}

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--market-text);
}

.tips-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--market-text);
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--market-primary);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.completion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--market-text);
  font-weight: 700;
}

.progress-meter {
  width: 100%;
  height: 11px;
  background: rgba(47, 111, 237, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--market-primary), #6d9aff);
  transition: width 0.25s ease;
}

.submit-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--market-primary) 0%, var(--market-primary-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(47, 111, 237, 0.22);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.14), 0 14px 26px rgba(47, 111, 237, 0.22);
}

.btn-secondary {
  background: var(--market-panel-alt);
  border-color: var(--market-border);
  color: var(--market-text);
}

.field-errors {
  color: var(--market-danger);
  font-size: 0.76rem;
  line-height: 1.55;
}

.field-errors ul,
.field-errors li,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.errorlist li {
  color: var(--market-danger);
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .market-create-layout {
    grid-template-columns: 1fr;
  }

  .panel-card {
    position: static;
  }

  .market-create-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-status-card {
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .market-create-shell {
    padding: 0 14px;
  }

  .editor-section {
    padding: 18px 16px;
  }

  .editor-section-header,
  .field-grid {
    padding-left: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-inline-checkbox {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .submit-row {
    flex-direction: column-reverse;
  }

  .submit-row .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .market-create-page {
    padding: 18px 0 32px;
  }

  .market-create-shell {
    padding: 0 12px;
  }

  .market-breadcrumbs {
    font-size: 0.7rem;
    gap: 6px;
  }

  .market-create-heading h1 {
    font-size: 1.9rem;
  }

  .market-create-heading p {
    font-size: 0.92rem;
  }

  .section-number {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .editor-section {
    border-radius: 18px;
  }

  .upload-zone {
    gap: 12px;
    padding: 14px 12px;
    min-height: 110px;
  }

  .upload-copy strong {
    font-size: 0.96rem;
  }

  .preview-item {
    width: 96px;
    height: 80px;
  }
}

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

.market-browser,
.market-detail-page {
  min-height: 65vh;
  padding: 34px 0 72px;
  color: var(--text);
}

.market-browser-shell,
.market-detail-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.market-browser-heading,
.market-results-heading,
.market-related-heading,
.market-detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.market-browser-heading { margin-bottom: 24px; }
.market-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #38cbb9; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.market-browser-heading h1 { margin: 9px 0 6px; color: var(--text); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.market-browser-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.market-browser-actions { display: flex; align-items: center; gap: 9px; }
.market-all-listings { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.market-all-listings:hover, .market-all-listings.is-current { border-color: rgba(20,184,166,.34); background: rgba(20,184,166,.08); color: #55d4c3; }
.market-action-button,
.market-search-submit,
.market-filter-submit,
.market-contact-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(110deg, #14b8a6, #4bd3c5);
  color: #061310;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .22s ease, background-color .2s ease;
}
.market-action-button:hover,
.market-search-submit:hover,
.market-filter-submit:hover,
.market-contact-button:hover { transform: translateY(-2px); box-shadow: 0 9px 23px rgba(20,184,166,.17); }
.market-action-button:active,
.market-search-submit:active,
.market-filter-submit:active,
.market-contact-button:active { transform: scale(.98); }

.market-filter-form { margin-bottom: 28px; padding: 16px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-soft); }
.market-search-row { display: flex; gap: 10px; }
.market-search-field { min-width: 0; min-height: 48px; flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); color: var(--muted); }
.market-search-field:focus-within { border-color: rgba(20,184,166,.58); box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.market-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.market-search-submit { min-width: 116px; }
.market-filter-row { display: grid; grid-template-columns: 1.25fr .9fr 1.3fr .8fr .8fr 1fr auto auto; align-items: end; gap: 10px; margin-top: 13px; }
.market-filter-control { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.market-filter-control > span { padding-left: 2px; }
.market-filter-control select,
.market-filter-control input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; outline: 0; background-color: var(--bg-secondary); color: var(--text); font: inherit; font-size: 11px; }
.market-filter-control select:focus,
.market-filter-control input:focus { border-color: rgba(20,184,166,.58); box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.market-filter-submit { min-height: 40px; padding-inline: 12px; font-size: 11px; }
.market-clear-filters { align-self: center; color: var(--muted); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.market-clear-filters:hover { color: #5eead4; }

.market-results-heading { align-items: center; margin-bottom: 14px; }
.market-results-heading h2 { margin: 0; color: var(--text); font-size: 19px; }
.market-results-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.market-page-count { padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 10px; }
.market-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.market-product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 9px 24px rgba(0,0,0,.08); transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease; }
.market-product-card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,.36); box-shadow: var(--shadow-soft), 0 0 16px rgba(20,184,166,.06); }
.market-product-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.market-product-media { position: relative; display: grid; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, rgba(20,184,166,.09), rgba(99,102,241,.1)), var(--bg-secondary); }
.market-product-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease, filter .3s ease; }
.market-product-card:hover .market-product-media > img { transform: scale(1.035); filter: brightness(1.035); }
.market-image-placeholder { display: grid; place-items: center; color: rgba(94,234,212,.65); font-size: 30px; }
.market-product-condition { position: absolute; bottom: 9px; left: 9px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(5,12,19,.72); color: #fff; font-size: 9px; font-weight: 700; backdrop-filter: blur(10px); }
.market-product-status { position: absolute; top: 9px; left: 9px; max-width: calc(100% - 54px); display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(245,158,11,.28); border-radius: 7px; background: rgba(34,24,8,.82); color: #fbbf24; font-size: 8px; font-weight: 750; line-height: 1.3; backdrop-filter: blur(9px); }
.market-product-status.is-approved { border-color: rgba(52,211,153,.26); background: rgba(6,32,25,.84); color: #6ee7b7; }
.market-status-key { display: inline-flex; align-items: center; gap: 6px; color: #e9ad47; font-size: 10px; }
.market-new-results { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.market-product-copy { min-width: 0; padding: 12px 13px 13px; }
.market-product-category { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-product-copy h2 { display: -webkit-box; min-height: 2.75em; margin: 6px 0 8px; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.38; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-product-price { margin: 0; color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.25; }
.market-negotiable { display: inline-block; margin-top: 4px; color: #39bba9; font-size: 9px; font-weight: 700; }
.market-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.market-product-meta > span { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-product-meta > span i { flex: 0 0 auto; color: #40c7b5; }
.market-product-meta time { flex: 0 0 auto; white-space: nowrap; }
.market-product-seller { margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-favorite { color: var(--muted); }
.market-product-card > .market-favorite { position: absolute; top: 9px; right: 9px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(5,12,19,.62); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: transform .2s ease, color .2s ease, background-color .2s ease; }
.market-product-card > .market-favorite:hover { transform: scale(1.06); }
.market-favorite[aria-pressed="true"] { color: #fb7185; }
.market-empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 54px 18px; border: 1px dashed var(--border); border-radius: 15px; color: var(--muted); text-align: center; }
.market-empty-state > i { color: #47caba; font-size: 24px; }
.market-empty-state h2 { margin: 0; color: var(--text); font-size: 17px; }
.market-empty-state p { margin: 0; font-size: 11px; }
.market-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 11px; }
.market-pagination a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 700; text-decoration: none; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.market-pagination a:hover { transform: translateY(-1px); border-color: rgba(20,184,166,.4); background: rgba(20,184,166,.07); }

.market-detail-page { padding-top: 24px; }
.market-detail-breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; }
.market-detail-breadcrumbs a { flex: 0 0 auto; color: inherit; text-decoration: none; }
.market-detail-breadcrumbs a:hover { color: #50d3c1; }
.market-detail-breadcrumbs i { flex: 0 0 auto; font-size: 8px; opacity: .6; }
.market-detail-breadcrumbs > span { overflow: hidden; color: var(--text); text-overflow: ellipsis; }
.market-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; }
.market-detail-main { display: grid; min-width: 0; gap: 17px; }
.market-gallery { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); }
.market-gallery-stage { position: relative; display: grid; aspect-ratio: 16 / 10; min-height: 280px; max-height: 620px; overflow: hidden; background: #080c14; }
.market-gallery-image-button { display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.market-gallery-image-button img { width: 100%; height: 100%; object-fit: contain; }
.market-gallery-arrow, .market-lightbox-arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(5,12,19,.66); color: #fff; cursor: pointer; transform: translateY(-50%); transition: background-color .2s ease, transform .2s ease; }
.market-gallery-arrow:hover, .market-lightbox-arrow:hover { background: rgba(20,184,166,.85); }
.market-gallery-prev, .market-lightbox-prev { left: 12px; }
.market-gallery-next, .market-lightbox-next { right: 12px; }
.market-gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(5,12,19,.7); color: #fff; font-size: 10px; }
.market-gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: thin; }
.market-gallery-thumb { width: 76px; height: 58px; flex: 0 0 auto; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-secondary); opacity: .72; cursor: pointer; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.market-gallery-thumb:hover { transform: translateY(-1px); opacity: 1; }
.market-gallery-thumb.is-active { border-color: #38cbbb; opacity: 1; box-shadow: 0 0 0 2px rgba(20,184,166,.15); }
.market-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.market-detail-placeholder { aspect-ratio: 16 / 10; min-height: 280px; display: grid; align-content: center; justify-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(145deg, rgba(20,184,166,.08), rgba(99,102,241,.08)), var(--surface); color: var(--muted); font-size: 12px; }
.market-detail-placeholder i { color: #52d0c0; font-size: 36px; }
.market-detail-card, .market-seller-panel, .market-safety-panel, .market-report-panel { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.market-description-card { padding: 21px 22px; }
.market-detail-title-row { align-items: flex-start; }
.market-detail-category { color: var(--muted); font-size: 10px; font-weight: 700; }
.market-detail-title-row h1 { margin: 7px 0 0; color: var(--text); font-size: clamp(22px, 2.6vw, 31px); line-height: 1.23; overflow-wrap: anywhere; }
.market-detail-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.market-icon-action { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-secondary); color: var(--text); cursor: pointer; transition: transform .2s ease, color .2s ease, border-color .2s ease, background-color .2s ease; }
.market-icon-action:hover { transform: translateY(-2px); border-color: rgba(20,184,166,.4); color: #4ed2c1; }
.market-detail-actions .market-favorite[aria-pressed="true"] { color: #fb7185; }
.market-detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 16px 0 10px; color: var(--text); font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; }
.market-detail-price > span:first-child { font-size: 13px; font-weight: 650; }
.market-detail-price .market-negotiable { align-self: center; margin: 0 0 0 5px; padding: 5px 8px; border-radius: 7px; background: rgba(20,184,166,.1); font-size: 9px; }
.market-detail-meta { display: flex; flex-wrap: wrap; gap: 9px 17px; color: var(--muted); font-size: 10px; }
.market-detail-meta > span, .market-detail-meta > time { display: inline-flex; align-items: center; gap: 6px; }
.market-detail-meta i { color: #42cbb9; }
.market-detail-divider { height: 1px; margin: 17px 0; background: var(--border); }
.market-description-card > h2 { margin: 0 0 8px; color: var(--text); font-size: 15px; }
.market-description-text { color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.market-attribute-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.market-attribute-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 10px; }
.market-attribute-list span { color: var(--muted); }
.market-attribute-list strong { color: var(--text); font-weight: 650; text-align: right; }
.market-detail-sidebar { position: sticky; top: 96px; display: grid; gap: 12px; }
.market-seller-panel { padding: 18px; }
.market-seller-price { margin: 0 0 3px; color: var(--text); font-size: 27px; font-weight: 800; line-height: 1.2; }
.market-seller-price span { font-size: 12px; font-weight: 650; }
.market-seller-negotiable { display: inline-block; color: #3bc4b3; font-size: 10px; }
.market-seller-identity { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.market-seller-avatar { width: 54px; height: 54px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(45,212,191,.35); border-radius: 16px; object-fit: cover; }
.market-seller-avatar-fallback { display: grid; place-items: center; background: linear-gradient(135deg, rgba(20,184,166,.2), rgba(99,102,241,.22)); color: #68dfd0; font-size: 19px; font-weight: 800; }
.market-seller-label { color: var(--muted); font-size: 9px; }
.market-seller-identity h2 { margin: 2px 0; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.market-seller-since { color: var(--muted); font-size: 9px; }
.market-contact-button, .market-phone-button { width: 100%; min-height: 43px; }
.market-phone-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; border: 1px solid rgba(20,184,166,.3); border-radius: 11px; background: rgba(20,184,166,.08); color: #50d2c0; font-size: 11px; font-weight: 750; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.market-phone-button[hidden] { display: none; }
.market-phone-button:hover { transform: translateY(-1px); background: rgba(20,184,166,.14); }
.market-phone-number { display: block; margin-top: 9px; color: var(--text); font-size: 15px; font-weight: 750; text-align: center; text-decoration: none; }
.market-phone-number[hidden] { display: none; }
.market-no-phone { margin: 11px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.market-seller-location { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.market-seller-location i { color: #46cbbb; }
.market-safety-panel { display: flex; align-items: flex-start; gap: 11px; padding: 15px; }
.market-safety-panel > i { margin-top: 2px; color: #49caba; font-size: 16px; }
.market-safety-panel h2 { margin: 0 0 4px; color: var(--text); font-size: 11px; }
.market-safety-panel p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.market-report-panel { padding: 12px 14px; color: var(--muted); }
.market-report-panel > summary { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.market-report-panel > summary::-webkit-details-marker { display: none; }
.market-report-panel > summary:hover { color: #f87171; }
.market-report-form { display: grid; gap: 7px; margin-top: 13px; }
.market-report-form label { color: var(--text); font-size: 10px; font-weight: 650; }
.market-report-form select, .market-report-form textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-secondary); color: var(--text); font: inherit; font-size: 10px; }
.market-report-form button { min-height: 36px; margin-top: 4px; border: 1px solid rgba(248,113,113,.28); border-radius: 9px; background: rgba(248,113,113,.08); color: #f87171; font-size: 10px; font-weight: 700; cursor: pointer; }
.market-report-panel > p { margin: 11px 0 2px; font-size: 10px; }
.market-report-panel > p a { color: #53d1bf; }
.market-contact-dialog { position: fixed; inset: 0; width: min(460px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 25px; border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(8,14,24,.98)); color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.market-contact-dialog[open] { display: block; animation: contact-dialog-in .2s ease-out both; }
.market-contact-dialog::backdrop { background: rgba(3,8,17,.72); backdrop-filter: blur(9px); }
@keyframes contact-dialog-in { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.market-contact-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.045); color: var(--text); cursor: pointer; }
.market-contact-close:hover { border-color: rgba(20,184,166,.45); color: #5eead4; }
.market-contact-dialog > h2 { margin: 9px 35px 3px 0; color: var(--text); font-size: 21px; overflow-wrap: anywhere; }
.market-contact-intro { margin: 0 0 17px; color: var(--muted); font-size: 10px; }
.market-contact-method { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--border); }
.market-contact-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(20,184,166,.2); border-radius: 11px; background: rgba(20,184,166,.08); color: #59d8c7; }
.market-contact-value { display: grid; min-width: 0; gap: 3px; }
.market-contact-value > span { color: var(--muted); font-size: 9px; }
.market-contact-value > a, .market-contact-value > strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 700; text-decoration: none; }
.market-contact-value > strong { color: var(--muted); font-weight: 500; }
.market-contact-method-action { color: #51d1c0; font-size: 9px; font-weight: 750; text-decoration: none; text-align: right; }
.market-contact-method-action:hover { color: #8bf1e5; }
.market-contact-chat-link { width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 10px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.market-contact-chat-link:hover { border-color: rgba(20,184,166,.36); background: rgba(20,184,166,.07); }
.market-related-section { margin-top: 6px; }
.market-related-heading { align-items: center; margin-bottom: 12px; }
.market-related-heading h2 { margin: 5px 0 0; color: var(--text); font-size: 18px; }
.market-related-heading > a { display: inline-flex; align-items: center; gap: 7px; color: #53d1bf; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.market-related-section .market-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.market-lightbox { position: fixed; inset: 0; width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); height: min(850px, calc(100% - 32px)); padding: 20px 60px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(4,8,14,.97); color: #fff; }
.market-lightbox[open] { display: grid; place-items: center; }
.market-lightbox::backdrop { background: rgba(2,6,12,.84); backdrop-filter: blur(8px); }
.market-lightbox > img { width: 100%; height: 100%; object-fit: contain; }
.market-lightbox-close { position: absolute; top: 11px; right: 11px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.market-lightbox-arrow { top: 50%; }

@media (max-width: 1180px) {
  .market-filter-row { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .market-filter-submit { min-height: 40px; }
  .market-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .market-card-grid, .market-related-section .market-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .market-detail-layout { grid-template-columns: minmax(0,1fr); }
  .market-detail-sidebar { position: static; grid-row: 1; grid-template-columns: minmax(0,1fr) minmax(200px,.7fr); align-items: start; }
  .market-report-panel { grid-column: 1 / -1; }
  .market-related-section .market-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .market-browser, .market-detail-page { padding: 22px 0 48px; }
  .market-browser-shell, .market-detail-shell { width: min(100% - 28px, 560px); }
  .market-browser-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .market-browser-heading h1 { font-size: 29px; }
  .market-browser-actions { width: 100%; }
  .market-browser-actions > a { flex: 1 1 0; }
  .market-filter-form { padding: 11px; }
  .market-filter-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .market-neighborhood-filter, .market-filter-submit { grid-column: 1 / -1; }
  .market-price-filter { grid-column: span 1; }
  .market-clear-filters { justify-self: center; }
  .market-card-grid, .market-related-section .market-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .market-product-copy { padding: 10px; }
  .market-product-copy h2 { font-size: 11px; }
  .market-product-price { font-size: 14px; }
  .market-product-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .market-detail-breadcrumbs { gap: 7px; }
  .market-detail-layout { gap: 13px; }
  .market-detail-main { gap: 13px; }
  .market-gallery-stage { min-height: 210px; }
  .market-description-card { padding: 16px; }
  .market-detail-title-row h1 { font-size: 22px; }
  .market-detail-meta { gap: 8px 12px; }
  .market-detail-sidebar { grid-template-columns: 1fr; }
  .market-safety-panel { grid-column: auto; }
  .market-related-section .market-related-heading h2 { font-size: 15px; }
}
@media (max-width: 380px) {
  .market-card-grid, .market-related-section .market-card-grid { grid-template-columns: 1fr; }
  .market-product-media { aspect-ratio: 16 / 10; }
  .market-product-copy h2 { font-size: 13px; }
  .market-product-meta { align-items: center; flex-direction: row; }
  .market-search-row { flex-direction: column; }
  .market-search-submit { width: 100%; }
  .market-filter-row { grid-template-columns: 1fr; }
  .market-neighborhood-filter, .market-filter-submit, .market-price-filter { grid-column: auto; }
  .market-detail-title-row { flex-direction: column; }
  .market-detail-actions { align-self: flex-end; }
  .market-attribute-list { grid-template-columns: 1fr; }
  .market-lightbox { padding: 48px 42px; }
}
