/*
 * RizeDijital Yerel Pazar — v0.36.4
 * Bağımsız modül sınıf öneki: market-
 */

:root {
  --market-green: #137a4a;
  --market-green-dark: #083f2a;
  --market-green-soft: #eaf7ef;
  --market-line: rgba(13, 74, 40, 0.13);
  --market-shadow: 0 18px 48px rgba(13, 74, 40, 0.08);
  --market-shadow-hover: 0 24px 58px rgba(13, 74, 40, 0.14);
}

.market-page,
.market-detail-page {
  min-width: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 2%, rgba(31, 157, 91, 0.07), transparent 25%),
    linear-gradient(180deg, rgba(241, 249, 245, 0.72), transparent 430px),
    var(--bg);
}

.market-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 76px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.market-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 88px;
}

.market-side-card,
.market-side-cta,
.market-filter-card,
.market-benefits,
.market-section,
.market-safety,
.market-detail-header,
.market-gallery,
.market-detail-card,
.market-price-card,
.market-seller-card,
.market-share-card,
.market-safety-card,
.market-member-hero,
.market-member-stats,
.market-member-card,
.market-form-hero,
.market-form-section,
.market-submit-card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--market-shadow);
}

.market-side-card {
  padding: 17px;
  border-radius: 18px;
}

.market-side-title,
.market-detail-card-head,
.market-form-section > header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.market-side-title > span,
.market-detail-card-head > span,
.market-form-section > header > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 15px;
}

.market-side-title small,
.market-detail-card-head small,
.market-form-section > header small,
.market-member-kicker,
.market-section-head > div > span,
.market-form-hero > div > span {
  display: block;
  color: var(--market-green);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.market-side-title h2,
.market-detail-card-head h2,
.market-form-section > header h2 {
  margin: 2px 0 0;
  font: 900 15px "Poppins", sans-serif;
}

.market-category-list {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.market-category-list a {
  min-height: 38px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 10px;
  color: var(--text2);
  text-decoration: none;
  transition: 0.18s ease;
}

.market-category-list a:hover,
.market-category-list a.is-active {
  color: var(--market-green);
  background: var(--market-green-soft);
}

.market-category-list a > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--market-green);
  background: rgba(19, 122, 74, 0.08);
  font-size: 12px;
}

.market-category-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category-list small {
  color: var(--text3);
  font-size: 8px;
  font-weight: 900;
}

.market-location-card {
  overflow: hidden;
}

.market-map-visual {
  height: 130px;
  margin: 14px -2px 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  color: var(--market-green);
  background:
    radial-gradient(circle at 35% 60%, rgba(19,122,74,.18), transparent 15%),
    radial-gradient(circle at 64% 34%, rgba(19,122,74,.15), transparent 14%),
    linear-gradient(145deg, #edf8f1, #dcefe3);
}

.market-map-visual::before {
  content: "";
  width: 150px;
  height: 78px;
  border: 2px solid rgba(19,122,74,.22);
  border-radius: 46% 54% 57% 43% / 55% 42% 58% 45%;
  transform: rotate(-9deg);
  background: rgba(255,255,255,.48);
}

.market-map-visual > span {
  position: absolute;
  font-size: 10px;
  font-weight: 900;
}

.market-pin {
  position: absolute;
  z-index: 2;
  font-size: 14px;
}

.market-pin--one { left: 28%; top: 48%; }
.market-pin--two { left: 48%; top: 30%; }
.market-pin--three { right: 27%; top: 44%; }
.market-pin--four { right: 40%; bottom: 18%; }

.market-district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.market-district-grid a {
  padding: 5px 6px;
  border-radius: 8px;
  color: var(--text3);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.market-district-grid a:hover,
.market-district-grid a.is-active {
  color: var(--market-green);
  background: var(--market-green-soft);
}

.market-all-districts {
  margin-top: 12px;
  min-height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(19,122,74,.28);
  border-radius: 10px;
  color: var(--market-green);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.market-side-cta {
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 8%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(145deg, var(--market-green-dark), var(--market-green));
}

.market-side-cta > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
}

.market-side-cta h2 {
  margin: 13px 0 5px;
  color: #fff;
  font: 900 16px "Poppins", sans-serif;
}

.market-side-cta p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 9.5px;
  line-height: 1.55;
}

.market-side-cta a {
  margin-top: 15px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: var(--market-green-dark);
  background: #fff;
  font-size: 9.5px;
  font-weight: 900;
  text-decoration: none;
}

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

.market-hero {
  min-height: 270px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 10%, rgba(83,211,137,.24), transparent 29%),
    linear-gradient(135deg, #063b28 0%, #08603c 57%, #158c52 100%);
  box-shadow: 0 28px 65px rgba(7, 68, 42, .22);
}

.market-hero::before,
.market-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}

.market-hero::before {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -210px;
}

.market-hero::after {
  width: 210px;
  height: 210px;
  right: 25%;
  bottom: -180px;
}

.market-hero-copy,
.market-hero-art {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.market-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9edc8;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .1em;
}

.market-hero h1 {
  margin: 13px 0 10px;
  color: #fff;
  font: 900 clamp(33px, 4vw, 51px)/1.08 "Poppins", sans-serif;
  letter-spacing: -.045em;
}

.market-hero h1 span {
  color: #a7efc7;
}

.market-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.72;
}

