/* Trang đặt lịch BeeKitchen cho khách. Điện thoại trước; ≥ 960px chia hai cột (nội dung + tóm tắt dính bên phải).
 * Bảng màu thương hiệu chép từ bm.css của Web Công thức (Honey Warm); KHÔNG nạp bm.css vì tên lớp của màn nhân viên (.the, .the-dau…) đè lên trang khách. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  --brand: #EEAA1F; --brand-hover: #DC9A12; --brand-ink: #7A5200; --brand-soft: #FFF4DC; --on-brand: #201C12;
  --surface-2: #FAF9F6; --surface-3: #F1EFE9; --ink: #24221D; --ink-2: #57534A; --ink-3: #6F695E; --ink-4: #9A9488;
  --line: #ECEAE3; --line-2: #DDDAD1; --line-3: #C9C5BA; --do: #B42A26; --do-nen: #FDE9E7; --do-vien: #F3C4C0; --ho-cham: #D97706; --xanh: #17693F; --xanh-nen: #E3F4EA;
  --kem: #FBF8F2; --ca-cao: #2B2118; --bo: 18px; --bong: 0 1px 2px rgba(43,33,24,.05), 0 10px 30px rgba(43,33,24,.07); --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  margin: 0; min-height: 100vh; background: var(--kem); color: var(--ink); -webkit-font-smoothing: antialiased; font: 400 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
.kho-ico { position: absolute; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.to { width: 32px; height: 32px; stroke-width: 1.5; }
.mo { color: var(--ink-3); } .nho { font-size: 13px; } .cach { margin-top: 14px; }
.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(238,170,31,.55); outline-offset: 2px; }

/* ---------- Bìa ---------- */
.bia { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #8a5a12 0%, rgba(138,90,18,0) 60%), linear-gradient(160deg, #3a2a17 0%, #2B2118 55%, #1d1610 100%); }
.bia-anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.bia.co-anh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,22,16,.48) 0%, rgba(29,22,16,.34) 30%, rgba(29,22,16,.72) 62%, rgba(29,22,16,.9) 100%); }
.bia-trong { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 20px 72px; }
.bia-logo { height: 28px; width: auto; margin-bottom: 44px; }
.bia-nhan { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #FFD98A; margin-bottom: 8px; }
.bia h1 { font: 700 32px/1.15 var(--serif); letter-spacing: -.01em; max-width: 16em; text-wrap: balance; }
.bia-chao { margin-top: 10px; font-size: 16px; color: rgba(255,255,255,.9); max-width: 34em; }

/* ---------- Khung ---------- */
.khung { position: relative; z-index: 2; max-width: 1120px; margin: -44px auto 0; padding: 0 12px 132px; }
.tam { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); padding: 28px 20px; }
.hai-cot { display: block; margin-top: 12px; }
.tom { display: none; }
.the { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); padding: 18px 16px 20px; margin-bottom: 12px; }
.the-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.the-dau h2 { font: 700 20px/1.25 var(--serif); color: var(--ca-cao); }
.the-dau .mo { font-size: 13.5px; }
.trong-cho { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink-3); padding: 34px 16px; }
.trong-cho .ico { color: var(--brand); }

