:root {
  color-scheme: light;
  --background: #f7f6f0;
  --paper: #fffefa;
  --ink: #212a24;
  --muted: #626b61;
  --line: #e4e4da;
  --green: #26372d;
  --radius: 14px;
  font: 15px/1.55 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; vertical-align: middle; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #779264; outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.catalog-app { min-height: 100vh; display: flex; flex-direction: column; }
.catalog-main { flex: 1; }
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-actions { display: flex; align-items: center; gap: 7px; }
#quote-link[aria-current] { border-color: var(--green); background: #eeefe6; }
.quote-count { display: inline-grid; place-items: center; min-width: 20px; padding: 0 4px; border-radius: 10px; background: var(--green); color: white; font-size: 10px; }
.brand { display: inline-flex; gap: 9px; align-items: center; flex-shrink: 0; line-height: 1.17; }
.brand > svg { width: 37px; height: 37px; color: var(--green); }
.brand b { display: block; font-size: 17px; letter-spacing: -.045em; }
.brand small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.main-menu { display: flex; align-self: stretch; gap: clamp(8px, 2.4vw, 32px); }
.main-menu a {
  display: grid; place-items: center; min-height: 44px; padding-inline: 5px;
  border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; white-space: nowrap;
}
.main-menu a:hover, .main-menu a[aria-current] { color: var(--green); border-bottom-color: var(--green); }
.icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button, .icon-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border-radius: 8px; min-height: 42px; font-weight: 700; white-space: nowrap;
}
.button { padding: 9px 15px; border: 1px solid transparent; }
.outline, .icon-button { background: var(--paper); color: var(--green); border: 1px solid #d9ded3; }
.outline:hover, .icon-button:hover:not(:disabled) { background: #eeefe6; }
.primary { background: var(--green); color: #fff; }
.primary:hover:not(:disabled) { background: #3c503e; }
.icon-button { width: 42px; padding: 0; flex: none; }
.eyebrow {
  display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 750; letter-spacing: .18em;
}
.eyebrow > span { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: #91a77e; }
.scene-label { position: absolute; color: #fff; font-size: 10px; padding: 5px 8px; border-radius: 5px; background: #1e251ccd; }
.home-heading { margin-top: clamp(24px, 5vw, 65px); }
.home-heading h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 46px); line-height: 1.18; letter-spacing: -.06em; }
.home-heading p { margin: 0; color: var(--muted); }
.home-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 14px; }
.home-menu a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px 6px; align-content: space-between;
  min-height: 148px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.home-menu a:hover { border-color: #879785; background: #f3f5ed; }
.home-menu-icon { grid-column: 1 / -1; width: 31px; height: 31px; color: var(--green); }
.home-menu b { display: block; color: var(--green); font-size: clamp(18px, 2.1vw, 24px); letter-spacing: -.04em; }
.home-menu small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; word-break: keep-all; }
.home-menu-arrow { align-self: end; color: var(--green); }
.home-utilities { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 38px; }
.home-utilities a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 5px; color: var(--muted); font-size: 13px; font-weight: 650; }
.home-utilities a:hover { color: var(--green); text-decoration: underline; }
.tile-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tile-menu a {
  display: grid; place-items: center; padding: 7px 13px; min-height: 40px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--green); font-size: 13px; font-weight: 700;
}
.tile-menu a:hover { border-color: #879785; }
.tile-menu a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.catalog-section { margin: 27px 0 54px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tile-card-button { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.tile-card-button:focus-visible { outline-offset: -3px; }
.tile-card-button:hover .tile-more { text-decoration: underline; }
.quote-card-footer { display: flex; gap: 5px; margin-top: auto; padding: 0 12px 11px; }
.quote-card-footer .button { flex: 1; min-width: 0; padding-inline: 5px; }
.similar-trigger { min-height: 40px; padding: 5px 9px; font-size: 12px; }
.quote-add .icon { width: 14px; height: 14px; }
.quote-add { min-height: 40px; padding: 5px 9px; gap: 4px; font-size: 13px; }
.quote-stock-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.quote-stock-actions .quote-add { min-height: 34px; padding: 3px 6px; font-size: 11px; }
.quote-stock-actions .quote-add .icon { display: none; }
.quote-product-actions { margin: 11px 0 7px; }
#product-quote-status { margin: 0 0 9px; }
.tile-photo { position: relative; aspect-ratio: 1.46; background: #e5e0d4; }
.tile-photo > img:first-child, .product-image > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-photo > img:first-child { object-position: center 42%; }
.tile-card.full-format .tile-photo { aspect-ratio: 1; background: #fff; }
.tile-card.full-format .tile-photo > img:first-child { object-fit: contain; object-position: center; padding: 3%; }
.tile-card.full-format .tile-photo > img.upright-tile { transform: rotate(90deg); }
.tile-format-label { display: inline-block; margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 750; }
.format-picker { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.format-picker button { display: grid; justify-items: start; gap: 2px; padding: 10px 14px; text-align: left; }
.format-picker button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.format-picker small { font-weight: 550; }
.catalog-list-tools { display: flex; align-items: end; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.book-position { font-size: 11px; color: var(--muted); margin-block: 4px 8px; }
.material-product .tile-photo { background: #fff; }
.material-product .tile-photo > img:first-child { object-fit: contain; object-position: center; padding: 6%; }
.material-product .tile-copy { overflow-wrap: anywhere; }
.tile-surface { position: absolute; right: 13px; bottom: 13px; width: 53px; aspect-ratio: 1; border: 2px solid #faf6eb; border-radius: 7px; object-fit: cover; box-shadow: 0 4px 13px #1e251c47; }
.scene-label { left: 11px; bottom: 12px; }
.tile-copy { padding: 14px 16px 16px; }
.tile-en { font-size: 10px; font-weight: 750; letter-spacing: .11em; color: #5f6d5a; }
.tile-origin { margin-left: 4px; padding: 2px 4px; background: #edeee5; border-radius: 4px; letter-spacing: 0; white-space: nowrap; }
.tile-copy h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.055em; margin: 4px 0; }
.tile-copy p { color: var(--muted); font-size: 12px; margin: 0 0 13px; }
.tile-more { display: flex; align-items: center; justify-content: space-between; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--green); font-size: 12px; font-weight: 750; }
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.brand-feature { grid-column: span 3; display: flex; align-items: center; gap: 22px; padding: 16px 20px; color: #f5f2e6; background: var(--green); border-radius: var(--radius); }
.n12-feature { background: #38332f; }
.extra-feature { grid-column: 1 / -1; background: #453448; }
.brand-feature > img { height: 142px; width: auto; border-radius: 3px; }
.brand-feature > div { min-width: 0; overflow-wrap: anywhere; }
.brand-feature h3 { margin: 3px 0; font-size: 24px; letter-spacing: -.05em; }
.brand-feature p { margin: 0 0 12px; font-size: 13px; color: #e0e6d8; }
.brand-feature .eyebrow { color: #bccab7; }
.brand-link { color: inherit; border: 0; background: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 7px; }
.brand-link:hover, .brand-link[aria-pressed="true"] { text-decoration: underline; }
.brand-card { grid-column: span 2; display: flex; min-width: 0; align-items: center; text-align: left; gap: 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.brand-card:hover, .brand-card[aria-pressed="true"] { background: #e7ecdf; }
.brand-card img { width: 58px; height: 54px; border-radius: 6px; object-fit: cover; }
.brand-card b { display: block; overflow-wrap: anywhere; font-size: 13px; }
.brand-card small { display: block; color: var(--muted); margin-top: 2px; }
.new-catalogs { margin-bottom: 16px; }
.new-catalogs h2 { font-size: 16px; margin: 0 0 8px; }
.new-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.new-catalog-grid .brand-card { grid-column: auto; padding: 10px; gap: 8px; }
.new-catalog-grid img { width: clamp(30px, 9vw, 48px); height: auto; object-fit: contain; flex: none; }
.new-catalog-grid b { font-size: 14px; line-height: 1.25; }
.new-catalog-grid small { color: var(--green); font-size: 12px; text-decoration: underline; }
.uploaded-brand { min-height: 64px; }
#brand-results { margin-top: 22px; scroll-margin-top: 14px; }
#brand-results h3 { margin: 0 0 10px; }
.brand-catalog-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.brand-catalog-links:empty { display: none; }
.fixture-catalogs { margin-top: 26px; }
.fixture-catalogs h2 { margin: 0 0 10px; font-size: 20px; }
.stock-actions { display: flex; align-items: center; gap: 8px; }
.small-button { min-height: 34px; font-size: 12px; padding: 5px 9px; }
.trade-col { display: none; }
.trade-mode .trade-col { display: table-cell; }
.trade-mode #trade-button { background: var(--green); color: #fff; }
.collection-filters { margin-bottom: 13px; }
.origin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.origin-card { border: 1px solid var(--line); padding: 0; border-radius: var(--radius); background: var(--paper); overflow: hidden; text-align: left; color: var(--ink); }
.origin-card[aria-pressed="true"] { outline: 2px solid #6d825d; outline-offset: 2px; }
.origin-card:hover { background: #e7ecdf; }
.origin-card img { display: block; width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: center 53%; }
.origin-card > span { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px; padding: 10px 13px; }
.origin-card b { font-size: 16px; }
.origin-card small { font-size: 11px; color: var(--muted); }
#origin-results { margin-top: 22px; scroll-margin-top: 14px; }
.origin-index { display: flex; flex-wrap: wrap; align-items: start; gap: 7px; margin-bottom: 14px; }
.origin-index details { flex: 1 1 190px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--paper); }
.origin-index summary { cursor: pointer; color: var(--green); font-weight: 750; font-size: 12px; }
.origin-index details > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.notice { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 9px 14px; border: 1px solid #e5dfc9; border-radius: 8px; background: #f4f0e1; color: #655b42; font-size: 12px; }
.notice strong { font-size: 11px; letter-spacing: .03em; }
.inventory { margin: 34px 0 48px; scroll-margin-top: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.eyebrow { color: #52634f; }
.section-head :is(h1, h2), .admin-title h1 { margin: 5px 0 3px; font-size: 31px; letter-spacing: -.06em; line-height: 1.24; }
.section-head p, .admin-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.search { width: min(100%, 315px); height: 43px; display: flex; gap: 9px; align-items: center; border: 1px solid #dce0d6; border-radius: 8px; padding-inline: 13px; background: var(--paper); color: var(--muted); }
.search:focus-within { outline: 2px solid #849a75; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 13px; }
.search input:focus-visible { outline: none; }
.stock-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border: 1px solid #dce0d6; color: #475244; background: #fbfaf5; border-radius: 30px; min-height: 34px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.filters button:hover { background: #e7ecdf; }
.filters button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.count { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.stock-frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #5b655a; font-size: 12px; background: #eeefe7; font-weight: 700; }
th, td { padding: 12px 17px; }
td { border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { text-align: right; padding-right: 20px; }
td.blank { padding: 32px 18px; text-align: center; color: var(--muted); }
.item { display: flex; align-items: center; gap: 12px; }
.item img, .item-placeholder { width: 43px; height: 43px; object-fit: cover; border-radius: 7px; flex: none; background: #e7e3d6; }
.item-placeholder { display: grid; place-items: center; color: #5e6959; }
.item-name { display: block; font-weight: 750; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.subtext { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.available { background: #e4eee0; color: #315f3a; }
.empty { background: #f3e6dd; color: #874a30; }
.unknown { background: #ecece5; color: #5e6259; }
.quantity, .amount { display: block; margin-top: 3px; font-weight: 750; white-space: nowrap; }
.lock-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: #4d5d4c; padding: 5px 0; font-size: 12px; white-space: nowrap; }
.lock-link:hover { text-decoration: underline; }
.lock-link svg { width: 14px; height: 14px; }
.row-open { min-height: 36px; width: 36px; }
.site-foot { border-top: 1px solid var(--line); color: #596354; }
.site-foot > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 62px; font-size: 12px; }
.site-foot a { display: flex; gap: 5px; align-items: center; }
.site-foot a:hover { text-decoration: underline; }
.site-foot small { margin-inline: 4px; }

dialog { color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 20px 85px #13231655; max-height: calc(100dvh - 32px); }
dialog::backdrop { background: #14221bd0; }
.similar-dialog::backdrop, dialog.customer-product::backdrop { background: #17241d; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; gap: 12px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 2px 0 0; letter-spacing: -.06em; font-size: 24px; overflow-wrap: anywhere; }
.reader { width: min(1000px, calc(100% - 32px)); }
.reader-stock-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 9px 14px; background: #eef1e8; border-bottom: 1px solid var(--line); font-size: 13px; }
#reader-stock-preview, #reader-stock-page-note { color: var(--muted); overflow-wrap: anywhere; }
.reader-stock-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.reader-stock-actions [aria-pressed="true"] { border-color: #779264; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.page-view { background: #e6e7dd; }
.page-stage { height: min(58dvh, 620px); display: grid; place-items: center; padding: 12px; text-align: center; color: #495649; touch-action: pan-y; position: relative; }
.spread-controls { justify-content: center; padding: 6px; border-bottom: 1px solid #d7dcd0; }
.spread-controls button { min-height: 30px; }
.page-stage canvas {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: calc(100% - 24px); max-height: calc(100% - 24px); width: auto; height: auto;
  box-shadow: 0 4px 17px #333a2c37;
}
.pdf-zoom-controls button { min-height: 38px; min-width: 39px; }
.page-stage.is-zoomed { display: block; overflow: auto; touch-action: pan-x pan-y; }
.page-stage.is-zoomed canvas { position: static; transform: none; max-width: none; max-height: none; margin-inline: auto; }
.page-controls { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 7px; border-top: 1px solid #d7dcd0; }
.page-number { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.page-number input { width: 54px; padding: 6px; text-align: center; }
.page-details { padding: 18px; border-left: 1px solid var(--line); max-height: calc(min(62dvh, 640px) + 56px); overflow: auto; }
.page-details h3 { font-size: 15px; margin: 21px 0 10px; }
.page-details .field + .field { margin-top: 9px; }
.page-details p { color: var(--muted); font-size: 13px; }
.reader-stock-search { margin-bottom: 10px; }
#reader-stock-more { width: 100%; }
.page-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 9px; }
.page-item .item-name { margin-bottom: 3px; }
.page-item-info { margin-top: 9px; }
.page-item .quantity { display: inline-block; margin-left: 5px; }
.page-item .lock-link, .page-item .amount { margin-top: 6px; }
.page-item > a.button { margin-top: 7px; width: 100%; white-space: normal; font-size: 12px; }
.product-dialog { width: min(860px, calc(100% - 26px)); }
.similar-dialog { width: min(1040px, calc(100% - 26px)); }
.similar-content { padding: 16px; }
.similar-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
#similar-source { display: flex; gap: 10px; align-items: center; }
#similar-source > img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.similar-toolbar .lock-link { display: flex; margin-top: 4px; }
.similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.similar-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.similar-card > img { width: 100%; height: clamp(100px, 21vw, 192px); object-fit: contain; background: white; }
.similar-card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex: 1; padding: 10px; overflow-wrap: anywhere; }
.similar-card h3 { margin: 0; line-height: 1.3; font-size: 15px; }
.similar-card p { margin: 0; color: var(--muted); font-size: 12px; }
.similar-card .similar-reasons { color: var(--green); }
.similar-stock { margin-block: auto 3px; padding-top: 4px; }
.similar-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.similar-actions .button { min-height: 39px; padding-inline: 7px; font-size: 11px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-image { position: relative; background: #e5e0d4; min-height: 350px; }
.product-image > img:first-child { position: absolute; }
.product-image .tile-surface { width: 72px; }
.product-info { padding: 20px; }
.product-info .spec { margin: 3px 0 2px; font-weight: 750; }
.product-stock { margin: 13px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.warehouse { margin: 9px 0 0; color: var(--muted); }
.warehouse p { margin: 0 0 5px; font-size: 11px; }
.warehouse dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; }
.warehouse dl div { background: #eeefe7; border-radius: 5px; padding: 5px 3px; text-align: center; }
.warehouse dt, .warehouse dd { font-size: 10px; margin: 0; white-space: nowrap; }
.warehouse dd { font-weight: 750; color: var(--ink); }
.product-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; }
.product-actions .button { font-size: 12px; }
.product-price { padding: 9px 11px; border-radius: 7px; background: #eeefe7; margin: 8px 0; }
.product-dialog.has-details { width: min(1010px, calc(100% - 26px)); background: #f4f1ec; }
.product-dialog.has-square-gallery { width: min(1136px, calc(100% - 26px)); }
.has-details .dialog-head { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.has-details .product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 22px; padding: 20px; }
.has-square-gallery .product-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.has-details .product-info { padding: 19px; border: 1px solid #e7e1d7; border-radius: 12px; background: var(--paper); }
.product-headline { margin: 5px 0 6px; font-size: clamp(19px, 2.4vw, 27px); letter-spacing: -.055em; line-height: 1.25; }
.product-description { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.product-gallery { min-width: 0; }
.product-gallery-main { margin: 0; background: #ece7de; border: 1px solid #e7e1d7; border-radius: 12px; overflow: hidden; }
.product-gallery-main > img { display: block; width: 100%; height: clamp(240px, 40vh, 395px); object-fit: contain; }
.has-square-gallery .product-gallery-main > img { height: auto; aspect-ratio: 1; max-height: min(62dvh, 610px); }
.product-gallery-main figcaption { padding: 9px 12px; background: var(--paper); font-size: 12px; }
.product-gallery-main figcaption span { display: block; font-size: 11px; margin-top: 1px; color: var(--muted); }
.product-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.product-thumbs button { display: flex; min-width: 0; align-items: center; text-align: left; gap: 6px; min-height: 46px; color: var(--ink); border: 1px solid #e7e1d7; border-radius: 8px; padding: 4px; background: var(--paper); font-size: 11px; }
.product-thumbs button[aria-pressed="true"] { border-color: #a07d4b; background: #f0eadf; font-weight: 750; }
.product-thumbs button img { display: block; flex: none; border-radius: 5px; object-fit: cover; }
.product-specifications { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-specifications section { border: 1px solid #e7e1d7; border-radius: 12px; padding: 14px 17px; background: var(--paper); }
.product-specifications h3 { font-size: 16px; margin: 0 0 9px; letter-spacing: -.035em; }
.product-specifications dl { margin: 0; }
.product-specifications dl div { display: grid; grid-template-columns: minmax(66px, .5fr) 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.product-specifications dt { color: var(--muted); }
.product-specifications dd { margin: 0; font-weight: 650; }
.product-specifications p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.product-set { grid-column: 1 / -1; scroll-margin-top: 95px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 17px; background: var(--paper); }
.product-set h3 { margin: 0; font-size: 17px; }
.product-set p { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.set-card { display: grid; align-content: start; justify-items: start; width: 100%; background: var(--paper); color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; overflow-wrap: anywhere; }
button.set-card { cursor: pointer; }
button.set-card:hover, .set-card.current { border-color: #718571; background: #f0f3ed; }
.set-card svg { display: block; width: 100%; height: 66px; }
.set-card b { font-size: 13px; }
.set-card small, .set-card span { color: var(--muted); font-size: 11px; }
.set-card span { font-weight: 700; margin-top: 4px; }
.size-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 8px 0 12px; }
.size-select { display: grid; gap: 3px; min-width: min(170px, 100%); font-size: 12px; font-weight: 650; }
.size-select select { min-height: 42px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.size-results-note { font-size: 13px; color: var(--muted); }
.budget-controls, .budget-heading-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.budget-controls .filters { align-items: center; }
.budget-controls .filters button { min-height: 42px; }
.budget-tag { display: inline-block; margin: 3px 4px 7px 0; padding: 2px 8px; border-radius: 20px; background: #edf1e8; color: #364737; font-size: 11px; font-weight: 700; }
.budget-tag[data-tier="standard"] { background: #eeeae1; color: #574a33; }
.budget-tag[data-tier="premium"] { background: #eae4ee; color: #513957; }
.budget-empty { grid-column: 1 / -1; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.showcase-preferences { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.showcase-preferences .subtext { flex-basis: 100%; margin: 0; }
.showcase-only { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; font-size: 13px; }
.showcase-picks { margin-top: 12px; }
.showcase-picks .search { margin-top: 9px; width: min(100%, 460px); }
.showcase-pick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.showcase-list { list-style: none; margin: 8px 0 0; padding: 0; }
.showcase-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.showcase-list .button { min-height: 37px; padding-inline: 9px; font-size: 12px; }
#showcase-kinds button { min-height: 42px; }
#showcase-product-status { margin: 0 0 9px; }
.size-more { margin-top: 15px; }
.photo-unavailable { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; color: var(--muted); font-size: 13px; }
.origin-cover { display: block; min-height: 105px; background: #e2e8df; }
.sanitary-controls { display: flex; align-items: center; justify-content: space-between; gap: 9px 16px; flex-wrap: wrap; margin-top: 9px; }
.sanitary-products { display: grid; gap: 26px; }
.sanitary-group-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.sanitary-group-head > div { display: flex; align-items: baseline; gap: 9px; }
.sanitary-group-head h3 { font-size: 20px; margin: 0; }
.sanitary-group-head small, .sanitary-empty { color: var(--muted); }
.sanitary-pdf { max-width: 100%; }
.sanitary-pdf summary { cursor: pointer; color: var(--muted); font-size: 12px; padding-block: 5px; }
.sanitary-chapters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sanitary-product .tile-photo, .has-sanitary-gallery .product-gallery-main { background: #fff; }
.sanitary-product .tile-photo > img:first-child { object-fit: contain; object-position: center; padding: 6%; }
.countertop-product .tile-photo { aspect-ratio: 4 / 5; }
.countertop-product .tile-photo > img:first-child { padding: 0; }
.sanitary-product .tile-copy h4 { font-size: clamp(14px, 2.25vw, 18px); margin: 4px 0; line-height: 1.3; }
.sanitary-product .tile-copy { overflow-wrap: anywhere; }
.has-sanitary-gallery .product-gallery-main > img { height: auto; aspect-ratio: 4/3; max-height: min(56dvh, 550px); }
.has-countertop-gallery .product-gallery-main > img { aspect-ratio: auto; height: min(54dvh, 550px); }
.fixture-options { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.fixture-options li { border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; font-size: 12px; overflow-wrap: anywhere; }
[data-fixture-list] .size-results-note:empty { display: none; }
#product-gallery { scroll-margin-top: 96px; }
@media (max-width: 850px) {
  .has-square-gallery .product-layout { grid-template-columns: minmax(0, 1fr); }
  .format-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.auth-dialog { width: min(416px, calc(100% - 28px)); }
.quote-item-form { display: grid; gap: 11px; padding: 16px 20px 20px; }
.quote-item-form p { margin: 0; }
.quote-item-form > .primary { width: 100%; }
#quote-item-name { font-weight: 750; overflow-wrap: anywhere; }
.quote-item-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quote-product { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
#quote-item-form .quote-product { align-items: center; }
.quote-thumb { flex: 0 0 auto; width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.quote-boxes { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.quote-boxes input { min-width: 0; }
.quote-box-result { font-size: 14px; font-weight: 700; color: var(--green); }
.quote-materials, .quote-materials > details { border: 1px solid var(--line); border-radius: 9px; padding: 10px; min-width: 0; }
.quote-materials > * + *, .quote-materials > details > * + * { margin-top: 8px; }
.quote-materials summary { cursor: pointer; font-weight: 700; }
.quote-materials select { width: 100%; }
.quote-materials .showcase-only { min-height: 34px; }
.quote-material-summary { margin-top: 5px; }
.quote-projects, .quote-group, .quote-empty { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.quote-projects { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.quote-projects > .field { flex: 1 1 210px; }
.quote-projects > .subtext { flex-basis: 100%; margin: 0; }
.quote-send-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#quote-send-panel { margin-top: 14px; }
.quote-send-panel p { margin: 4px 0 0; }
.admin-quote-inbox { margin-bottom: 14px; }
.admin-quote-request { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.admin-quote-request summary { cursor: pointer; }
.admin-quote-request summary .subtext { display: inline-block; margin-left: 7px; }
.admin-quote-place { margin: 9px 0; }
.admin-quote-place h3 { margin: 0; font-size: 15px; }
.admin-quote-place ul { list-style: none; padding: 0; margin: 5px 0 0; }
.admin-quote-place li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.admin-quote-place li > b { white-space: nowrap; }
#admin-quotes-more { margin-top: 9px; }
.quote-site-actions, .quote-site-form { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; }
.quote-site-form { flex-basis: 100%; }
.quote-site-form > .field { flex: 1 1 160px; }
.quote-site-actions .button, .quote-site-form .button { padding-inline: 11px; font-size: 13px; }
.quote-empty, .quote-overview, .quote-totals { margin-top: 14px; }
.quote-empty h2, .quote-group h2 { margin: 0; font-size: 18px; }
.quote-empty p, .quote-overview span, .quote-group h2 small { color: var(--muted); font-size: 13px; }
.quote-empty p { margin: 4px 0 0; }
.quote-overview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.quote-groups { display: grid; gap: 9px; }
.quote-group ul { list-style: none; margin: 5px 0 0; padding: 0; }
.quote-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 9px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.quote-line:last-child { padding-bottom: 0; }
.quote-line-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.quote-line-actions b, .quote-total-quantity { white-space: nowrap; }
.quote-line-actions .button { min-height: 36px; padding: 3px 8px; font-size: 12px; }
.quote-total-quantity { text-align: right; }
.quote-toast { position: fixed; z-index: 3; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); margin: 0; padding: 10px 15px; border-radius: 8px; color: white; background: var(--green); }
.auth-form { padding: 18px 22px 22px; }
.auth-form p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.auth-form .primary { width: 100%; margin-top: 15px; justify-content: space-between; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 750; color: #4e5a4c; }
.field input, .field select, .page-number input {
  background: #fffefa; color: var(--ink); border: 1px solid #d9ded3; border-radius: 7px;
  min-height: 38px; padding: 7px 9px; width: 100%; min-width: 0;
}
.page-number input { width: 58px; }
.auth-form .demo-hint, .demo-hint { background: #f1eee1; border-radius: 7px; padding: 8px 10px; color: #685936; }
.error, .auth-form .error { color: #9a3825; margin: 10px 0 0; font-size: 13px; }
.success { color: #315f3a; margin: 10px 0 0; font-size: 13px; }

.admin-title { margin: 33px 0 21px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; gap: 16px; margin-bottom: 35px; }
.panel { background: var(--paper); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.05em; }
.panel p:not(.error, .success) { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.panel .demo-hint { margin-top: 10px; }
.admin-form { display: grid; gap: 12px; margin-top: 14px; }
.admin-form > .button { justify-self: start; }
.admin-login { max-width: 430px; margin-bottom: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-selection { display: grid; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stock-import { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 20px; padding: 16px 0 0; gap: 0; }
.stock-import .admin-form { margin-top: 0; }

@media (max-width: 760px) {
  .container { width: calc(100% - 34px); }
  .topbar { min-height: 63px; gap: 8px; }
  .main-menu { gap: 7px; }
  .home-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .catalog-section { margin: 20px 0 36px; }
  .tile-grid, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .brand-feature { grid-column: span 2; }
  .brand-card { grid-column: span 1; }
  .origin-grid { gap: 6px; }
  .origin-card > span { padding: 7px; }
  .origin-card b { font-size: 13px; }
  .origin-card small { font-size: 10px; }
  .origin-card small .icon { display: none; }
  .inventory { margin-top: 26px; }
  .section-head :is(h1, h2), .admin-title h1 { font-size: 26px; }
  th, td, th:first-child, td:first-child, th:last-child, td:last-child { padding-inline: 10px; }
  .desktop-col { display: none; }
  .reader-layout, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .page-stage { height: min(49dvh, 510px); padding: 8px; }
  .page-stage canvas { max-width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .page-details { display: flex; flex-direction: column; max-height: none; border: 0; padding: 12px; }
  .page-details h3 { margin-top: 0; }
  .page-details > .field { order: 1; margin-top: 6px; }
  .dialog-head { padding: 12px; }
}
@media (max-width: 860px) {
  .catalog-app .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-top: 9px; }
  .catalog-app .topbar:has(.main-menu[hidden]) { padding-top: 0; }
  .main-menu { grid-area: 2 / 1 / 3 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr; gap: 0; margin-top: 5px; }
  .main-menu a { font-size: 12px; padding-inline: 2px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding: 6px 7px; gap: 4px; font-size: 11px; }
  .header-actions .icon { width: 13px; height: 13px; }
}
@media (max-width: 640px) {
  .tile-menu { margin-top: 14px; padding-bottom: 10px; gap: 6px; }
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 510px) {
  .home-menu a { min-height: 115px; padding: 13px; gap: 6px 2px; }
  .home-menu-icon { width: 25px; height: 25px; }
  .home-menu-arrow { display: none; }
  .tile-menu a { padding-inline: 9px; font-size: 12px; }
  .tile-copy { padding: 9px; }
  .tile-copy h3 { font-size: 15px; }
  .tile-copy p, .tile-more { font-size: 10px; }
  .tile-en { font-size: 8px; }
  .tile-photo { aspect-ratio: 1.13; }
  .tile-surface { width: 34px; bottom: 6px; right: 6px; }
  .scene-label { bottom: 6px; left: 6px; font-size: 8px; padding: 3px 4px; }
  .brand-feature { padding: 12px; gap: 13px; }
  .brand-feature > img { height: 108px; max-width: 33%; object-fit: contain; flex: none; }
  .brand-card img { width: 41px; height: 42px; }
  .brand-card b { font-size: 11px; }
  .stock-tools { flex-wrap: wrap; }
  .stock-actions { margin-left: auto; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-image { min-height: 0; height: min(38dvh, 310px); }
  .product-info { padding: 13px; }
  .has-details .product-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
  .has-details .product-info { padding: 13px; }
  .product-gallery-main > img { height: min(36dvh, 300px); }
  .has-square-gallery .product-gallery-main > img { height: auto; }
  .product-specifications { grid-template-columns: minmax(0, 1fr); }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-set { padding: 12px; }
  .product-thumbs button img { width: 31px; height: 36px; }
  .section-head { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 11px; gap: 11px; }
  .search { width: 100%; }
  .item { gap: 6px; }
  .item img, .item-placeholder { display: none; }
  th, td, th:first-child, td:first-child, th:last-child, td:last-child { padding-inline: 6px; }
  th:first-child, td:first-child { padding-left: 9px; }
  th:last-child, td:last-child { padding-right: 7px; }
  th { font-size: 10px; white-space: nowrap; }
  .item-name { font-size: 12px; }
  .subtext { font-size: 10px; }
  .quantity, .amount { font-size: 12px; }
  .badge { padding-inline: 5px; font-size: 10px; }
  .row-open { width: 29px; min-height: 33px; }
  .quote-card-footer { padding: 0 8px 8px; }
  .quote-card-footer .button { min-height: 38px; padding-inline: 3px; font-size: 11px; }
  .quote-card-footer .quote-add .icon { display: none; }
  .similar-content { padding: 10px; }
  .quote-line { align-items: start; flex-wrap: wrap; }
  .quote-line-actions { width: 100%; justify-content: flex-start; }
  .quote-line-actions b { margin-right: auto; }
  .lock-link { font-size: 11px; }
  .lock-link .icon { width: 12px; height: 12px; }
  .filters { gap: 4px; }
  .filters button { padding-inline: 8px; }
  .reader { width: calc(100% - 14px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ceramic countertop catalog */
.slab-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.slab-filters button { min-height: 42px; padding: 6px 14px; }
.slab-filters button span { margin-inline-start: 4px; opacity: .78; }
.has-countertop-gallery .slab-photo-original { display: inline-flex; margin-top: 8px; }
.has-countertop-gallery .product-thumbs { display: flex; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.has-countertop-gallery .product-thumbs button { flex: 0 0 auto; }
.has-countertop-gallery .product-thumbs button img { width: 42px; height: 42px; object-fit: contain; }
.slab-sheets { grid-column: 1 / -1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.slab-sheets summary { font-weight: 750; cursor: pointer; padding: 8px 0; }
.slab-sheets figure { max-width: 780px; margin: 12px auto 20px; }
.slab-sheets figcaption { display: grid; gap: 4px; margin: 0 0 10px; color: var(--ink); }
.slab-sheets figcaption span { color: var(--muted); font-size: .875rem; }
.slab-sheets img { display: block; width: 100%; height: auto; }
