/* =========================================================
   Chè Hẻm Cần Thơ — giao diện chung
   Đổi màu toàn trang tại phần :root bên dưới
   ========================================================= */
:root {
  --vang: #f2c230;          /* vàng tường quán */
  --vang-nhat: #f8e3a0;
  --kem: #fbf3df;           /* nền giấy */
  --giay: #fffaf0;
  --nau: #6b3a26;           /* nâu biển hiệu */
  --nau-dam: #3b2215;       /* chữ chính */
  --nau-vua: #8a5a3b;
  --vien: #ead9b4;
  --bo-goc: 16px;
  --bong: 0 6px 20px rgba(59, 34, 21, .08);
  --bong-dam: 0 16px 36px rgba(59, 34, 21, .16);
  --font-tieu-de: "Lora", Georgia, serif;
  --font-chu: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --cao-dau-trang: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-chu);
  font-size: 17px;
  line-height: 1.65;
  color: var(--nau-dam);
  background: var(--kem);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; }

.khung { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Thanh đầu trang ---------- */
.dau-trang {
  background: var(--nau);
  color: var(--vang);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 4px dotted var(--vang);   /* chấm vàng như đèn biển hiệu */
}
.dau-trang .khung {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--cao-dau-trang);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--vang);
}
.logo-tron {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dotted var(--vang);
  outline: 2px solid var(--vang);
  outline-offset: 2px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-tieu-de);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 600;
}
.logo-chu {
  font-family: var(--font-tieu-de);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
}

.menu-chinh { display: flex; align-items: center; gap: 6px; }
.menu-chinh a {
  text-decoration: none;
  color: var(--kem);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  transition: background .15s, color .15s;
}
.menu-chinh a:hover { color: var(--vang); background: rgba(242, 194, 48, .12); }
.menu-chinh a.dang-xem { color: var(--vang); background: rgba(242, 194, 48, .16); }
/* Nút Đặt món nổi bật trên thanh menu */
.menu-chinh a.nut-dat {
  margin-left: 8px;
  background: var(--vang);
  color: var(--nau-dam);
  font-weight: 700;
  padding: 9px 22px;
}
.menu-chinh a.nut-dat:hover { background: var(--vang-nhat); color: var(--nau-dam); }

.nut-menu { display: none; }

/* ---------- Đầu trang chung cho cả 4 trang ----------
   Dải vàng tường quán + giàn hoa giấy, chữ bên trái, ảnh bên phải */
.mo-dau {
  position: relative;
  overflow: hidden;
  background: var(--vang);
  padding: 64px 0 76px;
}
.mo-dau > .khung { position: relative; z-index: 1; }
.dau-chia {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.mo-dau h1 {
  font-family: var(--font-tieu-de);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--nau);
}
.mo-dau p {
  margin-top: 16px;
  max-width: 40ch;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--nau-dam);
}
.mo-dau .nut-nhom { justify-content: flex-start; }
.chu-hong { color: #a52a5e; white-space: nowrap; }   /* hồng bông giấy đậm, đọc rõ trên nền vàng */

/* Khung ảnh đầu trang: bo góc, viền kem, vòng chấm nâu như đèn biển hiệu */
.dau-anh {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
}
.dau-anh::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  border: 3px dotted rgba(107, 58, 38, .55);
}
.dau-anh img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  border: 8px solid var(--giay);
  box-shadow: 0 22px 44px rgba(59, 34, 21, .25);
}

/* ---------- Thẻ nhóm chè: ảnh tròn nhô lên mép trên (trang chủ + Thực đơn) ---------- */
.td-nhom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 92px;
}
.td-the {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 18px 24px;
  border-radius: var(--bo-goc);
  background: var(--giay);
  border: 1px solid var(--vien);
  box-shadow: var(--bong);
  color: var(--nau-dam);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.td-the:hover { transform: translateY(-4px); box-shadow: var(--bong-dam); }
.td-tron {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--giay);
  box-shadow: var(--bong-dam);
  background: var(--kem);
  display: grid;
  place-content: center;
  color: var(--nau-vua);
  font-family: var(--font-tieu-de);
  line-height: 1.1;
}
.td-tron img { width: 100%; height: 100%; object-fit: cover; }
.td-the h3 { font-family: var(--font-tieu-de); font-size: 22px; color: var(--nau); }
.td-the p { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--nau-vua); }
.td-the .xem { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--nau); }
.td-nhom-dau { margin-top: 64px; margin-bottom: 88px; }
#thuc-don, #ds-dat-mon { scroll-margin-top: calc(var(--cao-dau-trang) + 24px); }

