:root {
  --paper: #fbf7ee;
  --paper-soft: #f4ead9;
  --panel: #fffdf8;
  --ink: #3d3128;
  --muted: #74685d;
  --teal: #0c4d52;
  --teal-dark: #073a40;
  --red: #a9272f;
  --red-dark: #8d1d25;
  --gold: #c79d62;
  --line: rgba(61, 49, 40, 0.15);
  --shadow: 0 12px 28px rgba(63, 45, 28, 0.08);
  --font-scale: 1;
}

* {
  box-sizing: border-box;
}

html[data-font-scale="small"] {
  --font-scale: 0.92;
}

html[data-font-scale="large"] {
  --font-scale: 1.12;
}

html[data-font-scale="xlarge"] {
  --font-scale: 1.24;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 157, 98, 0.12), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(12, 77, 82, 0.08), transparent 22%),
    var(--paper);
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  font-size: calc(16px * var(--font-scale));
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button,
select {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.factory-header {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 18px 38px 16px;
  background: rgba(255, 253, 248, 0.88);
}

.factory-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.brand-mark {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid rgba(199, 157, 98, 0.55);
  background:
    linear-gradient(45deg, transparent 40%, var(--teal) 41% 46%, transparent 47%),
    linear-gradient(-45deg, transparent 40%, var(--gold) 41% 46%, transparent 47%),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(169, 39, 47, 0.18) 9px 12px),
    var(--paper);
  transform: rotate(45deg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.72);
}

.factory-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(30px * var(--font-scale));
  letter-spacing: 0;
  color: #4b392f;
  overflow-wrap: anywhere;
}

.factory-brand small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: calc(13px * var(--font-scale));
  font-weight: 700;
  letter-spacing: 3px;
  overflow-wrap: anywhere;
}

.factory-promises {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  white-space: nowrap;
}

.factory-promises span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5a493e;
  font-size: calc(14px * var(--font-scale));
}

.factory-promises b {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(61, 49, 40, 0.4);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-style: normal;
}

.factory-promises em {
  font-style: normal;
}

.header-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.font-size-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.font-size-switch button {
  min-width: 32px;
  min-height: 30px;
  border: 1px solid rgba(61, 49, 40, 0.18);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--teal-dark);
  font-weight: 800;
}

.font-size-switch button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.language-switch button {
  border: 0;
  background: transparent;
  color: #5b4d43;
  padding: 5px 8px;
  border-radius: 4px;
}

.language-switch button.active {
  color: var(--teal-dark);
  background: rgba(12, 77, 82, 0.1);
}

.pdf-button,
.btn,
.apply-button,
.reset-button {
  min-height: 38px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 700;
}

.pdf-button,
.reset-button {
  background: var(--teal);
  color: #fff;
}

.pdf-button::before {
  content: "▣";
  margin-right: 8px;
}

.main-nav {
  height: 48px;
  display: flex;
  align-items: stretch;
  padding: 0 48px;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: #fff;
  position: relative;
  box-shadow: 0 3px 12px rgba(7, 58, 64, 0.2);
}

.mobile-nav-toggle {
  display: none;
}

.main-nav::before,
.main-nav::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 72px;
  height: 22px;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(199, 157, 98, 0.9) 7px 9px, transparent 9px 16px);
  opacity: 0.9;
}

.main-nav::before {
  left: 0;
}

.main-nav::after {
  right: 0;
}

.main-nav a {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: calc(15px * var(--font-scale));
  position: relative;
  z-index: 1;
}

.main-nav a.active {
  background: var(--red);
  font-weight: 700;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 26px;
  padding: 14px 36px 26px;
}

.filter-panel {
  min-height: 720px;
  padding: 18px 14px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.filter-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
  font-size: calc(15px * var(--font-scale));
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
}

.filter-group.is-collapsed .check-list {
  display: none;
}

.filter-group.is-collapsed + .divider-ornament {
  margin-top: 6px;
}

