/* Exact scene constructor. The kitchen is a photograph; the appliances are
   full-canvas transparent PNGs layered on top. */
.cx-page {
  --cx-ink: #0b1026;
  --cx-navy: #202b63;
  --cx-red: #d43a2f;
  --cx-muted: #6d7280;
  --cx-line: #e4e1db;
  --cx-paper: #f7f5f0;
  padding: 34px 0 64px;
  background:
    radial-gradient(650px 360px at 95% 0%, rgba(212, 58, 47, .08), transparent 70%),
    var(--cx-paper);
  color: var(--cx-ink);
}
.cx-page * { box-sizing: border-box; }
.cx-page h1, .cx-page h2, .cx-page p { margin-top: 0; }
.cx-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--cx-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.cx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 24px;
}
.cx-head h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
}
.cx-head h1 em { color: var(--cx-navy); font-style: normal; }
.cx-head p { max-width: 520px; margin: 16px 0 0; color: var(--cx-muted); font-size: 14px; line-height: 1.5; }
.cx-head__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 3px; }
.cx-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 43px; padding: 0 15px;
  border: 1px solid #dcd8d1; border-radius: 9px;
  background: #fff; color: var(--cx-ink);
  font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.cx-pill:hover { border-color: var(--cx-navy); }
.cx-pill--dark { border-color: var(--cx-navy); background: var(--cx-navy); color: #fff; }
.cx-pill--dark:hover { background: #18214e; }
.cx-pill > span:first-child { font-size: 16px; }

.cx-layout { display: block; }
.cx-main { min-width: 0; }
.cx-scene {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1235 / 680;
  background: #d7d7d2;
  isolation: isolate;
  box-shadow: 0 18px 44px rgba(11, 16, 38, .13);
}
.cx-scene__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cx-scene__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4, 8, 18, .18), transparent 22%, transparent 72%, rgba(4, 8, 18, .25));
  pointer-events: none;
}
.cx-scene__overlays { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.cx-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: 100%;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .12));
}
.cx-scene__top {
  position: absolute; z-index: 4; top: 16px; left: 19px; right: 19px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.cx-scene__brand { font-size: 11px; font-weight: 800; letter-spacing: .17em; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.cx-scene__brand b { margin-left: 3px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; padding: 2px 5px; color: #ffaba4; font-size: 9px; }
.cx-scene__selected {
  border: 1px solid rgba(255,255,255,.38); border-radius: 99px;
  background: rgba(10, 14, 30, .3); padding: 7px 12px;
  font-size: 12px; font-weight: 700; backdrop-filter: blur(7px);
}
.cx-slots { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.cx-slot {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(32, 43, 99, .72);
  color: #fff; font: inherit; font-size: 25px; font-weight: 300;
  cursor: pointer; pointer-events: auto;
  transition: background .15s, transform .15s, opacity .15s;
  opacity: .72;
}
.cx-slot:hover { background: var(--cx-red); transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
.cx-scene__hint {
  position: absolute; z-index: 4; left: 22px; bottom: 19px;
  max-width: 360px; color: rgba(255,255,255,.92);
  font-size: 13px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.cx-scene__name {
  position: absolute; z-index: 4; right: 18px; bottom: 15px;
  color: rgba(255,255,255,.78); font-size: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.cx-bar { margin-top: 14px; border: 1px solid var(--cx-line); border-radius: 13px; background: #fff; padding: 20px 22px 18px; }
.cx-bar__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cx-bar__top .cx-eyebrow { margin-bottom: 2px; }
.cx-bar__top strong { display: block; font-size: 20px; letter-spacing: -.025em; }
.cx-bar__count { color: var(--cx-muted); font-size: 12px; white-space: nowrap; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; margin: 14px 0 16px; }
.cx-chips__empty { color: var(--cx-muted); font-size: 12px; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--cx-line); border-radius: 7px; background: #faf9f6; padding: 7px 8px 7px 10px; font-size: 10.5px; }
.cx-chip span { color: var(--cx-muted); }
.cx-chip b { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-chip button { border: 0; background: transparent; color: var(--cx-muted); font-size: 14px; line-height: 1; cursor: pointer; padding: 0 1px; }
.cx-chip button:hover { color: var(--cx-red); }
.cx-bar__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid #efede8; padding-top: 15px; }
.cx-total span { display: block; color: var(--cx-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.cx-total strong { display: block; margin-top: 3px; font-size: 28px; letter-spacing: -.04em; }
.cx-total small { display: block; margin-top: 1px; color: var(--cx-muted); font-size: 9px; }
.cx-bar__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cx-print-actions { display: flex; gap: 8px; }
.cx-print-btn {
  min-height: 44px;
  border: 1px solid #cfc9bf;
  border-radius: 8px;
  background: #fff;
  color: var(--cx-navy);
  padding: 10px 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.cx-print-btn:hover { border-color: var(--cx-navy); background: #f3f1eb; }
.cx-print-btn:disabled { color: #b6b2aa; cursor: not-allowed; }
.cx-linkbtn { border: 0; background: transparent; color: var(--cx-muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx-submit { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; border: 0; border-radius: 8px; background: var(--cx-red); color: #fff; padding: 12px 18px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.cx-submit span { font-size: 16px; line-height: .8; }
.cx-submit:hover { background: #bb2d24; }
.cx-submit:disabled { background: #d4d0ca; cursor: not-allowed; }

.cx-side { position: static; margin-top: 14px; border: 1px solid var(--cx-line); border-radius: 14px; background: #fff; padding: 18px 20px 16px; }
.cx-side__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #efede8; padding-bottom: 12px; }
.cx-side__head .cx-eyebrow { margin: 0; }
.cx-side__badge { border-radius: 99px; background: #f3f1ed; padding: 4px 9px; color: var(--cx-muted); font-size: 11px; font-weight: 700; }
.cx-side__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 6px; }
.cx-slot-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid #f1efeb; background: transparent; padding: 13px 0; text-align: left; font: inherit; cursor: pointer; }
.cx-slot-row:last-child { border-bottom: 0; }
.cx-slot-row:hover .cx-slot-row__copy b { color: var(--cx-red); }
.cx-slot-row__dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; background: #f4f2ee; }
.cx-slot-row__dot::after { content: "·"; display: block; color: var(--cx-navy); font-size: 25px; line-height: 36px; text-align: center; }
.cx-slot-row.is-filled .cx-slot-row__dot { background: #fff1ee; }
.cx-slot-row.is-filled .cx-slot-row__dot::after { content: "✓"; color: var(--cx-red); font-size: 16px; font-weight: 800; }
.cx-slot-row__copy { flex: 1; min-width: 0; }
.cx-slot-row__copy small { display: block; color: var(--cx-muted); font-size: 10.5px; }
.cx-slot-row__copy b { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.cx-slot-row__plus { color: #aaa49b; font-size: 20px; }
.cx-slot-row.is-filled .cx-slot-row__plus { color: var(--cx-red); }
.cx-side__note { margin: 14px 0 0; color: var(--cx-muted); font-size: 10.5px; line-height: 1.5; }

.cx-kits { margin-top: 38px; }
.cx-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 15px; }
.cx-section-head h2 { margin: 0; font-size: clamp(23px, 2.6vw, 34px); letter-spacing: -.045em; }
.cx-section-head p { max-width: 340px; margin: 0 0 3px; color: var(--cx-muted); font-size: 11px; line-height: 1.45; }
.cx-kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cx-kit { display: block; overflow: hidden; border: 1px solid var(--cx-line); border-radius: 10px; background: #fff; padding: 0; text-align: left; color: var(--cx-ink); font: inherit; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.cx-kit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,16,38,.1); }
.cx-kit__image { position: relative; display: block; aspect-ratio: 1.55; overflow: hidden; background: #d8d7d2; }
.cx-kit__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-kit__image > span { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 13px; }
.cx-kit__info { display: block; padding: 9px 10px 11px; }
.cx-kit__info b { display: block; font-size: 11px; }
.cx-kit__info small { display: block; margin: 2px 0 4px; color: var(--cx-muted); font-size: 9px; }
.cx-kit__info strong { display: block; font-size: 14px; letter-spacing: -.03em; }

.cx-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(6, 9, 22, .45); backdrop-filter: blur(2px); }
.cx-backdrop[hidden], .cx-drawer[hidden], .cx-product[hidden], .cx-accordion[hidden] { display: none !important; }
.cx-drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(500px, 96vw); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.2); }
.cx-drawer__head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 20px 20px 13px; border-bottom: 1px solid var(--cx-line); }
.cx-drawer__head .cx-eyebrow { margin-bottom: 4px; }
.cx-drawer__head h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.cx-close { border: 0; background: transparent; color: var(--cx-ink); font-size: 23px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cx-tabs { display: flex; padding: 0 20px; border-bottom: 1px solid var(--cx-line); }
.cx-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 13px 10px; color: var(--cx-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cx-tab.is-active { border-color: var(--cx-red); color: var(--cx-ink); }
.cx-panel { display: none; overflow-y: auto; padding: 15px 20px 26px; }
.cx-panel.is-active { display: block; }
.cx-panel__lead { margin: 0 0 12px; color: var(--cx-muted); font-size: 11px; }
.cx-bg-list { display: grid; gap: 7px; }
.cx-bg { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--cx-line); border-radius: 8px; background: #fff; padding: 7px; text-align: left; font: inherit; color: var(--cx-ink); cursor: pointer; }
.cx-bg:hover, .cx-bg.is-active { border-color: var(--cx-navy); }
.cx-bg.is-active { box-shadow: 0 0 0 2px rgba(32,43,99,.06); }
.cx-bg__image { width: 76px; height: 47px; flex: 0 0 76px; overflow: hidden; border-radius: 5px; background: #e8e5df; }
.cx-bg__image img { width: 100%; height: 100%; object-fit: cover; }
.cx-bg__copy { flex: 1; min-width: 0; }
.cx-bg__copy b { display: block; font-size: 11px; }
.cx-bg__copy small { display: block; margin-top: 2px; color: var(--cx-muted); font-size: 9px; }
.cx-bg__check { color: var(--cx-red); font-size: 13px; font-weight: 800; opacity: 0; }
.cx-bg.is-active .cx-bg__check { opacity: 1; }
.cx-search { display: flex; align-items: center; gap: 7px; border-bottom: 2px solid var(--cx-ink); padding-bottom: 6px; margin-bottom: 10px; }
.cx-search span { color: var(--cx-muted); font-size: 20px; }
.cx-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--cx-ink); font: inherit; font-size: 13px; }
.cx-accordions { border-top: 1px solid var(--cx-line); }
.cx-accordion { border-bottom: 1px solid var(--cx-line); }
.cx-accordion summary { display: flex; justify-content: space-between; gap: 10px; padding: 15px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.cx-accordion summary::-webkit-details-marker { display: none; }
.cx-accordion__count { color: var(--cx-muted); font-size: 11px; font-weight: 500; }
.cx-accordion__count i { margin-left: 5px; color: var(--cx-ink); font-size: 15px; font-style: normal; }
.cx-accordion[open] .cx-accordion__count i { display: inline-block; transform: rotate(45deg); }
.cx-products { padding-bottom: 6px; }
.cx-loading { margin: 10px 0; color: var(--cx-muted); font-size: 10px; }
.cx-more {
  width: 100%;
  margin: 10px 0 2px;
  padding: 12px 12px;
  border: 1px solid var(--cx-line);
  border-radius: 7px;
  background: #faf9f6;
  color: var(--cx-navy);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cx-more:hover { border-color: var(--cx-navy); background: #f3f1eb; }
.cx-product { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 9px 7px; text-align: left; color: var(--cx-ink); font: inherit; cursor: pointer; }
.cx-product:hover { background: #f8f7f4; }
.cx-product.is-selected { border-color: var(--cx-ink); background: #fff; }
.cx-product img, .cx-product__placeholder { flex: 0 0 60px; width: 60px; height: 60px; object-fit: contain; border-radius: 5px; background: #f4f2ee; }
.cx-product__placeholder { display: grid; place-items: center; color: #b1aaa0; font-size: 7px; font-weight: 800; }
.cx-product__copy { flex: 1; min-width: 0; }
.cx-product__copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.cx-product__new { display: inline-block; margin: 2px 4px 0 0; padding: 1px 5px; border-radius: 3px; background: #e8eaf7; color: #262e70; font-size: 8px; font-weight: 800; letter-spacing: .02em; line-height: 1.5; text-transform: none; }
.cx-product__promo { display: inline-block; margin: 2px 0 0; padding: 1px 5px; border-radius: 3px; background: #fde8e5; color: #e02a19; font-size: 8px; font-weight: 800; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.cx-product__copy small { display: block; margin-top: 2px; color: var(--cx-muted); font-size: 9.5px; }
.cx-product__copy strong { display: inline-block; margin-top: 4px; font-size: 13px; }
.cx-product__copy em { display: inline-block; margin-left: 5px; color: #4d8b62; font-size: 9.5px; font-style: normal; }
.cx-product__tick { display: none; color: var(--cx-red); font-size: 15px; }
.cx-product.is-selected .cx-product__tick { display: block; }
.cx-empty { margin: 8px 0; color: var(--cx-muted); font-size: 10px; }

.cx-tip {
  position: fixed;
  z-index: 95;
  width: 280px;
  max-width: calc(100vw - 20px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: #151b38;
  color: #fff;
  box-shadow: 0 14px 34px rgba(6, 10, 28, .34);
  pointer-events: none;
  font-size: 11.5px;
  line-height: 1.35;
}
.cx-tip[hidden] { display: none; }
.cx-tip b { display: block; margin-bottom: 8px; color: #fff; font-size: 12px; line-height: 1.3; }
.cx-tip dl { display: grid; gap: 4px; margin: 0; }
.cx-tip dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.cx-tip dt { min-width: 0; color: #9da5bd; overflow-wrap: anywhere; }
.cx-tip dd { min-width: max-content; margin: 0; color: #fff; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-tip__empty { color: #9da5bd; }

@keyframes cx-slide { from { transform: translateX(24px); opacity: .7; } to { transform: none; opacity: 1; } }
.cx-drawer { animation: cx-slide .2s ease-out; }

@media (max-width: 880px) {
  .cx-head { display: block; }
  .cx-head__actions { margin-top: 16px; }
  .cx-layout { display: block; }
  .cx-side { position: static; margin-top: 11px; }
  .cx-side__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .cx-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-section-head { display: block; }
  .cx-section-head p { margin-top: 6px; }
}
@media (max-width: 560px) {
  .cx-page { padding-top: 21px; }
  .cx-head h1 { font-size: 36px; }
  .cx-head p { font-size: 12px; }
  .cx-head__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cx-side__slots { grid-template-columns: 1fr; gap: 0; }
  .cx-pill { justify-content: center; padding: 0 9px; font-size: 10px; }
  .cx-scene { border-radius: 11px; aspect-ratio: auto; min-height: 238px; }
  .cx-scene__hint { display: none; }
  .cx-slot { width: 30px; height: 30px; font-size: 16px; }
  .cx-slot { width: 34px; height: 34px; font-size: 18px; opacity: .82; }
  .cx-scene__top { top: 10px; left: 11px; right: 11px; }
  .cx-scene__name { display: none; }
  .cx-scene__hint { left: 11px; bottom: 10px; max-width: 190px; font-size: 9px; }
  .cx-bar { padding: 13px 12px; }
  .cx-bar__bottom { display: block; }
  .cx-bar__actions { justify-content: space-between; margin-top: 11px; }
  .cx-submit { flex: 1; justify-content: space-between; }
  .cx-kit-grid { gap: 7px; }
  .cx-kit__info { padding: 7px 8px 9px; }
  .cx-kit__info b { font-size: 10px; }
  .cx-kit__info strong { font-size: 12px; }
  .cx-drawer { width: 100%; }
  .cx-drawer__head { padding: 15px 14px 10px; }
  .cx-panel { padding: 13px 14px 20px; }
  .cx-tabs { padding: 0 14px; }
}

.cx-width-filter { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem; margin:.15rem 0 .65rem; font-size:.72rem; color:var(--cx-muted,#6b6a7c); }
.cx-width-filter button { border:1px solid var(--cx-line,#dcd9e6); background:#fff; color:inherit; border-radius:999px; padding:.25rem .55rem; font:inherit; cursor:pointer; }
.cx-width-filter button.is-active { background:var(--cx-navy,#0d0b3d); border-color:var(--cx-navy,#0d0b3d); color:#fff; }
.cx-product[hidden] { display:none !important; }

.cx-slot-row__thumb-wrap { position: relative; width: 36px; height: 36px; flex: 0 0 36px; }
.cx-slot-row__thumb { position: absolute; inset: 0; width: 36px; height: 36px; object-fit: contain; border-radius: 9px; background: #f4f2ee; padding: 3px; }
.cx-slot-row__thumb[hidden] { display: none; }
.cx-slot-row.is-filled .cx-slot-row__dot { display: none; }
.cx-slot-row.is-filled .cx-slot-row__thumb-wrap { border-radius: 9px; }

.cx-products.is-loading { opacity: .5; pointer-events: none; transition: opacity .12s ease; }
