:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1c2733;
  --muted: #5b6875;
  --line: #dde3ea;
  --accent: #1f6fb2;
  --accent-ink: #ffffff;
  --new: #1d7a4c;
  --used: #8a5a12;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--accent); }

.hero { padding: 40px 0 16px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 70ch; margin: 0; }

section { margin: 32px 0; }
h2 { font-size: 1.35rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(20, 40, 70, .1); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 4px 0 0; font-size: 1.05rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.price { font-weight: 700; }
.price.big { font-size: 1.4rem; margin: 6px 0; }
.more { color: var(--muted); font-style: italic; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; width: fit-content; margin-right: 6px; }
.badge.new { background: #e3f4ea; color: var(--new); }
.badge.used { background: #fbefdc; color: var(--used); }
.badge.sold { background: #f1dede; color: #9b2c2c; }

.crumbs { margin: 20px 0; font-size: .9rem; color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.gallery .main-img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs img { border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; }
.details h1 { font-size: 1.5rem; line-height: 1.3; margin: 8px 0; }
.lead { font-size: 1.05rem; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 600; margin: 8px 0; }
.rx-note { font-size: .9rem; color: var(--muted); }
.checks { padding-left: 1.2em; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.ship { color: var(--muted); font-size: .92rem; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.prose { max-width: 70ch; margin: 32px 0 48px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; padding: 24px 0; font-size: .9rem; color: var(--muted); }
.site-footer .fine { font-size: .8rem; }

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