.filter-title span:last-child {
  transition: transform 0.18s ease;
}

.filter-group.is-collapsed .filter-title span:last-child {
  transform: rotate(180deg);
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #5b5149;
  font-size: calc(14px * var(--font-scale));
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-row span {
  width: 16px;
  height: 16px;
  border: 1px solid #cbbfb0;
  background: #fff;
  position: relative;
}

.check-row input:checked + span {
  background: var(--red);
  border-color: var(--red);
}

.check-row input:checked + span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.check-row em {
  font-style: normal;
}

.check-row small {
  color: #7c7168;
}

.check-row.disabled {
  opacity: 0.45;
}

.divider-ornament {
  height: 34px;
  margin: 14px 0 18px;
  border-top: 1px solid var(--line);
  position: relative;
}

.divider-ornament::after {
  content: "◇";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--panel);
  padding: 0 10px;
}

.filter-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 108px;
}

.filter-buttons > button {
  min-width: 0;
}

.apply-button {
  background: var(--red);
  color: #fff;
}

.reset-button {
  border: 0;
}

.product-zone {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 14px;
}

.catalog-toolbar h1 {
  margin: 0;
  color: var(--teal);
  font-size: calc(18px * var(--font-scale));
  font-weight: 800;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b5149;
  font-size: calc(14px * var(--font-scale));
}

.view-toggle,
.pagination button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 4px;
}

.view-toggle.active,
.pagination button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.catalog-controls select,
.per-page select {
  min-height: 32px;
  border: 1px solid #d9cec0;
  border-radius: 3px;
  background: var(--panel);
  padding: 0 40px 0 12px;
  color: #5b5149;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 24px;
}

.product-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(61, 49, 40, 0.04);
}

.product-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(169, 39, 47, 0.1);
}

.selected-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-height: 27px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 800;
}

.product-photo {
  height: 260px;
  width: 100%;
  border: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(199, 157, 98, 0.15), rgba(12, 77, 82, 0.08)),
    var(--paper-soft);
  color: var(--muted);
  font-size: calc(13px * var(--font-scale));
  cursor: zoom-in;
}

.dialog-main-photo img,
.thumb img,
.table-photo img,
.image-preview img,
.sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  padding: 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.product-summary {
  padding: 0 0 10px;
  background: transparent;
  border: 0;
}

.product-summary h3 {
  margin: 0 0 6px;
  color: #4d4742;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.25;
}

.category-name {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-size: calc(13px * var(--font-scale));
}

.product-meta-lines {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 7px 0 10px;
}

.product-meta-lines p {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  margin: 0;
  color: #4f4740;
  font-size: calc(13px * var(--font-scale));
  line-height: 1.25;
  white-space: nowrap;
}

.product-meta-lines span {
  color: var(--muted);
  white-space: nowrap;
}

.product-meta-lines strong {
  color: var(--teal);
}

