.market-page { background: #f3f4f6; min-height: 100vh; }
.market-top { background: #fff; }
.market-top .topbar-inner { min-height: 84px; gap: 16px; }
.market-top .brand img { height: 56px; }

.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  white-space: nowrap;
}

.search-wrap { flex: 1; max-width: 460px; }
.search-wrap input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 12px 18px 12px 40px;
  font: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.7 10.3a6 6 0 1 0-1.4 1.4l3.5 3.5.7-.7zM6 11a5 5 0 1 1 0-10 5 5 0 0 1 0 10'/%3E%3C/svg%3E") 14px 50% no-repeat;
}

.auth-btns { display: flex; gap: 8px; }
.btn-login {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 0 0;
}
.tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
}
.tab.is-on { background: #3b82f6; color: #fff; }

.demo-bar {
  margin-top: 14px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.promo {
  min-height: 200px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55));
}
.promo > * { position: relative; z-index: 1; padding: 22px; }
.promo b { display: block; font-size: 26px; letter-spacing: -0.03em; margin-top: 90px; }
.promo span { opacity: 0.95; font-weight: 600; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 10px 0 14px;
}
.section-head h2 { font-size: 24px; max-width: none; }
.see { color: #16a34a; font-weight: 800; font-size: 14px; }

.store-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 72px;
}
.store-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: inherit;
  min-width: 240px;
}
.store-photo {
  height: 140px;
  background: #e5e7eb center/cover no-repeat;
}
.store-body { padding: 12px 14px 14px; }
.store-body h3 { font-size: 16px; margin-bottom: 2px; }
.store-body p { color: #64748b; font-size: 13px; }
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.cats {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 24px;
}
.cat {
  text-align: center;
  min-width: 84px;
  color: inherit;
}
.cat img, .cat-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  margin: 0 auto 6px;
}
.cat span { font-size: 12px; font-weight: 700; }

.local-hero { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 24px 0; }
.local-photo { height: 200px; border-radius: 20px; background: #e5e7eb center/cover; }
.menu-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.menu-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.sticky-cta {
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #16a34a;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  margin: 16px 0 32px;
}

@media (max-width: 900px) {
  .promo-row, .store-grid, .local-hero { grid-template-columns: 1fr; }
  .search-wrap, .auth-btns { display: none; }
}
