/* ---------- Your home ---------- */
.home-view { position: fixed; inset: 0; z-index: 45; background: #cfe6f5; overflow: hidden; }
.home-view .int-title { color: #1f2937; text-shadow: none; background: rgba(255, 255, 255, 0.85); padding: 6px 14px; border-radius: 14px; }
.home-actions { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; }
.home-actions button { padding: 10px 14px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: var(--shadow); }
.home-actions button.on { background: var(--green, #0f8a4a); color: #fff; }
.home-actions button:hover:not(.on) { background: var(--green-soft); }
.home-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(31, 41, 55, 0.78); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; pointer-events: none; }

/* Move-house sheet */
.home-sheet { position: absolute; top: 70px; right: 16px; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 100px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.home-sheet::-webkit-scrollbar { display: none; }
.home-sheet > small { color: var(--muted); line-height: 1.4; }
.hs-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.hs-head button { width: 30px; height: 30px; border-radius: 50%; background: #f1f1f1; font-size: 18px; }
.hs-card { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid #ececec; border-radius: 14px; padding: 10px 12px; }
.hs-card.here { border-color: #22c55e; background: #f0fdf4; }
.hs-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs-card small { color: var(--muted); }
.hs-card p { margin: 2px 0 0; font-size: 12.5px; color: #475569; line-height: 1.35; }
.hs-card .p-btn { flex: none; white-space: nowrap; }
.hs-tag { flex: none; font-size: 12px; font-weight: 800; color: #15803d; }

/* ---------- Room editor tray (home + shop designer) ---------- */
.re-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px 12px; pointer-events: none; z-index: 5; }
.re-ui > * { pointer-events: auto; }
.re-tray { width: min(620px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.re-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.re-tabs::-webkit-scrollbar { display: none; }
.re-tabs button { flex: none; padding: 7px 13px; border-radius: 999px; background: #f3f4f6; font-weight: 700; font-size: 13px; }
.re-tabs button.on { background: #1f2937; color: #fff; }
/* 4-per-row grid per category, scrolls inside the tray */
.re-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: min(270px, 34vh); overflow-y: auto; padding: 2px; scrollbar-width: none; align-content: start; }
.re-items::-webkit-scrollbar { display: none; }
.re-card { min-width: 0; border: 1px solid #ececec; border-radius: 14px; padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #fff; }
.re-card:hover { border-color: #22c55e; }
.re-card.on { border-color: #22c55e; background: #f0fdf4; }
.re-thumb { width: 100%; aspect-ratio: 1; max-height: 92px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fbf8f1, #efe9dd); display: grid; place-items: center; overflow: hidden; }
.re-thumb img { width: 100%; height: 100%; object-fit: contain; }
.re-thumb i { font-style: normal; font-size: 26px; opacity: 0.6; }
.re-card b { font-size: 11.5px; text-align: center; line-height: 1.2; }
.re-card small { font-size: 11.5px; font-weight: 800; color: #b45309; }
.re-card small.own { color: #15803d; }
.re-sel, .re-place { background: #1f2937; color: #fff; border-radius: 999px; padding: 6px; display: flex; gap: 4px; align-items: center; box-shadow: var(--shadow); }
.re-place span { padding: 0 10px; font-size: 13px; }
.re-sel button, .re-place button { padding: 7px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; }
.re-sel button:hover, .re-place button:hover { background: rgba(255, 255, 255, 0.15); }
.re-paint { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding-right: 10px; }
.re-paint b { font-size: 12.5px; }
.re-paint > div { display: flex; gap: 6px; flex-wrap: wrap; max-width: 420px; }
.re-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db; }
.re-swatch.on { box-shadow: 0 0 0 3px #22c55e; }
.re-floor { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #f3f4f6; font-size: 12px; font-weight: 700; }
.re-floor i { width: 22px; height: 22px; border-radius: 50%; }
.re-floor.on { background: #dcfce7; }

@media (max-width: 700px) {
  .home-actions { top: 64px; left: 16px; right: auto; }
  .home-actions button { padding: 8px 11px; font-size: 13px; }
  .home-sheet { top: 112px; }
}

/* Shop designer (inside a shop) */
.int-design { position: absolute; top: 14px; right: 96px; display: flex; gap: 8px; }
.int-design button { padding: 9px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow); }
.int-design button.on { background: var(--green, #0f8a4a); color: #fff; }
.int-design-note { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(31, 41, 55, 0.85); color: #fff; padding: 8px 14px; border-radius: 12px; font-size: 13px; max-width: min(560px, calc(100% - 32px)); text-align: center; }
@media (max-width: 700px) {
  .int-design { top: 62px; left: 16px; right: auto; }
  .int-design-note { top: 108px; }
}

/* Car Mart: the car you tapped on the lot */
.xc-card.focus { box-shadow: 0 0 0 2px #ef4444; }

/* Demo top-up button (prototype only) */
.demo-topup { align-self: stretch; border: 1.5px dashed #f59e0b !important; background: #fffbeb !important; color: #92400e !important; }
.demo-topup em { font-style: normal; font-weight: 600; font-size: 11px; opacity: 0.75; margin-left: 4px; }

/* Cart: coin voucher discount */
.voucher-off { color: #be185d; font-weight: 800; }

/* ---------- Room camera buttons (home + shop): 360° + zoom ---------- */
.room-cam { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 6; }
.room-cam button { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: 18px; color: #1f2937; }
.room-cam button[data-rc360] { font-size: 12.5px; }
.room-cam button:hover { background: var(--green-soft); }
.room-cam button.on { background: #0f8a4a; color: #fff; box-shadow: 0 0 0 3px rgba(15, 138, 74, 0.3), var(--shadow); }

/* ---------- Empty shop (not arranged yet) ---------- */
.int-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 4; }
.int-empty > div { pointer-events: auto; background: rgba(255, 255, 255, 0.96); border-radius: 20px; padding: 18px 20px; max-width: min(420px, calc(100% - 32px)); text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.int-empty b { font-size: 17px; }
.int-empty small { color: var(--muted); line-height: 1.45; }
.int-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.int-empty-actions button { padding: 10px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: #ecfdf5; color: #065f46; }
.int-empty-actions button[data-emptylist] { background: #0f8a4a; color: #fff; }
