/* Shared look for every marketplace page. */
:root {
  --brand: #00A63A;
  --brand-2: #008A2F;
  --brand-deep: #004D1B;
  --brand-soft: #E8F8EE;
  --accent: #FF7518;
  --accent-dark: #E65C00;
  --gold: #FFB800;
  --ink: #1C252C;
  --muted: #5B6875;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --bg: #F2F4F3;
  --card: #FFFFFF;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.grid > * { min-width: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.55; }
h1, h2, h3, .logo { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }

/* Header */
header.site { background: linear-gradient(90deg, var(--brand-2), var(--brand)); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0, 77, 27, 0.22); }
.head { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 21px; letter-spacing: -0.4px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo::before { content: ''; width: 34px; height: 34px; border-radius: 10px; background: #fff url('/consumer_icon.png') center / cover no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); flex-shrink: 0; }
.logo small { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800; color: var(--brand-deep); background: var(--gold); padding: 2px 6px; border-radius: 5px; letter-spacing: 0.8px; }
.search { flex: 1; min-width: 0; display: flex; max-width: 580px; margin-left: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); border-radius: 10px; }
.search input { flex: 1; border: 0; border-radius: 10px 0 0 10px; padding: 11px 14px; background: #fff; outline: none; min-width: 0; }
.search button { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0 18px; border-radius: 0 10px 10px 0; cursor: pointer; }
.search button:hover { background: var(--accent-dark); }
.head-app { text-decoration: none; font-weight: 700; color: var(--brand-2); background: #fff; padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
.head-app:hover { background: var(--brand-soft); }
@media (max-width: 720px) { .head-app { display: none; } .logo small { display: none; } .logo { font-size: 0; gap: 0; } .head { gap: 10px; } }
@media (max-width: 420px) { .search input { padding: 10px; font-size: 14px; } .search button { padding: 0 12px; } .wrap { padding: 0 12px; } }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; border-radius: 11px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; border: 0; transition: background 0.15s, border-color 0.15s; }
.btn-main { background: var(--brand); color: #fff; }
.btn-main:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-line { background: #fff; color: var(--brand-2); border: 1.5px solid var(--brand); }
.btn-line:hover { background: var(--brand-soft); }

/* Listing cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
.item:hover { box-shadow: 0 8px 22px rgba(20, 32, 27, 0.08); transform: translateY(-2px); }
.item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #EEF1EF; display: block; }
.item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.item-price { font-weight: 800; color: var(--brand-2); font-size: 15px; }
.item-title { font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-loc { font-size: 11.5px; color: var(--faint); margin-top: auto; padding-top: 6px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

footer.site { background: var(--brand-deep); padding: 28px 0; color: #A7F3D0; font-size: 13px; text-align: center; margin-top: 40px; }
footer.site a { color: #fff; font-weight: 600; text-decoration: none; margin: 0 8px; }
footer.site a:hover { color: var(--gold); }
.skeleton { color: transparent !important; background: #E9ECEA; border-radius: 6px; }
