:root {
  --ink: #1c241c;
  --green: #1f4d3a;
  --green-2: #2f6b50;
  --sage: #e7f2df;
  --cream: #f7f4ee;
  --line: #ddd6c8;
  --paper: #fffdf8;
  --warn: #8a3d2f;
  --ok: #1f4d3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row, .nav-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-row { padding: 16px 0 8px; flex-wrap: wrap; }
.logo img { height: 42px; width: auto; }
.cart-link {
  text-decoration: none;
  background: var(--green);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-row { padding: 0 0 12px; flex-wrap: wrap; }
.nav-row a { margin-right: 16px; text-decoration: none; }
.search input { width: 220px; border-radius: 999px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.pager a, .pager strong { padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.pager strong { background: var(--green); color: white; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 10px;
}
.hero img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; }
.kicker { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--green-2); }
h1, h2, h3 { line-height: 1.2; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid.cats { grid-template-columns: repeat(3, 1fr); }
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.card a { text-decoration: none; color: inherit; }
.card img, .product-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--sage); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--sage); flex: 0 0 auto; }
.product-copy { margin-top: 16px; }
.product-copy img { max-width: 100%; height: auto; border-radius: 12px; }
.product-copy h3, .product-copy h4 { margin: 1.1rem 0 0.4rem; }
.specs { margin-top: 28px; }
.price { font-size: 1.15rem; }
.muted { color: #5d675d; }
.stock-ok { color: var(--ok); }
.stock-no { color: var(--warn); }
.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding-top: 24px;
}
button, .button {
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .button.secondary { background: transparent; color: var(--green); border: 1px solid var(--green); }
label { display: block; margin: 12px 0; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
}
.checkout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.flash { padding: 10px 12px; border-radius: 10px; background: var(--sage); }
.flash.err { background: #f6e4df; }
.site-footer { margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--line); }
.admin-bar { background: var(--green); color: white; }
.admin-bar a { color: white; margin-right: 14px; }
.qty { width: 80px; }
@media (max-width: 800px) {
  .hero, .product, .checkout, .grid, .grid.cats { grid-template-columns: 1fr; }
  .hero img { height: 200px; }
}
