:root {
  --bg: #faf9f7;
  --ink: #1d1b18;
  --muted: #6b6760;
  --line: #e3ded6;
  --accent: #1c6e5b;
  --accent-ink: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 1.5rem; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: #fff;
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.site-header nav a { margin-left: 1rem; color: var(--muted); }
.site-footer { text-align: center; color: var(--muted); padding: 2rem; font-size: .85rem; }

.hero h1 { margin: 0 0 .25rem; font-size: 1.8rem; }
.hero p { color: var(--muted); margin-top: 0; }

.grid {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; color: var(--ink); transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); text-decoration: none; }
.card-img { aspect-ratio: 1; background: #f0ece5; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .75rem 1rem 1rem; }
.card-body h3 { margin: 0 0 .25rem; font-size: 1rem; }
.price { font-weight: 600; color: var(--accent); margin: 0; }
.placeholder { color: var(--muted); font-size: .85rem; }

.pager { display: flex; justify-content: space-between; margin: 2rem 0; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.back { display: inline-block; margin-bottom: 1rem; color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-img { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-top: 0; }
.desc { color: var(--muted); }
.buy { display: flex; flex-direction: column; gap: .75rem; max-width: 360px; margin-top: 1rem; }
.buy label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); gap: .25rem; }
.buy select, .buy input {
  padding: .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; background: #fff; color: var(--ink);
}
.buy button {
  padding: .8rem; background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.buy button:hover { background: #155946; }
.note { color: var(--muted); font-size: .8rem; }

.checkout, .thanks, .order { max-width: 520px; }
.status-badge {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em; background: #eef4f2; color: var(--accent);
}
.status-shipped, .status-delivered { background: #e7f3ec; color: #176b3b; }
.status-refunded, .status-cancelled { background: #f7ebe9; color: #a23b2a; }
.muted { color: var(--muted); }
.order-items { padding-left: 1.1rem; }
.tracking { font-weight: 600; }

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
}
