/* «Шоурум» (prototype/catalog-ui, variant A). Fonts: PT Serif, SIL OFL 1.1 (fonts/OFL.txt). */

@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/pt-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-serif-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/pt-serif-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap;
  src: url(/static/fonts/pt-serif-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #2b2118;
  --muted: #8a7d6b;
  --gold: #9a7b3f;
  --line: #e7dccb;
  --soft: #f1e8d9;
  --ground: #fbf8f3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "PT Serif", Georgia, serif; color: var(--ink); background: var(--ground); }
a { color: inherit; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .in { max-width: 1200px; margin: auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { height: 28px; width: auto; }
.search { flex: 1; min-width: 200px; display: flex; }
.search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #d9cbb3; border-radius: 4px 0 0 4px; font: inherit; }
.search button { border: 0; background: var(--gold); color: #fff; padding: 0 14px; border-radius: 0 4px 4px 0; font: inherit; cursor: pointer; }
.icons { display: flex; gap: 6px; }
.icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.icons svg { width: 18px; height: 18px; }
/* Section menu: one row, scrolls horizontally on a phone. */
.menu { max-width: 1200px; margin: auto; display: flex; gap: 4px; overflow-x: auto; padding: 0 16px; }
.menu a { white-space: nowrap; padding: 8px 10px; text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; }
.menu a.on { border-color: var(--gold); }

.crumbs { font-size: 13px; color: var(--muted); margin: 12px 0 8px; }
.crumbs a { text-decoration: none; }

/* Listing: subcategories and price ranges left, count/sort/grid (4–6 per row) right;
   chip rows and 2 per row on a phone. */
.listing { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.subcategories, .price-ranges { font-size: 14px; }
.subcategories a, .price-ranges a { display: block; padding: 4px 0; text-decoration: none; }
.subcategories a.on, .price-ranges a.on, .sort a.on, .pager a.on { font-weight: 700; }
.price-ranges { margin-top: 20px; }
.price-ranges b { display: block; margin-bottom: 4px; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 12px; font-size: 14px; }
.bar .count { color: var(--muted); }
.sort { display: flex; flex-wrap: wrap; gap: 12px; }
.sort a { text-decoration: none; }
.empty { background: var(--soft); padding: 12px; border-radius: 4px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0; }
.pager a, .pager span { min-width: 32px; padding: 6px 8px; text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; }
.pager span { border-color: transparent; }
.pager a.on { border-color: var(--gold); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tiles li { background: #fff; border: 1px solid #eee3d2; border-radius: 6px; display: flex; flex-direction: column; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 4px; flex: 1; padding-bottom: 4px; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px 6px 0 0; }
.tile .brand { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); padding: 6px 10px 0; }
.tile .t { font-size: 14px; line-height: 1.3; padding: 0 10px; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tile .p { font-size: 16px; font-weight: 700; padding: 0 10px; }
.tiles .vat { font-size: 11px; color: var(--muted); padding: 0 10px 10px; }

/* Home: subcategory tiles (picture + title), smaller than product tiles. */
.categories { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.category { text-decoration: none; display: block; }
.category img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 6px 6px 0 0; }
.category .t { display: block; padding: 8px 10px; font-size: 14px; }
.home-section h2 a { text-decoration: none; }

main { max-width: 1200px; margin: auto; padding: 16px; }
h1 { font-weight: normal; font-size: 26px; margin: 8px 0 16px; }
h2 { font-weight: normal; font-size: 20px; margin: 28px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }

.gallery { max-width: 560px; }
.gallery img { display: block; max-width: 100%; height: auto; }
.gallery > img { width: 100%; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery .thumbs img { width: 72px; height: 72px; flex: none; }
.product .brand { font-size: 12px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; margin: 0; }
.product h1 { margin-bottom: 4px; }
.product .art-nr { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.product .price { font-size: 28px; margin: 12px 0; }
.ask { font-size: 13px; background: var(--soft); padding: 8px 10px; border-radius: 4px; }

.contact-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { flex: 1; min-width: 150px; text-align: center; padding: 14px; border-radius: 6px; text-decoration: none; font-family: system-ui, sans-serif; font-weight: 600; }
.btn.call { background: var(--ink); color: #fff; }
.btn.wa { background: #25d366; color: #fff; }
.hours { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.product .vat { font-size: 13px; color: var(--muted); }
.legal-note { font-size: 12px; color: var(--muted); }

.legal { max-width: 760px; line-height: 1.6; }
.legal-text { overflow-wrap: anywhere; }
footer .legal-links { margin-top: 8px; font-size: 13px; }

footer { background: var(--ink); color: #d9cbb3; padding: 24px 16px; margin-top: 40px; font-size: 14px; text-align: center; line-height: 1.8; }
footer p { margin: 0; }
footer a { text-decoration: none; }

@media (max-width: 760px) {
  body.has-contact-bar { padding-bottom: 70px; }
  .contact-buttons { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; flex-wrap: nowrap; gap: 6px; padding: 8px; background: #fff; border-top: 1px solid var(--line); }
  .contact-buttons .btn { padding: 12px; min-width: 0; }
  .contact-buttons .number { display: none; }
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .subcategories, .price-ranges { display: flex; gap: 6px; overflow-x: auto; margin: 0; }
  .subcategories a, .price-ranges a { white-space: nowrap; border: 1px solid #d9cbb3; border-radius: 16px; padding: 4px 10px; }
  .price-ranges b { display: none; }
  .filters { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.icons a.lang-switch { font-size: 13px; text-decoration: none; letter-spacing: .04em; }
