*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4EF;
  --dark: #0C0B09;
  --red: #E63C1E;
  --muted: #7A756D;
  --border: #E0DAD1;
  --white: #FFFFFF;
  --card-bg: #EFEAE2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.nav-search-btn {
  width: 41px; height: 41px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.nav-search-btn:hover { border-color: var(--dark); color: var(--dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #2A2820; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--dark); }

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
}

.btn-red:hover {
  background: #CC3318;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,60,30,0.28);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
}

/* ─── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--dark); }

.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ─── MARKET HERO ─────────────────────────────────── */
.market-hero {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 484px;
  overflow: hidden;
  position: relative;
}

.mh-left {
  padding: 64px 56px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 100% 50%, rgba(230,60,30,0.08) 0%, transparent 55%);
}

.mh-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92,89,89,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #141414;
  width: fit-content;
  margin-bottom: 28px;
}

.mh-tag .live-dot {
  width: 6px; height: 6px;
  border-radius: 2.9px;
  background: #4ADE80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.mh-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 5.5vw, 79px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #141414;
  line-height: 1.0;
  margin-bottom: 20px;
}

.mh-title .accent { color: var(--red); }

.mh-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #323232;
  margin-bottom: 44px;
}

.mh-location::before {
  content: '◎';
  font-size: 12px;
  color: var(--red);
}

.mh-stats {
  display: flex;
  gap: 0;
}

.mh-stat {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid #9d9d9d;
}

.mh-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.mh-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #141414;
  line-height: 1;
}

.mh-stat-num .red { color: var(--red); }

.mh-stat-label {
  font-size: 12px;
  color: #323232;
  margin-top: 4px;
}

/* Right visual panel */
.mh-right {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.mh-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mh-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mh-overlay-text {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: 'Inter', sans-serif;
  font-size: 180px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* Small floating cards */
.mh-mini-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.5);
}