.market-hero-actions {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.market-btn-primary,
.market-btn-secondary {
  min-height: 43px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 900;
  text-decoration: none;
  transition: .18s ease;
}

.market-btn-primary {
  color: var(--market-green-dark);
  background: #fff;
}

.market-btn-secondary {
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.market-btn-primary:hover,
.market-btn-secondary:hover {
  transform: translateY(-2px);
}

.market-hero-art {
  height: 190px;
}

.market-cart {
  width: 124px;
  height: 92px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 18px;
  bottom: 12px;
  border-radius: 22px;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  font-size: 56px;
  transform: rotate(-7deg);
}

.market-box {
  position: absolute;
  border-radius: 8px;
  background: linear-gradient(145deg, #d59a53, #b87834);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}

.market-box::before {
  content: "";
  width: 2px;
  height: 100%;
  position: absolute;
  left: 50%;
  background: rgba(255,255,255,.27);
}

.market-box--one { width: 88px; height: 76px; right: 16px; bottom: 13px; }
.market-box--two { width: 70px; height: 62px; right: 78px; bottom: 62px; }
.market-box--three { width: 56px; height: 52px; right: 12px; bottom: 87px; }

.market-leaf {
  width: 15px;
  height: 25px;
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: #3fc274;
}

.market-leaf--one { right: 3px; top: 4px; transform: rotate(29deg); }
.market-leaf--two { left: 43%; top: 20px; transform: rotate(-30deg); }

.market-benefits {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  border-radius: 19px;
}

.market-benefits article {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  background: var(--bg);
}

.market-benefits article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(19,122,74,.16);
  border-radius: 50%;
  color: var(--market-green);
  background: var(--card);
  font-size: 14px;
}

.market-benefits strong,
.market-benefits small {
  display: block;
}

.market-benefits strong {
  font-size: 9.5px;
}

.market-benefits small {
  margin-top: 2px;
  color: var(--text3);
  font-size: 7.5px;
  line-height: 1.35;
}

.market-filter-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 19px;
}

.market-filter-card form {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(135px, .72fr)) auto;
  gap: 8px;
}

.market-search,
.market-filter-card label {
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text3);
  background: var(--bg);
}

.market-search:focus-within,
.market-filter-card label:focus-within {
  border-color: rgba(19,122,74,.4);
  box-shadow: 0 0 0 3px rgba(19,122,74,.07);
}

.market-search input,
.market-filter-card select {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: 700 9.5px "Nunito", sans-serif;
}

.market-filter-card form > button {
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--market-green-dark), var(--market-green));
  font: 900 9.5px "Nunito", sans-serif;
  cursor: pointer;
}

.market-filter-summary {
  padding: 10px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text3);
  font-size: 8.5px;
  font-weight: 800;
}

.market-filter-summary span,
.market-filter-summary a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-filter-summary a {
  color: var(--market-green);
  text-decoration: none;
}

.market-section {
  margin-top: 19px;
  padding: 20px;
  border-radius: 22px;
}

.market-section-head {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.market-section-head h2 {
  margin: 4px 0 2px;
  font: 900 22px "Poppins", sans-serif;
  letter-spacing: -.03em;
}

.market-section-head p {
  margin: 0;
  color: var(--text3);
  font-size: 9.5px;
}

.market-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--market-green);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.market-result-count {
  padding: 6px 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 8.5px;
  font-weight: 900;
}

.market-featured-row {
  padding: 1px 1px 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 11px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(19,122,74,.2) transparent;
}

.market-featured-row::-webkit-scrollbar { height: 4px; }
.market-featured-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(19,122,74,.2);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.market-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(19,122,74,.24);
  box-shadow: var(--market-shadow-hover);
}

.market-card-media {
  height: 185px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #edf4ef;
}

.market-card--compact .market-card-media {
  height: 150px;
}

.market-card-media img,
.market-gallery-main img,
.market-gallery-thumbs img,
.market-member-card-media img,
.market-existing-images img,
.market-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-card-media img {
  transition: transform .35s ease;
}

.market-card:hover .market-card-media img {
  transform: scale(1.035);
}

.market-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--market-green);
  background: linear-gradient(145deg, #eaf7ef, #d8ece0);
  font-size: 39px;
}

.market-card-topbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: absolute;
  top: 9px;
  left: 9px;
}

.market-badge {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 900;
}

.market-badge--featured {
  color: #fff;
  background: linear-gradient(135deg, #0a7c47, #20a763);
}

.market-badge--new,
.market-badge--condition {
  color: #0b6640;
  background: #ddf6e8;
}

.market-badge--sold {
  color: #fff;
  background: #5d6771;
}

.market-badge--category {
  color: var(--market-green);
  background: var(--market-green-soft);
}

.market-photo-count {
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7,28,18,.68);
  backdrop-filter: blur(8px);
  font-size: 7.5px;
  font-weight: 900;
}

.market-card-body {
  padding: 13px;
}

.market-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--text3);
  font-size: 7.8px;
  font-weight: 800;
}

.market-card-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card h2 {
  min-height: 38px;
  margin: 7px 0 0;
  display: -webkit-box;
  overflow: hidden;
  font: 900 12px/1.42 "Poppins", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.market-card-description {
  min-height: 41px;
  margin: 6px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text3);
  font-size: 8.8px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.market-card-footer {
  margin-top: 11px;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.market-card-footer strong,
.market-card-footer small {
  display: block;
}

.market-card-footer strong {
  color: var(--market-green);
  font: 900 13px "Poppins", sans-serif;
}

.market-card-footer small {
  margin-top: 2px;
  color: var(--text3);
  font-size: 7.5px;
}

.market-card-footer form {
  margin: 0;
}

.market-card-footer button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text3);
  background: var(--card);
  cursor: pointer;
}

.market-card-footer button:hover,
.market-card-footer button.is-active {
  border-color: rgba(198,40,40,.22);
  color: #c62828;
  background: #fff1f1;
}

.market-card-open {
  min-height: 31px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--market-green);
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
}

.market-pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.market-pagination a,
.market-pagination span {
  min-height: 37px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text2);
  background: var(--card);
  font-size: 8.8px;
  font-weight: 900;
  text-decoration: none;
}

.market-empty {
  padding: 55px 20px;
  text-align: center;
}

.market-empty > span {
  width: 66px;
  height: 66px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 24px;
}

.market-empty h1,
.market-empty h2 {
  margin: 5px 0;
  font: 900 21px "Poppins", sans-serif;
}

.market-empty p {
  max-width: 510px;
  margin: 0 auto 15px;
  color: var(--text3);
  font-size: 10px;
  line-height: 1.6;
}

.market-empty > a {
  min-height: 39px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: #fff;
  background: var(--market-green);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.market-empty--page {
  max-width: 720px;
  margin: 80px auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--market-shadow);
}

.market-safety,
.market-safety-card {
  margin-top: 18px;
  padding: 19px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(234,247,239,.97), rgba(255,255,255,.97));
}