.product-body > p {
  margin: 0 0 6px;
  color: #4f4740;
  font-size: calc(13px * var(--font-scale));
  line-height: 1.35;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.price-grid div + div {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.price-grid div:last-child {
  display: flex;
  align-items: end;
}

.price-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: calc(11px * var(--font-scale));
  font-weight: 800;
}

.price-grid b {
  color: var(--teal);
  font-size: calc(15px * var(--font-scale));
}

.details-button {
  width: 100%;
  margin: 0;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: calc(13px * var(--font-scale));
  font-weight: 800;
  opacity: 1;
}

.product-card.selected .details-button {
  width: 100%;
}

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.product-grid.list-view .product-photo {
  height: 100%;
  min-height: 210px;
}

.product-grid.list-view .product-body {
  margin-top: 0;
  padding: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.75);
  border: 1px dashed var(--line);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.pagination {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination-gap {
  color: var(--muted);
  padding: 0 4px;
}

.per-page {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5b5149;
  font-size: calc(13px * var(--font-scale));
}

.bottom-ornament {
  height: 20px;
  margin-top: 10px;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(199, 157, 98, 0.8) 7px 9px, transparent 9px 16px);
}

.product-dialog {
  width: min(980px, calc(100vw - 32px));
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(28, 22, 17, 0.28);
}

.product-dialog::backdrop {
  background: rgba(20, 16, 12, 0.46);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  font-size: calc(22px * var(--font-scale));
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px;
}

.dialog-main-photo {
  min-height: 420px;
  background: var(--paper-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dialog-info {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.photo-preview {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.photo-preview img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--paper-soft);
}

.photo-preview h2 {
  margin: 0;
  font-size: calc(20px * var(--font-scale));
}

.dialog-info h2 {
  margin: 0 0 10px;
}

.dialog-info p {
  color: var(--muted);
  line-height: 1.65;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.spec-list.compact {
  flex: 1;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
}

.spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.spec-list.compact div {
  padding: 0;
}

.spec-list span {
  color: var(--muted);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb {
  min-height: 100px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
}

.content-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 36px 58px;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: stretch;
}

.content-copy,
.content-card,
.admin-panel,
.admin-list {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.content-copy {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: calc(12px * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-copy h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(42px * var(--font-scale));
  line-height: 1.08;
}

.content-copy p,
.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

.content-card {
  padding: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.content-card h3 {
  margin: 0 0 8px;
  color: var(--teal);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-shell {
  min-height: 100vh;
  padding-bottom: 48px;
  background: var(--paper);
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.login-card h1 { margin: 0; }
.login-card label { display: grid; gap: 7px; color: var(--muted); }
.login-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; }
.form-message { min-height: 1.4em; margin: 0; color: var(--red); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
[hidden] { display: none !important; }
.admin-inquiries { margin: 0 38px 24px; padding: 20px; background: rgba(255, 253, 248, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow); }

.admin-dialog {
  width: min(1120px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
}

.admin-dialog::backdrop { background: rgba(24, 28, 27, 0.62); backdrop-filter: blur(2px); }
.admin-dialog .admin-panel { width: 100%; height: 100%; margin: 0; box-shadow: none; }
.product-editor-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; background: #fffdf8; }
.product-editor-header { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, 0.98); }
.product-editor-header .eyebrow { margin-bottom: 4px; }
.product-editor-header h2 { font-size: calc(26px * var(--font-scale)); }
.product-editor-header #formMode { max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.product-editor-panel form { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.product-editor-body { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr); gap: 14px; align-content: start; padding: 16px 22px; }
.editor-section { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.72); }
.editor-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.editor-section-title h3 { margin: 0; font-size: calc(15px * var(--font-scale)); }
.editor-section-title span { color: var(--muted); font-size: 12px; }
.media-section, .description-section { grid-column: 1 / -1; }
.compact-form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.compact-form-grid .field { grid-column: span 2; }
.compact-form-grid .title-field { grid-column: span 5; }
.compact-form-grid .sort-field { grid-column: span 1; }
.pricing-form-grid { gap: 10px; }
.product-editor-body .field { gap: 5px; margin: 0; }
.product-editor-body .field input,
.product-editor-body .field select,
.product-editor-body .field textarea { padding: 8px 10px; min-height: 40px; }
.product-editor-body .field textarea { min-height: 82px; }
.media-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.media-upload-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 7px 12px; min-width: 0; }
.media-upload-card > label { grid-column: 1 / -1; color: var(--ink); font-size: 13px; font-weight: 700; }
.media-upload-card > label small { margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: var(--paper-soft); color: var(--muted); font-size: 10px; }
.media-upload-card input[type="file"] { align-self: center; min-width: 0; width: 100%; color: var(--muted); font-size: 12px; }
.product-editor-actions { justify-content: flex-end; min-height: 68px; padding: 12px 22px; border-top: 1px solid var(--line); background: #fffdf8; }
.editor-save-hint { margin-right: auto; color: var(--muted); font-size: 12px; }
.dialog-heading-actions { display: flex; align-items: center; gap: 14px; }
.dialog-close-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-soft); color: var(--ink); font-size: 25px; line-height: 1; cursor: pointer; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand strong {
  font-size: calc(22px * var(--font-scale));
}

.brand span {
  color: var(--muted);
  font-size: calc(13px * var(--font-scale));
}

.actions,
.filter-actions,
.list-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-tools select,
.admin-pagination-bar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.admin-search-group { display: flex; align-items: center; gap: 8px; }
.admin-search-group input { min-width: 260px; }

.admin-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.admin-pagination-bar p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-pagination-controls,
.admin-pagination { display: flex; align-items: center; gap: 7px; }
.admin-pagination-controls label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.admin-pagination button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.admin-pagination button.active { border-color: var(--teal); background: var(--teal); color: #fff; }
.admin-pagination button:disabled { opacity: 0.42; cursor: not-allowed; }
.admin-pagination .pagination-gap { color: var(--muted); }

.management-tabs { display: flex; gap: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-soft); }
.management-tabs .btn { border-color: transparent; background: transparent; }
.management-tabs .btn.active { background: var(--teal); color: #fff; }
.management-tabs span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,0.2); font-size: 11px; }
.elimination-management { padding: 24px 38px; }
.section-hint { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.btn {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn.small {
  min-height: 30px;
  padding: 0 9px;
  font-size: calc(12px * var(--font-scale));
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 24px 38px;
}

.admin-panel,
.admin-list {
  padding: 20px;
}

.panel-title,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .wide,
.upload-field {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea,
.list-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.image-preview {
  position: relative;
  width: 118px;
  height: 82px;
  padding: 0;
  border: 1px dashed rgba(12, 77, 82, 0.35);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  overflow: hidden;
  font: inherit;
  cursor: default;
}

.image-preview.has-image {
  border-style: solid;
  cursor: zoom-in;
}

.image-preview > span:not(.image-preview-empty) {
  position: absolute;
  inset: auto 0 0;
  padding: 5px;
  background: rgba(24, 28, 27, 0.72);
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.image-preview.has-image:hover > span,
.image-preview.has-image:focus-visible > span { opacity: 1; transform: translateY(0); }
.image-preview-empty { padding: 8px; font-size: 12px; }

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 48px;
  border: 0;
  background: rgba(14, 18, 18, 0.94);
  color: #fff;
}
.image-lightbox::backdrop { background: rgba(14, 18, 18, 0.94); }
.image-lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; place-items: center; }
.image-lightbox img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-lightbox figcaption { font-size: 14px; color: rgba(255,255,255,0.78); }
.image-lightbox-close { position: fixed; z-index: 1; top: 18px; right: 22px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.upload-field {
  min-height: 150px;
  border: 1px dashed rgba(12, 77, 82, 0.35);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: middle;
  font-size: 14px;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.table-photo {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  background: var(--paper-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}

.status.online {
  color: var(--teal-dark);
  background: rgba(12, 77, 82, 0.12);
}

.status.offline {
  color: var(--red);
  background: rgba(169, 39, 47, 0.1);
}

.catalog-page {
  background: #eee7db;
}

.catalog-print-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--teal-dark);
  color: #fff;
}

.print-sheet {
  width: 297mm;
  height: 210mm;
  margin: 18px auto;
  padding: 12mm 10mm 12mm 20mm;
  background:
    linear-gradient(90deg, rgba(12, 77, 82, 0.04), transparent 20%, transparent 80%, rgba(169, 39, 47, 0.04)),
    #fffdf8;
  border: 1px solid rgba(61, 49, 40, 0.12);
  break-after: auto;
  page-break-after: auto;
  break-inside: avoid;
  page-break-inside: avoid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(36, 29, 24, 0.12);
}

.print-sheet:last-child {
  break-after: auto;
  page-break-after: auto;
}

.catalog-toc-sheet {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding-right: 12mm;
}

.catalog-corner-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 28mm;
  height: 28mm;
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, rgba(199, 157, 98, 0.9) 5px 7px, transparent 7px 14px),
    var(--teal);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.catalog-section-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: calc(12px * var(--font-scale));
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-product-photo img,
.catalog-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-toc-panel {
  min-height: 0;
  padding: 6mm 10mm 8mm;
  border-left: 4px solid var(--gold);
  background: rgba(244, 234, 217, 0.45);
  overflow: hidden;
}

.catalog-toc-panel h2 {
  margin: 0 0 8px;
  font-size: calc(34px * var(--font-scale));
  color: #3d3128;
}

.catalog-toc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(27, minmax(0, 1fr));
  column-gap: 8mm;
  row-gap: 0;
  max-height: 152mm;
  overflow: hidden;
}

.catalog-toc-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 28px;
  align-items: baseline;
  gap: 5px;
  min-height: 5.05mm;
  padding: 1px 0;
  border-bottom: 1px solid rgba(61, 49, 40, 0.13);
  font-size: calc(13px * var(--font-scale));
}

.catalog-toc-row span {
  color: var(--red);
  font-weight: 800;
}

.catalog-toc-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.catalog-toc-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.catalog-product-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92mm;
  grid-template-rows: 12mm minmax(0, 1fr);
  gap: 8mm 10mm;
}

.catalog-sheet-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(61, 49, 40, 0.16);
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
  text-transform: uppercase;
}

.catalog-sheet-header strong {
  color: var(--teal);
  font-size: calc(14px * var(--font-scale));
}

.catalog-product-photo {
  min-height: 0;
  border: 1px solid rgba(61, 49, 40, 0.16);
  background: var(--paper-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}

.catalog-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.catalog-product-info h1 {
  margin: 0 0 10px;
  color: #3d3128;
  font-size: calc(31px * var(--font-scale));
  line-height: 1.12;
}

.catalog-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.catalog-spec-grid div {
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(61, 49, 40, 0.13);
  background: rgba(244, 234, 217, 0.38);
}

.catalog-spec-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: calc(10px * var(--font-scale));
  text-transform: uppercase;
}

.catalog-spec-grid strong {
  color: var(--teal);
  font-size: calc(13px * var(--font-scale));
}

.catalog-description {
  margin-bottom: 10px;
}

.catalog-description h3,
.catalog-photo-strip h3 {
  margin: 0 0 6px;
  color: var(--red);
  font-size: calc(14px * var(--font-scale));
}

.catalog-description p {
  height: 36mm;
  margin: 0;
  color: #5d5148;
  font-size: calc(13px * var(--font-scale));
  line-height: 1.55;
  overflow: hidden;
}

.catalog-photo-strip {
  margin-top: auto;
}

.catalog-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.catalog-thumbs div {
  min-height: 28mm;
  border: 1px solid rgba(61, 49, 40, 0.14);
  background: var(--paper-soft);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(10px * var(--font-scale));
  text-align: center;
}

.catalog-thumbs span {
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.9);
}

.catalog-page-footer {
  position: absolute;
  left: 20mm;
  right: 12mm;
  bottom: 7mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(61, 49, 40, 0.14);
  padding-top: 5px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
}

.catalog-page-footer strong {
  color: var(--red);
  font-size: calc(15px * var(--font-scale));
}

.catalog-grid-sheet {
  display: grid;
  grid-template-rows: 9mm minmax(0, 1fr);
  gap: 5mm;
}

.catalog-grid-products {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2.2mm;
  padding-bottom: 8mm;
}

.catalog-grid-card {
  border-radius:10px;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(29mm, 0.62fr);
  gap: 2.4mm;
  padding: 0.0mm;
  border: 1px solid rgba(61, 49, 40, 0.14);
  background: rgba(255, 253, 248, 0.78);
  overflow: hidden;
}

.catalog-grid-photo {
  border-radius:10px;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--paper-soft);
  border: 1px solid rgba(61, 49, 40, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: calc(12px * var(--font-scale));
}

.catalog-grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-grid-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 3mm 4mm 2.4mm;
  background: rgba(255, 253, 248, 0.84);
  border-bottom: 1px solid rgba(61, 49, 40, 0.12);
  backdrop-filter: blur(2px);
}

.catalog-grid-body {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-grid-index {
  margin: 1px 0 0;
  color: var(--red);
  font-size: calc(11px * var(--font-scale));
  font-weight: 900;
}

.catalog-grid-title h2 {
  margin: 0;
  color: #3d3128;
  font-size: calc(15px * var(--font-scale));
  line-height: 1.12;
  max-height: 2.24em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-grid-specs {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
}

.catalog-grid-specs div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1px 0;
  border: 0;
  border-bottom: 1px solid rgba(61, 49, 40, 0.13);
  background: transparent;
}

.catalog-grid-specs span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: calc(9.5px * var(--font-scale));
  line-height: 1.05;
  white-space: nowrap;
}

.catalog-grid-specs strong {
  display: block;
  color: var(--teal);
  font-size: calc(11px * var(--font-scale));
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-grid-desc {
  margin: 4px 0 0;
  color: #5d5148;
  font-size: calc(10.5px * var(--font-scale));
  line-height: 1.4;
  max-height: none;
  flex: 1;
  overflow: hidden;
}

.catalog-grid-desc b {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
}

@media (max-width: 1180px) {
  .factory-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .factory-promises,
  .header-actions {
    justify-content: flex-start;
    justify-items: start;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .product-editor-body { grid-template-columns: 1fr; }
  .media-section,
  .description-section { grid-column: auto; }
  .compact-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-form-grid .field { grid-column: span 1; }
  .compact-form-grid .title-field { grid-column: span 2; }
  .compact-form-grid .sort-field { grid-column: span 1; }

  .mobile-nav-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 0;
    background: linear-gradient(180deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-weight: 800;
    font-size: calc(16px * var(--font-scale));
  }

  .mobile-nav-toggle::after {
    content: "⌄";
    font-size: calc(18px * var(--font-scale));
    transition: transform 0.18s ease;
  }

  .mobile-nav-toggle.is-open::after {
    transform: rotate(180deg);
  }

  .main-nav {
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    max-width: 100vw;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav::before,
  .main-nav::after {
    display: none;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    white-space: normal;
    text-align: left;
  }

  .catalog-layout,
  .admin-layout,
  .content-hero,
  .contact-grid,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-info {
    min-height: auto;
  }

  .filter-panel {
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }

  .filter-buttons {
    margin-top: 24px;
  }

  .product-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-dialog .product-editor-panel { padding: 0; }
  .product-editor-header { padding: 14px 16px; }
  .product-editor-header .eyebrow { display: none; }
  .product-editor-header h2 { font-size: calc(21px * var(--font-scale)); }
  .product-editor-header #formMode { max-width: 150px; font-size: 13px; }
  .product-editor-body { padding: 12px; gap: 10px; }
  .editor-section { padding: 12px; }
  .compact-form-grid,
  .pricing-form-grid,
  .media-upload-grid { grid-template-columns: 1fr; }
  .compact-form-grid .field,
  .compact-form-grid .title-field,
  .compact-form-grid .sort-field { grid-column: auto; }
  .media-upload-card { grid-template-columns: 104px minmax(0, 1fr); }
  .image-preview { width: 104px; height: 76px; }
  .product-editor-actions { min-height: 62px; padding: 10px 12px; }
  .editor-save-hint { display: none; }
  .image-lightbox { padding: 56px 14px 24px; }

  .list-tools,
  .admin-search-group,
  .admin-pagination-bar,
  .admin-pagination-controls { align-items: stretch; flex-direction: column; }

  .admin-search-group input { min-width: 0; }
  .admin-pagination { max-width: 100%; flex-wrap: wrap; }
  .elimination-management { padding: 14px; }
  .management-tabs { width: 100%; }
  .management-tabs .btn { flex: 1; }

  .factory-header,
  .catalog-layout,
  .content-page,
  .admin-layout {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .factory-header {
    min-height: auto;
    overflow: hidden;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .factory-brand {
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-width: 1px;
  }

  .brand-mark::after {
    inset: 9px;
    border-width: 1px;
  }

  .factory-brand strong {
    font-size: calc(20px * var(--font-scale));
    line-height: 1.1;
  }

  .factory-brand small {
    margin-top: 3px;
    font-size: calc(10px * var(--font-scale));
    letter-spacing: 1.5px;
  }

  .header-actions,
  .language-switch {
    max-width: 100%;
  }

  .factory-promises {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    max-width: 100%;
  }

  .factory-promises span {
    gap: 5px;
    max-width: 100%;
    white-space: normal;
    font-size: calc(12px * var(--font-scale));
    line-height: 1.2;
    align-items: center;
  }

  .factory-promises b {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: calc(11px * var(--font-scale));
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .language-switch {
    gap: 3px;
    flex-wrap: wrap;
  }

  .font-size-switch {
    gap: 3px;
    margin-left: 0;
  }

  .font-size-switch button {
    min-width: 28px;
    min-height: 28px;
    padding: 0 6px;
  }

  .language-switch button {
    padding: 4px 7px;
    font-size: calc(13px * var(--font-scale));
  }

  .pdf-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: calc(13px * var(--font-scale));
    white-space: nowrap;
  }

  .pdf-button::before {
    margin-right: 5px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    line-height: 1.2;
  }

  .catalog-layout {
    display: grid;
    gap: 14px;
  }

  .filter-panel,
  .product-zone,
  .product-card,
  .catalog-toolbar,
  .pagination-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .filter-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .apply-button,
  .reset-button {
    padding: 0 8px;
    font-size: calc(15px * var(--font-scale));
    white-space: normal;
    text-align: center;
  }

  .filter-panel {
    padding: 14px 12px;
  }

  .filter-group {
    margin: 0;
  }

  .filter-title {
    min-height: 42px;
    padding: 0 2px;
    font-size: calc(17px * var(--font-scale));
  }

  .filter-group.is-collapsed .filter-title {
    min-height: 38px;
  }

  .filter-group.is-collapsed + .divider-ornament {
    display: none;
  }

  .divider-ornament {
    height: 14px;
    margin: 8px 0 10px;
  }

  .divider-ornament::after {
    top: -9px;
  }

  .catalog-toolbar,
  .pagination-bar,
  .panel-title,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid,
  .product-grid.list-view,
  .content-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls,
  .pagination,
  .per-page {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-grid.list-view .product-card {
    grid-template-columns: 1fr;
  }

  .product-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 380px) {
  .factory-promises {
    grid-template-columns: 1fr 1fr;
  }

  .factory-brand strong {
    font-size: calc(18px * var(--font-scale));
  }

  .factory-brand small,
  .factory-promises span,
  .language-switch button,
  .font-size-switch button,
  .pdf-button {
    font-size: calc(12px * var(--font-scale));
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  html,
  body {
    background: #fff;
    margin: 0;
    padding: 0;
  }

  #catalogRoot {
    margin: 0;
    padding: 0;
  }

  .catalog-toolbar,
  .catalog-print-toolbar {
    display: none;
  }

  .print-sheet {
    width: 297mm;
    height: 205mm;
    min-height: 0;
    margin: 0;
    padding: 10mm 8mm 10mm 18mm;
    border: 0;
    box-shadow: none;
    break-after: auto;
    page-break-after: auto;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .catalog-page-footer {
    left: 18mm;
    right: 8mm;
  }

  @page {
    size: A4 landscape;
    margin: 0;
  }
}
