/* Giỏ hàng trực quan (inventory.js) trong thiết kế mới. Chỉ áp dụng trong khối .invx; dùng được cả với v2.css và style.css. */
.invx { --ink-3: #191713; --gold-light: #e8d2a0; --ivory: #f4eee3; --muted: #a49c8f; --line: rgba(201,164,92,.22); --gold: #c9a45c;
  --gold-grad: linear-gradient(120deg, #ecd6a3 0%, #c9a45c 45%, #9a6b3f 100%); --ease: cubic-bezier(.2,.7,.2,1); scroll-margin-top: 90px; color: var(--ivory); }
.invx .inv-bar { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.invx .inv-towers { flex-basis: 100%; }
.invx .tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 0; }
.invx .tab { background: none; border: 0; border-radius: 0; color: var(--muted); padding: 0 0 14px; font: 600 11px/1 'Montserrat', sans-serif; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; position: relative; }
.invx .tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.invx .tab.active { color: var(--gold-light); background: none; }
.invx .tab.active::after { transform: scaleX(1); }
.invx .tab:disabled { opacity: .35; cursor: default; }
.invx .tab small, .invx .chip small { font-weight: 400; opacity: .7; letter-spacing: .04em; }
.invx .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.invx .chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: #d9d1c3; font: 500 12px/1 'Montserrat', sans-serif; letter-spacing: .06em; cursor: pointer; transition: .3s var(--ease); }
.invx .chip:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.invx .chip.active { background: var(--gold-grad); border-color: transparent; color: #17120a; }
.invx .chip:disabled { opacity: .35; cursor: default; }

.invx .inv-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; padding: 18px 22px; background: var(--ink-3); border: 1px solid var(--line); border-bottom: 0; border-radius: 0; font: 600 22px/1.2 'Cormorant Garamond', serif; color: var(--ivory); }
.invx .inv-title span { font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.invx .inv-stage { display: block; padding: 18px; background: #f6f3ee; border: 1px solid var(--line); border-radius: 0; }
.invx .inv-map { position: relative; }
.invx .inv-map img { width: 100%; display: block; }

/* Khung căn: viền vàng trong suốt, nhấp nháy nhẹ */
.invx .ubox { position: absolute; padding: 0; margin: 0; border: 2.5px solid #9a6b3f; background: rgba(201,164,92,.22); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset; cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s; animation: uboxPulse 2.6s ease-in-out infinite; }
.invx .ubox:hover, .invx .ubox.hl { background: rgba(201,164,92,.34); border-color: #8c6239; box-shadow: 0 0 0 3px rgba(201,164,92,.35); animation: none; }
.invx .ubox.on { background: rgba(10,10,11,.28); border-color: #0a0a0b; box-shadow: 0 0 0 3px rgba(232,210,160,.9); animation: none; }
.invx .ubox i { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .06em; font-style: normal; padding: 5px 7px; background: #0a0a0b; color: var(--gold-light); border: 1px solid var(--gold); }
@keyframes uboxPulse { 0%, 100% { background: rgba(201,164,92,.2); } 50% { background: rgba(201,164,92,.42); } }

/* Thẻ thông tin khi bấm khung căn */
.invx .inv-pop { position: absolute; z-index: 5; width: 250px; background: #0f0e0c; border: 1px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.45); color: var(--ivory); }
.invx .pop-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.invx .pop-x { background: none; border: 0; color: var(--ivory); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.invx .pop-u { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid rgba(201,164,92,.12); transition: background .2s; }
.invx .pop-u:last-child { border-bottom: 0; }
.invx .pop-u:hover { background: rgba(201,164,92,.08); }
.invx .pop-u b { font: 600 14px/1 'Montserrat', sans-serif; letter-spacing: .06em; }
.invx .pop-p { font: 600 24px/1 'Cormorant Garamond', serif; color: var(--gold-light); }
.invx .pop-p small { font: 500 10px 'Montserrat', sans-serif; color: var(--muted); letter-spacing: .06em; }
.invx .pop-d { font-size: 12px; color: var(--muted); }
.invx .pop-l { font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.invx .inv-table { margin-top: 26px; border: 1px solid var(--line); border-radius: 0; overflow-x: auto; background: transparent; box-shadow: none; }
.invx .inv-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.invx .inv-table th, .invx .inv-table td { padding: 15px 16px; border-bottom: 1px solid rgba(201,164,92,.12); text-align: left; white-space: nowrap; color: var(--ivory); }
.invx .inv-table th { background: var(--ink-3); font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.invx .inv-table th.sort { cursor: pointer; color: var(--gold); }
.invx .inv-table .r { text-align: right; }
.invx .inv-table td b { font-weight: 600; letter-spacing: .04em; }
.invx .inv-table .gp { color: var(--gold-light); }
.invx .inv-table tbody tr { cursor: pointer; transition: background .2s; }
.invx .inv-table tbody tr:hover, .invx .inv-table tbody tr:focus { background: rgba(201,164,92,.1); outline: none; }
.invx .inv-table .go { color: var(--gold); font-size: 16px; text-align: right; transition: transform .3s var(--ease); }
.invx .inv-table tbody tr:hover .go { transform: translateX(4px); }
.invx .note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.invx .empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px solid var(--line); border-top: 0; }

@media (max-width: 700px) {
  .invx .inv-stage { padding: 8px; }
  .invx .tabs { gap: 18px; overflow-x: auto; width: 100%; }
  .invx .tab { white-space: nowrap; }
  .invx .ubox { border-width: 1.5px; }
  .invx .inv-pop { position: fixed; left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px !important; width: auto; z-index: 80; }
}

/* Chọn phân khu: thẻ ảnh */
.zpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.zp { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); cursor: pointer; text-align: left; padding: 0; color: var(--ivory); font: inherit; }
.zp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.55); transition: transform 1.2s var(--ease), filter .6s; }
.zp::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(232,210,160,0); transition: .5s var(--ease); pointer-events: none; }
.zp:hover img { transform: scale(1.07); filter: saturate(.95) brightness(.7); }
.zp.on { border-color: var(--gold); }
.zp.on::after { border-color: rgba(232,210,160,.7); }
.zp.on img { filter: saturate(1) brightness(.72); }
.zp-body { position: absolute; inset: auto 0 0; padding: 24px 24px 22px; background: linear-gradient(0deg, rgba(10,10,11,.92), rgba(10,10,11,0)); }
.zp-code { position: absolute; top: 18px; left: 22px; font: 700 44px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold-light); }
.zp-on { position: absolute; top: 20px; right: 20px; font: 600 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; background: var(--gold-grad); color: #17120a; opacity: 0; transition: opacity .3s; }
.zp.on .zp-on { opacity: 1; }
.zp h3 { font: 600 26px/1.1 var(--serif); margin: 0 0 8px; }
.zp-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #d9d1c3; }
.zp-meta b { color: var(--gold-light); font-weight: 600; }

.list-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.list-hero .ph-poster img { object-position: 50% 60%; }
.list-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.35) 55%, rgba(10,10,11,.1) 100%), linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 30%, #0a0a0b 100%); }
.list-hero .wrap { position: relative; z-index: 2; padding: 150px 0 70px; }
.list-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); max-width: 760px; }
.list-stats div { padding: 22px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--line); }
.list-stats div:last-child { border-right: 0; }
.list-stats b { display: block; font: 600 40px/1 var(--serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.list-stats span { display: block; margin-top: 10px; font: 600 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #d9d1c3; }

.cta-band { border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, #241c11 0%, #0f0e0c 60%); padding: 52px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 90px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@media (max-width: 960px) {
  .zpick { grid-template-columns: 1fr; gap: 12px; }
  .zp { aspect-ratio: 16 / 7; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .cta-band .actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .zp { aspect-ratio: 16 / 9; }
  .zp-code { font-size: 34px; }
  .list-hero .wrap { padding: 120px 0 52px; }
  .list-stats div { padding-right: 18px; margin-right: 18px; }
  .list-stats b { font-size: 30px; }
}

/* Ảnh giỏ hàng của đại lý */
.invx .inv-posters { display: grid; gap: 10px; padding: 10px; background: var(--ink-3); border: 1px solid var(--line); }
.invx .inv-posters.n2 { grid-template-columns: 1fr 1fr; }
.invx .poster { position: relative; display: flex; justify-content: center; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.invx .poster img { width: auto; max-width: 100%; max-height: 86vh; display: block; transition: transform .8s var(--ease); }
.invx .poster:hover img { transform: scale(1.02); }
.invx .poster-z { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; background: rgba(10,10,11,.8); border: 1px solid var(--gold); color: var(--gold-light); font: 600 10px/1 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 700px) { .invx .inv-posters.n2 { grid-template-columns: 1fr; } .invx .inv-posters { padding: 6px; } }
