/* ============================================
   nestly — the in-game home marketplace, and the
   on-screen note shown while furniture is being moved.
   ============================================ */

/* ---------- launcher inside the room ---------- */

.nestly-launch {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 12px;
    border: none;
    border-radius: 26px;
    background: linear-gradient(150deg, #2C3444 0%, #1B212C 100%);
    color: #F4F6F8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nestly-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 159, 28, 0.5) inset;
}

.nestly-launch .nl-icon { font-size: 18px; line-height: 1; }

/* ---------- the phone ---------- */

.nestly-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 11, 17, 0.72);
    backdrop-filter: blur(4px);
}

.nestly-overlay.open { display: flex; }

.nestly-phone {
    position: relative;
    width: 372px;
    max-width: 94vw;
    height: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 42px;
    padding: 12px 10px 8px;
    background: linear-gradient(160deg, #23282F 0%, #14171C 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 2px #3A4049, 0 0 0 8px #1A1D22;
    animation: np-rise 0.22s ease-out;
}

@keyframes np-rise {
    from { transform: translateY(26px) scale(0.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.np-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 116px;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: #14171C;
    z-index: 3;
}

.np-status {
    display: flex;
    justify-content: space-between;
    padding: 4px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #C8CFD8;
    letter-spacing: 0.4px;
}

.np-screen {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(180deg, #1F2733 0, #1F2733 90px, #F5F6F8 90px);
    color: #1B2028;
    font-size: 14px;
}

.np-screen::-webkit-scrollbar { width: 6px; }
.np-screen::-webkit-scrollbar-thumb { background: #C7CDD5; border-radius: 3px; }

/* ---------- header ---------- */

.np-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, #1F2733 0%, #263141 100%);
    color: #fff;
    border-radius: 30px 30px 0 0;
}

.np-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.np-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.np-smile { width: 46px; height: 13px; margin-top: 6px; }

.np-wallet {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    width: fit-content;
}

.np-wallet-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
}

.np-wallet-amt { font-size: 17px; font-weight: 700; color: #7FE0A8; }

.np-subtitle {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
}

/* ---------- search + chips ---------- */

.np-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 14px 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 24, 30, 0.12);
}

.np-search input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    color: #1B2028;
}

.np-chips {
    display: flex;
    gap: 7px;
    padding: 12px 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.np-chips::-webkit-scrollbar { display: none; }

.np-chip {
    flex: 0 0 auto;
    padding: 6px 13px;
    border: 1px solid #D3D9E0;
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #495667;
    cursor: pointer;
}

.np-chip.on {
    background: #1F2733;
    border-color: #1F2733;
    color: #fff;
}

/* ---------- product cards ---------- */

.np-grid { padding: 12px 14px 20px; display: grid; gap: 11px; }

.np-card {
    display: flex;
    gap: 12px;
    padding: 11px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 24, 30, 0.12);
    cursor: pointer;
    transition: transform 0.13s ease, box-shadow 0.13s ease;
}

.np-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 24, 30, 0.16);
}

.np-card.short { opacity: 0.72; }

.np-thumb {
    flex: 0 0 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(150deg, #EEF2F6 0%, #DFE6EE 100%);
    font-size: 32px;
}

.np-card-body { flex: 1; min-width: 0; }

.np-card h3 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.np-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #5A6675;
}

