:root { --accent:#1f6feb; --bg:#f6f7f9; --text:#1b1f24; --muted:#6b7280; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 Onest,system-ui,-apple-system,"Segoe UI",sans-serif; background:var(--bg); color:var(--text); }
header, main { max-width:1180px; margin:0 auto; padding:16px; }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
header nav { display:flex; gap:16px; align-items:center; }
a { color:var(--accent); }
.logo { font-weight:700; font-size:20px; text-decoration:none; color:var(--text); }
.card { background:#fff; border-radius:12px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
form p { margin:0 0 12px; display:flex; flex-direction:column; gap:4px; }
input { padding:10px; border:1px solid #d0d5dd; border-radius:8px; font:inherit; }
button, .btn { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 18px; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button.link { background:none; color:var(--accent); padding:0; }
.errorlist { color:#b42318; margin:0; padding-left:18px; font-size:14px; }
.helptext { color:var(--muted); font-size:13px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px; border-bottom:1px solid #e5e7eb; }
.messages { list-style:none; padding:0; }

/* ---- каталог ---- */
.muted { color: var(--muted); font-size: 14px; }
h1 { font-size: 26px; margin: 0 0 8px; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.search input { width: 100%; }
.cats { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.cats__item { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.cats__item:hover { background: #e9edf5; }
.cats__item.is-active { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #d0d5dd; color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 12px; }
.pcard { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.pcard__img { aspect-ratio: 1; background: #f1f3f6; display: flex; align-items: center; justify-content: center; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.noimg { color: var(--muted); font-size: 13px; }
.pcard__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { font-size: 12px; color: var(--muted); }
.pcard__price { margin-top: auto; font-weight: 700; font-size: 17px; }
.pcard__price small, .pdetail__price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 24px 0; }
.crumbs { font-size: 14px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.gallery__main { aspect-ratio: 1; background: #f1f3f6; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid #e5e7eb; }
.pdetail__price { font-size: 30px; font-weight: 700; margin: 12px 0; }
.pdetail__desc { grid-column: 1 / -1; }
.props th { width: 45%; color: var(--muted); font-weight: 400; }
.related-title { margin-top: 32px; }
@media (max-width: 760px) {
  .catalog, .pdetail { grid-template-columns: 1fr; }
  .cats { flex-direction: row; flex-wrap: wrap; }
}

.legal { max-width:860px; margin:0 auto; line-height:1.6; }
.legal h2 { margin-top:1.6em; }
.site-footer { text-align:center; padding:24px; font-size:13px; }
.site-footer a { color:inherit; opacity:.7; }
