:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.97 0.006 20);
  --surface-strong: oklch(0.93 0.012 20);
  --ink: oklch(0.17 0.025 20);
  --muted: oklch(0.42 0.025 20);
  --primary: oklch(0.36 0.137 0);
  --primary-dark: oklch(0.28 0.12 0);
  --accent: oklch(0.62 0.16 148);
  --warning: oklch(0.72 0.16 72);
  --danger: oklch(0.56 0.18 28);
  --border: oklch(0.87 0.012 20);
  --radius: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 18px 24px;
}

.brand,
.nav,
.actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  height: 32px;
  justify-content: center;
  letter-spacing: 0;
  width: 32px;
}

.nav {
  color: var(--muted);
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(32px, 5vw, 52px) 24px;
}

.hero-copy {
  max-width: 720px;
}

.label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 66ch;
  text-wrap: pretty;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  border: 1px solid var(--border);
  color: var(--ink);
}

.secondary:hover {
  background: var(--surface);
}

.note,
.fine-print {
  color: var(--muted);
  font-size: 14px;
}

.product-shot {
  margin: 0;
}

.product-shot img {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-radius: var(--radius);
  display: block;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  width: 100%;
}

.product-shot figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.status-strip {
  background: var(--primary);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-strip div {
  background: color-mix(in oklch, var(--primary), black 10%);
  padding: 24px;
}

.status-strip strong {
  display: block;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
}

.status-strip span {
  color: oklch(0.88 0.03 20);
  display: block;
  margin-top: 8px;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(58px, 8vw, 96px) 24px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p,
.split p,
.faq p,
.plain-grid p {
  color: var(--muted);
}

.toolbar,
.store-tools {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) minmax(150px, 180px) auto;
  margin-top: 28px;
}

.store-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) auto;
}

.toolbar label,
.store-tools label,
.checkout-form label {
  display: grid;
  gap: 6px;
}

.toolbar span,
.store-tools span,
.checkout-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: 2px solid color-mix(in oklch, var(--primary), white 72%);
}

button.button {
  border: 1px solid var(--border);
  cursor: pointer;
}

button.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.store-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  margin-top: 22px;
}

.map-panel,
.store-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.map-panel {
  background: var(--surface);
  min-height: 420px;
  overflow: hidden;
  padding: 18px;
}

.map-canvas {
  background:
    linear-gradient(135deg, oklch(0.94 0.018 145), oklch(0.98 0.006 20));
  border-radius: 10px;
  height: 384px;
  position: relative;
}

.map-canvas::before {
  background: color-mix(in oklch, var(--primary), white 86%);
  border: 1px solid color-mix(in oklch, var(--primary), white 56%);
  border-radius: 45% 55% 50% 45%;
  content: "";
  height: 82%;
  left: 23%;
  position: absolute;
  top: 8%;
  transform: rotate(8deg);
  width: 48%;
}

.map-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  left: 20px;
  position: absolute;
  top: 18px;
}

.map-point {
  background: var(--warning);
  border: 2px solid white;
  border-radius: 999px;
  cursor: pointer;
  height: 14px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  z-index: 2;
}

.map-point.available {
  background: var(--accent);
}

.map-point.out {
  background: var(--muted);
}

.store-list {
  display: grid;
  max-height: 420px;
  overflow: auto;
}

.store-item {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.store-item:last-child {
  border-bottom: 0;
}

.store-item span,
.store-item small {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.stock-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.stock-item {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto auto;
  padding: 16px;
}

.stock-title {
  font-weight: 800;
  margin-bottom: 2px;
}

.stock-meta {
  color: var(--muted);
  font-size: 14px;
}

.stock-price {
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.badge.available {
  background: var(--accent);
  color: white;
}

.badge.out {
  background: var(--surface-strong);
  color: var(--muted);
}

.badge.unknown {
  background: var(--warning);
  color: var(--ink);
}

.loading,
.error {
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 18px;
}

.split {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.checkout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 120px;
}

.price {
  color: var(--primary);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.checkout-box .button {
  margin: 12px 0;
  width: 100%;
}

.plain-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 28px;
}

.plain-grid article {
  border-top: 2px solid var(--primary);
  padding-top: 16px;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.site-footer {
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  padding: 32px 24px;
  text-align: center;
}

.site-footer p {
  margin: 0 auto 8px;
  max-width: 760px;
}

code {
  background: var(--surface-strong);
  border-radius: 4px;
  color: var(--ink);
  padding: 2px 5px;
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-bottom: 24px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 42px);
  }

  .product-shot img {
    max-height: 88px;
    object-fit: contain;
  }

  .product-shot figcaption {
    display: none;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stock-item {
    grid-template-columns: 1fr;
  }

  .stock-price {
    white-space: normal;
  }

  .toolbar,
  .store-tools,
  .store-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 280px;
  }

  .map-canvas {
    height: 244px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