/* Thanh bước */
.buoc { display: flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: var(--bong); padding: 6px; gap: 2px; }
.buoc li { flex: 1; display: flex; }
.buoc button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; border-radius: 999px; padding: 8px 6px; font-weight: 600; font-size: 13.5px; color: var(--ink-4); white-space: nowrap; }
.buoc .so { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: var(--surface-3); color: var(--ink-3); flex: none; }
.buoc .so .ico { width: 14px; height: 14px; stroke-width: 3; }
.buoc .dang button { background: var(--ca-cao); color: #fff; }
.buoc .dang .so { background: var(--brand); color: var(--on-brand); }
.buoc .xong button { color: var(--ink); }
.buoc .xong .so { background: var(--xanh-nen); color: var(--xanh); }

/* ---------- Nút, ô đếm ---------- */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.nut:hover { border-color: var(--line-3); background: var(--surface-2); }
.nut:active { transform: translateY(1px); }
.nut.chinh { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(238,170,31,.32); }
.nut.chinh:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.nut.chinh:disabled { opacity: .6; box-shadow: none; }
.nut.vien { border-color: var(--brand); color: var(--brand-ink); background: #fff; min-height: 40px; font-size: 14px; white-space: nowrap; padding: 0 10px; }
.nut.vien .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.nut.vien:hover { background: var(--brand-soft); }
.nut.tran { border-color: transparent; background: none; color: var(--ink-3); min-height: 38px; font-size: 14px; }
.nut.rong { width: 100%; }
.nut.lon { min-height: 50px; font-size: 16px; }
.nut.vuong { width: 48px; padding: 0; flex: none; }
.dem { display: inline-flex; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 3px; }
.dem button { width: 36px; height: 34px; border: 0; border-radius: 9px; background: #fff; color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(43,33,24,.12); }
.dem button:disabled { opacity: .4; box-shadow: none; }
.dem output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dem.lon button { width: 46px; height: 44px; border-radius: 11px; }
.dem.lon output { min-width: 54px; font-size: 22px; }
.dem.day-du { display: flex; width: 100%; }
.dem.day-du output { flex: 1; }
.ghi-vang { background: var(--brand-soft); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; color: #5c4208; margin-top: 14px; }
.loi-o { display: flex; gap: 10px; align-items: flex-start; background: var(--do-nen); border: 1px solid var(--do-vien); color: var(--do); border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-top: 12px; }
.loi-o .ico { margin-top: 1px; }

/* ---------- Bước 1 ---------- */
.cn-luoi { display: grid; gap: 10px; }
.cn-the { position: relative; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 46px 14px 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.cn-the:hover { border-color: var(--brand); }
.cn-the.chon { border-color: var(--brand); background: #FFFBF1; box-shadow: 0 0 0 3px rgba(238,170,31,.18); }
.cn-anh { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; }
.cn-chu { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cn-chu b { font-size: 16.5px; color: var(--ca-cao); }
.cn-chu .dong { display: flex; gap: 7px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.cn-chu .dong .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--ink-4); }
.tich { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.tich .ico { width: 14px; height: 14px; stroke-width: 3; }
.chon > .tich, .chon .banh-anh .tich { opacity: 1; transform: none; }
.hang-nguoi { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.lich { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.lich .thu { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-4); padding-bottom: 4px; }
.o-lich { position: relative; aspect-ratio: 1 / 1; max-height: 58px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.o-lich b { font-size: 16px; font-weight: 600; }
.o-lich small { font-size: 9px; font-weight: 700; color: var(--brand-ink); letter-spacing: .02em; line-height: 1; margin-bottom: 1px; }
.o-lich i { font-style: normal; font-size: 9.5px; color: var(--ink-4); }
button.o-lich:hover { border-color: var(--brand); background: #fff; }
.o-lich.chon { background: var(--ca-cao); color: #fff; border-color: var(--ca-cao); }
.o-lich.chon small { color: #FFD98A; }
.o-lich.het { background: none; color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--line-3); }
.o-lich.het i { text-decoration: none; }
.o-lich.nghi { background: none; color: var(--line-3); font-size: 15px; }
.gio-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gio { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; transition: border-color .15s, background .15s; }
.gio b { font-size: 17px; font-variant-numeric: tabular-nums; }
.gio small { font-size: 12px; color: var(--xanh); font-weight: 500; }
.gio.sap-het small { color: var(--ho-cham); }
.gio:hover { border-color: var(--brand); }
.gio.chon { background: var(--ca-cao); border-color: var(--ca-cao); color: #fff; }
.gio.chon small { color: #FFD98A; }
.gio:disabled { background: var(--surface-2); border-color: var(--line); color: var(--ink-4); }
.gio:disabled small { color: var(--ink-4); }

/* ---------- Bước 2: thẻ bánh ---------- */
.loc { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; scrollbar-width: none; }
.loc::-webkit-scrollbar { display: none; }
.loc button { flex: none; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.loc button i { font-style: normal; font-weight: 500; color: var(--ink-4); margin-left: 2px; }
.loc button.chon { background: var(--ca-cao); border-color: var(--ca-cao); color: #fff; }
.loc button.chon i { color: #FFD98A; }
.nhom-dau { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.nhom-dau h3 { font: 700 18px/1.2 var(--serif); color: var(--ca-cao); }
.nhom-dau span { font-size: 13px; color: var(--ink-3); }
.banh-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.banh { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.banh.chon { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,170,31,.2); }
.banh-anh { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #FFF4DC, #FBE7BE); overflow: hidden; }
.banh-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.khong-anh { position: absolute; inset: 0; display: grid; place-items: center; color: #D9A53A; }
.khong-anh .ico { width: 42px; height: 42px; stroke-width: 1.3; }
.banh-anh .tich { top: 8px; right: 8px; width: 26px; height: 26px; box-shadow: 0 2px 6px rgba(43,33,24,.25); }
.banh-than { display: flex; flex-direction: column; flex: 1; padding: 11px 12px 12px; }
.banh-than h3 { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ca-cao); }
.banh-mo-ta { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.banh-chan { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gia { font-weight: 700; font-size: 15px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.lien-ket { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(122,82,0,.3); }
.lien-ket .ico { width: 14px; height: 14px; }

/* ---------- Bước 3 ---------- */
.truong-luoi { display: grid; gap: 12px; margin-bottom: 8px; }
.truong { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.truong input, .truong textarea { font: 400 16px/1.4 inherit; font-family: inherit; color: var(--ink); width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.truong textarea { resize: vertical; min-height: 84px; }
.truong input::placeholder, .truong textarea::placeholder { color: var(--ink-4); }
.truong input:focus, .truong textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,170,31,.22); }
.dip { display: flex; flex-wrap: wrap; gap: 8px; }
.dip button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 14px; text-align: left; line-height: 1.3; }
.dip button:hover { border-color: var(--brand); }
.dip button.chon { background: var(--brand-soft); border-color: var(--brand); color: #5c4208; font-weight: 600; }
.bay { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tóm tắt ---------- */
.tom-the { background: #fff; border-radius: var(--bo); box-shadow: var(--bong); padding: 18px 16px; }
.tom-the h2 { font: 700 19px/1.25 var(--serif); color: var(--ca-cao); margin-bottom: 12px; }
.tom-ds li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; }
.tom-ds .ico { color: var(--brand-hover); margin-top: 2px; }
.tom-ds b { display: block; font-weight: 600; }
.tom-ds small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.chua { color: var(--ink-4); font-style: italic; font-size: 14px; }
.tom-banh { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 12px; display: grid; gap: 7px; font-size: 14.5px; }
.tom-banh > div { display: flex; justify-content: space-between; gap: 12px; }
.tom-banh > div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.tom-banh i { font-style: normal; color: var(--brand-ink); font-weight: 700; }
.tom-tong { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 14px; color: var(--ink-2); }
.tom-tong b { font-size: 19px; color: var(--ca-cao); font-variant-numeric: tabular-nums; }
.tom-the .nut.chinh { margin-top: 16px; }
.tom-the .nut.tran { margin-top: 4px; }
.tom.tom-trong { display: block; margin-bottom: 12px; }

/* Thanh dưới (điện thoại) */
.day { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(43,33,24,.08); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.day[hidden] { display: none; }
.day-chu { flex: 1; min-width: 0; line-height: 1.3; }
.day-chu b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-chu small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .nut.chinh { padding: 0 22px; flex: none; }

/* ---------- Cảm ơn ---------- */
.khung.xong { max-width: 640px; padding-bottom: 48px; }
.cam-on { text-align: center; padding: 34px 20px 26px; }
.tich-lon { width: 64px; height: 64px; border-radius: 50%; background: var(--xanh-nen); color: var(--xanh); display: grid; place-items: center; margin: 0 auto 14px; }
.tich-lon .ico { width: 30px; height: 30px; stroke-width: 2.6; }
.cam-on h2 { font: 700 25px/1.2 var(--serif); color: var(--ca-cao); margin-bottom: 8px; text-wrap: balance; }
.ma { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); border-radius: 6px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.bang-tom { text-align: left; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bang-tom > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; font-size: 14.5px; }
.bang-tom > div + div { border-top: 1px solid var(--line); }
.bang-tom dt { color: var(--ink-3); }
.bang-tom dd small { display: block; color: var(--ink-3); font-size: 13px; }
.cam-on .ghi-vang { text-align: left; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.hang-nut .nut { flex: 1 1 200px; }

.chan-trang { display: grid; gap: 14px; margin-top: 22px; padding: 18px 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.chan-trang div { display: flex; flex-direction: column; gap: 2px; }
.chan-trang b { color: var(--ink-2); }
.chan-trang a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.bao { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 30; max-width: min(92vw, 420px); background: var(--ca-cao); color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; text-align: center; box-shadow: 0 10px 30px rgba(43,33,24,.3); }
.bao[hidden] { display: none; }

@media (hover: hover) { .banh:hover { border-color: var(--line-3); box-shadow: 0 8px 22px rgba(43,33,24,.1); transform: translateY(-2px); } .banh.chon:hover { border-color: var(--brand); } .banh:hover .banh-anh img { transform: scale(1.04); } }
@media (min-width: 560px) {
  .cn-luoi { grid-template-columns: 1fr 1fr; }
  .cn-the { align-items: flex-start; }
  .truong-luoi { grid-template-columns: 1fr 1fr; }
  .gio-luoi { grid-template-columns: repeat(5, 1fr); }
  .banh-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .chan-trang { grid-template-columns: 1fr 1fr; }
  .the { padding: 22px 22px 24px; }
  .buoc button { font-size: 14.5px; padding: 10px 8px; }
  .lich { gap: 7px; }
}
@media (min-width: 960px) {
  .bia { min-height: 380px; }
  .bia-anh { object-position: 50% 24%; }
  .bia.co-anh::after { background: linear-gradient(90deg, rgba(29,22,16,.86) 0%, rgba(29,22,16,.62) 38%, rgba(29,22,16,.12) 78%), linear-gradient(180deg, rgba(29,22,16,.25) 0%, rgba(29,22,16,0) 30%, rgba(29,22,16,.55) 100%); }
  .bia-trong { padding: 28px 28px 92px; }
  .bia-logo { margin-bottom: 76px; }
  .bia h1 { font-size: 46px; }
  .bia-chao { font-size: 18px; }
  .khung { margin-top: -56px; padding: 0 24px 64px; }
  .buoc { max-width: 560px; }
  .hai-cot { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 20px; align-items: start; margin-top: 16px; }
  .tom { display: block; position: sticky; top: 16px; }
  .tom.tom-trong { display: none; }
  .day { display: none; }
  .the { margin-bottom: 16px; }
  .the-dau h2 { font-size: 22px; }
  .o-lich { max-height: 52px; aspect-ratio: auto; height: 52px; }
  .bao { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