.market-safety > span,
.market-safety-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--market-green);
  background: #fff;
  font-size: 18px;
}

.market-safety small,
.market-safety-card small {
  color: var(--market-green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.market-safety h2,
.market-safety-card h2 {
  margin: 3px 0;
  font: 900 16px "Poppins", sans-serif;
}

.market-safety p,
.market-safety-card p {
  margin: 0;
  color: var(--text3);
  font-size: 9px;
  line-height: 1.5;
}

.market-safety > a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: #fff;
  background: var(--market-green);
  font-size: 8.5px;
  font-weight: 900;
  text-decoration: none;
}

/* Detail */

.market-detail-wrap {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 25px 0 75px;
}

.market-breadcrumb {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--text3);
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.market-breadcrumb a,
.market-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
}

.market-detail-header {
  padding: 21px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-radius: 20px;
}

.market-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-detail-header h1 {
  margin: 9px 0 8px;
  font: 900 clamp(24px, 3.5vw, 36px)/1.2 "Poppins", sans-serif;
  letter-spacing: -.035em;
}

.market-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text3);
  font-size: 8.5px;
  font-weight: 800;
}

.market-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-detail-header form {
  margin: 0;
  flex: 0 0 auto;
}

.market-detail-favorite {
  min-width: 155px;
  min-height: 49px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text2);
  background: var(--card);
  cursor: pointer;
}

.market-detail-favorite > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #c62828;
  background: #fff1f1;
}

.market-detail-favorite strong,
.market-detail-favorite small {
  display: block;
  text-align: left;
}

.market-detail-favorite strong { font-size: 9.5px; }
.market-detail-favorite small {
  color: var(--text3);
  font-size: 7px;
}

.market-detail-favorite.is-active {
  border-color: rgba(198,40,40,.25);
  color: #b82020;
  background: #fff7f7;
}

.market-detail-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.market-detail-main,
.market-detail-sidebar {
  min-width: 0;
}

.market-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: sticky;
  top: 88px;
}

.market-gallery {
  padding: 15px;
  border-radius: 21px;
}

.market-gallery-main {
  height: min(560px, 55vw);
  min-height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #edf4ef;
}

.market-gallery-main img {
  object-fit: contain;
  background: #eef3ef;
}

.market-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 45px;
}

.market-gallery-placeholder span {
  font-size: 9px;
  font-weight: 900;
}

.market-gallery-count {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7,28,18,.68);
  font-size: 8px;
  font-weight: 900;
}

.market-gallery-thumbs {
  margin-top: 10px;
  padding-bottom: 3px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.market-gallery-thumbs button {
  width: 75px;
  height: 64px;
  padding: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.market-gallery-thumbs button.is-active {
  border-color: var(--market-green);
}

.market-detail-card {
  padding: 22px;
  border-radius: 20px;
}

.market-detail-description {
  margin-top: 16px;
  color: var(--text2);
  font-size: 10.5px;
  line-height: 1.85;
}

.market-spec-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.market-spec-grid > div {
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
}

.market-spec-grid span {
  color: var(--text3);
  font-size: 8.5px;
}

.market-spec-grid strong {
  min-width: 0;
  overflow: hidden;
  font-size: 9.5px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-safety-card {
  margin-top: 0;
  grid-template-columns: auto minmax(0, 1fr);
}

.market-price-card,
.market-seller-card,
.market-share-card {
  padding: 18px;
  border-radius: 18px;
}

.market-price-card > small {
  color: var(--text3);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.market-price-card > strong {
  display: block;
  margin: 4px 0 7px;
  color: var(--market-green);
  font: 900 25px "Poppins", sans-serif;
}

.market-negotiable {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  color: #8a620b;
  background: #fff4cf;
  font-size: 7.5px;
  font-weight: 900;
}

.market-contact-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.market-contact-btn {
  min-height: 50px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}

.market-contact-btn > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255,255,255,.15);
  font-size: 14px;
}

.market-contact-btn small,
.market-contact-btn strong {
  display: block;
}

.market-contact-btn small {
  opacity: .7;
  font-size: 7px;
}

.market-contact-btn strong {
  margin-top: 1px;
  font-size: 9.5px;
}

.market-contact-btn--phone {
  background: linear-gradient(135deg, #0c5134, #177c4c);
}

.market-contact-btn--whatsapp {
  background: linear-gradient(135deg, #128c4a, #25b968);
}

.market-contact-btn--message {
  background: linear-gradient(135deg, #234f85, #3474ba);
}

.market-contact-note {
  margin: 11px 0 0;
  display: flex;
  gap: 6px;
  color: var(--text3);
  font-size: 7.5px;
  line-height: 1.45;
}

.market-seller-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-seller-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--market-green-dark), var(--market-green));
  font: 900 15px "Poppins", sans-serif;
}

.market-seller-head small,
.market-seller-head span {
  display: block;
  color: var(--text3);
  font-size: 7.5px;
}

.market-seller-head h2 {
  margin: 2px 0;
  font: 900 14px "Poppins", sans-serif;
}

.market-seller-facts {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.market-seller-facts span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  font-size: 8.5px;
  font-weight: 700;
}

.market-seller-facts i {
  width: 15px;
  color: var(--market-green);
  text-align: center;
}

.market-share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.market-share-card small {
  color: var(--market-green);
  font-size: 7px;
  font-weight: 900;
}

.market-share-card h2 {
  margin: 2px 0 0;
  font: 900 11px "Poppins", sans-serif;
}

.market-share-card button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--market-green);
  cursor: pointer;
}

.market-similar {
  margin-top: 20px;
}

.market-grid--similar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Member listing dashboard */

.market-member-page {
  min-width: 0;
}

.market-member-hero,
.market-form-hero {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border-radius: 21px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 8%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, var(--market-green-dark), var(--market-green));
}

.market-member-hero h1,
.market-form-hero h1 {
  margin: 5px 0 5px;
  color: #fff;
  font: 900 27px "Poppins", sans-serif;
}

.market-member-hero p,
.market-form-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 9.5px;
  line-height: 1.55;
}

