
:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #202521;
  --muted: #6f756d;
  --line: #ddd7cc;
  --accent: #8b6f3f;
  --sage: #53675a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, .96);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 150px; height: auto; display: block; }
.top-nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
main { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px); }
.catalog-head { padding: 38px 0 22px; max-width: 920px; }
.eyebrow { color: var(--sage); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.02; margin: 0 0 14px; letter-spacing: 0; }
h2 { font-size: 24px; margin: 0 0 18px; letter-spacing: 0; }
.catalog-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 760px; }
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}
.catalog-tools label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.catalog-count { color: var(--muted); margin: 14px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}
.card-image { aspect-ratio: 4 / 5; background: #eee8dc; display: grid; place-items: center; overflow: hidden; border-radius: 8px 8px 0 0; }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.card-meta, .card-bottom { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.card-meta span, .card-bottom span { min-width: 0; overflow-wrap: anywhere; }
.product-card h2 { font-size: 17px; line-height: 1.24; margin: 0; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card h2 a { overflow-wrap: anywhere; }
.product-card dl, .summary-list { display: grid; gap: 6px; margin: 0; }
.card-specs { align-self: stretch; }
.product-card dl div, .summary-list div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; min-width: 0; align-items: start; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card-specs dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bottom strong, .buy-box strong { color: var(--accent); font-size: 18px; }
.product-card .card-bottom { align-self: stretch; margin-top: auto; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.pagination a, .load-more, .buy-box a {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
}
.pagination a.active, .load-more, .buy-box a { background: var(--ink); color: #fff; border-color: var(--ink); }
.load-more { display: block; margin: 22px auto 0; cursor: pointer; }
.breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; color: var(--muted); margin: 24px 0; font-size: 14px; }
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #eee8dc; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 4px; cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { position: sticky; top: 16px; }
.summary-list { margin: 24px 0; }
.summary-list div { grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
.buy-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sales-contact { display: grid; align-items: start; gap: 14px; }
.sales-panel { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sales-panel span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sales-lines { display: grid; gap: 8px; margin: 0; }
.sales-lines div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.sales-lines dt { color: var(--muted); font-size: 14px; }
.sales-lines dd { margin: 0; }
.sales-lines a { min-width: 0; width: fit-content; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 18px; font-weight: 750; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sales-panel p { max-width: 560px; margin: 2px 0 0; color: var(--muted); line-height: 1.5; }
.site-footer { display: grid; grid-template-columns: minmax(300px, 1.25fr) minmax(260px, .85fr) minmax(300px, 1fr); gap: clamp(28px, 7vw, 120px); align-items: start; padding: 34px clamp(30px, 4vw, 58px) 32px; color: rgba(255,255,255,.68); background: #202932; border-top: 1px solid #202932; margin-top: 64px; }
.site-footer img { width: 150px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand, .footer-contact, .footer-projects { display: grid; align-content: start; gap: 10px; }
.footer-brand p, .footer-projects p { margin: 10px 0 0; max-width: 660px; color: rgba(255,255,255,.62); font-weight: 600; line-height: 1.55; }
.footer-contact span, .footer-projects span { color: #fff; font-weight: 800; }
.footer-contact a, .footer-inline-link { width: fit-content; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact small { color: rgba(255,255,255,.56); font-weight: 600; line-height: 1.45; }
.content-section { margin-top: 42px; }
.spec-table, .variants-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.spec-table th, .spec-table td, .variants-table th, .variants-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.spec-table th { width: 260px; color: var(--muted); font-weight: 500; }
.variants-table img { width: 58px; height: 58px; object-fit: contain; background: #f5f1e8; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 920px) {
  .catalog-tools { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .product-page { grid-template-columns: 1fr; }
  .product-summary { position: static; }
}
@media (max-width: 560px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .catalog-tools { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .product-grid { grid-template-columns: 1fr; }
}