/* ---------- Nút ---------- */
.nut-nhom { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.nut-trai { justify-content: flex-start; }
.nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-chu);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--nau);
  background: var(--nau);
  color: var(--vang);
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.nut:hover { transform: translateY(-2px); box-shadow: var(--bong); }
.nut-vien { background: transparent; color: var(--nau); }
.nut-vien:hover { background: var(--nau); color: var(--vang); }
.nut-vang { background: var(--vang); color: var(--nau-dam); border-color: var(--vang); }
.nut-vang:hover { background: var(--vang-nhat); border-color: var(--vang-nhat); }
.nut-kem { background: transparent; color: var(--kem); border-color: rgba(251, 243, 223, .85); }
.nut-kem:hover { background: var(--kem); color: var(--nau-dam); }
.nut:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

/* ---------- Khối nội dung ---------- */
.khoi { padding: 88px 0; }
.khoi-giay { background: var(--giay); }
.khoi h2 {
  font-family: var(--font-tieu-de);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--nau);
  line-height: 1.2;
  margin-bottom: 12px;
}
.khoi .dan { max-width: 560px; color: var(--nau-vua); }
.giua { text-align: center; }
.giua .dan { margin: 0 auto; }

.hai-cot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hai-cot p + p { margin-top: 10px; }
.anh-khung {
  border-radius: var(--bo-goc);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  box-shadow: var(--bong-dam);
}
.anh-khung img { width: 100%; height: 100%; object-fit: cover; }

/* Thẻ thông tin (trang Liên hệ) */
.the {
  background: var(--giay);
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  padding: 28px 24px;
  text-decoration: none;
  box-shadow: var(--bong);
  transition: transform .2s, box-shadow .2s;
}
a.the:hover { transform: translateY(-4px); box-shadow: var(--bong-dam); }
.the h3 {
  font-family: var(--font-tieu-de);
  font-size: 23px;
  color: var(--nau);
  margin-bottom: 6px;
}
.the p { color: var(--nau-vua); font-size: 16px; }

/* ---------- Thực đơn ---------- */
.nhom-mon { margin-bottom: 72px; scroll-margin-top: calc(var(--cao-dau-trang) + 24px); }
.nhom-mon:last-child { margin-bottom: 0; }
.nhom-mon h2 { text-align: center; }
.nhom-mon > p { text-align: center; color: var(--nau-vua); margin-bottom: 28px; }

.ds-mon {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  background: var(--giay);
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong);
  padding: 10px 28px;
}
.ds-mon li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--vien);
}
.ds-mon li:last-child { border-bottom: none; }
.ds-mon .ten { font-weight: 500; }
.ds-mon .ghi { display: block; font-size: 14px; color: var(--nau-vua); font-weight: 400; }
.ds-mon .cham { flex: 1; border-bottom: 2px dotted var(--vien); transform: translateY(-5px); min-width: 20px; }
.ds-mon .gia { font-weight: 700; color: var(--nau); white-space: nowrap; }

/* Thẻ món có ảnh */
.luoi-mon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1020px;
  margin: 0 auto;
}
.mon-the {
  background: var(--giay);
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  overflow: hidden;
  box-shadow: var(--bong);
  transition: transform .2s, box-shadow .2s;
}
.mon-the:hover { transform: translateY(-4px); box-shadow: var(--bong-dam); }
.mon-the img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.mon-than { padding: 14px 16px 16px; }
.mon-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mon-dong h3 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--nau-dam); }
.mon-dong .gia { font-weight: 700; color: var(--nau); white-space: nowrap; }
.mon-than .ghi { font-size: 14px; color: var(--nau-vua); margin-top: 4px; }
.mon-khac {
  text-align: center;
  font-family: var(--font-tieu-de);
  font-size: 22px;
  color: var(--nau);
  margin: 44px 0 16px;
}
/* Món tạm hết */
.mon-the.het img { filter: grayscale(.7); opacity: .65; }
.het .gia { color: var(--nau-vua); font-weight: 600; }
.ds-mon li.het .ten { color: var(--nau-vua); }

