:root {
  --bg: #f6f3ee;
  --ink: #1b1a18;
  --muted: #6b6358;
  --card: #fff;
  --line: #e4ddd3;
  --accent: #8a3b2f;
  --ok: #2f6b4f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .foot-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 0; }
.logo { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: .08em; }
.search { display: flex; flex: 1; min-width: 180px; }
.search input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; }
.search button, .btn, button { border: 0; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.search button { border-radius: 0 6px 6px 0; }
.btn { display: inline-block; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); }
.cart-link span { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 12px; }
.flash { padding: 10px 16px; text-align: center; }
.flash.ok { background: #e7f5ec; }
.flash.err { background: #fde8e6; }
.hero { padding: 28px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; display: block; }
.thumb, .noimg { aspect-ratio: 1; background: #eee8df; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.thumb img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.prices { margin-top: 8px; }
.price-old { text-decoration: line-through; color: var(--muted); margin-right: 8px; }
.price-pro { color: var(--ok); font-weight: 700; }
.crumbs { margin: 16px 0; color: var(--muted); }
.crumbs a { color: inherit; }
.sep { margin: 0 6px; }
.pager { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; color: inherit; }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.form { display: grid; gap: 12px; max-width: 520px; background: #fff; padding: 16px; border-radius: 12px; }
.form input, .form textarea, .form select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chips a, .chips button { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; text-decoration: none; color: inherit; }
.reels { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 20px; }
.reel { min-width: 92px; width: 92px; background: #111; color: #fff; border: 0; border-radius: 18px; padding: 0; overflow: hidden; cursor: pointer; }
.reel img { width: 100%; height: 140px; object-fit: cover; display: block; }
.reel span { display: block; padding: 6px; font-size: 12px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal-box { background: #fff; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px; border-radius: 12px; position: relative; }
.modal-close { position: absolute; right: 10px; top: 8px; background: transparent; color: #111; font-size: 24px; }
.slider img { width: 100%; max-height: 360px; object-fit: contain; background: #111; }
.prose { max-width: 760px; }
.foot { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); }
.foot nav { display: grid; gap: 6px; }
.sr { position: absolute; left: -9999px; }
.inline { display: inline; }
@media (max-width: 800px) {
  .product-page, .split { grid-template-columns: 1fr; }
}
