/* Trang sản phẩm bản 1 – CSS từ mockup v5 */
.sx{--navy:#03438b;--do:#d0281f;--line:#e3e6ea;--mu:#5f6b7d}
.sx-note{background:#fff7d6;border:1px solid #f0d77a;color:#6b5300;font-size:12.5px;padding:6px 10px;border-radius:8px;margin:0 0 10px}
.sx h1{margin:0 0 8px}
.sx-gia{margin:12px 0 4px}
.sx-gia .phu small,#sx-pt{color:var(--mu);font-size:12.5px;margin-left:6px}
.sx-hang{margin:14px 0 0}
.sx-nhan{font-size:14px;color:var(--mu);margin:0 0 7px}.sx-nhan b{color:#1d1d1f;font-weight:600}
.sx-nut{display:flex;flex-wrap:wrap;gap:8px}
.sx-nut button{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px 14px;font:500 14px/1.25 inherit;cursor:pointer;color:#1d1d1f;text-align:left;min-width:96px}
.sx-nut button small{display:block;color:var(--mu);font-weight:400;font-size:12px;margin-top:2px}
.sx-nut button.on{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy) inset;background:#f2f6fc}
.sx-nhom{margin:4px 0 10px}.sx-nhom>small{display:block;font-size:12px;color:var(--mu);margin:0 0 6px}
.sx-cham{display:flex;flex-wrap:wrap;gap:8px}
.sx-cham button{width:38px;height:38px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);background-size:cover;background-position:center;cursor:pointer;padding:0;position:relative}
.sx-cham button.dat{box-shadow:0 0 0 1px #9aa4b2;outline:1.5px dashed #9aa4b2;outline-offset:2px}
.sx-cham button.on{box-shadow:0 0 0 2px var(--navy)}
.sx-cham button.dat.on{outline-color:var(--navy)}
.sx-them{margin-top:8px;border:1px dashed #9aa4b2;background:#fff;border-radius:16px;padding:4px 12px;font:500 13px inherit;color:var(--navy);cursor:pointer}
.sx-tb{background:#f6f7f9;border-left:3px solid #b54708;padding:7px 10px;font-size:13px;color:#4a4f57;margin:4px 0 0}
.sx-ts{margin-top:14px}
.sx-sl{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 10px;font-size:14px}
.sx-sl-o{display:flex;border:1.5px solid var(--line);border-radius:10px;overflow:hidden}
.sx-sl-o button{width:36px;border:0;background:#f6f7f9;font-size:18px;cursor:pointer}
.sx-sl-o input{width:52px;border:0;text-align:center;font:600 15px inherit;-moz-appearance:textfield}
.sx-sl-o input::-webkit-outer-spin-button,.sx-sl-o input::-webkit-inner-spin-button{-webkit-appearance:none}
.sx-tong b{color:var(--do)}
.spm-khung .sx-mauvai{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.92);border-radius:8px;padding:4px 8px;font-size:12px;color:#4a4f57}
@media (max-width:600px){.sx-nut button{min-width:0;flex:1 1 auto}.sx-cham button{width:34px;height:34px}}

/* v2: khung ảnh 2/3 ghế + 1/3 mẫu vải */
.sx2-anh{display:grid;grid-template-columns:2fr 1fr;gap:12px;align-items:start}
.sx2-khung{position:relative;border:1px solid #e6eaf2;border-radius:16px;background:#fff;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.sx2-khung img{max-width:100%;max-height:100%;object-fit:contain}
.sx2-cap{font-size:12px;color:#5f6b7d;margin:6px 2px 0;line-height:1.4}
.sx2-nho{display:flex;gap:8px;margin-top:8px}
.sx2-nho button{width:64px;height:64px;border:1.5px solid #e3e6ea;border-radius:10px;background:#fff;padding:2px;cursor:pointer}
.sx2-nho button.on{border-color:#03438b}
.sx2-nho img{width:100%;height:100%;object-fit:contain}
.sx2-vai{border:1px solid #e6eaf2;border-radius:16px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.sx2-vai-img{aspect-ratio:1/2;background:var(--hex,#ccc);overflow:hidden}
.sx2-vai-img img{width:100%;height:100%;object-fit:cover;display:block}
.sx2-vai-t{padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.sx2-vai-t small{color:#5f6b7d;font-size:11.5px}
.sx2-vai-t b{font-size:16px;color:#03438b}
.sx2-vai-t em{font-style:normal;font-size:12px;color:#067647}
.sx2-vai.nho .sx2-vai-img{aspect-ratio:1/1}
.sx-cxm{display:inline-block;margin-left:6px;background:#fff4e5;color:#b54708;border-radius:6px;padding:0 6px;font-size:11px}
.sx-trong{color:#5f6b7d}
.sx-dc{margin-top:14px;font-size:12.5px}.sx-dc summary{cursor:pointer;color:#03438b}
.sx-dc table{border-collapse:collapse;width:100%;margin-top:6px}.sx-dc td,.sx-dc th{border:1px solid #e3e6ea;padding:4px 6px;text-align:left;vertical-align:top}
.sx-dc code{font-size:11.5px;word-break:break-word}
@media (max-width:600px){
 .sx2-anh{grid-template-columns:1fr}
 .sx2-vai{flex-direction:row;align-items:center}
 .sx2-vai-img,.sx2-vai.nho .sx2-vai-img{width:84px;height:84px;aspect-ratio:auto;flex:none}
}
/* không để logo / dải mã của ảnh mẫu NSX trên trang sản phẩm (chủ site 17/10): chỉ hiện 2/3 trên của ảnh mẫu (phần vải) */
.sx2-vai-img img{height:150%;object-position:center top}
.sx .sx-cham button{background-size:auto 150%;background-position:center top}
.sx-pkc{display:flex;gap:12px;align-items:center;margin:14px 0 0;padding:12px 14px;border:2px dashed #f79009;border-radius:12px;background:#fffaeb;cursor:pointer}.sx-pkc[hidden]{display:none}.sx-pkc-ic{flex:none;width:34px;height:34px;border-radius:50%;background:#f79009;color:#fff;font:700 22px/34px sans-serif;text-align:center}.sx-pkc-t{flex:1;display:flex;flex-direction:column;gap:2px;font-size:14px;color:#344054}.sx-pkc-t b{font-size:15px;color:#101828}.sx-pkc-n{flex:none;display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:#fff;border:1px solid #f79009;font-weight:600;font-size:14px;color:#b54708}.sx-pkc-n input{width:18px;height:18px;margin:0;accent-color:#f79009}.sx-pkc-n i{font-style:normal}.sx-pkc-xem{font-size:13px;color:#1d3f8f;text-decoration:underline}.sx-pkc.on{border-style:solid;border-color:#12b76a;background:#ecfdf3}.sx-pkc.on .sx-pkc-ic{background:#12b76a}.sx-pkc.on .sx-pkc-n{border-color:#12b76a;color:#067647}.sx-tong small{display:block;font-size:12px;color:#067647;font-weight:400}.sx-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;vertical-align:1px;text-decoration:none;white-space:nowrap}.sx-chip.co{background:#ecfdf3;color:#067647;border:1px solid #abefc6}.sx-chip.dat{background:#fffaeb;color:#b54708;border:1px solid #fedf89}a.sx-chip.dat:hover{background:#fef0c7}.sx-mau-dong{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.sx-loc{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:#344054;margin:4px 0 8px;cursor:pointer}.sx-loc[hidden]{display:none}.sx-loc input{width:16px;height:16px;accent-color:#12b76a;margin:0}.sx-lyma{font-size:12px;color:#667085;margin:6px 0 0}.sx-san-chu{color:#067647;margin-left:6px}.sx-cham button.san::after{content:"✓";position:absolute;right:-5px;top:-5px;width:18px;height:18px;border-radius:50%;background:#12b76a;border:2px solid #fff;color:#fff;font:700 11px/18px sans-serif;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.25)}.sx-tich{display:inline-block;width:16px;height:16px;border-radius:50%;background:#12b76a;color:#fff;font:700 10px/16px sans-serif;text-align:center;vertical-align:-3px;margin-right:4px}.sx-nut a.sx-k{display:block;min-width:96px;flex:0 1 auto!important;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px 14px;font:500 14px/1.25 inherit;color:#1d1d1f;text-decoration:none}
.sx-nut a.sx-k:hover{border-color:var(--navy)}
.sx-nut a.sx-k small{display:block;color:var(--mu);font-weight:400;font-size:12px;margin-top:2px}
.sx-gia .chinh small{display:block;font-size:12px;color:var(--mu);font-weight:400}
.sx-tong-d{font-size:14px;margin:12px 0 10px}.sx-tong-d b{color:var(--do)}.sx-tong-d small{color:#067647;font-weight:400}
.spm-nut a.mua.sx-lh{background:#b54708}

/* Thẻ "Phụ kiện gợi ý" (18/10): sản phẩm riêng, không gộp vào đơn ghế */
.sx-pkg{display:flex;gap:12px;align-items:center;margin:14px 0 0;padding:10px 12px;border:1px solid #e4e7ec;border-radius:12px;background:#f9fafb}
.sx-pkg-anh{flex:none;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid #eaecf0}
.sx-pkg-anh img{width:100%;height:100%;object-fit:contain}
.sx-pkg-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;color:#475467}
.sx-pkg-t small{font-size:12px;color:#667085;text-transform:uppercase;letter-spacing:.03em}
.sx-pkg-t a{color:#101828;text-decoration:none}.sx-pkg-t a:hover b{text-decoration:underline}
.sx-pkg-t b{font-size:14px}
.sx-pkg-g{font-weight:700;color:#d92d20;font-size:14px}
.sx-pkg-n{flex:none;padding:8px 12px;border-radius:8px;border:1px solid #1d3f8f;background:#fff;color:#1d3f8f;font-weight:600;font-size:13px;cursor:pointer}
.sx-pkg-n:hover{background:#1d3f8f;color:#fff}
/* Dòng gợi ý dịch vụ sửa ghế (18/10) */
.sx-pkg-dv{margin:8px 2px 0;font-size:13px;color:#475467;line-height:1.5}
.sx-pkg-dv a{color:#1d3f8f;font-weight:600;text-decoration:underline}

/* Ô mẫu màu đang chọn: nguyên ảnh NSX có logo + mã màu (19/10) */
/* Giữ chiều cao khung như trước (dễ nhìn vân vật liệu – chủ site 19/10); ảnh phủ khung, neo góc dưới trái để thấy logo + mã màu */
.sx2-vai-img.the img{height:100%;object-fit:cover;object-position:left bottom}

/* Phóng to mẫu màu (19/10) */
.sx2-vai-img img{cursor:zoom-in}
.sx-zoom{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:zoom-out;padding:16px}
.sx-zoom img{max-width:min(1000px,94vw);max-height:84vh;width:auto;height:auto;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.sx-zoom p{color:#fff;font-size:14px;margin:0;text-align:center}
