.quote-builder { max-width: 1080px; }
.quote-workspace { padding: 38px; box-shadow: 0 18px 70px #30282106; }
.quote-panel[data-step="1"], .quote-panel[data-step="2"], .quote-panel[data-step="5"], .quote-panel[data-step="6"] { max-width: 720px; margin-inline: auto; }
.quote-material-types { gap: 10px; margin-bottom: 28px; }
.quote-material-types .quote-type > span { display: grid; grid-template-columns: 30px 1fr; gap: 3px 12px; padding: 16px; align-items: center; background: #faf8f5; }
.quote-material-types .quote-type svg { width: 30px; height: 30px; grid-row: 1 / 3; }
.quote-material-types .quote-type small, .quote-material-types .quote-type strong { grid-column: 2; }
.quote-material-types .quote-type input:checked + span { background: #85021606; }
.quote-material-extra { max-width: 680px; }
.quote-hardware-extras { margin-top: 30px; padding: 22px; background: #faf8f5; border: 1px solid #e8e1da; border-radius: 16px; }
.quote-hardware-extras h4 { margin: 0 0 18px; font: 500 18px/1.3 "Elms Sans", sans-serif; }
.catalog-picker button, .catalog-picker input { font-family: "Elms Sans", sans-serif; letter-spacing: -.01em; }
.catalog-picker button { -webkit-tap-highlight-color: transparent; }
.catalog-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.catalog-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.catalog-search { position: relative; display: flex; flex: 1; min-width: 0; }
.catalog-search input { width: 100%; min-width: 0; height: 52px; border: 1px solid #ded6ce; border-radius: 12px; padding: 12px 40px 12px 46px; background: #faf8f5; font-size: 15px; color: #302821; }
.catalog-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; background: #fff; }
.catalog-search-icon { position: absolute; top: 16px; left: 16px; pointer-events: none; color: #87776b; }
.catalog-search-icon svg, .catalog-zoom svg, .catalog-remove svg, .catalog-dialog-close svg, .catalog-selected-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.catalog-total { flex: none; font-size: 13px; color: #75685d; }
.catalog-brands { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid #e9e2db; }
.catalog-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid #e1d9d1; border-radius: 999px; background: #fff; color: #65574c; font-size: 14px; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.catalog-filter:hover { border-color: #85021677; color: var(--accent); }
.catalog-filter[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.catalog-categories { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; }
.catalog-category { position: relative; border: 0; background: none; color: #786a5e; padding: 10px 0; min-height: 42px; font-size: 14px; cursor: pointer; }
.catalog-category[aria-pressed="true"] { color: var(--accent); }
.catalog-category[aria-pressed="true"]::after { content: ''; height: 2px; background: var(--accent); position: absolute; bottom: 4px; left: 0; right: 0; border-radius: 2px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 26px; align-items: start; margin-top: 12px; }
.catalog-results { min-width: 0; }
.catalog-result-count { font-size: 12px; color: #88796c; margin: 0 0 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { position: relative; min-width: 0; border: 1px solid #e6dfd8; border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.catalog-card:hover { border-color: #b49b88; box-shadow: 0 5px 18px #3028210a; }
.catalog-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.catalog-card-select { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: #302821; }
.catalog-card-select:focus-visible { outline-offset: -3px !important; }
.catalog-media { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; width: 100%; overflow: hidden; background: #eee6dc; }
.catalog-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.catalog-card:hover .catalog-media img { transform: scale(1.04); }
.catalog-media-hardware { background: #fff; }
.catalog-media-hardware img { object-fit: contain; padding: 12px; }
.catalog-media-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: linear-gradient(135deg, #ede2d5, #f8f3ed); color: #99795e; }
.catalog-media-placeholder svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1; }
.catalog-media-placeholder span { font-size: 11px; }
.catalog-card-copy { display: flex; flex-direction: column; gap: 5px; padding: 13px 12px 16px; min-height: 84px; }
.catalog-brand-label { display: block; color: #8a7767; font-size: 10px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; }
.catalog-card-copy strong { font-size: 15px; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; }
.catalog-card-description { color: #77695e; font-size: 12px; line-height: 1.45; margin-top: 3px; }
.catalog-card-variant { color: #8a7767; font-size: 11px; line-height: 1.4; }
.catalog-zoom { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff90; border-radius: 50%; background: #fffffff0; color: #5d4635; box-shadow: 0 2px 8px #0000000a; cursor: pointer; }
.catalog-zoom:hover { background: #fff; color: var(--accent); }
.catalog-zoom svg { width: 17px; height: 17px; }
.catalog-selected-mark { position: absolute; top: 9px; left: 9px; display: none; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 50%; }
.is-selected .catalog-selected-mark { display: grid; }
.catalog-selected-mark svg { width: 17px; height: 17px; stroke-width: 2; }
.catalog-more { display: block; width: 100%; min-height: 46px; margin-top: 18px; padding: 12px 18px; background: #faf8f5; border: 1px solid #ded6cf; border-radius: 10px; font-size: 14px; color: #665244; cursor: pointer; }
.catalog-more:hover { background: #f2ece5; }
.catalog-selection { position: sticky; top: 130px; padding: 20px; border-radius: 16px; background: #f7f3ed; min-width: 0; margin-top: 29px; }
.catalog-selection-eyebrow { margin: 0 0 16px; color: #876f5d; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.catalog-selection > .catalog-media { border-radius: 10px; margin-bottom: 18px; aspect-ratio: 1; }
.catalog-selection > .catalog-brand-label { margin-bottom: 6px; }
.catalog-selection h4 { font: 500 22px/1.2 "Elms Sans", sans-serif; color: #49372a; margin: 0 0 12px; overflow-wrap: anywhere; }
.catalog-selection-help { font-size: 14px; line-height: 1.55; color: #776657; }
.catalog-sample-note { margin-top: 10px; font-size: 12px; color: #8a796a; }
.catalog-selection .quote-link { font-size: 13px; margin-top: 8px; }
.catalog-selection-empty { display: grid; place-items: center; height: 100px; margin-bottom: 12px; color: #b39a84; }
.catalog-selection-empty svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: .7; }
.catalog-defer { margin-top: 18px; padding: 12px 0 0; min-height: 44px; width: 100%; border: 0; border-top: 1px solid #dfd4c8; background: none; color: #816e5d; text-align: left; font-size: 12px; line-height: 1.4; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.catalog-next { display: block; width: 100%; min-height: 44px; margin-top: 14px; padding: 11px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; cursor: pointer; }
.catalog-notice { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: #8b7d71; }
.catalog-feedback { margin-top: 12px; color: var(--accent); font-size: 14px; }
.catalog-feedback:empty { display: none; }
.catalog-empty { text-align: center; padding: 54px 18px; border: 1px dashed #dacfc4; border-radius: 14px; color: #6f5f51; }
.catalog-empty strong { font-size: 17px; font-weight: 500; }
.catalog-empty p { font-size: 14px; margin-top: 10px; }
.catalog-selected-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid #e2d8cb; }
.catalog-selected-row > span { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-selected-row .catalog-media { border-radius: 6px; aspect-ratio: 1; }
.catalog-selected-row .catalog-media img { padding: 3px; }
.catalog-remove { display: grid; place-items: center; width: 28px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: #8b6c55; cursor: pointer; }
.catalog-remove svg { width: 16px; height: 16px; }
.catalog-dialog { width: min(820px, calc(100% - 36px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; border: 1px solid #e7ded3; border-radius: 22px; background: #fff; color: #302821; box-shadow: 0 28px 100px #0005; }
.catalog-dialog[open] { display: grid; grid-template-columns: 1.15fr 1fr; }
.catalog-dialog::backdrop { background: #21170fc4; backdrop-filter: blur(6px); }
.catalog-dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border: 1px solid #dfd5cc; border-radius: 50%; color: #5b4738; cursor: pointer; }
.catalog-dialog-media .catalog-media { height: 100%; min-height: 380px; aspect-ratio: 1; }
.catalog-dialog-media .catalog-media img { max-height: 600px; }
.catalog-dialog-copy { padding: 60px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.catalog-dialog h3 { margin: 12px 0 20px; font-size: 36px; line-height: 1.08; overflow-wrap: anywhere; }
.catalog-dialog-description { font-size: 15px; line-height: 1.6; color: #756354; }
.catalog-dialog-note { font-size: 12px; line-height: 1.5; color: #93806f; margin: 20px 0; }
.catalog-dialog-choose { margin-top: auto; display: block; width: 100%; min-height: 48px; border: 0; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; cursor: pointer; }
.quote-item-samples { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.quote-item-samples img { width: 64px; height: 58px; border-radius: 8px; object-fit: cover; border: 1px solid #e4dbd1; }
.quote-item-samples span { font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .quote-workspace { padding: 24px; }
  .quote-material-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quote-material-types .quote-type > span { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 7px; text-align: center; }
  .quote-material-types .quote-type svg { width: 28px; height: 28px; }
  .quote-material-types .quote-type strong { font-size: 13px; line-height: 1.3; }
  .quote-material-types .quote-type small { display: none; }
  .catalog-layout { display: flex; flex-direction: column; gap: 18px; }
  .catalog-results { width: 100%; }
  .catalog-selection { position: static; width: 100%; margin: 0; order: -1; padding: 16px; }
  .catalog-selection:has(> .catalog-media) { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .catalog-selection:has(> .catalog-media) > .catalog-media { grid-column: 1; grid-row: 1 / 5; margin: 0; aspect-ratio: 1; }
  .catalog-selection:has(> .catalog-media) > :not(.catalog-media) { grid-column: 2; }
  .catalog-selection:has(> .catalog-media) .catalog-selection-eyebrow { margin-bottom: 6px; }
  .catalog-selection h4 { font-size: 19px; margin-bottom: 7px; }
  .catalog-selection-help { font-size: 13px; }
  .catalog-selection > .catalog-selection-empty { display: none; }
  .catalog-selection-eyebrow { margin-bottom: 8px; }
  .catalog-selection .quote-link { margin-top: 0; min-height: 36px; }
  .catalog-defer { min-height: 36px; margin-top: 10px; padding-top: 9px; }
  .catalog-selection .catalog-sample-note { margin-top: 6px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 9px; }
  .catalog-total { font-size: 12px; }
  .catalog-filter { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .catalog-brands { gap: 7px; padding-bottom: 12px; }
  .catalog-category { font-size: 12px; }
  .catalog-categories { gap: 4px 14px; }
  .catalog-grid { gap: 12px; }
  .catalog-card-copy { padding: 11px 10px 13px; min-height: 76px; }
  .catalog-card-copy strong { font-size: 14px; }
  .catalog-brand-label { font-size: 9px; }
  .catalog-zoom { top: 6px; right: 6px; width: 34px; height: 34px; }
  .catalog-dialog[open] { grid-template-columns: 1fr; }
  .catalog-dialog-media .catalog-media { min-height: 0; height: 260px; aspect-ratio: auto; }
  .catalog-dialog-copy { padding: 22px; }
  .catalog-dialog h3 { font-size: 30px; margin-bottom: 14px; }
  .quote-hardware-extras { padding: 18px; }
  .catalog-picker-multiple .catalog-selection-help { max-width: 45ch; }
}
@media (max-width: 360px) {
  .quote-workspace { padding: 20px 16px; }
  .catalog-grid { gap: 9px; }
  .catalog-card-copy strong { font-size: 13px; }
  .catalog-card-description { font-size: 11px; }
  .catalog-search input { font-size: 13px; padding-left: 38px; }
  .catalog-search-icon { left: 12px; }
  .catalog-zoom { width: 30px; height: 30px; }
  .catalog-selected-mark { width: 25px; height: 25px; left: 6px; top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card, .catalog-media img, .catalog-filter { transition: none; }
}
