/* Nhận diện DIALEX/RIKOTA: nền sáng champagne, chữ xanh đen, nhấn vàng; một phông Be Vietnam Pro. */
:root {
  --nen: #F6F2EA; --nen-sau: #EDE6D8; --the: #FBF8F2; --chu: #0B1626; --chu-nhat: #4F545B;
  --vang: #D1AE72; --vang-chu: #796542; --xanh: #081220; --xanh-chu: #F8F5EF; --vien: #DDD4C2; --loi: #B3261E;
  --ban-kinh: 16px; --phong: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 400 17px/1.65 var(--phong); -webkit-font-smoothing: antialiased; padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
a { color: inherit; }
.khung { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hep { width: min(760px, 100% - 32px); }
:focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; }

/* nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--xanh); color: var(--xanh-chu); font: 600 16px/1 var(--phong); text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--xanh); cursor: pointer; transition: background .15s, transform .1s; }
.nut:hover { background: #14233a; }
.nut:active { transform: scale(.98); }
.nut-lon { padding: 18px 28px; font-size: 17px; }
.nut-nho { padding: 10px 18px; font-size: 15px; }
.nut-rong { width: 100%; }
.nut-vien { background: transparent; color: var(--xanh); }
.nut-vien:hover { background: rgba(8,18,32,.06); }
.nut[disabled] { background: #B3B3B1; border-color: #B3B3B1; color: #3D4550; cursor: wait; }
.lien-ket { font-weight: 600; color: var(--vang-chu); text-decoration: none; padding: 12px 4px; }
.lien-ket:hover { text-decoration: underline; }

/* thanh đầu */
.dau { position: sticky; top: 0; z-index: 30; background: rgba(246,242,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--vien); }
.dau-trong { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo img { height: 28px; width: auto; }

.nhan-nho { font: 600 13px/1.4 var(--phong); letter-spacing: .12em; text-transform: uppercase; color: var(--vang-chu); }
.nhan-sang { color: var(--vang); }
.vi-nho { font-size: 14px; color: var(--chu-nhat); }
.nhan-vang { color: var(--vang-chu); }

/* 1 · hero */
.anh-hung { padding: 28px 0 40px; }
.anh-hung-luoi { display: grid; gap: 28px; }
.anh-hung-chu { display: grid; gap: 16px; align-content: center; }
.anh-hung h1 { font-size: clamp(30px, 7.4vw, 56px); font-weight: 800; }
.mo-ta { font-size: clamp(17px, 2.4vw, 20px); color: var(--chu-nhat); max-width: 34em; }
.mo-ta strong { color: var(--chu); }
.nut-hang { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 4px; }
.anh-hung-anh img { border-radius: 24px; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 20px 50px -20px rgba(8,18,32,.5); }

.dai-tin { background: var(--xanh); color: var(--xanh-chu); }
.dai-tin-luoi { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.dai-tin li { padding: 18px 10px; display: grid; gap: 2px; text-align: center; border-bottom: 1px solid rgba(248,245,239,.12); }
.dai-tin li:nth-child(odd) { border-right: 1px solid rgba(248,245,239,.12); }
.dai-tin li:nth-last-child(-n+2) { border-bottom: 0; }
.dai-tin b { color: var(--vang); font-weight: 700; font-size: 16px; }
.dai-tin span { font-size: 14px; color: #C4C4BE; }

/* khối chung */
.khoi { padding: 56px 0; }
.khoi-sau { background: var(--nen-sau); }
.dau-khoi { display: grid; gap: 8px; margin-bottom: 28px; }
.dau-khoi h2, .khoi h2 { font-size: clamp(26px, 5vw, 38px); }

/* 2 · lý do */
.ly-do { display: grid; gap: 18px; margin-bottom: 36px; align-items: center; }
.ly-do figure img { border-radius: var(--ban-kinh); width: 100%; aspect-ratio: 1; object-fit: cover; }
.ly-do .lo { font-size: 15px; color: var(--chu-nhat); border-left: 3px solid var(--vang); padding-left: 12px; margin-bottom: 14px; }
.ly-do h3 { font-size: clamp(22px, 4vw, 28px); display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.so { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--vang); color: var(--xanh); font-size: 17px; font-weight: 700; transform: translateY(-2px); }
.ly-do p + p { margin-top: 10px; }
.chu-thich { font-size: 14px; color: var(--chu-nhat); }
.thong-so { background: var(--the); border: 1px solid var(--vien); border-radius: var(--ban-kinh); padding: 22px; }
.thong-so h3 { font-size: 20px; margin-bottom: 12px; }
.thong-so dl { display: grid; grid-template-columns: 1fr; }
.thong-so dl > div, .tt-bang > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--vien); }
.thong-so dl > div:last-child { border-bottom: 0; }
dt { color: var(--chu-nhat); }
dd { margin: 0; font-weight: 600; text-align: right; }

/* 3 · khao khát */
.hinh-dung { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 56px; background: #0b0e14; }
.hinh-dung img { width: 100%; min-height: 360px; object-fit: cover; object-position: 60% center; opacity: .85; }
.hinh-dung-chu { position: absolute; inset: auto 0 0 0; padding: 72px 22px 24px; color: #fff; display: grid; gap: 10px; background: linear-gradient(to top, rgba(5,11,21,.92) 25%, rgba(5,11,21,0)); }
.hinh-dung h2 { font-size: clamp(24px, 5vw, 40px); }
.hinh-dung p:last-child { color: #E6E2D8; max-width: 34em; }
.cam-ket { list-style: none; padding: 0; display: grid; gap: 14px; }
.cam-ket li { background: var(--the); border: 1px solid var(--vien); border-radius: var(--ban-kinh); padding: 22px; display: grid; gap: 6px; }
.cam-ket b { font-size: clamp(30px, 6vw, 38px); font-weight: 800; color: var(--vang-chu); line-height: 1.1; }
.cam-ket h3 { font-size: 19px; }
.cam-ket p { color: var(--chu-nhat); font-size: 16px; }

/* 4 · hỏi đáp */
details { background: var(--the); border: 1px solid var(--vien); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--vang-chu); font-weight: 500; }
details[open] summary::after { content: '–'; }
details p { padding: 0 18px 18px; color: var(--chu-nhat); }

/* 4 · đặt hàng */
.dat-luoi { display: grid; gap: 28px; align-items: start; }
.dat-tom { display: grid; gap: 14px; }
.dat-tom img { border-radius: var(--ban-kinh); aspect-ratio: 16/10; object-fit: cover; object-position: center 55%; width: 100%; }
.tick { list-style: none; padding: 0; display: grid; gap: 8px; }
.tick li { padding-left: 28px; position: relative; color: var(--chu-nhat); }
.tick li::before { content: '✓'; position: absolute; left: 0; color: var(--vang-chu); font-weight: 700; }
.dat-hop { background: var(--the); border: 1px solid var(--vien); border-radius: 20px; padding: 22px; box-shadow: 0 12px 40px -24px rgba(8,18,32,.4); }
form { display: grid; gap: 14px; }
form h3, .dat-hop h3 { font-size: 22px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea, select { font: 400 16px/1.4 var(--phong); color: var(--chu); background: #fff; border: 1.5px solid #CFC5B1; border-radius: 10px; padding: 13px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--vang-chu); box-shadow: 0 0 0 3px rgba(209,174,114,.35); }
input.sai, textarea.sai { border-color: var(--loi); }
.bay { position: absolute; left: -9999px; }
.hang-sl { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: end; }
.tong { display: grid; text-align: right; }
.tong span { font-size: 14px; color: var(--chu-nhat); }
.tong b { font-size: 28px; font-weight: 800; }
.loi { color: var(--loi); font-weight: 600; font-size: 15px; background: #FCEDEB; padding: 10px 12px; border-radius: 10px; }

/* thanh toán */
#tt-cho, #tt-xong { display: grid; gap: 14px; }
.banner-thu { background: #FFF1C9; border: 1px dashed #B58900; color: #6B4E00; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; text-align: center; }
.qr-khung { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 12px; min-height: 120px; border: 1px solid var(--vien); }
.qr-khung img { width: min(300px, 100%); height: auto; }
.tt-bang { background: #fff; border: 1px solid var(--vien); border-radius: 12px; padding: 4px 14px; }
.tt-bang > div:last-child { border-bottom: 0; }
.tt-bang dd { word-break: break-all; }
.chep { font: 600 13px var(--phong); background: var(--nen-sau); border: 1px solid var(--vien); border-radius: 999px; padding: 4px 12px; cursor: pointer; margin-left: 6px; }
.luu-y { background: #FFF8E6; border-left: 3px solid var(--vang); padding: 10px 12px; font-size: 15px; border-radius: 0 10px 10px 0; }
.trang-thai-cho { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--vang-chu); }
.quay { width: 18px; height: 18px; border: 3px solid var(--vien); border-top-color: var(--vang-chu); border-radius: 50%; animation: quay 0.9s linear infinite; }
@keyframes quay { to { transform: rotate(360deg); } }
.chua-noi { background: #FCEDEB; padding: 12px; border-radius: 10px; }
.dau-tick { width: 64px; height: 64px; border-radius: 50%; background: #1E7A46; color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 700; }

.chan { padding: 36px 0 24px; border-top: 1px solid var(--vien); display: grid; gap: 8px; text-align: center; }
.chan .khung { display: grid; gap: 8px; justify-items: center; }
.chan img { height: 24px; width: auto; }

.thanh-dinh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246,242,234,.96); border-top: 1px solid var(--vien); transform: translateY(110%); transition: transform .25s; }
.thanh-dinh.hien { transform: none; }

/* điện thoại: ảnh nằm ngay dưới câu mở đầu, nút mua ngay dưới ảnh */
@media (max-width: 759px) {
  .anh-hung-luoi { gap: 14px; }
  .anh-hung-chu { display: contents; }
  .anh-hung-chu .nhan-nho { order: 1; }
  .anh-hung h1 { order: 2; }
  .anh-hung-anh { order: 3; }
  .anh-hung .mo-ta { order: 4; }
  .anh-hung .nut-hang { order: 5; }
  .anh-hung .vi-nho { order: 6; }
  .anh-hung-anh img { aspect-ratio: 4/3; object-position: center 45%; }
}

/* màn rộng */
@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 18px; }
  .thanh-dinh { display: none; }
  .anh-hung { padding: 56px 0 72px; }
  .anh-hung-luoi { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .dai-tin-luoi { grid-template-columns: repeat(4, 1fr); }
  .dai-tin li { border: 0 !important; border-right: 1px solid rgba(248,245,239,.12) !important; }
  .dai-tin li:last-child { border-right: 0 !important; }
  .khoi { padding: 88px 0; }
  .ly-do { grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
  .ly-do.dao figure { order: 2; }
  .thong-so dl { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .thong-so dl > div:nth-last-child(2) { border-bottom: 0; }
  .cam-ket { grid-template-columns: repeat(4, 1fr); }
  .hinh-dung-chu { padding: 120px 48px 40px; }
  .dat-luoi { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .dat-tom { position: sticky; top: 84px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .quay { animation: none; } }

/* Chế độ kiểm lại: thêm ?aida=1 sau địa chỉ trang để thấy nhãn từng phần */
.aida-xem [data-aida]:not(.dinh) { position: relative; }
.aida-xem [data-aida] { outline: 3px solid var(--mau-aida); outline-offset: -3px; }
.aida-xem [data-aida]::before { content: attr(data-nhan); position: absolute; z-index: 60; top: 0; left: 0; background: var(--mau-aida); color: #fff; font: 700 12px/1.3 var(--phong); letter-spacing: .02em; padding: 4px 10px; border-radius: 0 0 8px 0; pointer-events: none; max-width: 90%; }
.aida-xem [data-aida="thu-hut"] { --mau-aida: #B45309; }
.aida-xem [data-aida="thich-thu"] { --mau-aida: #1D4ED8; }
.aida-xem [data-aida="khao-khat"] { --mau-aida: #BE185D; }
.aida-xem [data-aida="hanh-dong"] { --mau-aida: #15803D; }
.aida-xem .thanh-dinh { transform: none; }
.aida-xem .dau { top: 0; }

/* Video bộ máy chạy (hiện khi có file) */
.ly-do figure { position: relative; }
.ly-do figure video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ban-kinh); display: block; }
.ly-do figure.co-video img { display: none; }
.ly-do figure video[hidden] { display: none; }
