.market-listing { min-width: 0; overflow: hidden; box-shadow: 0 2px 5px #0d1e3d05; }
.market-listing-media { position: relative; background: #e9eef5; }
.market-listing-media img { display: block; width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.market-badge, .market-heart { position: absolute; top: 5px; display: inline-flex; align-items: center; justify-content: center; }
.market-badge { inset-inline-start: 6px; gap: 3px; padding: 3px 8px; border-radius: 50px; background: #308d0b; color: #fff; font-weight: 700; font-size: .73rem; }
.market-badge.is-featured { background: #e45300; }
.market-badge.is-featured svg { fill: #ffe859; stroke: #ffe859; }
.market-heart { inset-inline-end: 6px; color: white; background: #1721364a; border: 0; border-radius: 50%; width: 35px; height: 35px; }
.market-heart:hover { background: #14213aab; }
.market-heart svg { width: 25px; height: 25px; }
.market-heart[aria-pressed="true"] svg { fill: #e74432; }
.market-listing-body { padding: 5px 11px 7px; }
.market-listing-body h3 { min-height: 1.45em; font-size: clamp(14px, 1.43vw, 21px); line-height: 1.45; overflow-wrap: anywhere; }
.market-listing a:hover h3, .market-listing h3 a:hover { color: var(--market-link); }
.market-car-meta { color: var(--market-muted); min-height: 1.4em; margin: 3px 0; font-size: clamp(10px, 1.02vw, 14px); }
.market-listing-price { display: block; color: #cc4300; font-size: clamp(14px, 1.48vw, 23px); }
.market-seller { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e9edf4; display: flex; align-items: center; gap: 7px; min-width: 0; }
.market-seller i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #edf1f6; color: #6a4326; flex: 0 0 auto; }
.market-seller span { font-size: clamp(10px, 1.08vw, 15px); min-width: 0; overflow-wrap: anywhere; }
.market-seller small { display: block; color: var(--market-muted); font-size: .88em; }
.market-seller small svg { width: 13px; height: 13px; }

.market-listing { --market-muted: #43516a; --market-link: #123080; border: 1px solid #d9dfea; border-radius: 11px; background: linear-gradient(#fff, #f8f9fb); direction: rtl; color: #0c1430; font-family: Vazirmatn, Tahoma, sans-serif; text-align: right; }
.market-listing, .market-listing * { box-sizing: border-box; }
.market-listing h3,.market-listing p { margin: 0; }
.market-listing .market-car-meta { margin-block: 3px; }
.market-listing a { text-decoration: none; color: inherit; }
.market-listing svg { width: 1.25em; height: 1.25em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.market-listing .market-heart { color: #fff; cursor: pointer; padding: 0; }
.market-listing .market-heart svg { width: 25px; height: 25px; }
.market-listing .market-badge.is-featured svg { fill: #ffe859; stroke: #ffe859; }
.market-heart[aria-pressed="true"] svg { fill: #e74432; }
.market-seller .market-card-views { display: inline-flex; gap: 4px; align-self: flex-end; align-items: center; margin-inline-start: auto; flex: 0 0 auto; color: #46536a; }
.market-seller .market-card-views svg { color: #d84400; }
@media (max-width: 370px) {
  .market-listing-body { padding-inline: 6px; }
  .market-listing-media img { aspect-ratio: 1.65; }
  .market-seller i { width: 26px; height: 26px; }
}
.market-gallery-bar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; direction: rtl;
  padding: 8px 5px; max-width: 100%; color: #172443;
}
.market-gallery-bar > span { font-weight: 700; margin-inline-end: 3px; }
.market-gallery-bar > a {
  display: inline-flex; align-items: center; min-height: 37px; padding: 4px 10px;
  border: 1px solid #d7e0eb; border-radius: 8px; background: #fff; text-decoration: none; color: #172443;
}
.market-gallery-bar > a[aria-current] { color: #a43b00; background: #fff1e5; border-color: #ec9a60; font-weight: 700; }
html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.market-gallery-grid {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  grid-auto-rows: auto !important; gap: clamp(8px,1.2vw,16px) !important; align-items: start;
  width: 100% !important; max-width: 100% !important; height: auto !important; padding: 4px !important;
  direction: rtl; overflow: visible !important;
}
.market-gallery-grid > .market-listing { min-width: 0; width: 100%; line-height: 1.55; }
.market-gallery-grid .market-listing-body h3 { font-size: clamp(14px,1.3vw,20px); }
.market-status:empty { display: none; }
@media (max-width: 1020px) {
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.market-gallery-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width: 700px) {
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.market-gallery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important; padding: 3px 0 !important;
  }
}