.market-member-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.market-member-btn-light,
.market-member-btn-primary {
  min-height: 41px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.market-member-btn-light {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.market-member-btn-light span {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--market-green);
  background: #fff;
  font-size: 7px;
}

.market-member-btn-primary {
  color: var(--market-green-dark);
  background: #fff;
}

.market-member-alert {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  border-radius: 13px;
  font-size: 9px;
}

.market-member-alert > i {
  margin-top: 2px;
}

.market-member-alert strong,
.market-member-alert span {
  display: block;
}

.market-member-alert span {
  margin-top: 2px;
}

.market-member-alert--success {
  color: #14623e;
  background: #e9f8ef;
}

.market-member-alert--error {
  color: #952b2b;
  background: #fff0f0;
}

.market-member-stats {
  margin-top: 14px;
  padding: 11px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-radius: 18px;
}

.market-member-stats article {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  background: var(--bg);
}

.market-member-stats article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--market-green);
  background: var(--market-green-soft);
}

.market-member-stats strong,
.market-member-stats small {
  display: block;
}

.market-member-stats strong {
  font: 900 17px "Poppins", sans-serif;
}

.market-member-stats small {
  color: var(--text3);
  font-size: 7.5px;
}

.market-member-list-head {
  margin: 21px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.market-member-list-head span {
  color: var(--market-green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.market-member-list-head h2 {
  margin: 3px 0;
  font: 900 20px "Poppins", sans-serif;
}

.market-member-list-head p {
  margin: 0;
  color: var(--text3);
  font-size: 9px;
}

.market-member-list-head > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--market-green);
  font-size: 8.5px;
  font-weight: 900;
  text-decoration: none;
}

.market-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market-member-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-radius: 18px;
}

.market-member-card-media {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--market-green-soft);
}

.market-member-card-media > span:not(.market-member-photo-count) {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--market-green);
  font-size: 35px;
}

.market-member-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  position: absolute;
  top: 9px;
  left: 9px;
}

.market-status {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
}

.market-status--beklemede { color: #8a5900; background: #fff0bc; }
.market-status--yayinda { color: #12643e; background: #ddf5e7; }
.market-status--satildi { color: #1d4c88; background: #dcecff; }
.market-status--pasif { color: #555; background: #edf0f1; }
.market-status--featured { color: #fff; background: var(--market-green); }

.market-member-photo-count {
  padding: 4px 7px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7,28,18,.65);
  font-size: 7.5px;
  font-weight: 900;
}

.market-member-card-body {
  min-width: 0;
  padding: 16px;
}

.market-member-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text3);
  font-size: 8px;
  font-weight: 800;
}

.market-member-card h3 {
  margin: 7px 0 7px;
  font: 900 14px/1.4 "Poppins", sans-serif;
}

.market-member-price {
  color: var(--market-green);
  font: 900 14px "Poppins", sans-serif;
}

.market-member-card-stats {
  margin-top: 12px;
  padding: 9px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.market-member-card-stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text3);
  font-size: 7.5px;
}

.market-member-card-actions {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-member-card-actions a,
.market-member-card-actions button {
  min-height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text2);
  background: var(--card);
  font: 800 8px "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.market-member-card-actions form {
  margin: 0;
}

.market-member-card-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.market-member-card-actions .is-danger {
  color: #b52b2b;
}

.market-member-empty {
  margin-top: 18px;
  padding: 55px 20px;
  border: 1px dashed rgba(19,122,74,.27);
  border-radius: 20px;
  text-align: center;
  background: var(--card);
}

.market-member-empty > span {
  width: 65px;
  height: 65px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 24px;
}

.market-member-empty h2 {
  margin: 0;
  font: 900 20px "Poppins", sans-serif;
}

.market-member-empty p {
  max-width: 520px;
  margin: 6px auto 15px;
  color: var(--text3);
  font-size: 9.5px;
  line-height: 1.6;
}

.market-member-empty a {
  min-height: 39px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  color: #fff;
  background: var(--market-green);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

/* Form */

.market-form-hero {
  position: relative;
  align-items: flex-end;
}

.market-form-back {
  position: absolute;
  top: 15px;
  right: 16px;
  color: rgba(255,255,255,.78);
  font-size: 8.5px;
  font-weight: 800;
  text-decoration: none;
}

.market-form-steps {
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.market-form-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.58);
  font-size: 8.5px;
  font-weight: 800;
}

.market-form-steps b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.13);
}

.market-form-steps span.is-active {
  color: #fff;
}

.market-form-steps span.is-active b {
  color: var(--market-green-dark);
  background: #fff;
}

.market-listing-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.market-form-section {
  padding: 21px;
  border-radius: 19px;
}

.market-form-section > header {
  margin-bottom: 18px;
}

.market-form-section > header p {
  margin: 2px 0 0;
  color: var(--text3);
  font-size: 8.5px;
}

.market-type-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.market-type-grid label {
  min-width: 0;
  padding: 11px 7px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}

.market-type-grid label:hover,
.market-type-grid label.is-active {
  border-color: rgba(19,122,74,.35);
  background: var(--market-green-soft);
}

.market-type-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-type-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--market-green);
  background: var(--market-green-soft);
  font-size: 15px;
}

.market-type-grid strong {
  min-width: 0;
  overflow: hidden;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-form-grid,
.market-dynamic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-form-field {
  min-width: 0;
  display: block;
  margin-bottom: 13px;
}

.market-form-field > span {
  margin-bottom: 6px;
  display: block;
  color: var(--text2);
  font-size: 9px;
  font-weight: 900;
}

.market-form-field > span b {
  color: #c62828;
}

.market-form-field input,
.market-form-field select,
.market-form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: var(--bg);
  font: 700 9.5px "Nunito", sans-serif;
}

.market-form-field input,
.market-form-field select {
  height: 43px;
}

.market-form-field textarea {
  min-height: 130px;
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
  line-height: 1.55;
}

.market-form-field input:focus,
.market-form-field select:focus,
.market-form-field textarea:focus {
  border-color: rgba(19,122,74,.4);
  box-shadow: 0 0 0 3px rgba(19,122,74,.07);
}

