.marketplace-page {
  background: #f5f7fb;
  color: #172033;
  font-family: Inter, sans-serif;
}
.market-nav {
  background: #fff;
  border-bottom: 1px solid #e6eaf2;
}
.market-nav-inner,
.market-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.market-shell {
  padding-top: 24px;
  padding-bottom: 48px;
}
.market-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  margin-top: 80px;
}
.market-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
}
.market-hero p {
  margin: 0;
  color: #5f6b7a;
  font-size: 1rem;
}
.market-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}
.market-filters,
.market-results {
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 8px;
  padding: 16px;
}
.market-filters {
  align-self: start;
  position: sticky;
  top: 62px;
}
.market-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.market-card {
  border: 1px solid #e6eaf2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.market-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f7;
}
.market-card-body {
  padding: 12px;
}
.market-card h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}
.market-card h3 a {
  color: #172033;
}
.market-business {
  font-size: .82rem;
  color: #5f6b7a;
  min-height: 20px;
}
.market-price {
  font-size: 1.05rem;
  font-weight: 900;
}
.market-location {
  color: #738094;
  font-size: .8rem;
}
.market-empty {
  text-align: center;
  color: #738094;
  padding: 48px 12px;
}
.market-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}
.market-cart-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f5;
}
.market-cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}
.market-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.market-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #d8deea;
  background: #fff;
  border-radius: 6px;
}
@media (max-width: 900px) {
  .market-layout,
  .market-checkout-grid {
    grid-template-columns: 1fr;
  }
  .market-filters {
    position: static;
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .market-hero,
  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .market-grid {
    grid-template-columns: 1fr;
  }
}
