:root {
  --ink: #101828;
  --muted: #667085;
  --subtle: #98a2b3;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #e4e7ec;
  --navy: #14233c;
  --coral: #e65e50;
  --emerald: #168f6b;
  --amber: #d98a16;
  --blue: #446cd2;
  --violet: #7656b5;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  color: white;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-shell {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand strong { color: #f3be55; }
.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--coral) 0 45%, white 45% 55%, white 55%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  inset: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--navy);
}
.live-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d0d5dd;
  font-size: 13px;
}
.live-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d6a3;
  box-shadow: 0 0 0 5px rgba(86, 214, 163, .12);
}

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding-block: 58px;
}
.hero-content { position: relative; z-index: 1; }
.kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-header .kicker { color: #f3be55; }
h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(45px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-text {
  max-width: 600px;
  margin: 24px 0;
  color: #cfd4dc;
  font-size: 17px;
  line-height: 1.65;
}
.set-list { display: flex; flex-wrap: wrap; gap: 8px; }
.set-list span {
  padding: 8px 11px;
  color: #e4e7ec;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 650;
}
.refresh-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
#refreshButton {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: #f3be55;
  font-weight: 750;
  cursor: pointer;
}
#refreshButton:disabled { opacity: .6; cursor: wait; }
#refreshInfo { margin: 0; color: #98a2b3; font-size: 12px; }
.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  line-height: 0;
}
.hero-visual img { width: 100%; height: auto; display: block; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.metrics article { padding: 25px 27px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { font-size: 30px; font-weight: 750; letter-spacing: -.04em; }
.metrics p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.catalogue, .sources-section { padding-top: 86px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.result-summary, .section-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.2fr 1.45fr;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.filter-panel label { display: grid; gap: 7px; }
.filter-panel label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.filter-panel select, .filter-panel input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  outline: none;
  background: white;
}
.filter-panel select:focus, .filter-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(68, 108, 210, .12);
}

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.product {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product:hover {
  transform: translateY(-2px);
  border-color: #cbd2dc;
  box-shadow: 0 15px 40px rgba(16, 24, 40, .07);
}
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.set-badge, .availability, .tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
}
.set-badge { padding: 6px 8px; color: #344054; background: #f2f4f7; }
.set-me05 { color: #5b3f8f; background: #f0ebf9; }
.set-me06 { color: #087255; background: #e7f6f0; }
.set-30th { color: #a54d18; background: #fff1dd; }
.availability { color: var(--muted); }
.availability.in_stock { color: var(--emerald); }
.availability.preorder { color: var(--amber); }
.availability.out_of_stock { color: #d04444; }
.product h3 { margin: 25px 0 13px; font-size: 18px; line-height: 1.42; letter-spacing: -.015em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 6px 8px; color: var(--muted); border: 1px solid var(--line); background: #fafafa; }
.store { margin: 22px 0; color: #344054; font-size: 13px; font-weight: 700; }
.store small { display: block; margin-top: 4px; color: var(--subtle); font-weight: 500; }
.product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price { font-size: 16px; font-weight: 750; }
.product-footer a { color: var(--blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.product-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
  border: 1px dashed #cbd2dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
}
.empty span { color: var(--coral); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.empty h3 { margin: 10px 0 7px; font-size: 20px; }
.empty p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; }

.sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.source {
  min-height: 84px;
  display: grid;
  grid-template-columns: 9px 1fr minmax(120px, auto);
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.source:nth-child(odd) { border-right: 1px solid var(--line); }
.source-state { width: 8px; height: 8px; border-radius: 50%; background: #f0b429; }
.source-state.ok { background: var(--emerald); }
.source-state.error { background: #d04444; }
.source h3 { margin: 0; font-size: 14px; }
.source h3 a { text-decoration: none; }
.source h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.source p { margin: 4px 0 0; color: var(--subtle); font-size: 11px; }
.source-result { text-align: right; }
.source-result strong { display: block; font-size: 17px; }
.source-result span { display: block; max-width: 230px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }

footer { margin-top: 90px; border-top: 1px solid var(--line); background: white; }
.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { max-width: 720px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .shell, .nav-shell { width: min(100% - 28px, 1180px); }
  .live-status { display: none; }
  .hero { min-height: auto; gap: 35px; padding-block: 42px; }
  h1 { font-size: 43px; }
  .refresh-row, .section-heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filter-panel, .products, .sources { grid-template-columns: 1fr; }
  .source:nth-child(odd) { border-right: 0; }
  .source { grid-template-columns: 9px 1fr; }
  .source-result { grid-column: 2; text-align: left; }
  .source-result span { max-width: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