.np-stars { color: #FF9F1C; letter-spacing: 0.5px; }
.np-star-dim { color: #D8DEE5; }
.np-reviews { color: #7A8697; }

.np-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.np-price { font-size: 16px; font-weight: 800; }
.np-price.big { font-size: 24px; }

.np-add {
    padding: 7px 15px;
    border: none;
    border-radius: 999px;
    background: #FF9F1C;
    color: #23180A;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.np-add:hover { background: #FFB347; }
.np-add.wide { flex: 1; padding: 12px; font-size: 14.5px; }
.np-add.disabled, .np-place.disabled {
    background: #D5DAE1;
    color: #79838F;
    cursor: not-allowed;
}

.np-short-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: #C2503F;
}

.np-empty {
    padding: 40px 24px;
    text-align: center;
    color: #6C7787;
    line-height: 1.6;
}

/* ---------- product detail ---------- */

.np-back {
    display: block;
    margin: 12px 14px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: #E7EBF0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #3B4655;
    cursor: pointer;
}

.np-hero {
    margin: 0 14px;
    height: 168px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(150deg, #EEF2F6 0%, #DCE4ED 100%);
    font-size: 76px;
}

.np-detail { padding: 14px 16px 22px; }
.np-detail h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.np-blurb { margin: 10px 0 14px; color: #4C5766; line-height: 1.5; }

.np-facts { list-style: none; margin: 0 0 16px; padding: 0; }

.np-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #E3E8EE;
    font-size: 13px;
}

.np-facts b { color: #3B4655; }
.np-facts span { color: #6C7787; text-align: right; }

.np-buy { display: flex; align-items: center; gap: 12px; }

/* ---------- cart ---------- */

.np-lines { list-style: none; margin: 0; padding: 12px 14px 0; }

.np-line {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    margin-bottom: 9px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 24, 30, 0.1);
}

.np-line-thumb { font-size: 26px; text-align: center; }

/* Product shots are rendered from the actual model, so what the listing
   shows is what gets delivered. Sized to sit inside the existing tiles. */
.np-shot { width: 58px; height: 58px; object-fit: contain; display: block; }
.np-shot-lg { width: 152px; height: 152px; object-fit: contain; display: block; }
.np-shot-sm { width: 30px; height: 30px; object-fit: contain; display: block; }

.np-line-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
}

.np-line-name small { display: block; font-weight: 500; color: #7A8697; }

.np-qty { display: flex; align-items: center; gap: 7px; }

.np-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid #D3D9E0;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    line-height: 1;
    color: #3B4655;
    cursor: pointer;
}

.np-line-total { font-size: 14px; font-weight: 700; }

.np-totals {
    margin: 14px 14px 0;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 24, 30, 0.1);
    font-size: 13.5px;
}

.np-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #4C5766;
}

.np-grand {
    margin-top: 4px;
    padding-top: 9px !important;
    border-top: 1px solid #E3E8EE;
    font-size: 15px;
    color: #1B2028 !important;
}

.np-after b.ok { color: #1F8B52; }
.np-after b.bad { color: #C2503F; }

.np-place {
    display: block;
    width: calc(100% - 28px);
    margin: 14px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #FF9F1C;
    color: #23180A;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.np-place:hover:not(.disabled) { background: #FFB347; }

.np-warn {
    margin: 0 16px 12px;
    font-size: 12.5px;
    color: #C2503F;
    line-height: 1.5;
}

/* ---------- orders ---------- */

.np-orders { list-style: none; margin: 0; padding: 12px 14px 20px; }

.np-order {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 24, 30, 0.1);
}

.np-order-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.np-order-head span { color: #7A8697; font-size: 12.5px; }

.np-order-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: #4C5766;
}

.np-order-items span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #EEF2F6;
}

.np-order-status {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1F8B52;
}

/* ---------- bottom nav ---------- */

.np-nav {
    display: flex;
    background: #1B212B;
    border-top: 1px solid #2C333F;
}

.np-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 0 7px;
    border: none;
    background: transparent;
    color: #8A95A4;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}

.np-nav-btn.active { color: #FF9F1C; }
.np-nav-icon { position: relative; font-size: 17px; line-height: 1; }

.np-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 999px;
    background: #E4574C;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.np-bar {
    width: 120px;
    height: 4px;
    margin: 7px auto 3px;
    border-radius: 3px;
    background: #4A515C;
}

/* ---------- flash + close ---------- */

.np-flash {
    position: absolute;
    left: 50%;
    bottom: 108px;
    transform: translate(-50%, 12px);
    padding: 9px 16px;
    border-radius: 999px;
    background: #1F8B52;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.np-flash.show { opacity: 1; transform: translate(-50%, 0); }
.np-flash.bad { background: #C2503F; }

.nestly-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.nestly-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- the "moving furniture" note in the room ---------- */

.decor-toast {
    position: absolute;
    left: 50%;
    bottom: 78px;
    transform: translate(-50%, 10px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(20, 24, 31, 0.9);
    color: #EAF0F6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 42;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.decor-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
    .decor-toast { white-space: normal; max-width: 78vw; text-align: center; }
    .nestly-close { top: 12px; right: 12px; }
}

/* ---------------- department grid (shop front) ---------------- */
.np-dept-head {
    margin: 14px 14px 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1F2733;
}

.np-dept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 18px;
}

.np-dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 11px;
    border: 1px solid #E2E7ED;
    border-radius: 14px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.np-dept:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 39, 51, 0.12); }

.np-dept-art {
    display: grid;
    place-items: center;
    width: 100%;
    height: 74px;
    border-radius: 11px;
    background: linear-gradient(150deg, #EEF2F6 0%, #DFE6EE 100%);
}

.np-shot-dept { width: 66px; height: 66px; object-fit: contain; display: block; }

.np-dept-name {
    font-size: 13px;
    font-weight: 700;
    color: #1F2733;
    line-height: 1.25;
}

.np-dept-meta { font-size: 11px; color: #6C7785; }

.np-back {
    display: inline-block;
    margin: 2px 14px 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #EEF2F6;
    color: #33404F;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.np-back:hover { background: #E2E8EF; }

.np-dept-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 14px 4px;
    font-size: 14px;
    font-weight: 800;
    color: #1F2733;
}

.np-dept-count {
    font-size: 11.5px;
    font-weight: 700;
    color: #6C7785;
    background: #EEF2F6;
    border-radius: 999px;
    padding: 3px 9px;
}
