@font-face {
  font-family: "Montserrat Cyrillic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat/montserrat-cyrillic-ext-400-700.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Montserrat Cyrillic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat/montserrat-cyrillic-400-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #f5f7f7;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #18211f;
  --muted: #66736f;
  --border: #e1e7e5;
  --border-strong: #ccd6d2;
  --accent: #00ab8e;
  --accent-dark: #007e69;
  --accent-soft: #e5f7f3;
  --warn: #a86400;
  --warn-soft: #fff4df;
  --danger: #c73535;
  --danger-soft: #fff0f0;
  --shadow: 0 12px 35px rgba(20, 43, 37, .09);
  --radius: 10px;
  --public-header-height: 64px;
  --sticky-public-header-height: var(--public-header-height);
  --search-home-height: 62px;
  --visual-viewport-offset-top: 0px;
  --sticky-search-top: var(--visual-viewport-offset-top);
  --sticky-table-top: var(--search-home-height);
  --z-table-header: 10;
  --z-sticky-search: 20;
  --z-sticky-header: 30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Jost", sans-serif; }
html[lang="mn"] { font-family: "Montserrat Cyrillic", "Jost", sans-serif; }
html[lang="mn"] body { font-family: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }

.public-header {
  height: var(--public-header-height); padding: 0 max(22px, calc((100vw - 1500px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border);
  position: relative; z-index: var(--z-sticky-header); backdrop-filter: blur(12px);
}
.creator-credit { color: var(--muted); font-size: 11px; white-space: nowrap; }
.creator-credit strong { color: var(--accent-dark); font-weight: 700; }
.live-state { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.live-refresh-icon { width: 12px; height: 12px; display: inline-grid; flex: 0 0 12px; place-items: center; color: inherit; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 400; line-height: 1; animation: none; }

.search-hero {
  padding: 58px 22px 27px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #fff 0, #fff 42%, #f5f7f7 100%);
}
.hero-brand-lockup {
  width: min(590px, calc(100vw - 44px)); min-height: 58px; margin: 0 auto 25px;
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 3vw, 38px);
}
.hero-logo { display: block; max-width: 100%; height: auto; flex: 0 1 auto; object-fit: contain; }
.hero-logo-hansgrohe { width: 310px; }
.hero-logo-axor { width: 190px; }
.hero-brand-divider { width: 1px; height: 38px; flex: 0 0 1px; background: var(--border-strong); }
.search-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -1.3px; }
.search-sticky-sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }
.search-home-region {
  height: var(--search-home-height); padding: 0 22px; display: flex; align-items: center;
  position: -webkit-sticky; position: sticky; top: var(--sticky-search-top); z-index: var(--z-sticky-search);
  background: transparent; transition: background-color .16s, box-shadow .16s;
}
.search-home-slot { width: min(760px, 100%); height: 100%; margin: 0 auto; display: flex; align-items: center; position: relative; }
.search-after-space { height: 42px; }
.hero-search {
  width: 100%; height: 100%; margin: 0; padding: 0 17px 0 20px;
  display: flex; align-items: center; gap: 13px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 999px; box-shadow: var(--shadow);
  cursor: text; transition: height .16s, border-color .16s, box-shadow .16s;
}
.search-stuck .search-home-region {
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 20px rgba(20,43,37,.08), inset 0 -1px 0 var(--border); backdrop-filter: blur(12px);
}
.search-stuck .search-home-slot .hero-search { height: 46px; box-shadow: 0 5px 16px rgba(20,43,37,.1); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,171,142,.15), 0 0 0 4px rgba(0,171,142,.08); }
.hero-search svg { color: var(--accent-dark); flex: 0 0 auto; }
.hero-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.hero-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.hero-search input::placeholder { color: #8b9693; }
.hero-search button { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.recent-searches-panel {
  width: 100%; max-height: min(430px, calc(100vh - var(--search-home-height) - 24px));
  padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; z-index: 2;
  overflow-y: auto; overscroll-behavior: contain; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 18px 46px rgba(20,43,37,.16);
}
.recent-searches-panel[hidden] { display: none; }
.recent-searches-header { min-height: 38px; padding: 2px 6px 4px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recent-searches-header h2 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.recent-searches-header button {
  min-height: 34px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 600; cursor: pointer;
}
.recent-searches-header button:hover, .recent-searches-header button:focus-visible { background: var(--accent-soft); outline: 0; }
.recent-searches-list { margin: 0; padding: 0; list-style: none; }
.recent-searches-list li { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 40px; align-items: center; gap: 2px; border-radius: 9px; }
.recent-searches-list li:hover, .recent-searches-list li:focus-within { background: var(--surface-soft); }
.recent-searches-use, .recent-searches-remove { border: 0; background: transparent; cursor: pointer; }
.recent-searches-use {
  min-width: 0; min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 12px;
  color: var(--text); text-align: left; font-size: 15px;
}
.recent-searches-use svg { width: 18px; height: 18px; flex: 0 0 18px; color: #89938f; }
.recent-searches-use span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-searches-remove { width: 40px; height: 40px; border-radius: 50%; color: var(--muted); font-size: 22px; line-height: 1; }
.recent-searches-remove:hover, .recent-searches-remove:focus-visible { background: #edf2f0; color: var(--text); outline: 0; }

.catalog-shell { width: min(1720px, calc(100% - clamp(24px, 3vw, 72px))); margin: 0 auto 50px; }
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 118px; padding: 17px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.8px; }
.stat-value.accent { color: var(--accent-dark); }
.stat-value.warn { color: var(--warn); }
.stat-sub { margin-top: 7px; color: var(--muted); font-size: 11px; }
.loading-card { position: relative; overflow: hidden; }
.loading-card::after { content: ""; position: absolute; inset: 16px; border-radius: 7px; background: linear-gradient(90deg,#eef2f1 25%,#f8faf9 50%,#eef2f1 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.catalog-toolbar { min-height: 60px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.filter-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); overflow-x: auto; }
.filter-tabs button { padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filter-tabs button.active { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.row-count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.advanced-filters { padding: 12px; display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)) auto; gap: 9px; align-items: end; background: var(--surface); border: 1px solid var(--border); border-top: 0; }
.advanced-filters label { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.advanced-filters label span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.advanced-filters select { width: 100%; min-width: 0; height: 35px; padding: 0 29px 0 9px; border: 1px solid var(--border-strong); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text); font-size: 12px; }
.advanced-filters select:focus { border-color: var(--accent); }
.advanced-filters label.is-active span { color: var(--accent-dark); }
.advanced-filters label.is-active select { background: #fff8e8; border-color: #dfbd78; color: #6f4a00; font-weight: 600; }
.reset-button, .secondary-button { min-height: 35px; padding: 7px 13px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.reset-button:hover, .secondary-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.reset-button.is-active { background: var(--accent-soft); border-color: rgba(0,171,142,.68); color: var(--accent-dark); }

.table-wrap { overflow: visible; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; min-width: 1230px; border-collapse: collapse; table-layout: fixed; }
thead { position: static; }
th {
  padding: 9px 4px; position: sticky; top: var(--sticky-table-top); z-index: var(--z-table-header);
  background: #f3f6f5; border-bottom: 1px solid var(--border-strong);
  box-shadow: inset 0 -1px 0 var(--border-strong); color: var(--muted); font-size: 8.5px;
  font-weight: 700; letter-spacing: .25px; text-align: left; text-transform: uppercase; white-space: nowrap;
}
td { padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
tbody tr[data-row-product-sku] { cursor: pointer; }
tbody tr[data-row-product-sku] :is(.row-number, .sku-code, .product-name, .product-meta, .placement-summary, .qty, .price, .pill, .mobile-product-identity, .mobile-product-stock > div, .mobile-product-summary > div, .mobile-product-extra > div) { cursor: text; user-select: text; }
.row-number { color: #97a19e; text-align: center; }
th:nth-child(1), td:nth-child(1) { width: 32px; }
th:nth-child(2), td:nth-child(2) { width: 70px; }
th:nth-child(3), td:nth-child(3) { width: 52px; }
th:nth-child(4), td:nth-child(4) { width: 160px; }
th:nth-child(5), td:nth-child(5) { width: 95px; }
th:nth-child(6), td:nth-child(6) { width: 90px; }
th:nth-child(7), td:nth-child(7) { width: 85px; }
th:nth-child(8), td:nth-child(8) { width: 140px; }
th:nth-child(9), td:nth-child(9),
th:nth-child(10), td:nth-child(10),
th:nth-child(11), td:nth-child(11),
th:nth-child(12), td:nth-child(12) { width: 58px; text-align: center; }
th:nth-child(n+9) { border-left: 1px solid var(--border); }
th:nth-child(13), td:nth-child(13) { width: 75px; }
th:nth-child(14), td:nth-child(14) { width: 90px; }
th:nth-child(15), td:nth-child(15) { width: 64px; }
th:nth-child(16), td:nth-child(16) { width: 54px; }
.sort-button { padding: 0; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-button [data-sort-indicator] { min-width: 9px; color: var(--accent-dark); }
.sort-button.numeric { justify-content: flex-end; }
html[lang="mn"] th:nth-child(6) .sort-button { width: 100%; align-items: flex-start; line-height: 1.15; white-space: normal; }
html[lang="mn"] th:nth-child(6) .sort-button > span:first-child { white-space: normal; }
.sku-code { color: var(--accent-dark); font-weight: 700; letter-spacing: .2px; }
.product-name { font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.product-meta { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.product-picture-button { padding: 0; display: inline-flex; border: 0; border-radius: 7px; background: transparent; cursor: zoom-in; }
.product-picture-button:hover .product-picture, .product-picture-button:focus-visible .product-picture { border-color: var(--accent); }
.product-picture-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-picture { width: 46px; height: 46px; padding: 2px; display: block; object-fit: contain; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.image-placeholder { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 7px; color: #9ba5a2; font-size: 9px; font-weight: 700; }
.qty { font-size: 12px; font-weight: 600; }
.qty.total { color: var(--text); font-size: 15px; font-weight: 700; }
.qty.zero { color: var(--danger); }
.qty.incoming { color: var(--warn); }
.price { white-space: nowrap; font-size: 10px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 5px; border-radius: 99px; font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.pill > span { min-width: 0; }
html[lang="mn"] .pill { line-height: 1.15; text-align: left; white-space: normal; }
html[lang="mn"] .pill > span { white-space: normal; }
.pill-ok { background: var(--accent-soft); color: var(--accent-dark); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.link-list { display: flex; gap: 3px; }
.link-list a, .details-button { padding: 4px 5px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--accent-dark); text-decoration: none; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.details-button { cursor: pointer; }
.details-button:hover, .link-list a:hover { border-color: var(--accent); background: var(--accent-soft); }
.placement-summary { max-width: 140px; }
.placement-states { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.placement-states span { padding: 2px 5px; border-radius: 5px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 700; }
.placement-states .installed { color: var(--accent-dark); background: var(--accent-soft); }
.placement-states .planned, .placement-states .review { color: var(--warn); background: var(--warn-soft); }
.placement-location { color: var(--muted); font-size: 10px; line-height: 1.35; }
.mobile-product-card { display: none; }
.table-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; }
.table-state strong { color: var(--text); font-size: 14px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-note { padding: 12px 2px 0; color: var(--muted); font-size: 11px; text-align: right; }

.client-catalog .public-header { height: var(--public-header-height); min-height: var(--public-header-height); justify-content: space-between; flex-wrap: nowrap; }
.client-page-label {
  padding-left: 11px; position: relative; color: var(--accent-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .15px; white-space: nowrap;
}
.client-page-label::before {
  content: ''; width: 3px; height: 16px; position: absolute; top: 50%; left: 0;
  transform: translateY(-50%); border-radius: 99px; background: var(--accent);
}
.public-page-switcher.client-page-switcher { min-width: 224px; grid-template-columns: minmax(0, 1fr); }
.client-catalog .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-catalog table { min-width: 1080px; }
.client-catalog th:nth-child(1), .client-catalog td:nth-child(1) { width: 34px; }
.client-catalog th:nth-child(2), .client-catalog td:nth-child(2) { width: 76px; }
.client-catalog th:nth-child(3), .client-catalog td:nth-child(3) { width: 56px; }
.client-catalog th:nth-child(4), .client-catalog td:nth-child(4) { width: 205px; }
.client-catalog th:nth-child(5), .client-catalog td:nth-child(5) { width: 112px; }
.client-catalog th:nth-child(6), .client-catalog td:nth-child(6) { width: 105px; }
.client-catalog th:nth-child(7), .client-catalog td:nth-child(7) { width: 96px; }
.client-catalog th:nth-child(8), .client-catalog td:nth-child(8),
.client-catalog th:nth-child(9), .client-catalog td:nth-child(9),
.client-catalog th:nth-child(10), .client-catalog td:nth-child(10) { width: 64px; text-align: center; }
.client-catalog th:nth-child(n+8) { border-left: 1px solid var(--border); }
.client-catalog th:nth-child(11), .client-catalog td:nth-child(11) { width: 86px; }
.client-catalog th:nth-child(12), .client-catalog td:nth-child(12) { width: 102px; }
.client-catalog th:nth-child(13), .client-catalog td:nth-child(13) { width: 66px; }

.modal-overlay { position: fixed; inset: 0; z-index: 50; padding: 24px; display: grid; place-items: center; background: rgba(11,24,21,.58); }
.modal-overlay[hidden] { display: none; }
.product-modal { width: min(920px, 100%); max-height: min(820px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-header { padding: 19px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--muted); cursor: pointer; font-size: 23px; line-height: 1; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { padding: 13px 22px; display: flex; justify-content: flex-end; border-top: 1px solid var(--border); }
.detail-hero { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.detail-image { width: 100%; aspect-ratio: 1; padding: 10px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.detail-image-placeholder { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-weight: 700; }
.detail-name { margin: 0 0 6px; font-size: 23px; line-height: 1.25; }
.detail-cn { margin: 0 0 15px; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tags span { padding: 5px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.detail-metrics { margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; }
.detail-metric { padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.detail-metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.detail-metric strong { display: block; margin-top: 5px; font-size: 18px; }
.detail-section { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--border); }
.detail-section h3 { margin: 0 0 11px; font-size: 14px; }
.placement-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.placement-card { padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.placement-card strong { font-size: 12px; }
.placement-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.product-set-list { display: grid; gap: 10px; }
.product-set { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-soft); }
.product-set summary { min-height: 62px; padding: 11px 13px; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 13px; cursor: pointer; list-style: none; }
.product-set summary::-webkit-details-marker { display: none; }
.product-set summary > div:first-child span { display: block; color: var(--accent-dark); font-size: 9px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.product-set summary > div:first-child strong { display: block; margin-top: 3px; font-size: 13px; }
.product-set-counts { display: flex; gap: 7px; }
.product-set-counts span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 10px; white-space: nowrap; }
.product-set-counts strong { color: var(--text); }
.product-set-counts .product-set-total { border-color: rgba(0,126,105,.2); background: var(--accent-soft); color: var(--accent-dark); }
.product-set-total small { font-size: inherit; font-weight: 600; }
.product-set-total strong { font-size: 11px; }
.product-set-chevron { color: var(--accent-dark); font-size: 18px; transition: transform .16s; }
.product-set[open] .product-set-chevron { transform: rotate(180deg); }
.product-set-availability { padding: 11px 12px; display: grid; gap: 9px; border-top: 1px solid var(--border); background: var(--surface); }
.product-set-availability-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.product-set-availability-result > strong { color: var(--accent-dark); font-size: 15px; letter-spacing: -.15px; }
.product-set-availability.none .product-set-availability-result > strong { color: var(--danger); }
.product-set-availability.unknown .product-set-availability-result > strong { color: var(--muted); }
.product-set-availability-result > span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.product-set-recommendation { padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.product-set-recommendation-title { display: block; margin-bottom: 7px; color: var(--text); font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.product-set-needed-components { display: flex; flex-wrap: wrap; gap: 7px; }
.product-set-needed-component { min-width: 0; max-width: 370px; padding: 7px 8px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 7px; flex: 1 1 230px; border: 1px solid rgba(0,126,105,.18); border-radius: 7px; background: var(--surface); }
.product-set-needed-component > strong { min-width: 30px; padding: 2px 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; text-align: center; white-space: nowrap; }
.product-set-needed-identity { min-width: 0; }
.product-set-needed-identity > span { display: block; color: var(--text); font-size: 10px; font-weight: 700; line-height: 1.3; }
.product-set-needed-identity > small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.2; }
.product-set-members { padding: 10px; display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); gap: 8px; border-top: 1px solid var(--border); background: var(--surface); }
.product-set-member { min-width: 0; padding: 8px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }
.product-set-member:hover { border-color: var(--accent); }
.product-set-member.current { border-color: var(--accent); background: var(--accent-soft); }
.product-set-picture { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.product-set-picture img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.product-set-picture-placeholder { color: var(--muted); font-size: 8px; text-align: center; }
.product-set-identity { min-width: 0; }
.product-set-identity strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 11px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-set-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.product-set-stock { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.product-set-stock > span, .product-set-stock-summary { color: inherit; font-size: inherit; white-space: nowrap; }
.product-set-stock > span strong { display: inline; color: var(--text); font-size: inherit; -webkit-line-clamp: unset; }
.product-set-stock > :not(:first-child)::before { content: '·'; margin-right: 5px; color: var(--muted); font-weight: 500; }
.product-set-identity .product-set-stock-summary { display: inline; overflow: visible; color: var(--accent-dark); font-size: inherit; font-weight: 800; line-height: inherit; text-overflow: clip; -webkit-line-clamp: unset; }
.product-set-identity .product-set-stock-summary.out { color: var(--danger); }
.product-set-price { display: block; margin-top: 2px; color: var(--text); font-size: 9px; font-weight: 700; }
.product-set-identity em { width: fit-content; margin-top: 5px; display: flex; align-items: center; gap: 4px; color: var(--accent-dark); font-size: 8px; font-style: normal; font-weight: 600; line-height: 1.2; }
.product-set-identity em::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.product-set-quantity { color: var(--muted); font-size: 9px; white-space: nowrap; }
.product-set-quantity strong { color: var(--text); font-size: 11px; }
.product-relationship-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.product-relationship-group { min-width: 0; padding-bottom: 4px; }
.product-relationship-group + .product-relationship-group { border-left: 1px solid var(--border); }
.product-relationship-group h4 { margin: 0; padding: 11px 11px 2px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.product-relationship-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 9px; }
.product-relationship-empty { margin: 0; padding: 15px 11px; color: var(--muted); font-size: 10px; }
.product-relationship-item { width: 100%; min-width: 0; padding: 8px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-soft); color: var(--text); cursor: pointer; }
.product-relationship-item:hover, .product-relationship-item:focus-visible { border-color: var(--accent); outline: none; }
.product-relationship-picture { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.product-relationship-picture img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.product-relationship-picture-placeholder { color: var(--muted); font-size: 8px; text-align: center; }
.product-relationship-identity { min-width: 0; }
.product-relationship-identity > small { display: block; color: var(--accent-dark); font-size: 9px; font-weight: 800; }
.product-relationship-identity > strong { display: block; margin-top: 2px; overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.product-relationship-stock { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.product-relationship-stock > span, .product-relationship-stock-summary { color: inherit; font-size: inherit; white-space: nowrap; }
.product-relationship-stock > span strong { color: var(--text); }
.product-relationship-stock > :not(:first-child)::before { content: '·'; margin-right: 5px; color: var(--muted); font-weight: 500; }
.product-relationship-stock-summary { color: var(--accent-dark); font-weight: 800; }
.product-relationship-stock-summary.out { color: var(--danger); }
.product-relationship-quantity { padding: 5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 9px; font-weight: 700; white-space: nowrap; }
.product-relationship-quantity strong { font-size: 11px; }
.image-preview-overlay { z-index: 60; }
.image-preview-dialog { width: min(920px,100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.image-preview-header { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.image-preview-header h2 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-body { min-height: 260px; padding: 20px; display: grid; place-items: center; overflow: auto; background: var(--surface-soft); }
.image-preview-body img { display: block; max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }

body.modal-open { overflow: hidden; }

.back-to-top {
  width: 40px; height: 40px; position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%;
  background: var(--surface); color: var(--muted); box-shadow: 0 5px 18px rgba(20,43,37,.13);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  cursor: pointer; touch-action: manipulation;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, border-color .15s, color .15s;
}
.back-to-top.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s;
}
.back-to-top:hover { border-color: rgba(0,171,142,.58); color: var(--accent-dark); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.back-to-top svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

@media (min-width: 1280px) {
  :root {
    --sticky-search-top: var(--public-header-height);
    --sticky-table-top: calc(var(--public-header-height) + var(--search-home-height));
  }
  .public-header { position: sticky; top: 0; }
  html[lang="mn"] th:nth-child(4), html[lang="mn"] td:nth-child(4) { width: 150px; }
  html[lang="mn"] th:nth-child(5), html[lang="mn"] td:nth-child(5) { width: 90px; }
  html[lang="mn"] th:nth-child(6), html[lang="mn"] td:nth-child(6) { width: 85px; }
  html[lang="mn"] th:nth-child(7), html[lang="mn"] td:nth-child(7) { width: 80px; }
  html[lang="mn"] th:nth-child(8), html[lang="mn"] td:nth-child(8) { width: 130px; }
  html[lang="mn"] th:nth-child(16), html[lang="mn"] td:nth-child(16) { width: 89px; }
}

@media (min-width: 1500px) {
  th { padding: 10px 7px; font-size: 9.5px; }
  td { padding: 10px 7px; font-size: 12px; }
  .product-name { font-size: 12.5px; }
  .product-meta, .placement-location { font-size: 10.5px; }
  .price { font-size: 11px; }
  .pill { padding: 4px 7px; font-size: 9.5px; }
  .link-list a, .details-button { padding: 5px 7px; font-size: 10px; }
}

@media (max-width: 1279px) {
  .stats-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .advanced-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reset-button { grid-column: 3; }
  .detail-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }

  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  table { width: 100%; min-width: 0; display: block; }
  .client-catalog table { min-width: 0; }
  thead {
    width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  tbody { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  tbody tr {
    min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
    align-content: start; overflow: hidden; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
  }
  tbody tr:hover { background: var(--surface); }
  tbody tr[data-row-product-sku]:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(20,43,37,.08); }
  td, td:nth-child(n) {
    width: auto; min-width: 0; padding: 9px 11px; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: flex-start; gap: 4px; text-align: left;
    border-bottom: 1px solid var(--border); overflow-wrap: anywhere;
  }
  td::before {
    color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .3px;
    line-height: 1; text-transform: uppercase;
  }
  td:nth-child(1)::before { content: "No."; }
  td:nth-child(2)::before { content: "SKU"; }
  td:nth-child(3)::before { content: "Picture"; }
  td:nth-child(4)::before { content: "Product"; }
  td:nth-child(5)::before { content: "Brand / Line"; }
  td:nth-child(6)::before { content: "Product Type"; }
  td:nth-child(7)::before { content: "Category"; }
  td:nth-child(8)::before { content: "Showroom Placement"; }
  td:nth-child(9)::before { content: "Showroom"; }
  td:nth-child(10)::before { content: "Warehouse"; }
  td:nth-child(11)::before { content: "Total"; }
  td:nth-child(12)::before { content: "Incoming"; }
  td:nth-child(13)::before { content: "Status"; }
  td:nth-child(14)::before { content: "Selling Price"; }
  td:nth-child(15)::before { content: "Links"; }
  td:nth-child(16)::before { content: "Details"; }
  .client-catalog td:nth-child(1)::before { content: "No."; }
  .client-catalog td:nth-child(2)::before { content: "SKU"; }
  .client-catalog td:nth-child(3)::before { content: "Picture"; }
  .client-catalog td:nth-child(4)::before { content: "Product Name"; }
  .client-catalog td:nth-child(5)::before { content: "Brand / Line"; }
  .client-catalog td:nth-child(6)::before { content: "Product Type"; }
  .client-catalog td:nth-child(7)::before { content: "Category"; }
  .client-catalog td:nth-child(8)::before { content: "Showroom"; }
  .client-catalog td:nth-child(9)::before { content: "Warehouse"; }
  .client-catalog td:nth-child(10)::before { content: "Total"; }
  .client-catalog td:nth-child(11)::before { content: "Status"; }
  .client-catalog td:nth-child(12)::before { content: "Selling Price"; }
  .client-catalog td:nth-child(13)::before { content: "Links"; }
  td:nth-child(4), td:nth-child(8) { grid-column: 1 / -1; }
  td:nth-last-child(-n+2) { border-bottom: 0; }
  td[colspan] { grid-column: 1 / -1; }
  td[colspan]::before { display: none; }
  .row-number { color: var(--text); }
  .placement-summary { max-width: none; }
  .link-list { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .client-catalog .public-header {
    height: auto; min-height: 112px; padding-top: 10px; padding-bottom: 10px;
    align-content: center; flex-wrap: wrap;
  }
  .client-catalog .public-header-actions { margin-left: auto; }
  .client-page-label { font-size: 11px; }
}
@media (min-width: 681px) and (max-width: 1279px) {
  :root { --sticky-search-top: calc(var(--visual-viewport-offset-top) + var(--sticky-public-header-height)); }
  .public-header {
    position: -webkit-sticky; position: sticky;
    top: var(--visual-viewport-offset-top);
  }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .stats-row { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .advanced-filters { grid-template-columns: repeat(6,minmax(125px,1fr)) auto; }
  .reset-button { grid-column: auto; }
  .detail-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  tbody { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --public-header-height: 112px; --search-home-height: 54px; }
  html.mobile-search-mode,
  body.mobile-search-mode,
  html.mobile-search-transitioning,
  html.mobile-search-transitioning body,
  html.mobile-search-transitioning main { overflow-anchor: none; }
  html.mobile-search-transitioning { scroll-behavior: auto; }
  .public-header {
    padding: 0 14px; position: -webkit-sticky; position: sticky;
    top: var(--visual-viewport-offset-top);
  }
  .creator-credit { font-size: 9.5px; }
  .live-state { font-size: 10px; }
  .search-hero { padding: 30px 14px 22px; }
  .hero-brand-lockup {
    width: 100%; min-height: 0; margin-bottom: 22px;
    flex-direction: column; gap: 12px;
  }
  .hero-logo-hansgrohe { width: min(260px, 78vw); }
  .hero-logo-axor { width: min(160px, 50vw); }
  .hero-brand-divider { width: 56px; height: 1px; flex-basis: 1px; }
  .search-home-region {
    padding: 0 14px;
    top: calc(var(--visual-viewport-offset-top) + var(--public-header-height));
  }
  .search-after-space { height: 30px; }
  .hero-search { padding-left: 16px; }
  .search-stuck .search-home-slot .hero-search { height: 46px; }
  .hero-search input { font-size: 16px; }
  .hero-search button { width: 40px; height: 40px; flex-basis: 40px; }
  .catalog-shell { width: calc(100% - 20px); }
  .back-to-top {
    width: 44px; height: 44px;
    right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  body.mobile-search-mode .public-header,
  body.mobile-search-mode .search-hero,
  body.mobile-search-mode .search-after-space,
  body.mobile-search-mode .stats-row,
  body.mobile-search-mode .catalog-toolbar,
  body.mobile-search-mode .advanced-filters,
  body.mobile-search-mode .catalog-note { display: none; }
  body.mobile-search-mode .search-home-region {
    top: var(--visual-viewport-offset-top); padding: 4px 10px; background: rgba(255,255,255,.98);
    box-shadow: 0 7px 20px rgba(20,43,37,.1), inset 0 -1px 0 var(--border);
    backdrop-filter: blur(12px);
  }
  body.mobile-search-mode .search-home-slot .hero-search { height: 46px; box-shadow: 0 5px 16px rgba(20,43,37,.1); }
  .recent-searches-panel {
    top: calc(100% + 4px); max-height: calc(100dvh - var(--search-home-height) - var(--visual-viewport-offset-top) - 8px);
    padding: 6px; border-width: 1px 0 0; border-radius: 0; box-shadow: 0 12px 28px rgba(20,43,37,.12);
  }
  .recent-searches-use { min-height: 50px; font-size: 16px; }
  .recent-searches-header { min-height: 44px; }
  body.mobile-search-mode.recent-searches-open .catalog-shell { display: none; }
  body.mobile-search-mode .catalog-shell { width: 100%; margin: 0 auto 30px; padding: 8px 10px 0; }
  body.mobile-search-mode tbody { gap: 8px; }
  .stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .stat-card { min-height: 103px; padding: 14px; }
  .stats-row .stat-card:first-child { grid-column: 1 / -1; }
  .client-catalog .stats-row .stat-card:first-child { grid-column: auto; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { width: 100%; }
  .filter-tabs button { flex: 1; }
  .row-count { padding-left: 3px; }
  .advanced-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reset-button { grid-column: 1 / -1; }
  tbody { grid-template-columns: 1fr; gap: 10px; }
  tbody tr { display: block; }
  tbody tr > td:nth-child(n) { display: none; }
  tbody tr > td:nth-child(4) { width: 100%; padding: 0; display: block; border: 0; }
  .client-catalog tbody tr > td:nth-child(4) { width: 100%; }
  tbody tr > td:nth-child(4)::before, .desktop-product { display: none; }
  tbody tr > td[colspan] { width: 100%; min-width: 100%; box-sizing: border-box; display: block; }
  .mobile-product-card { display: block; }
  .client-catalog .mobile-product-card { width: 100%; }
  .mobile-product-main { padding: 14px; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 13px; }
  .mobile-product-picture .product-picture, .mobile-product-picture .image-placeholder { width: 72px; height: 72px; }
  .mobile-product-picture .product-picture-button { width: 72px; height: 72px; }
  .mobile-product-identity { min-width: 0; }
  .mobile-product-sku { display: block; margin-bottom: 4px; color: var(--accent-dark); font-size: 10px; font-weight: 700; letter-spacing: .25px; }
  .mobile-product-identity > strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .mobile-product-identity small { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .mobile-product-stock { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-soft); }
  .client-catalog .mobile-product-stock { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mobile-product-stock div { min-width: 0; padding: 9px 7px; text-align: center; border-right: 1px solid var(--border); }
  .mobile-product-stock div:last-child { border-right: 0; }
  .mobile-product-stock span, .mobile-product-summary > div:last-child > span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; }
  .mobile-product-stock strong { display: block; margin-top: 3px; font-size: 15px; }
  .mobile-product-stock strong.zero { color: var(--danger); }
  .mobile-product-stock strong.incoming { color: var(--warn); }
  .mobile-product-summary { padding: 10px 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-product-summary > div:last-child { text-align: right; }
  .mobile-product-summary > div:last-child strong { display: block; margin-top: 3px; font-size: 12px; white-space: nowrap; }
  .mobile-product-actions { padding: 10px 14px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
  .mobile-product-actions .link-list { margin-right: auto; }
  .mobile-product-actions .details-button, .mobile-more-button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--accent-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
  .mobile-more-button[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
  .mobile-product-extra { padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border-top: 1px solid var(--border); background: var(--surface-soft); }
  .mobile-product-extra[hidden] { display: none; }
  .mobile-product-extra > div { min-width: 0; }
  .mobile-product-extra > div > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
  .mobile-product-extra strong { display: block; font-size: 11px; line-height: 1.3; }
  .mobile-product-extra small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
  .mobile-product-placement { grid-column: 1 / -1; }
  .mobile-product-placement .placement-summary { max-width: none; }
  .modal-overlay { padding: 10px; }
  .product-modal { max-height: calc(100vh - 20px); }
  .modal-header, .modal-body { padding: 17px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image, .detail-image-placeholder { width: min(230px,100%); margin: 0 auto; }
  .detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .placement-grid { grid-template-columns: 1fr; }
  .product-set summary { grid-template-columns: minmax(0,1fr) 18px; }
  .product-set-counts { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .product-set-chevron { grid-column: 2; grid-row: 1; }
  .product-set-availability-result { display: grid; gap: 3px; }
  .product-set-needed-component { max-width: none; flex-basis: 100%; }
  .product-set-members { grid-template-columns: 1fr; }
  .product-relationship-groups { grid-template-columns: minmax(0,1fr); }
  .product-relationship-group + .product-relationship-group { border-top: 1px solid var(--border); border-left: 0; }
  .product-relationship-item { grid-template-columns: 42px minmax(0,1fr); align-items: start; }
  .product-relationship-picture { width: 42px; height: 42px; }
  .product-relationship-quantity { grid-column: 2; justify-self: start; }
  .product-set-stock-summary, .product-relationship-stock-summary { flex-basis: 100%; }
  .product-set-stock > .product-set-stock-summary::before,
  .product-relationship-stock > .product-relationship-stock-summary::before { display: none; }
  .image-preview-overlay { padding: 10px; }
  .image-preview-dialog { max-height: calc(100vh - 20px); }
  .image-preview-header { padding: 12px 14px; }
  .image-preview-body { min-height: 220px; padding: 12px; }
  .image-preview-body img { max-height: calc(100vh - 115px); }
  .catalog-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
