/* Trang sản phẩm: hai giao diện, đổi ở trang quản trị. A = Phòng trưng bày (tối), C = Tạp chí kiến trúc (sáng). */
.spx{font-family:var(--sans);-webkit-font-smoothing:antialiased;background:var(--bg);color:var(--tx)}
.spx .brand{text-transform:none;letter-spacing:.02em;font-size:15px;font-weight:500;color:#dfe5ef}
.spx h1,.spx h2,.spx h3{font-family:var(--serif);font-weight:500;letter-spacing:-.012em;margin:0;color:var(--hd)}
.spx .ic{flex:none}.spx .sub{color:var(--mu)}.spx .small{font-size:13px}.spx .th{display:block;width:100%;height:100%;object-fit:cover}
.spx .btn{min-height:50px;font-weight:600}
.spx main{display:block}
.spx .fld{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border:1px solid var(--ln2);border-radius:var(--rd);background:var(--card);color:var(--mu)}
.spx .fld input{border:0;background:transparent;color:var(--tx);min-height:44px;padding:0;flex:1;outline:0;font:inherit}
.spx .chips{display:flex;flex-wrap:wrap;gap:8px}
.spx .chip{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 15px;border:1px solid var(--ln2);border-radius:99px;background:transparent;color:var(--tx);font:500 14.5px/1 var(--sans);cursor:pointer}
.spx .chip.on{background:var(--ac);color:var(--acx);border-color:var(--ac)}
.spx .btn.p{background:var(--ac);color:var(--acx);border-color:transparent}
.spx .sp-code{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ca)}

/* ---- Danh sách ---- */
.spx .listhead{padding-top:30px;padding-bottom:18px}.spx .listhead h1{font-size:clamp(30px,6vw,46px);line-height:1.08}.spx .listhead p{margin:10px 0 0;max-width:56ch}
.spx .srch{margin-bottom:14px}
.spx .fams{margin-bottom:16px}
.spx .kinds{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:20px;max-width:640px}
.spx .k{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 2px;border:1px solid var(--ln);border-radius:var(--rd);background:transparent;color:var(--ca);font:500 11.5px/1.2 var(--sans);cursor:pointer;text-align:center}
.spx .k.on{border-color:var(--ca);background:var(--hl)}
.spx .cnt{color:var(--mu);font-size:14px;margin-bottom:14px}
.spx .sp-grid{display:grid;gap:22px 14px;grid-template-columns:1fr 1fr;padding-bottom:46px}
.spx .sp-card{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--tx)}
.spx .sp-card[hidden]{display:none}
.spx .sp-card .im{position:relative;aspect-ratio:3/4;overflow:hidden}
.spx .sp-card .i2,.spx .sp-card .sp-code svg{display:none}
.spx .sp-card .nm{font-family:var(--serif);font-size:17px;line-height:1.22;color:var(--hd)}
.spx .sp-card .ln{font-size:13.5px;line-height:1.45;color:var(--mu)}
.spx .sp-card .cols{display:none}
.spx .none{color:var(--mu)}
@media(min-width:900px){.spx .sp-grid{grid-template-columns:repeat(3,1fr);gap:36px 28px}.spx .sp-card .nm{font-size:20px}.spx .sp-card .ln{font-size:14.5px}}

/* ---- Chi tiết ---- */
.spx .sec{padding:clamp(34px,6vw,64px) 0}
.spx .sec h2{font-size:clamp(24px,4vw,36px);line-height:1.12;margin-bottom:10px}
.spx .sp-hero{padding:26px 0 30px}.spx .hero-g{display:grid;gap:24px}.spx .sp-hero h1{font-size:clamp(32px,7vw,54px);line-height:1.08;margin:10px 0 14px}
.spx .lead{color:var(--mu);font-size:clamp(16px,2vw,18px);line-height:1.6;max-width:50ch;margin:0 0 20px}
.spx .hi .im{aspect-ratio:3/4;overflow:hidden;max-width:420px;margin:0 auto}
@media(min-width:900px){.spx .sp-hero{padding:50px 0 60px}.spx .hero-g{grid-template-columns:1.1fr .9fr;align-items:center;gap:64px}.spx .hi .im{margin:0 0 0 auto;width:min(100%,420px)}}
.spx .spec4{display:grid;grid-template-columns:1fr 1fr;gap:12px}.spx .sp{display:flex;flex-direction:column;gap:8px;padding:16px;color:var(--ca)}.spx .sp b{font:600 16px var(--sans);color:var(--tx)}.spx .sp i{font-style:normal;font-size:13px;color:var(--mu)}
@media(min-width:900px){.spx .spec4{grid-template-columns:repeat(4,1fr)}}
.spx .cg{margin-top:18px}.spx .cl{font-size:14px;font-weight:600;margin-bottom:9px;color:var(--tx)}
.spx .tbl{margin-top:16px;max-width:820px}.spx .tbl div{display:grid;grid-template-columns:minmax(110px,200px) 1fr;gap:14px;padding:13px 0;border-bottom:1px solid var(--ln);font-size:15px}.spx .tbl span{color:var(--mu)}.spx .tbl b{font-weight:500}
.spx .ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:16px;max-width:760px}.spx .ul li{display:flex;gap:14px;align-items:flex-start}.spx .ul .ic{color:var(--ca);margin-top:2px}.spx .ul b{font-weight:600;display:block}.spx .ul .sub{font-size:14.5px}
.spx .warn{margin-top:22px;max-width:760px;color:var(--mu)}.spx .warn b{color:var(--tx)}
.spx .fin{text-align:center}.spx .fin h2{max-width:20ch;margin:0 auto 20px}.spx .fin .btn{display:inline-flex;padding:0 28px}
.spx .back{display:inline-flex;gap:6px;align-items:center;margin:18px 0 0;color:var(--mu);text-decoration:none;font-size:14px}

