
:root {
  --ink: #1f2730;
  --muted: #66727f;
  --line: #d9dde1;
  --paper: #fbfaf8;
  --panel: #ffffff;
  --accent: #9d7b46;
  --blue: #34536d;
  --green: #2f6b4f;
  --shadow: 0 10px 30px rgba(31, 39, 48, .08);
  --header-height: 75px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 14px clamp(18px, 4vw, 52px); background: rgba(251, 250, 248, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand-mark { display: flex; align-items: center; min-width: 142px; }
.brand-logo { width: 142px; height: auto; }
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.top-nav a { padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--blue); font-size: 14px; }
.top-nav a:hover { border-color: var(--line); background: #fff; }
.page-shell { width: min(1480px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 52px; }
.catalog-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 48px); line-height: 1.08; letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: 0; }
.catalog-intro p:not(.eyebrow) { max-width: 760px; margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 10px; }
.metric-strip span { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.metric-strip strong { display: block; color: var(--ink); font-size: 22px; }
.catalog-tools { position: sticky; top: var(--header-height); z-index: 18; display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr); gap: 14px; padding: 16px; margin-bottom: 18px; background: rgba(255, 255, 255, .98); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.search-box label, .filter-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
input, select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfa; color: var(--ink); font: inherit; letter-spacing: 0; }
input:focus, select:focus { outline: 2px solid rgba(157, 123, 70, .28); border-color: var(--accent); }
.catalog-status { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.product-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-image { display: block; aspect-ratio: 1 / 1; background: #f1f2f1; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.card-body { display: grid; gap: 10px; padding: 14px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: #edf0f2; color: var(--muted); font-size: 12px; white-space: nowrap; }
.badge-stock { background: #e7f1eb; color: var(--green); }
.badge-new { background: #f3ead9; color: var(--accent); }
.card-title { min-height: 46px; font-weight: 700; line-height: 1.28; }
.card-meta { display: grid; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.card-meta div, .summary-list div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.card-bottom strong { color: var(--ink); }
.load-more { display: block; margin: 24px auto 0; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: #fff; font: inherit; cursor: pointer; }
.load-more[hidden] { display: none; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-link { min-width: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: #fff; }
.page-link.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.breadcrumbs { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--blue); }
.product-detail { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { display: block; aspect-ratio: 1 / 1; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(157, 123, 70, .18); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.summary-list { display: grid; gap: 10px; margin: 22px 0; }
.buy-panel { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8f7f3; }
.buy-panel strong { font-size: 24px; }
.status { color: var(--muted); }
.status.is-stock { color: var(--green); font-weight: 700; }
.sales-panel { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 12px; 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-panel a { width: fit-content; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sales-panel p { max-width: 560px; margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.detail-section { margin-top: 32px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.4; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 260px; color: var(--muted); font-weight: 600; }
.variant-table th { width: auto; }
.description { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; line-height: 1.65; }
.site-footer { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) minmax(220px, .7fr); gap: 28px; padding: 30px clamp(18px, 4vw, 52px); color: rgba(255,255,255,.72); background: #1f2730; border-top: 1px solid #1f2730; }
.site-footer img { width: 132px; height: auto; filter: brightness(0) invert(1); }
.site-footer p { max-width: 620px; margin: 14px 0 0; line-height: 1.55; }
.footer-contact, .footer-service { display: grid; align-content: start; gap: 8px; }
.footer-contact span, .footer-service span { color: #fff; font-weight: 700; }
.footer-contact a { width: fit-content; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact small { color: rgba(255,255,255,.58); line-height: 1.45; }
@media (max-width: 920px) {
  :root { --header-height: 144px; }
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .catalog-intro, .catalog-tools, .product-detail { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --header-height: 185px; }
  .page-shell { width: min(100% - 24px, 1480px); padding-top: 20px; }
  .top-nav { justify-content: flex-start; }
  .metric-strip, .filter-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { min-height: 58px; font-size: 14px; }
  .card-meta div { grid-template-columns: 1fr; gap: 2px; }
  .card-meta { font-size: 12px; }
  .card-bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-summary { padding: 18px; }
  .buy-panel { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  th, td { padding: 10px; }
}
