/* quatet.langfarm.com: trang quà Tết cho khách công ty (QC Google sỉ). Màu, phông theo landing langfarm.com/qua-tet
   (brand guidelines Langfarm: cam #FB4F14, đỏ dâu Tết, vàng chuối; Langfarm Display tiêu đề, Be Vietnam Pro nội dung). */
@font-face { font-family: "Langfarm Display"; src: url("/a/langfarm-display-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
:root {
  --orange: #fb4f14; --orange-dark: #d93f08; --orange-text: #c2380a;
  --red: #d42b2e; --banana: #f8e08e;
  --paper: #fbf6ee; --paper-2: #f3eadb; --ink: #2b211b; --muted: #6d5f55; --line: #e3d5c2; --white: #fff;
  --err: #b42318;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; padding-bottom: 64px; }
h1, h2, h3 { font-family: "Langfarm Display", "Be Vietnam Pro", serif; font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[id] { scroll-margin-top: 64px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 28px; }

/* Đầu trang */
.top { background: var(--red); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo img { height: 30px; width: auto; }
.top-tel { color: var(--banana); font-weight: 700; text-decoration: none; font-size: 15px; }

/* Bìa + form */
.hero { background: var(--red); color: var(--white); padding: 20px 0 36px; }
.hero-grid { display: grid; gap: 20px; }
.eyebrow { color: var(--banana); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: 30px; margin: 6px 0 10px; }
.hero-sub { font-size: 17px; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); color: var(--banana); }
.alt .ticks li::before, .sec .ticks li::before { color: var(--orange); }
.hero-pic { display: none; margin-top: 20px; border-radius: 14px; overflow: hidden; }

.card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 18px 16px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.form h2 { font-size: 24px; color: var(--red); }
.form-sub { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.row2 { display: grid; gap: 0 12px; }
.field { margin: 0 0 12px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.req { color: var(--err); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid #cbbba6; border-radius: 10px; padding: 10px 12px; min-height: 46px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(251,79,20,.25); border-color: var(--orange); }
.invalid input, input.invalid, .invalid .qty-row input { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field .qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 400 !important; font-size: 14.5px !important; margin: 0 !important; }
.qty-row input { width: 84px; flex: none; text-align: center; min-height: 42px; padding: 8px; }
.check, .field .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0 0; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--orange); }
.consent { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; padding: 10px; border-radius: 10px; background: var(--paper); }
.consent.invalid { outline: 2px solid var(--err); }
.consent.opt { margin-top: 6px; background: transparent; padding: 4px 10px; }
.more { margin: 2px 0 8px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--orange-text); padding: 6px 0; }
.more[open] summary { margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#ts { margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid var(--orange); }
.btn-main { background: var(--orange); color: var(--white); }
.btn-main:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--orange-text); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.form .btn-main { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { font-size: 14px; margin-top: 10px; }
.form-msg.ok { color: #1e6b35; font-weight: 600; background: #eaf6ec; padding: 10px; border-radius: 10px; }
.form-msg.bad { color: var(--err); }
.form-alt { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.form-alt a { color: var(--orange-text); font-weight: 600; }

/* Mục */
.sec { padding: 48px 0; }
.sec.tight { padding: 8px 0 40px; }
.sec.alt { background: var(--paper-2); }
.sec-title { font-size: 28px; margin-bottom: 10px; }
.sec-title.small { font-size: 22px; }
.sub-title { font-size: 20px; margin-bottom: 10px; }
.lead { color: var(--muted); margin-bottom: 20px; }
.sets { display: grid; gap: 18px; }
.set { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.set-body { padding: 14px 16px 18px; }
.set h3 { font-size: 22px; }
.price { color: var(--orange-text); font-weight: 700; font-size: 20px; margin: 2px 0 4px; }
.pack { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.set ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.b2b { display: grid; gap: 28px; }
.steps { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 6px; }
.logos { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: center; margin-top: 14px; }
.logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .8; }
.wide { margin: 0; }
.wide img { border-radius: 14px; width: 100%; }
.wide figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sales { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sales li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sales .who { font-size: 14px; }
.sales .who b { display: block; font-size: 16px; }
.sales .who .ph { display: block; font-weight: 600; white-space: nowrap; }
.sales .who .ar { display: block; color: var(--muted); font-size: 13px; }
.sales .acts { display: flex; gap: 8px; flex: none; }
.sales .acts a { min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid var(--orange); color: var(--orange-text); }
.sales .acts a.zalo { background: var(--orange); color: var(--white); }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--muted); }

/* Chân trang */
.foot { background: var(--ink); color: #e9dfd2; padding: 32px 0 24px; font-size: 13.5px; }
.foot p { margin-top: 4px; }
.foot .tag { color: var(--banana); margin-bottom: 10px; }
.foot-links a, .linkbtn { color: var(--banana); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* Thanh nút dính đáy (điện thoại) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); background: rgba(251,246,238,.97); border-top: 1px solid var(--line); }
.sticky a { min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--orange); color: var(--orange-text); background: var(--white); }
.sticky a.go { background: var(--orange); color: var(--white); }
.sticky.hide { transform: translateY(110%); transition: transform .2s; }

/* Cookie: dải thấp ở đáy, thay chỗ thanh nút khi chưa chọn, không che form */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #f2e9dc; padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.45; display: flex; gap: 10px; align-items: center; }
.cookie p { flex: 1; }
.cookie a { color: var(--banana); }
.cookie-btns { display: flex; gap: 6px; flex: none; }
.cookie .btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.cookie:not([hidden]) ~ .sticky, body.has-cookie .sticky { display: none; }
.cookie .btn-ghost { color: var(--banana); border-color: var(--banana); }

@media (min-width: 600px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .sets { grid-template-columns: 1fr 1fr; }
  .sales { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: 19px; }
  .hero-pic { display: block; }
  .card { padding: 24px 24px 20px; }
  .sets { grid-template-columns: repeat(4, 1fr); }
  .b2b { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .sec-title { font-size: 34px; }
  .cookie { right: auto; left: 20px; bottom: 20px; max-width: 460px; border-radius: 12px; padding: 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .sales { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Clip mở hộp trên ảnh set (bấm mới tải; mỗi lúc một clip) */
.set-media { position: relative; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.set-media img, .set-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-media video { position: absolute; inset: 0; }
.clip-btn { position: absolute; z-index: 2; left: 10px; bottom: 10px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(43,33,27,.82); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.clip-btn span { color: var(--banana); margin-right: 4px; }
/* Bên trong hộp quà có gì */
.trays { display: grid; gap: 18px; }
.tray { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tray > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tray-body { padding: 14px 16px 16px; }
.tray h3 { font-size: 20px; }
.tray-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.tray-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.tray-list li span:last-child { color: var(--muted); white-space: nowrap; }
.extras-title { margin-top: 36px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.extra { margin: 0; text-align: center; }
.extra-pic { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.extra-pic img { width: auto; max-width: 100%; object-fit: contain; }
.extra figcaption { font-size: 12.5px; line-height: 1.4; margin-top: 6px; }
.extra figcaption b, .extra figcaption span { display: block; }
.extra .in { color: var(--orange-text); font-size: 12px; }
@media (min-width: 900px) {
  .trays { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: repeat(9, 1fr); }
  .extra-pic { height: 150px; }
}

[hidden] { display: none !important; }