/* ===== A: Phòng trưng bày ===== */
.spx[data-theme=A]{--bg:#0a1422;--card:#101d31;--tx:#ebe7de;--hd:#f4efe6;--mu:#a3adbe;--ln:rgba(255,255,255,.1);--ln2:rgba(255,255,255,.22);--ac:#c9a66b;--acx:#1c1405;--ca:#dcc491;--rd:6px;--hl:rgba(184,149,90,.16)}
[data-theme=A] .btn.p{background:linear-gradient(180deg,#e2cc9a,#b8955a)}
[data-theme=A] .sp-card .im{border-radius:4px;box-shadow:0 0 0 1px rgba(220,196,145,.25)}
[data-theme=A] .sp-card:hover .im{box-shadow:0 0 0 1px #dcc491}
[data-theme=A] .sp-card .sp-code{font-size:13px}[data-theme=A] .sp-card .sp-code svg{display:block}
[data-theme=A] .sp-hero{background:radial-gradient(520px 320px at 90% 10%,rgba(20,121,176,.3),transparent 60%),#08111e}
[data-theme=A] .hi .im{border-radius:4px;box-shadow:0 30px 60px -30px #000,0 0 0 1px rgba(220,196,145,.3)}
[data-theme=A] .s4,[data-theme=A] .spc,[data-theme=A] .fin{background:#0d192b;border-top:1px solid var(--ln);border-bottom:1px solid var(--ln)}
[data-theme=A] .sp{border:1px solid var(--ln2);border-radius:6px}
[data-theme=A] .warn{border-left:2px solid var(--ac);padding-left:14px}
[data-theme=A] .chip:hover{border-color:#dcc491}

/* ===== C: Tạp chí kiến trúc ===== */
.spx[data-theme=C]{--bg:#fff;--card:#f4f6f9;--tx:#0e1b2e;--hd:#0e1b2e;--mu:#56627a;--ln:#e1e6ee;--ln2:#c3cbd8;--ac:#1b4377;--acx:#fff;--ca:#1b4377;--rd:16px;--hl:#e8eef7}
[data-theme=C] .listhead h1{font-size:clamp(34px,7vw,56px);line-height:1.04;letter-spacing:-.02em}
[data-theme=C] .btn{border-radius:999px}
[data-theme=C] .k{border:0;background:transparent;color:var(--tx)}[data-theme=C] .k .ic{box-sizing:content-box;padding:13px;border-radius:50%;background:var(--ac);color:#fff}[data-theme=C] .k.on .ic{outline:3px solid #9fc1ea}
[data-theme=C] .kinds{max-width:none;display:flex;gap:6px;overflow-x:auto}[data-theme=C] .k{flex:none;width:68px;border-radius:0;padding:4px 0}
[data-theme=C] .sp-grid{grid-template-columns:1fr;gap:20px}
@media(min-width:760px){[data-theme=C] .sp-grid{grid-template-columns:1fr 1fr;gap:26px}}
[data-theme=C] .sp-card{position:relative;border-radius:18px;overflow:hidden;background:#000}
[data-theme=C] .sp-card .im{aspect-ratio:4/5}
[data-theme=C] .sp-card .i2{display:grid;position:absolute;right:16px;bottom:16px;width:46px;height:46px;place-items:center;border-radius:50%;background:#fff;color:var(--ac);z-index:2}
[data-theme=C] .sp-card .cb{position:absolute;inset:auto 0 0;padding:80px 78px 18px 18px;background:linear-gradient(0deg,rgba(7,18,36,.93),transparent);z-index:1}
[data-theme=C] .sp-card .sp-code{color:#cfe0f5;font-size:13px}[data-theme=C] .sp-card .nm{color:#fff;font-size:22px;margin:4px 0}[data-theme=C] .sp-card .ln{color:#d3deee;font-size:13.5px}
[data-theme=C] .sp-hero{padding-bottom:0}[data-theme=C] .hi .im{border-radius:18px 18px 0 0;max-width:none}
@media(min-width:900px){[data-theme=C] .sp-hero{padding-bottom:0}[data-theme=C] .hi .im{margin:0 0 0 auto}}
[data-theme=C] .sp{background:var(--card);border-radius:16px}
[data-theme=C] .why{background:var(--ac);color:#fff}[data-theme=C] .why h2,[data-theme=C] .why b{color:#fff}[data-theme=C] .why .sub{color:#c1d0e6}[data-theme=C] .why .ul .ic{color:#9fd0ee}[data-theme=C] .why .warn{background:rgba(255,255,255,.1);border-radius:16px;padding:14px 16px;color:#d9e4f4}[data-theme=C] .why .warn b{color:#fff}
[data-theme=C] .warn{background:var(--card);border-radius:16px;padding:14px 16px}
[data-theme=C] .fin{background:var(--ac);color:#fff}[data-theme=C] .fin h2{color:#fff}[data-theme=C] .fin .btn.p{background:#fff;color:var(--ac)}
@media(prefers-reduced-motion:reduce){.spx *{transition:none!important;animation:none!important}}
.spx .chip:focus-visible,.spx .k:focus-visible,.spx .sp-card:focus-visible,.spx .btn:focus-visible{outline:2px solid #6cb4ff;outline-offset:2px}

/* ===== Đợt 1: nhãn, thư viện ảnh, video, 360 ===== */
.spx .sp-lbls{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.spx .sp-lbls .lb{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:99px;background:var(--ac);color:var(--acx);font:600 12.5px/1 var(--sans)}
.spx .sp-card .im .sp-lbls{position:absolute;left:10px;top:10px;z-index:3;margin:0}
.spx .sp-gal{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(min-width:760px){.spx .sp-gal{grid-template-columns:repeat(3,1fr)}}
.spx .sp-gal .gi{padding:0;border:0;background:var(--card);aspect-ratio:4/3;overflow:hidden;cursor:zoom-in;border-radius:var(--rd,6px)}
.spx .sp-gal .gi img{width:100%;height:100%;object-fit:cover;display:block}
.spx .sp-vid{position:relative;display:block;width:100%;max-width:760px;aspect-ratio:16/9;padding:0;border:0;background:#000;overflow:hidden;cursor:pointer;border-radius:var(--rd,6px)}
.spx .sp-vid img{width:100%;height:100%;object-fit:cover;display:block;opacity:.85}
.spx .sp-vid .pl{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:#fff;color:#14202f;display:grid;place-items:center;font-size:24px;padding-left:4px}
.spx div.sp-vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.spx .sp-360{position:relative;max-width:560px;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;background:var(--card);border-radius:var(--rd,6px);overflow:hidden}
.spx .sp-360.dg{cursor:grabbing}.spx .sp-360 img{width:100%;height:auto;display:block;-webkit-user-drag:none}
.spx .sp-360 .hint{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);padding:6px 12px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;white-space:nowrap}
.sp-lb{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px}
.sp-lb img{max-width:100%;max-height:78vh;object-fit:contain}
.sp-lb .x{position:absolute;top:12px;right:12px;width:46px;height:46px;border-radius:50%;border:0;background:#fff;font-size:20px;cursor:pointer}
.sp-lb .nv{display:flex;align-items:center;gap:18px;color:#fff;font-size:15px}.sp-lb .nv button{width:46px;height:46px;border-radius:50%;border:0;background:#fff;font-size:26px;cursor:pointer;line-height:1}
.spx .chips.cols{margin-top:10px}
.spx .chips.cols{margin:10px 0 14px}
.spx .ht .sp-lbls{margin:12px 0 14px}
.spx .sp-gal .gi:first-child:nth-last-child(odd){grid-column:1/-1}
@media(min-width:760px){.spx .sp-gal .gi:first-child:nth-last-child(odd){grid-column:auto}}
.spx .sec h2+.sp-grid{margin-top:18px}