.market-form-field > small {
  margin-top: 5px;
  display: block;
  color: var(--text3);
  font-size: 7.5px;
  line-height: 1.4;
}

.market-existing-images,
.market-image-preview {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.market-existing-images label,
.market-image-preview figure {
  height: 105px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
}

.market-existing-images label > span {
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 7px;
  color: #fff;
  background: rgba(12,28,18,.72);
  font-size: 7px;
  font-weight: 800;
  cursor: pointer;
}

.market-existing-images label > b {
  padding: 3px 6px;
  position: absolute;
  top: 5px;
  left: 5px;
  border-radius: 6px;
  color: #fff;
  background: var(--market-green);
  font-size: 6.5px;
}

.market-image-upload {
  min-height: 160px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed rgba(19,122,74,.34);
  border-radius: 16px;
  text-align: center;
  background: var(--market-green-soft);
  cursor: pointer;
}

.market-image-upload.is-dragging {
  border-style: solid;
  background: #def4e7;
}

.market-image-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-image-upload-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--market-green);
  background: #fff;
  font-size: 20px;
}

.market-image-upload strong {
  font-size: 10px;
}

.market-image-upload small {
  color: var(--text3);
  font-size: 7.5px;
}

.market-image-upload em {
  color: var(--market-green);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.market-image-preview {
  margin-top: 10px;
  margin-bottom: 0;
}

.market-image-preview figcaption {
  padding: 4px 6px;
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: rgba(12,28,18,.7);
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-message-info {
  padding: 13px;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(35,79,133,.16);
  border-radius: 12px;
  color: #254e7c;
  background: #eef5fd;
}

.market-message-info > i {
  margin-top: 2px;
}

.market-message-info strong,
.market-message-info span {
  display: block;
}

.market-message-info strong {
  font-size: 9px;
}

.market-message-info span {
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.45;
}

.market-submit-card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
}

.market-submit-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-submit-card > div > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--market-green);
  background: var(--market-green-soft);
}

.market-submit-card strong,
.market-submit-card small {
  display: block;
}

.market-submit-card strong {
  font-size: 9.5px;
}

.market-submit-card small {
  margin-top: 2px;
  color: var(--text3);
  font-size: 7.5px;
}

.market-submit-card > button {
  min-height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--market-green-dark), var(--market-green));
  font: 900 9px "Nunito", sans-serif;
  cursor: pointer;
}

/* Tone helpers */