.mh-mini-card.mc-tl {
  top: 28px; left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #FFF0ED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.mc-t { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: #0C0B09; }
.mc-s { font-size: 10px; color: #9A948C; margin-top: 1px; }

.mh-mini-card.mc-br {
  bottom: 28px; right: 28px;
}

.mc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.star { color: #F59E0B; font-size: 11px; }
.rating-num { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #0C0B09; }
.rating-count { font-size: 10px; color: #9A948C; }

/* ─── META BAR ────────────────────────────────────── */
.meta-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
  flex: 1;
}

.meta-item:last-child { border-right: none; }

.meta-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.meta-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 2px;
}

.meta-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.meta-value .open { color: #16A34A; }

/* ─── FILTER BAR ──────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.filter-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-cat {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}

.filter-cat:hover { border-color: var(--dark); color: var(--dark); }

.filter-cat.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select {
  padding: 8px 36px 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--dark);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sort-caret {
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

/* ─── FEATURED PRODUCTS ───────────────────────────── */
.featured {
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 56px 48px 40px;
}

.section-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  border-top: 1px solid var(--border);
}

/* Large feature card */
.prod-card-lg {
  border-right: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.prod-card-lg:hover .pcl-photo { transform: scale(1.03); }

.pcl-img {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.pcl-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pcl-body {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pcl-vendor {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified { color: var(--red); font-size: 10px; }

.pcl-name {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 4px;
}

.pcl-meta {
  font-size: 13px;
  color: var(--muted);
}

.pcl-price-col { text-align: right; }

.pcl-price {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.pcl-unit {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.pcl-add {
  margin-top: 10px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.pcl-add:hover { background: var(--red); }

/* Small product cards */
.prod-card-sm {
  border-right: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
}

.prod-card-sm:last-child { border-right: none; }
.prod-card-sm:hover .pcs-photo { transform: scale(1.04); }

.pcs-img {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pcs-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pcs-body { padding: 20px 24px; }

.pcs-vendor {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pcs-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

.pcs-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.pcs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pcs-price {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.pcs-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-green { background: #DCFCE7; color: #15803D; }
.badge-orange { background: #FEF3C7; color: #92400E; }

/* ─── STALLS GRID ─────────────────────────────────── */
.stalls { border-bottom: 1px solid var(--border); }

.stalls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.stall-card {
  padding: 32px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.stall-card:hover { background: var(--card-bg); }
.stall-card:nth-child(3n) { border-right: none; }

.stall-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stall-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.sa-1, .sa-2, .sa-3, .sa-4, .sa-5, .sa-6 { background: #EFEAE2; }

.stall-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: #DCFCE7;
  color: #15803D;
  letter-spacing: 0.02em;
}

.stall-name {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

.stall-owner {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.stall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.stall-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.stall-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stall-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stall-stars { color: #F59E0B; font-size: 12px; letter-spacing: 1px; }
.stall-score { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; }
.stall-reviews { font-size: 11px; color: var(--muted); }

.stall-products {
  font-size: 12px;
  color: var(--muted);
}

.stall-products strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

/* ─── ABOUT ───────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.about-left {
  padding: 72px 56px 72px 48px;
  border-right: 1px solid var(--border);
}

.about-left h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  margin-top: 20px;
}

.about-left p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-right {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.fact-item:first-child { padding-top: 0; }
.fact-item:last-child { border-bottom: none; padding-bottom: 0; }

.fact-num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  min-width: 80px;
}

.fact-num .red { color: var(--red); }

.fact-body {}

.fact-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.fact-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CTA STRIP ───────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-strip h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.05;
}

.cta-strip h2 .red { color: var(--red); }
.cta-strip h2 .dim { color: rgba(255,255,255,0.25); font-style: italic; font-weight: 300; }

.cta-strip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: right;
  max-width: 220px;
  line-height: 1.6;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  padding: 56px 48px 36px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom p span { color: var(--dark); font-weight: 500; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Breadcrumb */
  .breadcrumb { padding: 12px 20px; overflow-x: auto; white-space: nowrap; font-size: 12px; }

  /* Market hero: stack columns */
  .market-hero { grid-template-columns: 1fr; min-height: auto; }
  .mh-left { padding: 40px 20px 36px; border-right: none; border-bottom: 1px solid var(--border); }
  .mh-right { height: 220px; }
  .mh-mini-card { display: none; }
  .mh-title { font-size: clamp(40px, 11vw, 64px); }
  .mh-stats { gap: 0; flex-wrap: wrap; }
  .mh-stat { padding-right: 24px; margin-right: 24px; }

  /* Meta bar: 2 columns */
  .meta-bar { flex-wrap: wrap; }
  .meta-item {
    min-width: 50%;
    border-right: 1px solid var(--border);
    padding: 16px 20px;
  }
  .meta-item:nth-child(2n) { border-right: none; }
  .meta-item:last-child { border-right: none; }

  /* Filter bar */
  .filter-bar {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
  }
  .filter-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filter-cats::-webkit-scrollbar { display: none; }
  .filter-cat { white-space: nowrap; }
  .filter-right { width: 100%; justify-content: flex-end; }

  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 36px 20px 28px;
  }

  /* Featured grid: stack */
  .featured-grid { grid-template-columns: 1fr; }
  .prod-card-lg { border-right: none; border-bottom: 1px solid var(--border); }
  .pcl-img { height: 240px; }
  .pcl-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .pcl-price-col { text-align: left; }
  .prod-card-sm { border-right: none; border-bottom: 1px solid var(--border); }
  .prod-card-sm:last-child { border-bottom: none; }

  /* Stalls grid */
  .stalls-grid { grid-template-columns: 1fr; }
  .stall-card { border-right: none !important; padding: 24px 20px; }

  /* About section */
  .about { grid-template-columns: 1fr; }
  .about-left { padding: 48px 20px 36px; border-right: none; border-bottom: 1px solid var(--border); }
  .about-right { padding: 36px 20px 48px; }

  /* CTA */
  .cta-strip { grid-template-columns: 1fr; padding: 48px 20px; gap: 28px; }
  .cta-strip-right { align-items: flex-start; }
  .cta-note { text-align: left; max-width: 100%; }

  /* Footer */
  footer { padding: 40px 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; }
}

@media (max-width: 480px) {
  .meta-item { min-width: 100%; border-right: none !important; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
