:root {
  --nen: #fff8f3;
  --the: #ffffff;
  --chu: #3a2a22;
  --chu-nhat: #8a7468;
  --chinh: #d9576b;
  --chinh-dam: #b9445a;
  --vien: #f0e2d8;
  --vang: #fff1d6;
  --xanh: #e8f5ec;
  --bo: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--nen);
  color: var(--chu);
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: 90px;
}
main { max-width: 640px; margin: 0 auto; padding: 0 16px; }
h1 { margin: 0; font-size: 22px; color: var(--chinh-dam); }
h2 { font-size: 20px; margin: 12px 0; }
h3 { font-size: 16px; margin: 20px 0 8px; }

.ban-thu { background: #333; color: #fff; text-align: center; font-size: 12px; padding: 4px 8px; }
.ban-thu-nho { font-size: 12px; color: var(--chu-nhat); }

.dau-trang {
  max-width: 640px; margin: 0 auto; padding: 14px 16px 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.slogan { margin: 2px 0 0; color: var(--chu-nhat); font-size: 13px; }
.nut-goi {
  text-decoration: none; color: var(--chinh-dam); border: 1px solid var(--chinh);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}

.thong-bao {
  max-width: 608px; margin: 8px auto 0; background: var(--vang);
  border-radius: var(--bo); padding: 10px 14px; font-size: 14px;
}

.tab-nhom {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; position: sticky; top: 0;
  background: var(--nen); z-index: 5; scrollbar-width: none;
}
.tab-nhom::-webkit-scrollbar { display: none; }
.tab-nhom button {
  flex: none; border: 1px solid var(--vien); background: var(--the); color: var(--chu);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer;
}
.tab-nhom button.dang-chon { background: var(--chinh); color: #fff; border-color: var(--chinh); }

.nhom-mon h2 { margin-top: 18px; }
.nhom-mo-ta { margin: -6px 0 10px; color: var(--chu-nhat); font-size: 13px; }
.the-mon {
  background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo);
  padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center;
}
.the-mon .thong-tin { flex: 1; min-width: 0; }
.the-mon .ten { font-weight: 600; }
.the-mon .mo-ta { margin: 3px 0 0; font-size: 13px; color: var(--chu-nhat); }
.the-mon .gia { margin-top: 4px; color: var(--chinh-dam); font-weight: 600; font-size: 14px; }
.the-mon .nhan { display: inline-block; font-size: 11px; background: var(--vang); padding: 1px 8px; border-radius: 999px; margin-top: 4px; }
.the-mon.het { opacity: .5; }
.nut-them {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--chinh); color: #fff; font-size: 22px; cursor: pointer;
}
.nut-them:disabled { background: #ccc; cursor: not-allowed; }

.thanh-gio {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px;
  width: calc(100% - 32px); max-width: 608px; border: none; border-radius: 999px;
  background: var(--chinh); color: #fff; padding: 14px 20px; font-size: 15px;
  display: flex; justify-content: space-between; cursor: pointer; box-shadow: 0 6px 18px rgba(185,68,90,.3);
}

.nen-chon {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.bang-chon {
  background: var(--the); width: 100%; max-width: 640px; border-radius: 20px 20px 0 0;
  padding: 18px 16px 22px; max-height: 88vh; overflow-y: auto; position: relative;
}
.bang-chon h3 { margin-top: 0; padding-right: 30px; }
.bang-chon .mo-ta { color: var(--chu-nhat); font-size: 14px; margin-top: -4px; }
.nut-dong { position: absolute; right: 12px; top: 10px; border: none; background: none; font-size: 26px; cursor: pointer; color: var(--chu-nhat); }

.lua-chon-nhom { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.lua-chon {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--the);
}
.lua-chon input { margin: 0 8px 0 0; accent-color: var(--chinh); }
.lua-chon:has(input:checked) { border-color: var(--chinh); background: #fff3f5; }
.lua-chon .phu { color: var(--chu-nhat); font-size: 13px; }

.o-nhap { margin-bottom: 12px; }
.o-nhap label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.o-nhap input[type=text], .o-nhap input[type=tel], .o-nhap input[type=date], .o-nhap select, .o-nhap textarea {
  width: 100%; border: 1px solid var(--vien); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: var(--the); color: var(--chu);
}
.o-nhap small { color: var(--chu-nhat); font-size: 12px; display: block; margin-top: 4px; }
.o-check label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.o-check textarea { margin-top: 8px; }
.loi { border-color: #d33 !important; }
.chu-loi { color: #c22; font-size: 13px; margin-top: 4px; }

.so-luong { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0; }
.so-luong button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--vien); background: var(--the); font-size: 20px; cursor: pointer; }
.so-luong span { font-size: 18px; min-width: 40px; text-align: center; font-weight: 600; }

.nut-chinh {
  width: 100%; border: none; border-radius: 999px; background: var(--chinh); color: #fff;
  padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.nut-chinh:hover { background: var(--chinh-dam); }
.nut-quay { border: none; background: none; color: var(--chinh-dam); font-size: 15px; padding: 12px 0 0; cursor: pointer; }

.dong-gio {
  background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo);
  padding: 10px 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start;
}
.dong-gio .thong-tin { flex: 1; }
.dong-gio .phu { font-size: 13px; color: var(--chu-nhat); }
.dong-gio .gia { font-weight: 600; color: var(--chinh-dam); white-space: nowrap; }
.dong-gio .xoa { border: none; background: none; color: var(--chu-nhat); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }

.tom-tat { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 12px 14px; margin: 18px 0 14px; }
.tom-tat .dong { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.tom-tat .tong { font-weight: 700; font-size: 17px; border-top: 1px dashed var(--vien); margin-top: 6px; padding-top: 8px; }
.tom-tat .luu-y { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.luu-y.vang { background: var(--vang); }
.luu-y.xanh { background: var(--xanh); }
.ghi-chu-cuoi { text-align: center; color: var(--chu-nhat); font-size: 13px; }

.xong { text-align: center; padding-top: 30px; }
.xong-icon { font-size: 48px; }
.xong .tom-tat { text-align: left; }
.trong { text-align: center; color: var(--chu-nhat); padding: 30px 0; }
.the-mon .anh-mon { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.anh-chon { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin: 4px auto 12px; }
