/* Màu, chữ, khoảng cách lấy từ bộ nhận diện Phuhoa Fresh (Hồ sơ công ty/nhan-dien.css) */
:root {
  --mau-chinh: #004D3A; --mau-nhan: #FFB500; --mau-nen: #FCFAD8; --mau-nen-toi: #003327;
  --mau-chu: #12302A; --mau-chu-nhat: #FFFDF0; --mau-phu-1: #63AD30; --mau-phu-2: #FFEFC8;
  --chinh-100: #E0EAE7; --chinh-200: #B8CDC8; --chinh-400: #477F71; --chinh-600: #004232;
  --nhan-100: #FFF6E0; --nhan-400: #FFCA47; --nhan-800: #946900;
  --do: #B3261E;
  --phong-tieu-de: 'Montserrat', Georgia, serif;
  --phong-than: 'Be Vietnam Pro', system-ui, sans-serif;
  --bo-the: 10px; --bo-nut: 999px;
  --bong-vua: 0 6px 16px #12302A1F; --bong-lon: 0 18px 40px #12302A29;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: var(--mau-nen); color: var(--mau-chu); font: 400 16px/1.6 var(--phong-than); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mau-chinh); }
h1, h2, h3 { font-family: var(--phong-tieu-de); line-height: 1.2; margin: 0 0 12px; color: var(--mau-chinh); }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.khung { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.khung--hep { max-width: 760px; }
.phan { padding: 56px 0; }
.phan--trang { background: #fff; }
.phan--dam { background: var(--mau-chinh); color: var(--mau-chu-nhat); }
.phan--dam h2 { color: var(--mau-chu-nhat); }
.phu-de { color: var(--chinh-400); margin-bottom: 20px; }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--bo-nut); font: 700 16px/1.2 var(--phong-than); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .1s, background .15s; }
.nut:active { transform: scale(.98); }
.nut--nhan { background: var(--mau-nhan); color: var(--mau-chu); }
.nut--nhan:hover { background: var(--nhan-400); }
.nut--chinh { background: var(--mau-chinh); color: var(--mau-chu-nhat); }
.nut--chinh:hover { background: var(--chinh-600); }
.nut--phu { background: transparent; color: var(--mau-chinh); border-color: var(--mau-chinh); }
.nut--phu:hover { background: var(--chinh-100); }
.nut--nho { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.nut--rong { width: 100%; }
.nut[disabled] { opacity: .5; cursor: not-allowed; }

/* Thanh đếm ngược */
.thanh-dem { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 16px; background: var(--mau-nen-toi); color: var(--mau-chu-nhat); font-size: 14px; }
.thanh-dem b { color: var(--mau-nhan); font-variant-numeric: tabular-nums; }
.thanh-dem__nut { color: var(--mau-chu); background: var(--mau-nhan); padding: 4px 12px; border-radius: var(--bo-nut); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Đầu trang */
.dau { padding: 32px 0 48px; background: linear-gradient(180deg, var(--mau-nen) 0%, #F1F6E4 100%); }
.dau__luoi { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.logo { width: 160px; margin-bottom: 20px; }
.nhan { display: inline-block; background: var(--mau-phu-2); color: var(--nhan-800); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: var(--bo-nut); margin-bottom: 12px; }
#dem-ngay-cau { color: var(--mau-phu-1); }
.dau__phu { font-size: 18px; margin: 16px 0 24px; }
.dau__nut { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dau__tin { font-size: 14px; color: var(--chinh-400); }
.dau__anh img { border-radius: 16px; box-shadow: var(--bong-lon); max-height: 640px; width: auto; margin: 0 auto; }

/* 3 bước */
.buoc { list-style: none; padding: 0; margin: 24px 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.buoc li { background: var(--mau-nen); border-radius: var(--bo-the); padding: 24px; position: relative; }
.buoc__so { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mau-chinh); color: var(--mau-chu-nhat); font: 800 20px var(--phong-tieu-de); margin-bottom: 12px; }
.ghi-nho { font-size: 14px; color: var(--chinh-400); }

/* Mua nhiều */
.mua-nhieu { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.bang-ck { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--bo-the); overflow: hidden; box-shadow: var(--bong-vua); }
.bang-ck caption { font-weight: 700; color: var(--mau-chinh); padding-bottom: 8px; text-align: left; }
.bang-ck th { background: var(--mau-phu-1); color: #fff; padding: 10px 16px; text-align: left; }
.bang-ck td { padding: 10px 16px; border-top: 1px solid var(--chinh-100); }
.bang-ck td:last-child { font-weight: 800; color: var(--mau-chinh); font-size: 18px; }

/* Lọc + lưới giỏ */
.loc { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none; }
.loc__nut { flex: none; border: 1.5px solid var(--chinh-200); background: #fff; color: var(--mau-chinh); border-radius: var(--bo-nut); padding: 8px 16px; font: 600 15px var(--phong-than); cursor: pointer; }
.loc__nut.dang-chon { background: var(--mau-chinh); color: #fff; border-color: var(--mau-chinh); }
.luoi-gio { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.the { background: #fff; border: 1px solid var(--chinh-100); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px #12302A14; }
.the__anh { position: relative; aspect-ratio: 1; background: #F4F7F2; cursor: pointer; border: 0; padding: 0; width: 100%; }
.the__anh img { width: 100%; height: 100%; object-fit: cover; }
.the__chay { position: absolute; top: 10px; left: 10px; background: var(--do); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--bo-nut); }
.the__soanh { position: absolute; bottom: 10px; right: 10px; background: #12302Acc; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: var(--bo-nut); }
.the__than { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.the__dau { display: flex; justify-content: space-between; align-items: baseline; }
.the__ma { font: 800 18px var(--phong-tieu-de); color: var(--mau-chinh); }
.the__gia { font: 800 20px var(--phong-tieu-de); color: var(--mau-chu); }
.the__trai { font-size: 13.5px; color: #3B574B; margin: 0; line-height: 1.5; }
.the__chan { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.dem { display: inline-flex; align-items: center; border: 1.5px solid var(--chinh-200); border-radius: var(--bo-nut); overflow: hidden; }
.dem button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; color: var(--mau-chinh); cursor: pointer; }
.dem input { width: 44px; height: 40px; border: 0; text-align: center; font: 700 16px var(--phong-than); -moz-appearance: textfield; }
.dem input::-webkit-inner-spin-button { -webkit-appearance: none; }
.the__chan .nut { flex: 1; min-height: 42px; padding: 8px 12px; font-size: 15px; }
.the__da { font-size: 13px; color: var(--mau-phu-1); font-weight: 700; min-height: 18px; }

/* Lời khen */
.khen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.khen figure { margin: 0; background: #fff; border-radius: var(--bo-the); padding: 20px; border-left: 4px solid var(--mau-nhan); }
.khen blockquote { margin: 0 0 8px; font-size: 17px; }
.khen blockquote::before { content: '“'; } .khen blockquote::after { content: '”'; }
.khen figcaption { font-size: 13px; color: var(--chinh-400); }

/* Yên tâm */
.yen-tam { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.yen-tam li { background: var(--mau-nen); border-radius: var(--bo-the); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.yen-tam b { color: var(--mau-chinh); font-size: 17px; }

/* Đặt hàng */
.trong { background: #fff; padding: 20px; border-radius: var(--bo-the); }
.o-dat { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px #12302A14; }
.o-dat h3 { margin-bottom: 14px; }
.dong-gio { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--chinh-100); }
.dong-gio:last-child { border-bottom: 0; }
.dong-gio img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.dong-gio small { color: var(--chinh-400); }
.truong { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.truong label, .nhan-o { font-weight: 600; font-size: 15px; }
.truong input, .truong textarea, .truong select { font: 400 16px var(--phong-than); padding: 12px 14px; border: 1.5px solid var(--chinh-200); border-radius: 10px; background: #fff; color: var(--mau-chu); width: 100%; }
.truong input:focus, .truong textarea:focus { outline: 2px solid var(--mau-phu-1); border-color: var(--mau-phu-1); }
.truong .goi-y { font-size: 13px; color: var(--chinh-400); }
.hai-cot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chon button { border: 1.5px solid var(--chinh-200); background: #fff; color: var(--mau-chu); border-radius: 10px; padding: 10px 14px; font: 600 15px var(--phong-than); cursor: pointer; min-height: 44px; }
.chon button.dang-chon { border-color: var(--mau-chinh); background: var(--chinh-100); color: var(--mau-chinh); }
.chon button[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chon--to button { flex: 1; }
.ban-do { height: 260px; border-radius: 10px; margin: 8px 0; border: 1.5px solid var(--chinh-200); }
.ket-qua-tim { list-style: none; padding: 0; margin: 4px 0; border: 1px solid var(--chinh-200); border-radius: 10px; overflow: hidden; }
.ket-qua-tim li button { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--chinh-100); padding: 10px 12px; font: 14px var(--phong-than); cursor: pointer; }
.ket-qua-tim li button:hover { background: var(--chinh-100); }
.km { background: var(--nhan-100); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.diem { border: 1.5px dashed var(--chinh-200); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.diem__dau { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.diem__dau b { color: var(--mau-chinh); }
.link-nut { background: none; border: 0; color: var(--do); font: 600 14px var(--phong-than); cursor: pointer; text-decoration: underline; }
.chia { display: grid; gap: 6px; margin-bottom: 12px; }
.chia__dong { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.con-lai { font-weight: 700; color: var(--do); font-size: 14px; }
.con-lai.du { color: var(--mau-phu-1); }
.mau-chuc { display: flex; flex-wrap: wrap; gap: 6px; }
.mau-chuc button { font: 13px var(--phong-than); background: var(--mau-nen); border: 1px solid var(--chinh-200); border-radius: var(--bo-nut); padding: 4px 10px; cursor: pointer; color: var(--mau-chu); }
.tick { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mau-chinh); flex: none; }
.tinh { width: 100%; font-size: 16px; }
.tinh td { padding: 6px 0; } .tinh td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tinh .giam td { color: var(--mau-phu-1); font-weight: 600; }
.tinh .tong td { border-top: 2px solid var(--mau-chinh); padding-top: 10px; font: 800 22px var(--phong-tieu-de); color: var(--mau-chinh); }
.goi-y-ck { font-size: 14px; background: var(--nhan-100); padding: 8px 12px; border-radius: 8px; margin-top: 8px; }
.loi { background: #FDECEA; color: var(--do); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.loi ul { margin: 0; padding-left: 18px; }
.an { position: absolute; left: -9999px; }

/* Trả tiền */
.tra-tien { text-align: center; }
.tra-tien img.qr { width: 280px; max-width: 100%; margin: 12px auto; border-radius: 12px; border: 1px solid var(--chinh-200); }
.thu { display: inline-block; background: var(--do); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 6px; }
.tt-cho { color: var(--nhan-800); font-weight: 700; }
.tt-xong { color: var(--mau-phu-1); font-weight: 800; font-size: 20px; }
.bang-ck2 { text-align: left; margin: 12px auto; font-size: 15px; } .bang-ck2 td { padding: 3px 8px; }

/* Lời nhắc cuối, chân trang */
.chot { text-align: center; } .chot p { max-width: 560px; margin: 0 auto 20px; }
.chot__goi { margin-top: 20px !important; } .chot__goi a { color: var(--mau-nhan); font-weight: 700; }
.chan { background: var(--mau-nen-toi); color: #DCE7E2; padding: 40px 0 120px; font-size: 14px; }
.chan a { color: var(--mau-nhan); }
.chan b { color: #fff; }
.chan__luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Thanh giỏ hàng nổi */
.thanh-gio { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 16px; align-items: center; justify-content: space-between; width: min(560px, calc(100% - 32px)); background: var(--mau-chinh); color: #fff; border: 0; border-radius: var(--bo-nut); padding: 14px 22px; font: 600 16px var(--phong-than); box-shadow: var(--bong-lon); cursor: pointer; }
.thanh-gio b { color: var(--mau-nhan); }

/* Hộp thoại, hỏi đo */
.hop { border: 0; border-radius: 14px; padding: 24px; max-width: 520px; box-shadow: var(--bong-lon); }
.hop::backdrop { background: #12302A80; }
.hoi-do { position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 50; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--bong-lon); font-size: 14px; }
.hoi-do div { display: flex; gap: 8px; }

@media (max-width: 860px) {
  .dau__luoi, .mua-nhieu { grid-template-columns: 1fr; gap: 24px; }
  .dau { padding-top: 20px; }
  .dau__anh img { max-height: 520px; }
  .buoc, .khen, .yen-tam, .chan__luoi { grid-template-columns: 1fr; }
  .phan { padding: 40px 0; }
}
@media (max-width: 520px) {
  .luoi-gio { grid-template-columns: 1fr 1fr; gap: 10px; }
  .the__than { padding: 10px; }
  .the__ma { font-size: 15px; } .the__gia { font-size: 16px; }
  .the__trai { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .the__chan { flex-direction: column; align-items: stretch; }
  .dem { justify-content: space-between; } .dem input { flex: 1; }
  .hai-cot { grid-template-columns: 1fr; gap: 0; }
  .dau__nut .nut { flex: 1; }
  .thanh-dem { font-size: 13px; }
}