.market-tone-red { color: #a43838; background: #fde7e7; }
.market-tone-blue { color: #295f9e; background: #e3effc; }
.market-tone-green { color: #147144; background: #e1f4e9; }
.market-tone-amber { color: #96650b; background: #fff1cb; }
.market-tone-purple { color: #6e45a1; background: #f0e8fb; }
.market-tone-teal { color: #16726e; background: #e0f5f2; }
.market-tone-pink { color: #9f416f; background: #fce8f2; }
.market-tone-slate { color: #50616d; background: #eaf0f3; }

/* Dark */

[data-theme="dark"] .market-page,
[data-theme="dark"] .market-detail-page {
  background: var(--bg);
}

[data-theme="dark"] .market-side-card,
[data-theme="dark"] .market-filter-card,
[data-theme="dark"] .market-benefits,
[data-theme="dark"] .market-section,
[data-theme="dark"] .market-detail-header,
[data-theme="dark"] .market-gallery,
[data-theme="dark"] .market-detail-card,
[data-theme="dark"] .market-price-card,
[data-theme="dark"] .market-seller-card,
[data-theme="dark"] .market-share-card,
[data-theme="dark"] .market-member-stats,
[data-theme="dark"] .market-member-card,
[data-theme="dark"] .market-form-section,
[data-theme="dark"] .market-submit-card {
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

[data-theme="dark"] .market-green-soft,
[data-theme="dark"] .market-category-list a.is-active,
[data-theme="dark"] .market-type-grid label.is-active,
[data-theme="dark"] .market-image-upload {
  background: rgba(31,157,91,.12);
}

[data-theme="dark"] .market-safety,
[data-theme="dark"] .market-safety-card {
  background: linear-gradient(135deg, #14261c, #17231d);
}

/* Responsive */

@media (max-width: 1250px) {
  .market-filter-card form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-search {
    grid-column: span 2;
  }

  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-member-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .market-shell {
    grid-template-columns: 1fr;
  }

  .market-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .market-side-cta {
    display: none;
  }

  .market-category-list {
    max-height: 235px;
    overflow-y: auto;
  }

  .market-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-detail-layout {
    grid-template-columns: 1fr;
  }

  .market-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .market-share-card {
    grid-column: 1 / -1;
  }

  .market-member-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-shell,
  .market-detail-wrap {
    width: calc(100% - 20px);
    padding-top: 12px;
  }

  .market-sidebar {
    grid-template-columns: 1fr;
  }

  .market-location-card {
    display: none;
  }

  .market-category-list {
    max-height: none;
    padding-bottom: 5px;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-category-list::-webkit-scrollbar {
    display: none;
  }

  .market-category-list a {
    min-width: 135px;
    grid-template-columns: 28px minmax(0, 1fr);
    flex: 0 0 auto;
  }

  .market-category-list small {
    display: none;
  }

  .market-hero {
    min-height: 0;
    padding: 28px 21px;
    grid-template-columns: 1fr;
  }

  .market-hero h1 {
    font-size: 33px;
  }

  .market-hero-art {
    display: none;
  }

  .market-benefits {
    padding: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-benefits article:last-child {
    grid-column: 1 / -1;
  }

  .market-filter-card form {
    grid-template-columns: 1fr 1fr;
  }

  .market-search {
    grid-column: 1 / -1;
  }

  .market-filter-card form > button {
    grid-column: 1 / -1;
  }

  .market-section {
    padding: 14px;
  }

  .market-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .market-card-media {
    height: 150px;
  }

  .market-card-body {
    padding: 10px;
  }

  .market-card h2 {
    min-height: 34px;
    font-size: 10px;
  }

  .market-card-description {
    display: none;
  }

  .market-card-footer strong {
    font-size: 10.5px;
  }

  .market-safety {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-safety > a {
    grid-column: 1 / -1;
  }

  .market-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-detail-header form,
  .market-detail-favorite {
    width: 100%;
  }

  .market-gallery-main {
    height: 70vw;
    min-height: 260px;
  }

  .market-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .market-spec-grid {
    grid-template-columns: 1fr;
  }

  .market-grid--similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-hero,
  .market-form-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-member-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .market-member-btn-light,
  .market-member-btn-primary {
    justify-content: center;
  }

  .market-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .market-member-card-media {
    min-height: 210px;
  }

  .market-member-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 0;
  }

  .market-form-steps {
    display: none;
  }

  .market-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-form-grid,
  .market-form-grid--three,
  .market-dynamic-fields {
    grid-template-columns: 1fr;
  }

  .market-existing-images,
  .market-image-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-submit-card {
    align-items: stretch;
    flex-direction: column;
  }

  .market-submit-card > button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .market-hero h1 {
    font-size: 28px;
  }

  .market-hero-actions,
  .market-member-actions {
    grid-template-columns: 1fr;
  }

  .market-btn-primary,
  .market-btn-secondary {
    width: 100%;
  }

  .market-filter-card form {
    grid-template-columns: 1fr;
  }

  .market-search {
    grid-column: auto;
  }

  .market-grid,
  .market-grid--similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-card-media {
    height: 126px;
  }

  .market-card-meta span:first-child {
    display: none;
  }

  .market-card h2 {
    font-size: 9.2px;
  }

  .market-photo-count {
    font-size: 6.5px;
  }

  .market-detail-header h1 {
    font-size: 22px;
  }

  .market-member-card {
    grid-template-columns: 1fr;
  }

  .market-member-card-media {
    min-height: 170px;
    height: 170px;
  }

  .market-member-stats {
    grid-template-columns: 1fr 1fr;
  }

  .market-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-existing-images,
  .market-image-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-card,
  .market-card-media img,
  .market-btn-primary,
  .market-btn-secondary {
    transition: none;
  }
}

/* ─────────────────────────────────────────────────────
   v0.36.1 — Tema hizası, kategori tekilleştirme ve detay kompaktlaştırma
   ───────────────────────────────────────────────────── */
.market-shell,
.market-detail-wrap {
  width: 100%;
  max-width: 1360px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.market-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
}

.market-hero {
  min-height: 230px;
  padding: 30px 34px;
  border-radius: 22px;
}

.market-hero h1 {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.12;
}

.market-hero p {
  max-width: 650px;
  font-size: 11.5px;
  line-height: 1.62;
}

.market-section-head h2 {
  font-size: 19px;
}

.market-detail-header h1 {
  font-size: clamp(22px, 2.7vw, 30px);
}

.market-detail-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.market-gallery-main {
  height: min(430px, 44vw);
  min-height: 300px;
  border-radius: 14px;
}

.market-gallery {
  padding: 12px;
  border-radius: 18px;
}

.market-detail-card {
  padding: 19px;
  border-radius: 18px;
}

.market-detail-card-head h2 {
  font-size: 14px;
}

.market-detail-description {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text2);
  background: linear-gradient(135deg, var(--bg), rgba(234,247,239,.48));
  font-size: 10.5px;
  line-height: 1.8;
}

.market-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-spec-grid > div {
  min-height: 58px;
  padding: 10px 11px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.market-spec-grid span {
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.market-spec-grid strong {
  max-width: 100%;
  font-size: 9.5px;
  text-align: left;
  white-space: normal;
}

.market-contact-unavailable {
  min-height: 50px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text3);
  background: var(--bg);
}

.market-contact-unavailable > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--text3);
  background: var(--card);
}

.market-contact-unavailable small,
.market-contact-unavailable strong {
  display: block;
}

.market-contact-unavailable small {
  font-size: 7px;
}

.market-contact-unavailable strong {
  margin-top: 1px;
  font-size: 8.5px;
}

.market-seller-avatar {
  overflow: hidden;
  font-size: 0;
}

.market-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-seller-avatar b {
  font: 900 13px "Poppins", sans-serif;
}

.market-seller-facts {
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.market-category-choice-grid {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.market-category-choice-grid label {
  min-width: 0;
  min-height: 102px;
  padding: 11px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: var(--card);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.market-category-choice-grid label:hover,
.market-category-choice-grid label.is-active {
  border-color: rgba(19,122,74,.35);
  background: var(--market-green-soft);
  transform: translateY(-1px);
}

.market-category-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-category-choice-grid strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 8.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category-choice-grid small {
  color: var(--text3);
  font-size: 6.8px;
}

.market-dynamic-fields[hidden] {
  display: none !important;
}

.market-message-preference {
  min-height: 80px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(35,79,133,.17);
  border-radius: 13px;
  color: var(--text2);
  background: #eef5fd;
  cursor: pointer;
}

.market-message-preference.is-active {
  border-color: rgba(19,122,74,.24);
  background: var(--market-green-soft);
}

.market-message-preference > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.market-message-switch {
  width: 39px;
  height: 22px;
  padding: 3px;
  display: block;
  border-radius: 999px;
  background: #98a3ad;
  transition: .18s ease;
}

.market-message-switch::after {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  transition: transform .18s ease;
}

.market-message-preference input:checked + .market-message-switch {
  background: var(--market-green);
}

.market-message-preference input:checked + .market-message-switch::after {
  transform: translateX(17px);
}

.market-message-preference-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #2b68a8;
  background: #fff;
}

.market-message-preference.is-active .market-message-preference-icon {
  color: var(--market-green);
}

.market-message-preference-copy strong,
.market-message-preference-copy small {
  display: block;
}

.market-message-preference-copy strong {
  font-size: 9.5px;
}

.market-message-preference-copy small {
  margin-top: 3px;
  color: var(--text3);
  font-size: 7.7px;
  line-height: 1.45;
}

.market-message-preference > b {
  min-width: 47px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #59636c;
  background: rgba(255,255,255,.78);
  font-size: 7.5px;
  text-align: center;
}

.market-message-preference.is-active > b {
  color: var(--market-green);
}

[data-theme="dark"] .market-message-preference {
  background: rgba(43,104,168,.12);
}

[data-theme="dark"] .market-message-preference.is-active {
  background: rgba(19,122,74,.13);
}

@media (max-width: 1120px) {
  .market-category-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .market-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-shell,
  .market-detail-wrap {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .market-hero {
    padding: 24px 20px;
  }
  .market-hero h1 {
    font-size: 28px;
  }
  .market-gallery-main {
    height: 58vw;
    min-height: 235px;
  }
  .market-category-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-message-preference {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .market-message-preference > b {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 440px) {
  .market-category-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-category-choice-grid label {
    min-height: 94px;
  }
  .market-gallery-main {
    height: 62vw;
    min-height: 210px;
  }
  .market-detail-header h1 {
    font-size: 20px;
  }
  .market-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .market-message-preference {
    padding: 11px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .market-message-preference-icon {
    display: none;
  }
  .market-message-preference > b {
    grid-column: 2;
  }
}


/* ─────────────────────────────────────────────────────
   v0.36.3 — İlanlar liste sayfası responsive grid hotfix

   v0.36.1 ek kuralları, daha önce tanımlanan mobil tek kolon kuralından
   sonra .market-shell'i yeniden iki kolona çeviriyordu. Bu bölüm yalnızca
   public /ilanlar sayfasını izole eder; detay, üye ve diğer modülleri
   değiştirmez.
   ───────────────────────────────────────────────────── */
.market-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.market-page .market-shell {
  width: min(1360px, calc(100% - 32px));
  max-width: 1360px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 0 76px;
  grid-template-columns: minmax(220px, 238px) minmax(0, 1fr);
  gap: 18px;
  box-sizing: border-box;
}

.market-page .market-sidebar,
.market-page .market-main,
.market-page .market-main > *,
.market-page .market-side-card,
.market-page .market-category-list {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.market-page .market-main {
  width: 100%;
  overflow: hidden;
}

.market-page .market-hero,
.market-page .market-benefits,
.market-page .market-filter-card,
.market-page .market-section,
.market-page .market-safety {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1180px) {
  .market-page .market-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .market-page .market-sidebar {
    width: 100%;
    position: static;
    display: block;
  }

  .market-page .market-sidebar > .market-side-card:first-child {
    width: 100%;
  }

  .market-page .market-location-card,
  .market-page .market-side-cta {
    display: none;
  }

  .market-page .market-category-list {
    max-height: none;
    padding: 2px 0 5px;
    display: flex;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 122, 74, .18) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .market-page .market-category-list::-webkit-scrollbar {
    height: 3px;
  }

  .market-page .market-category-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(19, 122, 74, .18);
  }

  .market-page .market-category-list a {
    min-width: 142px;
    flex: 0 0 auto;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .market-page .market-shell {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 76px;
    display: block !important;
  }

  .market-page .market-sidebar {
    width: 100%;
    margin: 0 0 10px;
  }

  .market-page .market-side-card {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
  }

  .market-page .market-side-title > span {
    width: 35px;
    height: 35px;
  }

  .market-page .market-side-title h2 {
    font-size: 14px;
  }

  .market-page .market-category-list a {
    min-width: 128px;
    min-height: 38px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .market-page .market-category-list a > small {
    display: none;
  }

  .market-page .market-main {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .market-page .market-hero {
    width: 100%;
    min-height: 0;
    padding: 23px 19px;
    display: block;
    border-radius: 19px;
  }

  .market-page .market-hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .market-page .market-hero h1 {
    max-width: 100%;
    margin: 9px 0 7px;
    font-size: 27px;
    line-height: 1.13;
    overflow-wrap: anywhere;
  }

  .market-page .market-hero p {
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.58;
  }

  .market-page .market-hero-art {
    display: none !important;
  }

  .market-page .market-hero-actions {
    width: 100%;
  }

  .market-page .market-benefits,
  .market-page .market-filter-card,
  .market-page .market-section,
  .market-page .market-safety {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 440px) {
  .market-page .market-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .market-page .market-category-list a {
    min-width: 118px;
  }

  .market-page .market-hero {
    padding: 21px 17px;
  }

  .market-page .market-hero h1 {
    font-size: 24px;
  }
}

/* ─────────────────────────────────────────────────────
   v0.36.4 — İlan modülü genişlik ve tüm sayfa responsive ince ayarı

   Public liste, detay, üye ilan listesi, ilan formu ve 404 görünümü
   aynı modül içinde izole edilir. Global header/footer veya başka modül
   sınıfları değiştirilmez.
   ───────────────────────────────────────────────────── */

.market-page,
.market-detail-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Header ve diğer ana modüllerle aynı 1360px container sistemi. */
.market-page .market-shell,
.market-detail-page .market-detail-wrap {
  width: 100%;
  max-width: 1360px;
  min-width: 0;
  margin-inline: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.market-page .market-shell {
  padding-top: 24px;
  padding-bottom: 76px;
  grid-template-columns: minmax(220px, 238px) minmax(0, 1fr);
  gap: 18px;
}

.market-detail-page .market-detail-wrap {
  padding-top: 24px;
  padding-bottom: 76px;
}

.market-page .market-sidebar,
.market-page .market-main,
.market-page .market-main > *,
.market-detail-page .market-detail-wrap > *,
.market-detail-page .market-detail-layout,
.market-detail-page .market-detail-main,
.market-detail-page .market-detail-sidebar,
.market-member-page,
.market-member-page > *,
.market-listing-form,
.market-listing-form > *,
.market-form-section,
.market-member-card,
.market-member-card-body {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.market-page .market-main,
.market-detail-page .market-detail-main,
.market-detail-page .market-detail-sidebar,
.market-member-page,
.market-listing-form {
  width: 100%;
}

/* Public liste geniş ekran dengesi. */
.market-page .market-hero,
.market-page .market-benefits,
.market-page .market-filter-card,
.market-page .market-section,
.market-page .market-safety {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.market-page .market-featured-row,
.market-page .market-category-list {
  min-width: 0;
}

/* İlan detayında v0.36.1 sonrası mobilde kalan iki kolon zorlamasını kaldırır. */
.market-detail-page .market-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 18px;
}

.market-detail-page .market-detail-header > div,
.market-detail-page .market-seller-head > div,
.market-detail-page .market-contact-btn > span,
.market-detail-page .market-contact-unavailable > span,
.market-detail-page .market-share-card > div {
  min-width: 0;
}

.market-detail-page .market-detail-header h1,
.market-detail-page .market-seller-head h2,
.market-detail-page .market-contact-btn strong,
.market-detail-page .market-contact-unavailable strong,
.market-detail-page .market-share-card h2 {
  overflow-wrap: anywhere;
}

.market-detail-page .market-breadcrumb {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.market-detail-page .market-breadcrumb::-webkit-scrollbar {
  display: none;
}

.market-detail-page .market-detail-favorite {
  max-width: 220px;
}

.market-detail-page .market-gallery-main {
  height: clamp(300px, 40vw, 430px);
  min-height: 0;
}

.market-detail-page .market-gallery-main img {
  max-width: 100%;
}

.market-detail-page .market-gallery-thumbs {
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.market-detail-page .market-spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-detail-page .market-spec-grid > div,
.market-detail-page .market-spec-grid strong,
.market-detail-page .market-spec-grid span {
  min-width: 0;
  max-width: 100%;
}

.market-detail-page .market-spec-grid strong {
  overflow-wrap: anywhere;
}

.market-detail-page .market-grid--similar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Üye ilan listesi ve ilan formu parent panel genişliğini aşmaz. */
.market-member-page {
  overflow-x: clip;
}

.market-member-page .market-member-hero,
.market-member-page .market-member-stats,
.market-member-page .market-member-list-head,
.market-member-page .market-member-grid,
.market-member-page .market-form-hero,
.market-member-page .market-listing-form,
.market-member-page .market-submit-card {
  width: 100%;
  max-width: 100%;
}

.market-member-page .market-member-card-media,
.market-member-page .market-member-card-body,
.market-member-page .market-member-card-actions,
.market-member-page .market-form-grid,
.market-member-page .market-form-grid--three,
.market-member-page .market-dynamic-fields,
.market-member-page .market-category-choice-grid,
.market-member-page .market-existing-images,
.market-member-page .market-image-preview {
  min-width: 0;
}

.market-member-page .market-form-field input,
.market-member-page .market-form-field select,
.market-member-page .market-form-field textarea,
.market-member-page .market-image-upload,
.market-member-page .market-message-preference {
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet: public liste tek kolon, detay sidebar aşağıda iki kart. */
@media (max-width: 1180px) {
  .market-page .market-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .market-page .market-sidebar {
    width: 100%;
    position: static;
    display: block;
  }

  .market-page .market-location-card,
  .market-page .market-side-cta {
    display: none;
  }

  .market-page .market-category-list {
    max-height: none;
    padding: 2px 0 5px;
    display: flex;
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 122, 74, .18) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .market-page .market-category-list a {
    min-width: 142px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .market-detail-page .market-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-detail-page .market-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .market-detail-page .market-share-card {
    grid-column: 1 / -1;
  }

  .market-detail-page .market-grid--similar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-detail-page .market-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-page .market-shell,
  .market-detail-page .market-detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .market-member-page .market-member-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-member-page .market-member-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-member-page .market-category-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobil: tüm ilan görünümleri kesin tek ana kolon ve taşmasız. */
@media (max-width: 760px) {
  .market-page .market-shell,
  .market-detail-page .market-detail-wrap {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 76px;
  }

  .market-page .market-shell {
    display: block !important;
  }

  .market-page .market-sidebar {
    margin-bottom: 10px;
  }

  .market-page .market-main {
    overflow: visible;
  }

  .market-detail-page .market-detail-header {
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .market-detail-page .market-detail-header h1 {
    font-size: 21px;
    line-height: 1.28;
  }

  .market-detail-page .market-detail-header form,
  .market-detail-page .market-detail-favorite {
    width: 100%;
    max-width: 100%;
  }

  .market-detail-page .market-detail-layout {
    display: block;
  }

  .market-detail-page .market-detail-main,
  .market-detail-page .market-detail-sidebar {
    width: 100%;
  }

  .market-detail-page .market-detail-sidebar {
    margin-top: 13px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .market-detail-page .market-gallery {
    padding: 9px;
  }

  .market-detail-page .market-gallery-main {
    height: clamp(220px, 62vw, 340px);
    min-height: 0;
  }

  .market-detail-page .market-gallery-thumbs button {
    width: 66px;
    height: 56px;
  }

  .market-detail-page .market-detail-card {
    padding: 15px;
  }

  .market-detail-page .market-detail-description {
    padding: 13px;
    font-size: 10px;
    line-height: 1.7;
  }

  .market-detail-page .market-grid--similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .market-member-page .market-member-hero,
  .market-member-page .market-form-hero {
    padding: 20px 17px;
  }

  .market-member-page .market-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-page .market-member-card {
    grid-template-columns: 125px minmax(0, 1fr);
  }

  .market-member-page .market-member-card-media {
    min-height: 205px;
  }

  .market-member-page .market-category-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-member-page .market-form-grid,
  .market-member-page .market-form-grid--three,
  .market-member-page .market-dynamic-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-member-page .market-existing-images,
  .market-member-page .market-image-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-member-page .market-submit-card {
    align-items: stretch;
    flex-direction: column;
  }

  .market-member-page .market-submit-card > button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .market-detail-page .market-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-member-page .market-member-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-member-page .market-member-card-media {
    width: 100%;
    height: 180px;
    min-height: 180px;
  }

  .market-member-page .market-member-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-member-page .market-category-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-page .market-existing-images,
  .market-member-page .market-image-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-page .market-message-preference {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-member-page .market-message-preference-icon {
    display: none;
  }

  .market-member-page .market-message-preference > b {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 440px) {
  .market-page .market-shell,
  .market-detail-page .market-detail-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .market-detail-page .market-detail-header h1 {
    font-size: 19px;
  }

  .market-detail-page .market-detail-meta {
    gap: 7px;
  }

  .market-detail-page .market-detail-meta span {
    font-size: 7.7px;
  }

  .market-detail-page .market-grid--similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-member-page .market-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