.anh-menu {
  display: block;
  max-width: 900px;
  margin: 32px auto 0;
  border-radius: var(--bo-goc);
  overflow: hidden;
  box-shadow: var(--bong-dam);
}

/* ---------- Đặt món ---------- */
.dat-mon-luoi {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.dat-nhom { margin-bottom: 40px; }
.dat-nhom h2 { font-size: 28px; margin-bottom: 14px; }

.dong-mon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--giay);
  border: 1px solid var(--vien);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.dong-mon.co-chon { border-color: var(--nau-vua); background: #fff4d2; }
.dong-mon.het { opacity: .55; }
.dong-giua { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.anh-nho {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.anh-trong {
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--kem);
  border: 1px solid var(--vien);
  color: var(--nau-vua);
  font-family: var(--font-tieu-de);
  font-size: 13px;
  line-height: 1.1;
}
.dong-mon .ten { font-weight: 500; }
.dong-mon .ghi { display: block; font-size: 14px; color: var(--nau-vua); }
.dong-mon .gia { font-size: 15px; color: var(--nau); font-weight: 700; }

.so-luong { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.so-luong button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--nau);
  background: var(--giay);
  color: var(--nau);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.so-luong button:hover:not(:disabled) { background: var(--nau); color: var(--vang); }
.so-luong button:disabled { opacity: .35; cursor: not-allowed; }
.so-luong output { min-width: 26px; text-align: center; font-weight: 700; }

.gio {
  position: sticky;
  top: calc(var(--cao-dau-trang) + 20px);
  scroll-margin-top: calc(var(--cao-dau-trang) + 16px);
  background: var(--giay);
  border: 1px solid var(--vien);
  border-top: 4px solid var(--nau);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong-dam);
  padding: 24px;
}
.gio h2 { font-size: 26px; margin-bottom: 4px; }
.gio-trong { color: var(--nau-vua); padding: 8px 0 4px; }
.gio-ds { list-style: none; margin: 12px 0; }
.gio-ds li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--vien);
  font-size: 15px;
}
.tong {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 19px;
  color: var(--nau);
  padding: 12px 0 16px;
}
.o-nhap { margin-bottom: 12px; }
.o-nhap label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.o-nhap input, .o-nhap textarea, .o-nhap select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dcc79a;
  background: #fff;
  color: var(--nau-dam);
}
.o-nhap input:focus, .o-nhap textarea:focus, .o-nhap select:focus {
  outline: none;
  border-color: var(--nau-vua);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .35);
}
.o-nhap textarea { min-height: 70px; resize: vertical; }
.gio .nut { width: 100%; margin-top: 8px; }
.thong-bao {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--vang-nhat);
  font-size: 15px;
  display: none;
}
.thong-bao.hien { display: block; }
.thong-bao.xong { background: #e3efcf; color: #2f4a17; }
.thong-bao.loi { background: #f8dcc8; color: #7a2e12; }
.dong-cua {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8dcc8;
  color: #7a2e12;
  font-size: 15px;
  font-weight: 600;
}
.goi-sau-dat {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--kem);
  border: 1px dashed var(--nau-vua);
  text-align: center;
}
.goi-sau-dat p { font-size: 15px; font-weight: 600; color: var(--nau); }
.goi-sau-dat .nut { margin-top: 8px; }
.cach-khac { text-align: center; font-size: 15px; color: var(--nau-vua); margin: 18px 0 0; }
.nut-doi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nut-doi .nut { padding: 11px 12px; }
.o-bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thanh giỏ hàng dính đáy – chỉ dùng trên điện thoại/máy tính bảng */
.thanh-gio { display: none; }

/* ---------- Liên hệ ---------- */
.lien-he-luoi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.lien-he-luoi .the { display: block; }
.lien-he-luoi .the p a { font-weight: 700; color: var(--nau); }
.ban-do {
  margin-top: 36px;
  border-radius: var(--bo-goc);
  overflow: hidden;
  box-shadow: var(--bong-dam);
  height: 400px;
}
.ban-do iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Chân trang ---------- */
.chan-trang {
  background: var(--nau-dam);
  color: var(--vang-nhat);
  padding: 56px 0 28px;
}
.chan-trang .khung {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
.chan-trang h3 {
  font-family: var(--font-tieu-de);
  color: var(--vang);
  font-size: 19px;
  margin-bottom: 10px;
}
.chan-trang p, .chan-trang li { font-size: 15px; line-height: 1.75; }
.chan-trang ul { list-style: none; }
.chan-trang a { color: var(--vang-nhat); }
.chan-trang a:hover { color: var(--vang); }
.ban-quyen {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(248, 227, 160, .18);
  padding-top: 20px;
  font-size: 14px;
  opacity: .7;
}

/* ---------- Ảnh AI (tự ẩn khi chưa có file) ---------- */
.anh-tuy-chon { display: none; }
.anh-tuy-chon.co-anh { display: block; }

/* Tranh màu nước gánh chè "in" lên mảng tường vữa vàng cũ (4:5) */
.tuong-cu {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: 34px;
  border-radius: 6px;
  background-color: #e5b445;
  background-image:
    radial-gradient(ellipse at 18% 20%, rgba(120, 70, 20, .20), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(90, 50, 15, .26), transparent 52%),
    radial-gradient(ellipse at 70% 10%, rgba(255, 240, 200, .40), transparent 40%),
    radial-gradient(ellipse at 10% 95%, rgba(70, 90, 30, .22), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .05 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 70px rgba(80, 40, 10, .38), var(--bong-dam);
}
/* Mảng vữa bong lộ gạch */
.tuong-cu::before,
.tuong-cu::after {
  content: "";
  position: absolute;
  background-color: #a9603b;
  background-image:
    linear-gradient(#d6bb90 2px, transparent 2px),
    linear-gradient(90deg, #d6bb90 2px, transparent 2px),
    linear-gradient(90deg, #d6bb90 2px, transparent 2px);
  background-size: 100% 11px, 26px 22px, 26px 22px;
  background-position: 0 0, 0 0, 13px 11px;
  opacity: .7;
  pointer-events: none;
}
.tuong-cu::before {
  top: 10px;
  left: 12px;
  width: 64px;
  height: 40px;
  clip-path: polygon(8% 0, 70% 6%, 100% 40%, 82% 100%, 30% 88%, 0 55%);
}
.tuong-cu::after {
  right: 10px;
  bottom: 12px;
  width: 80px;
  height: 46px;
  clip-path: polygon(20% 10%, 90% 0, 100% 62%, 60% 100%, 6% 84%, 0 30%);
}
.tranh-tuong img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  mix-blend-mode: multiply;           /* giấy trắng của tranh hòa vào màu tường */
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%);
  filter: saturate(.92) contrast(1.03);
}
/* Khi chưa có tranh: tạm hiện ảnh biển hiệu như ảnh treo trên tường */
.tranh-tuong.du-phong img {
  mix-blend-mode: normal;
  -webkit-mask-image: none;
          mask-image: none;
  filter: none;
  border: 6px solid var(--giay);
  border-radius: 8px;
}

/* Ảnh tròn chèn góc ảnh quán (mục Ghé hẻm) */
.anh-ghep { position: relative; }
.anh-chen {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--giay);
  box-shadow: var(--bong-dam);
}
.anh-chen img { width: 100%; height: 100%; object-fit: cover; }

/* Giàn hoa giấy phủ dọc mép trên dải tiêu đề (PNG trong suốt, 4:1) */
.gian-hoa {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.gian-hoa img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center top;
}
/* Có giàn hoa thì đẩy tiêu đề xuống để hoa không che chữ */
.mo-dau:has(.gian-hoa.co-anh) { padding-top: clamp(150px, 12.5vw, 220px); }

/* ---------- Thông báo "Có khách vừa đặt" ---------- */
.vua-dat {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 340px;
  background: var(--giay);
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  box-shadow: var(--bong-dam);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, bottom .3s ease;
}
.vua-dat.hien { opacity: 1; transform: none; pointer-events: auto; }
.vua-dat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 40px 10px 10px;
  text-decoration: none;
  color: var(--nau-dam);
}
.vua-dat-anh {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--kem);
  color: var(--nau-vua);
  font-family: var(--font-tieu-de);
  font-size: 12px;
  line-height: 1.1;
}
.vua-dat-anh img { width: 52px; height: 52px; object-fit: cover; }
.vua-dat-chu { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.vua-dat-dau { font-size: 13px; color: var(--nau-vua); }
.vua-dat-mon { font-size: 15px; font-weight: 600; }
.vua-dat-luc { font-size: 13px; font-weight: 600; color: var(--nau); }
.vua-dat-dong {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--nau-vua);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.vua-dat-dong:hover { color: var(--nau); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vua-dat, .thanh-gio { transition: opacity .2s; }
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 900px) {
  .hai-cot, .dat-mon-luoi { grid-template-columns: 1fr; gap: 44px; }
  .anh-khung { margin: 0 auto; max-width: 440px; width: 100%; }
  .anh-ghep { max-width: 440px; width: 100%; margin: 0 auto; }
  .gio { position: static; }
  .chan-trang .khung { grid-template-columns: 1fr 1fr; }
  .chan-trang .khung > div:first-child { grid-column: 1 / -1; }

  /* Đầu trang: chữ trên, ảnh dưới */
  .dau-chia { grid-template-columns: 1fr; gap: 44px; }
  .dau-anh { justify-self: center; width: min(100% - 28px, 560px); }

  /* Thanh giỏ hàng dính đáy */
  .thanh-gio {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 35;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    background: var(--nau-dam);
    color: var(--kem);
    border-radius: 999px;
    box-shadow: var(--bong-dam);
    transform: translateY(160%);
    transition: transform .3s ease;
  }
  .thanh-gio.hien { transform: none; }
  .thanh-gio strong { color: var(--vang); }
  .thanh-gio .nut { min-height: 44px; padding: 8px 22px; }
  body.co-thanh-gio { padding-bottom: 76px; }
  body.co-thanh-gio .vua-dat { bottom: 84px; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  :root { --cao-dau-trang: 64px; }
  .logo-tron { width: 42px; height: 42px; font-size: 11px; }
  .logo-chu { font-size: 17px; }

  /* Nút ☰ và menu xổ xuống */
  .nut-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    background: rgba(242, 194, 48, .14);
    cursor: pointer;
  }
  .nut-menu span {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: var(--vang);
    transition: transform .2s, opacity .2s;
  }
  .dau-trang.mo .nut-menu span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .dau-trang.mo .nut-menu span:nth-child(2) { opacity: 0; }
  .dau-trang.mo .nut-menu span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .menu-chinh {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--nau);
    border-bottom: 4px dotted var(--vang);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .25);
  }
  .dau-trang.mo .menu-chinh { display: flex; }
  .menu-chinh a { padding: 12px 14px; border-radius: 12px; font-size: 17px; }
  .menu-chinh a.nut-dat { margin: 8px 0 0; text-align: center; padding: 13px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .khung { padding: 0 16px; }
  .mo-dau { padding: 56px 0 48px; }
  .khoi { padding: 60px 0; }
  .lien-he-luoi { grid-template-columns: 1fr; }
  .ds-mon { padding: 6px 16px; }
  .chan-trang .khung { grid-template-columns: 1fr; gap: 24px; }
  .dong-mon { padding: 10px; gap: 10px; }
  .anh-nho { width: 52px; height: 52px; }
  .so-luong button { width: 34px; height: 34px; }
  .luoi-mon { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vua-dat { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .ban-do { height: 300px; }
  /* điện thoại: phóng to giàn hoa, cắt bớt hai bên cho hoa dày hơn */
  .gian-hoa { height: 84px; overflow: hidden; }
  .gian-hoa img { width: 190%; max-width: none; height: auto; margin-left: -45%; }
  .mo-dau:has(.gian-hoa.co-anh) { padding-top: 96px; }
  .tuong-cu { padding: 22px; }
  .anh-chen { width: 110px; height: 110px; left: 10px; bottom: -22px; }
  .mon-than { padding: 10px 12px 12px; }
  .mon-dong { flex-direction: column; gap: 2px; }
  .mon-dong h3 { font-size: 15px; }
  .mo-dau .nut-nhom .nut { flex: 1 1 auto; }
  .dau-anh::before { inset: -10px; border-radius: 30px; }
  .dau-anh img { border-width: 6px; border-radius: 22px; }
  /* Thẻ nhóm chè gọn 3 cột trên điện thoại */
  .td-nhom { gap: 10px; margin-top: 64px; }
  .td-the { padding: 50px 6px 14px; border-radius: 14px; }
  .td-tron { width: 80px; height: 80px; top: -40px; border-width: 4px; font-size: 12px; }
  .td-the h3 { font-size: 15px; line-height: 1.25; }
  .td-the p { font-size: 12px; }
  .td-the .xem { display: none; }
  .td-nhom-dau { margin-bottom: 56px; }
}
