:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1d21;
  --muted: #5c6670;
  --border: #e2e6ea;
  --primary: #0b6e4f;
  --primary-hover: #095c42;
  --danger: #b42318;
  --warn: #9a6700;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); }
.wrap { width: min(920px, 100% - 1.5rem); margin: 0 auto; }
main.wrap { flex: 1; padding: 1.25rem 0 2.5rem; }
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav { display: flex; gap: .9rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--primary); }
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  font-size: .9rem;
  color: var(--muted);
}
.footer-inner { flex-direction: column; align-items: flex-start; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.card.narrow { max-width: 640px; }
.hero h1 { margin-top: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.muted, .hint { color: var(--muted); font-size: .92rem; }
.warn { color: var(--warn); font-size: .85rem; }
.stack { display: grid; gap: .9rem; }
.stack label, fieldset label.check { display: grid; gap: .35rem; font-weight: 600; }
input[type=text], input[type=password], input[type=url], textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem 1rem;
}
legend { padding: 0 .35rem; font-weight: 700; }
label.check {
  display: flex !important;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
  margin: .35rem 0;
}
label.check input { width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.buy {
  width: 100%;
  background: #ffd814;
  border-color: #f7ca00;
  color: #111;
  font-size: 1.05rem;
  padding: .95rem 1rem;
  margin: .4rem 0;
}
.btn.buy:hover { background: #f7ca00; }
.buy-buttons { margin: 1rem 0 .5rem; }
.flag { font-size: 1.2rem; }
.row.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.flash {
  padding: .8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.flash-success { background: #e8f7ef; color: #0b6e4f; }
.flash-error { background: #fef3f2; color: var(--danger); }
.disclosure-box {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .92rem;
  color: var(--muted);
  margin: 1rem 0;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.actions form.inline { display: inline; margin: 0; }
button.link {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font: inherit; padding: 0; font-weight: 600;
}
button.link.danger { color: var(--danger); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
a.product-card { text-decoration: none; color: inherit; transition: transform .12s ease; }
a.product-card:hover { transform: translateY(-2px); }
.product-card h2 { font-size: 1.05rem; margin: .4rem 0; }
.product-icon {
  width: 3rem; height: 3rem; border-radius: 12px;
  background: #eef6f2; display: grid; place-items: center; font-size: 1.4rem;
}
.product-icon.large { width: 4.5rem; height: 4.5rem; font-size: 2rem; flex-shrink: 0; }
.product-hero { display: flex; gap: 1rem; align-items: flex-start; }
.product-page h1 { margin-top: 0; }
.crumb { margin: 0 0 .75rem; }
.bullets { padding-left: 1.2rem; }
.prose h2 { margin-top: 1.4rem; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.center { text-align: center; }
code { background: #f1f3f5; padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .product-hero { flex-direction: column; }
}
