:root {
  --olive-950: #343b20;
  --olive-800: #4f5a2e;
  --olive-700: #65713a;
  --olive-100: #e8ecd9;
  --sand: #ceb071;
  --ink: #23241f;
  --muted: #676a60;
  --paper: #fbfbf7;
  --line: rgba(79, 90, 46, 0.15);
  --shadow: 0 22px 60px rgba(44, 49, 28, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 5%, rgba(206, 176, 113, 0.20), transparent 28rem),
    radial-gradient(circle at 7% 42%, rgba(101, 113, 58, 0.10), transparent 25rem),
    var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(79, 90, 46, 0.08);
  background: rgba(251, 251, 247, 0.90);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark { position: relative; width: 35px; height: 38px; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after {
  position: absolute;
  left: 0;
  content: "";
  border-radius: 7px 3px 7px 7px;
  transform: skewY(-29deg);
}
.brand-mark::before { top: 1px; width: 31px; height: 14px; background: var(--olive-700); }
.brand-mark::after { bottom: 0; width: 35px; height: 22px; background: var(--sand); }
.nav { display: flex; gap: 26px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav a { position: relative; padding: 9px 0; text-decoration: none; }
.nav a:hover, .nav a.is-active { color: var(--olive-800); }
.nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--sand);
  content: "";
}

.catalog-hero { padding: 82px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--olive-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 { max-width: 790px; margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 26px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(84px, 1fr)); gap: 12px; margin: 0; }
.hero-stats div { min-width: 108px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.hero-stats dt { color: var(--olive-800); font-size: 27px; font-weight: 850; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.catalog-section { padding: 80px 0 96px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.catalog-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 52px); letter-spacing: -.045em; }
.quiet-link { color: var(--olive-800); font-size: 14px; font-weight: 800; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.line-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.line-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}
.line-tab:hover { transform: translateY(-2px); }
.line-tab strong {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: var(--olive-800);
  background: var(--olive-100);
  font-size: 13px;
}
.line-tab.is-active { border-color: var(--olive-800); color: #fff; background: var(--olive-800); box-shadow: 0 14px 34px rgba(79,90,46,.20); }
.line-tab.is-active strong { color: var(--olive-950); background: var(--sand); }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; margin-bottom: 22px; }
.search-field, .select-field { position: relative; }
.search-field input, .select-field select {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border 160ms ease, box-shadow 160ms ease;
}
.search-field input { padding: 0 20px 0 50px; }
.select-field select { padding: 0 42px 0 18px; appearance: none; cursor: pointer; }
.search-field input:focus, .select-field select:focus { border-color: var(--olive-700); box-shadow: 0 0 0 4px rgba(101,113,58,.10); }
.search-icon { position: absolute; top: 14px; left: 18px; z-index: 1; color: var(--olive-700); font-size: 26px; line-height: 1; }
.select-field::after { position: absolute; top: 19px; right: 18px; pointer-events: none; color: var(--olive-700); content: "↓"; }
.results-bar { display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin-bottom: 18px; }
.results-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.clear-button { padding: 5px 0; border: 0; color: var(--olive-800); background: none; cursor: pointer; font-size: 13px; font-weight: 800; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.90); box-shadow: 0 13px 36px rgba(44,49,28,.07); transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.product-media { display: grid; width: 100%; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; padding: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 68% 64%, rgba(206,176,113,.16), transparent 48%), #fff; }
.product-media img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.product-body { display: flex; min-height: 228px; flex-direction: column; padding: 22px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--olive-700); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.product-page { flex: 0 0 auto; color: var(--muted); }
.product-sku { margin-top: 23px; color: var(--olive-800); font-size: 21px; }
.product-name { margin-top: 7px; font-size: 19px; font-weight: 750; line-height: 1.25; }
.product-facts { display: -webkit-box; overflow: hidden; margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-more { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; color: var(--olive-800); font-size: 13px; font-weight: 850; }
.more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border: 1px solid transparent; border-radius: 14px; cursor: pointer; text-decoration: none; font-size: 15px; font-weight: 800; }
.button-primary { color: #fff; background: var(--olive-800); box-shadow: 0 12px 28px rgba(79,90,46,.20); }
.button-primary:hover { background: var(--olive-950); }
.button-secondary { border-color: var(--line); background: #fff; }
.empty-state { padding: 62px 24px; border: 1px dashed rgba(79,90,46,.28); border-radius: 24px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 23px; }
.empty-state p { margin: 9px 0 0; }

.footer { display: flex; min-height: 118px; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--olive-800); font-weight: 800; text-decoration: none; }

.product-dialog { width: min(1100px, calc(100% - 34px)); max-height: min(850px, calc(100vh - 34px)); padding: 0; overflow: auto; border: 0; border-radius: 30px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px rgba(30,34,18,.34); }
.product-dialog::backdrop { background: rgba(32,35,24,.66); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; top: 17px; z-index: 5; float: right; width: 44px; height: 44px; margin: 17px 17px -61px 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 28px; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); min-height: 620px; }
.dialog-media { display: grid; min-height: 560px; place-items: center; padding: 34px; background: radial-gradient(circle at 65% 62%, rgba(206,176,113,.20), transparent 50%), var(--paper); }
.dialog-gallery { position: relative; display: grid; width: 100%; height: 100%; min-height: 492px; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.dialog-image-button { position: relative; display: grid; width: 100%; height: 100%; min-height: 420px; grid-column: 2; grid-row: 1; place-items: center; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.dialog-gallery.is-single .dialog-image-button { grid-column: 1 / -1; }
.dialog-image-button img { display: block; width: 100%; height: 100%; max-height: 500px; object-fit: contain; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 9px 12px; border: 1px solid rgba(79,90,46,.15); border-radius: 999px; color: var(--olive-800); background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(44,49,28,.10); font-size: 12px; font-weight: 800; }
.gallery-arrow { display: grid; width: 46px; height: 46px; grid-row: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--olive-800); background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(44,49,28,.10); cursor: pointer; font-size: 32px; line-height: 1; }
.gallery-arrow-prev { grid-column: 1; }
.gallery-arrow-next { grid-column: 3; }
.gallery-arrow:hover, .gallery-arrow:focus-visible { border-color: var(--olive-700); outline: none; }
.gallery-status { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 750; }
.image-lightbox { width: min(1280px, calc(100% - 28px)); height: min(920px, calc(100vh - 28px)); padding: 54px 28px 24px; overflow: hidden; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 100px rgba(18,20,12,.50); }
.image-lightbox::backdrop { background: rgba(18,20,12,.88); backdrop-filter: blur(10px); }
.image-lightbox img { display: block; width: 100%; height: calc(100% - 34px); object-fit: contain; }
.image-lightbox p { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 13px; font-weight: 750; }
.lightbox-close { position: absolute; top: 12px; right: 12px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 28px; line-height: 1; }
.dialog-content { display: flex; flex-direction: column; padding: 56px 46px 42px; }
.dialog-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--olive-700); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dialog-content h2 { margin: 22px 0 25px; font-size: clamp(34px, 4vw, 54px); line-height: .98; letter-spacing: -.045em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.specs div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 11px; }
.specs dd { margin: 6px 0 0; font-size: 14px; font-weight: 750; }
.description-block { margin-top: 26px; }
.description-block h3 { margin: 0 0 9px; font-size: 15px; }
.description-block p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 30px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-stats { width: min(100%, 480px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media { min-height: 390px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1240px); }
  .site-header { position: static; }
  .header-inner { min-height: 72px; align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .brand { font-size: 24px; }
  .brand-mark { width: 29px; height: 32px; transform: scale(.85); transform-origin: left center; }
  .nav { width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; white-space: nowrap; }
  .catalog-hero { padding: 54px 0 48px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .hero-stats div { min-width: 0; padding: 15px 10px; }
  .hero-stats dt { font-size: 22px; }
  .catalog-section { padding: 56px 0 70px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .line-tabs, .filters, .product-grid { grid-template-columns: 1fr; }
  .line-tab { min-height: 70px; padding: 0 18px; font-size: 14px; }
  .product-body { min-height: 212px; }
  .product-dialog { width: calc(100% - 14px); max-height: calc(100vh - 14px); border-radius: 22px; }
  .dialog-media { min-height: 330px; padding: 22px 16px; }
  .dialog-gallery { min-height: 286px; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; }
  .dialog-image-button { min-height: 245px; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 28px; }
  .zoom-hint { right: 6px; bottom: 6px; padding: 7px 9px; font-size: 11px; }
  .dialog-content { padding: 34px 24px 28px; }
  .specs { grid-template-columns: 1fr; }
  .dialog-actions .button { width: 100%; }
  .footer { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
