/* v1485 — Catalog page */
.cat-wrap { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px; overflow: auto; background: #f7fafa; color: var(--ink); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cat-title h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.2px; }
.cat-title p { margin: 2px 0 0; font-size: 15px; color: #5b6b6b; }
.cat-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #cbd5d5; border-radius: 12px; padding: 0 12px; min-width: 300px; flex: 0 1 460px; }
.cat-search:focus-within, .cat-cfilter input:focus { border-color: var(--accent); }
.cat-search i { color: #5b6b6b; font-size: 19px; }
.cat-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 14px 0; flex: 1; min-width: 0; color: inherit; }
.cat-grid { display: flex; gap: 14px; align-items: flex-start; }
.cat-card { background: #fff; border: 1px solid #e2e8e8; border-radius: 16px; padding: 20px; font-size: 16px; }
.cat-steps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 4px 22px; }
.cat-apply { flex: 0 0 380px; position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-apply h3 { margin: 0; font-size: 18px; }
.cat-apply h4 { margin: 10px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: #5b6b6b; }
.cat-apply p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.cat-path { font-weight: 600; color: var(--accent); }
.cat-step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eef2f2; }
.cat-step:last-child { border-bottom: 0; }
.cat-step-k { flex: 0 0 210px; display: flex; gap: 12px; align-items: flex-start; }
.cat-step-k b { display: block; font-size: 17px; }
.cat-step-k small { display: block; font-size: 14px; color: #5b6b6b; margin-top: 2px; }
.cat-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e6f2f2; color: var(--accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cat-step-v { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cat-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 56px; justify-content: center; padding: 10px 18px; border-radius: 12px; border: 1.5px solid #cbd5d5; background: #fff; color: inherit; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; }
.cat-chip em { font-style: normal; font-weight: 500; font-size: 13.5px; color: #5b6b6b; }
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.cat-chip.on em, .cat-chip.on .cat-up { color: #e6f2f2; }
.cat-chip.sm { min-height: 40px; padding: 6px 12px; font-size: 14.5px; }
.cat-select { width: 100%; max-width: 420px; min-height: 44px; border: 1.5px solid #cbd5d5; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; background: #fff; color: inherit; }
.cat-pg { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.cat-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #eef2f2; font-size: 14.5px; font-weight: 600; }
.cat-cfilter input { width: 100%; max-width: 480px; min-height: 48px; border: 1.5px solid #cbd5d5; border-radius: 12px; padding: 8px 14px; font: inherit; font-size: 16px; outline: 0; }
.cat-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cat-colors.scroll { max-height: calc(42vh / var(--dz, 1)); overflow-y: auto; padding-right: 4px; }
.cat-color { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid #e2e8e8; background: #fff; font: inherit; font-size: 16px; text-align: left; cursor: pointer; color: inherit; }
.cat-color:hover { border-color: var(--accent); }
.cat-color.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #e6f2f2; }
.cat-prem { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fdf3d8; color: #7a5300; white-space: nowrap; }
.cat-up { font-style: normal; color: #7a5300; font-weight: 700; }
.cat-chip-t { display: flex; align-items: baseline; gap: 8px; }
.cat-ix { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-chip.on .cat-ix { color: #fff; }
.cat-color-r { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cat-color { min-width: 0; } .cat-color > span:first-child { min-width: 0; overflow-wrap: break-word; }   /* v1490: chips stay inside their grid cell */
@media (max-width: 600px) { .cat-colors { grid-template-columns: 1fr !important; } }   /* v1491: phone = one color per row (two columns squeezed "Black" to a letter per line) */
.cat-pick { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; margin-bottom: 8px; border-radius: 12px; background: #e6f2f2; }
.cat-pick span { font-size: 15px; font-weight: 600; color: #5b6b6b; }
.cat-pick b { font-size: 32px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cat-pick small { margin-left: auto; font-size: 13.5px; color: #5b6b6b; }
.cat-foot { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #5b6b6b; }
.cat-down { color: var(--accent); font-weight: 700; }
/* v1495: cabinet checker + Cabinets box */
.cat-kbox { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.cat-klabel { display: flex; flex-direction: column; gap: 2px; } .cat-klabel b { font-size: 17px; } .cat-klabel small { color: #5b6b6b; font-size: 14px; }
#catK { font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid #cbd5d5; border-radius: 12px; text-transform: uppercase; max-width: 460px; width: 100%; box-sizing: border-box; }
#catK:focus { border-color: var(--accent); outline: 0; }
.cat-ktable { overflow-x: auto; max-width: 100%; } .cat-ktable table { border-collapse: collapse; font-size: 14.5px; }
.cat-ktable th, .cat-ktable td { padding: 6px 8px; border-bottom: 1px solid #eef2f2; text-align: center; white-space: nowrap; }
.cat-ktable thead th { font-size: 12.5px; color: #5b6b6b; font-weight: 600; line-height: 1.25; } .cat-ktable tbody th { text-align: left; }
.cat-ktable td.cat-kyes { color: #1d7a46; font-weight: 700; } .cat-ktable td.cat-kno { color: #b0b8b8; }
.cat-ktable thead th { background: transparent; color: #5b6b6b; position: static; padding: 6px 8px; text-align: center; } .cat-ktable tbody tr { cursor: default; }
.cat-code { font: inherit; font-size: 13.5px; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 3px 7px; margin: 2px 2px 2px 0; border: 1px solid #d6dede; border-radius: 6px; background: #fff; cursor: pointer; color: inherit; }
.cat-code:hover { border-color: var(--accent); }
.cat-codes { display: flex; flex-wrap: wrap; gap: 2px; max-height: calc(30vh / var(--dz, 1)); overflow-y: auto; }
.cat-kopts { border-top: 1px solid #eef2f2; padding-top: 8px; } .cat-kopts h4 { margin: 10px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: #5b6b6b; }
.cat-ok { color: #1d7a46; } .cat-warn { display: block; color: #8a5a00; font-size: 13.5px; }
.cat-linkbtn { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }
.cat-cabfs { display: flex; flex-direction: column; } .cat-cabf { border-bottom: 1px dashed #eef2f2; padding: 6px 0; }
.cat-cabf summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 15px; } .cat-cabf summary span { color: #5b6b6b; }
.cat-small { font-size: 13px !important; }
/* v1496: door limits + what a code is */
.cat-ktable td.cat-kdoor { color: #b3401f; font-weight: 600; font-size: 13px; } .cat-ktable td.cat-kdoor b { font-weight: 700; }
.cat-sku { border: 1px solid #e3eaea; border-radius: 10px; padding: 8px 12px; background: #fbfdfd; } .cat-sku p { margin: 2px 0; } .cat-sku ul { margin: 4px 0; }
.cat-famw { font-style: normal; color: #5b6b6b; font-size: 14px; margin-right: auto; }
.cat-cabf summary .cat-famw { flex: 1; }
.cat-ap { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; padding: 7px 0; border-bottom: 1px dashed #eef2f2; }
.cat-yes, .cat-no { display: inline-block; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 4px; }
.cat-yes { background: #e6f2f2; color: var(--accent); }
.cat-no { background: #eef2f2; color: #5b6b6b; }
.cat-notes { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.cat-muted { color: #5b6b6b; font-weight: 500; }
.cat-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; font-size: 16px; }
.cat-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e2e8e8; border-top-color: var(--accent); animation: catspin 0.9s linear infinite; }
@keyframes catspin { to { transform: rotate(360deg); } }
.cat-btn { background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 52px; }
.cat-count { margin: 0 0 12px; font-size: 15px; }
.cat-hits { display: flex; flex-direction: column; }
.cat-hit { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid #eef2f2; }
.cat-hit-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; text-align: left; min-height: 44px; justify-content: center; }
.cat-hit-main b { font-size: 18px; }
.cat-hit-main span { font-size: 14.5px; color: #5b6b6b; }
.cat-hit-main:hover b { color: var(--accent); }
.cat-empty { font-size: 15px; color: #5b6b6b; padding: 8px 0; }
.cat-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cat-doors.scroll { max-height: calc(44vh / var(--dz, 1)); overflow-y: auto; padding-right: 4px; }
.cat-door { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-width: 0; min-height: 60px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid #cbd5d5; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cat-door b { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.cat-door:hover { border-color: var(--accent); }
.cat-door.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.cat-door.on .cat-ix { color: #fff; }
.cat-grp { margin-top: 10px !important; font-size: 13px !important; color: #5b6b6b; }
/* v1492 (Dan 11-7): Sollid's door photos — a thumb on every door button, the big photo on top of What applies */
.cat-door.ph { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 96px; padding: 8px 14px 8px 8px; }
.cat-door-img { flex: none; width: 42px; height: 80px; object-fit: cover; border-radius: 4px; background: #eef2f2; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.cat-door-img.none { display: flex; align-items: center; justify-content: center; color: #9aa8a8; font-size: 18px; }
.cat-door-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-door.on .cat-door-img.none { background: rgba(255, 255, 255, 0.18); color: #fff; }
.cat-photo { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #f3f5f5; text-align: center; }
.cat-photo img { display: block; max-width: 100%; height: calc(34vh / var(--dz, 1)); max-height: 340px; min-height: 200px; margin: 0 auto; object-fit: contain; }
.cat-photo figcaption { margin-top: 8px; font-size: 13.5px; color: #5b6b6b; }
.cat-photo figcaption b { color: #8a5a00; font-weight: 600; }
.cat-photo.sw img { height: auto; width: min(100%, 260px); min-height: 0; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }   /* v1494: flat Sollid swatch */
.cat-door.ph b { overflow-wrap: break-word; }
.cat-photo-m { display: none; }
@media (max-width: 900px) { .cat-photo-m { display: block; margin: 12px 0 0; } .cat-apply .cat-photo { display: none; } }   /* v1493: phone photo under the doors */
@media (max-width: 600px) { .cat-doors { grid-template-columns: 1fr !important; } .cat-door.ph { min-height: 84px; } .cat-door.ph .cat-door-img { width: 36px; height: 68px; } }   /* phone: one door per row (two columns split "Carlsbad" mid-word) */
@media (max-width: 900px) {
  .cat-wrap { padding: 12px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); }
  .cat-grid { flex-direction: column; align-items: stretch; }
  .cat-apply { flex: none; position: static; }
  .cat-step { flex-direction: column; gap: 10px; }
  .cat-step-k { flex: none; }
  .cat-search { flex: 1 1 100%; min-width: 0; }
  .cat-select, .cat-cfilter input { max-width: none; }
  .cat-chip { flex: 1 1 calc(50% - 8px); }
  .cat-colors, .cat-doors { grid-template-columns: 1fr 1fr; }
  .cat-apply { padding: 18px; }
}

.cat-pick,.cat-ix,.cat-up,.cat-down,.cat-prem,.cat-ap,.cat-grp,.cat-foot{display:none!important}
