:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171717;
  background: #f7f7f5;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }

/* Runtime sets this in <head> only after startup succeeded. */
html[data-instant-pending] body { visibility: hidden !important; }

client-root,
router-layout { display: contents; }

.site-header,
.site-footer,
.page {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d9d9d4;
}

.brand { font-weight: 800; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; }
.cart-link { font-weight: 700; }

.page { padding-block: 56px 96px; min-height: 70vh; }
.site-footer { border-top: 1px solid #d9d9d4; padding-block: 28px 48px; }

.stack { display: grid; gap: 28px; }
.hero { padding-bottom: 18px; }
.hero h1, h1, h2 { line-height: 1.08; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }

.filter { display: grid; gap: 8px; max-width: 220px; }
.filter select { padding: 10px 12px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.product-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid #d9d9d4;
  background: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.variant-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  width: fit-content;
  border: 1px solid #171717;
  background: #171717;
  color: white;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
}
.button.secondary { background: white; color: #171717; }
.button.selected { outline: 3px solid #8a8a84; outline-offset: 2px; }
.button:disabled { opacity: .45; cursor: not-allowed; }

.selected-variant {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 520px;
  padding: 18px;
  background: white;
  border: 1px solid #d9d9d4;
}

.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 700px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  background: white;
  border: 1px solid #d9d9d4;
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 18px; }
  .site-nav { gap: 12px; }
  .page { padding-top: 36px; }
}

.product-notes {
  margin-top: 80px;
  display: grid;
  gap: 18px;
}
.product-notes article {
  min-height: 260px;
  padding: 28px;
  background: white;
  border: 1px solid #d9d9d4;
}
