:root {
  color-scheme: dark;
  --bg: #10131a;
  --panel: #181d27;
  --panel-strong: #202735;
  --line: #303849;
  --text: #f2f5fb;
  --muted: #9aa5b7;
  --accent: #8cf0b5;
  --accent-ink: #0d2117;
  --shadow: 0 18px 45px rgb(0 0 0 / 18%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #1d2a32 0, var(--bg) 38rem);
  color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
.topbar, .footer, .layout { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.2rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
nav { display: flex; gap: 20px; color: var(--muted); font-size: .92rem; }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--text); }
.locale-control { display: inline-flex; align-items: center; }
.locale-select { width: auto; min-height: 36px; padding: 0 28px 0 10px; font-size: .86rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 40px;
  padding: 72px 0 58px;
  align-items: end;
}
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(2.3rem, 6vw, 5rem); line-height: .98; letter-spacing: -.07em; }
h2 { margin-bottom: 0; font-size: 1.7rem; letter-spacing: -.04em; }
.lead { max-width: 600px; color: var(--muted); font-size: 1.1rem; }
.submit-form, .filters, .product-card, .store-card {
  border: 1px solid var(--line);
  background: rgb(24 29 39 / 84%);
  box-shadow: var(--shadow);
  border-radius: 18px;
}
.submit-form { padding: 20px; }
.submit-form label { display: block; margin-bottom: 10px; font-weight: 700; }
.submit-row { display: flex; gap: 8px; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel-strong);
}
button { cursor: pointer; }
.button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 800;
}
.button.ghost { color: var(--text); border: 1px solid var(--line); background: transparent; }
.button:hover { filter: brightness(1.08); }
.section { padding: 26px 0 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 8px; padding: 10px; margin-bottom: 20px; }
.product-grid, .store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card, .store-card { overflow: hidden; }
.product-card { display: flex; flex-direction: column; min-height: 330px; }
.product-image { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; background: #111822; }
.product-image.placeholder { display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
.product-body, .store-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px; }
.product-title, .store-title { margin: 0; font-size: 1rem; line-height: 1.2; }
.product-title a, .store-title a { text-decoration: none; }
.product-title a:hover, .store-title a:hover { color: var(--accent); }
.product-description { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 1.05rem; font-weight: 800; }
.badge { display: inline-flex; width: max-content; border-radius: 999px; padding: 3px 8px; color: var(--accent); background: rgb(140 240 181 / 10%); font-size: .72rem; }
.muted, .store-meta { color: var(--muted); font-size: .86rem; }
.empty { padding: 36px 0; color: var(--muted); text-align: center; }
.hidden { display: none !important; }
.load-more { display: block; margin: 22px auto 0; }
.store-card { padding: 16px; }
.store-icon { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; background: var(--panel-strong); }
.store-body { padding: 14px 0 0; }
.footer { display: flex; justify-content: space-between; padding: 35px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.detail-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px; border: 1px solid var(--line); background: rgb(24 29 39 / 84%); border-radius: 18px; }
.detail-image { width: 100%; max-height: 520px; border-radius: 12px; object-fit: contain; background: #111822; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .product-grid, .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 12px; }
  nav { gap: 14px; }
  .filters { grid-template-columns: 1fr; }
  .submit-row { flex-direction: column; }
  .product-grid, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; }
}
