/* =========================================================
   Bản FINAL cho cuốn Ẩm thực — lớp hoàn thiện UX/UI.
   Nạp SAU kpvh-landing.css và kpvh-am-thuc-artbook.css.
   Chỉ đổi giao diện và hiệu ứng: không đổi bố cục, thứ tự phần hay chữ.
   Vietales — 20261101 - FINAL
   ========================================================= */

/* =========================================================
   0. Nền tảng: tương phản, vòng focus, neo cuộn, ngắt dòng
   ========================================================= */
:root {
  --muted: #6F685E;                 /* 5.4:1 trên nền giấy (cũ #8A847B chỉ 3.7:1) */
  --moss: #1D382F;                  /* xanh rêu — màu đã dùng cho "Vì sao" */
  --moss-2: #26463B;
  --ring: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink), 0 0 0 9px rgba(244, 191, 58, .55);
  --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C18 3.5 34 9 52 6.2S88 2.6 118 5.4' fill='none' stroke='%23A8432F' stroke-width='3.2' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M10 9.6C30 7.4 58 10.4 92 8.2' fill='none' stroke='%23F4BF3A' stroke-width='2' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E");
}
html { scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 76px; } }
h1, h2, h3, .opt-name { text-wrap: balance; }
p, li, .lead, summary { text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hạt giấy màu nước phủ rất nhẹ toàn trang */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none;
  background: var(--grain); opacity: .07;
}

/* Vòng focus: viền mực + quầng vàng (vàng đơn thuần chỉ 1.7:1 trên giấy) */
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, .opt:focus-visible,
.flip-item button:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: 10px;
}
.btn:focus-visible { border-radius: 999px; }
.order .steps a:focus-visible { box-shadow: 0 0 0 3px var(--gold); }

/* Nét cọ dưới tiêu đề mỗi phần */
.sec-head h2::after, #thong-tin h2::after, .order h2::after {
  content: ""; display: block; width: 112px; height: 12px; margin-top: 14px;
  background: var(--brush) center / 100% 100% no-repeat;
}
.combo .sec-head h2::after, .ab-gallery > .sec-head h2::after,
section:has(> .wrap > .series) h2::after, #hoi-dap h2::after { margin-left: auto; margin-right: auto; }
.ab-gallery > .sec-head h2 { margin-bottom: 0; }

/* =========================================================
   1. Thanh trên
   ========================================================= */
.topbar { transition: box-shadow .3s; }
.topbar.is-scrolled { box-shadow: 0 10px 30px rgba(60, 40, 20, .07); }
.topbar .btn { min-height: 44px; }
.topnav a { position: relative; padding: 12px 0; }
.topnav a.is-active { color: var(--accent); background-size: 100% 3px; }

/* =========================================================
   2. Hero — tranh "loang màu" khi mở trang, chữ hiện lần lượt
   ========================================================= */
.hero .wrap { position: relative; }
.hero-book { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 500 15px/1.4 var(--sans); color: var(--ink-2); margin-bottom: 20px; }
.hero-book b { font: 700 clamp(30px, 3.2vw, 40px)/1 var(--script); color: var(--accent); }
.hero-ticks li { font-size: 17px; }
.hero-ticks li::before { width: 14px; height: 8px; top: .5em; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 2px; }
.hero-ticks li::after {
  content: ""; position: absolute; z-index: -1; left: -3px; top: .1em; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(244, 191, 58, .35), rgba(244, 191, 58, 0) 70%);
}
.hero-ticks li { isolation: isolate; }

.price-box {
  position: relative; border: 0; background:
    radial-gradient(70% 120% at 0% 0%, rgba(247, 230, 221, .9), transparent 60%), #fff;
  box-shadow: 0 1px 0 rgba(60, 40, 20, .06), 0 14px 34px rgba(60, 40, 20, .09);
}
.price-box::before {             /* băng dính giấy giữ "phiếu giá" */
  content: ""; position: absolute; top: -10px; left: 26px; width: 74px; height: 20px; transform: rotate(-4deg);
  background: rgba(244, 191, 58, .5); border-radius: 2px;
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.price-box .p-now { font-size: 32px; }

@keyframes fUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fBleed {
  from { -webkit-mask-size: 0% 0%; mask-size: 0% 0%; opacity: .2; }
  to   { -webkit-mask-size: 320% 320%; mask-size: 320% 320%; opacity: 1; }
}
.hero .wrap > div:first-child > * { animation: fUp .9s var(--ease) both; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
.hero .wrap > div:first-child > :nth-child(6) { animation-delay: .4s; }
.hero-art img {
  -webkit-mask-image: radial-gradient(circle at 45% 50%, #000 42%, transparent 50%); mask-image: radial-gradient(circle at 45% 50%, #000 42%, transparent 50%);
  -webkit-mask-position: 45% 50%; mask-position: 45% 50%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 320% 320%; mask-size: 320% 320%;
  animation: fBleed 1.6s cubic-bezier(.3, .7, .2, 1) .1s both;
}
.hero-art .tag { left: 25%; bottom: 3%; animation: fUp .8s var(--ease) 1s both; }
.hero-art::after { animation: fUp .9s var(--ease) .8s both, abFloat 7s ease-in-out 1.7s infinite; }

/* Chim Lạc (họa tiết trống đồng trong sách) bay ngang trên tranh */
.hero .wrap::after {
  content: ""; position: absolute; z-index: 4; pointer-events: none; width: clamp(90px, 9vw, 150px); aspect-ratio: 200 / 76;
  right: 34%; top: -2%;
  background: url("/api/v1/media/kpvh-am-thuc-chim.png?v=20261030") center / contain no-repeat;
  filter: drop-shadow(0 6px 6px rgba(120, 80, 10, .18));
  animation: fUp 1s var(--ease) 1.1s both, fGlide 9s ease-in-out 2.1s infinite;
}
@keyframes fGlide { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(-14px, -8px) rotate(1deg); } }

/* =========================================================
   3. Chọn bộ — mỗi thẻ có ô chọn rõ ràng, thẻ đã chọn được "dán băng"
   ========================================================= */
.combo { position: relative; isolation: isolate; overflow: hidden; }
.combo::before {                 /* chén mắm cắt rời trong sách, làm điểm nhấn góc */
  content: ""; position: absolute; z-index: -1; width: clamp(150px, 15vw, 230px); aspect-ratio: 474 / 385;
  left: max(-30px, calc(50% - 760px)); top: clamp(36px, 5vw, 70px); transform: rotate(-8deg);
  background: url("/api/v1/media/kpvh-am-thuc-cut-sauce.webp?v=20261031") center / contain no-repeat; opacity: .9;
}
.combo::after {
  content: ""; position: absolute; z-index: -1; width: clamp(160px, 16vw, 250px); aspect-ratio: 508 / 409;
  right: max(-40px, calc(50% - 780px)); top: clamp(20px, 3vw, 50px); transform: rotate(14deg);
  background: url("/api/v1/media/kpvh-am-thuc-cut-rice.webp?v=20261031") center / contain no-repeat; opacity: .55;
}
.opt { border-width: 1.5px; border-color: rgba(39, 39, 42, .1); box-shadow: 0 1px 0 rgba(60, 40, 20, .04); }
.opt::after {                   /* ô chọn */
  content: ""; position: absolute; top: 14px; right: 14px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); box-shadow: inset 0 0 0 2px rgba(39, 39, 42, .28), 0 4px 10px rgba(0, 0, 0, .12);
  transition: background .25s, box-shadow .25s, transform .35s var(--ease);
}
.opt:hover::after { box-shadow: inset 0 0 0 2px var(--accent), 0 4px 10px rgba(0, 0, 0, .12); }
.opt[aria-pressed="true"]::after {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 6px 14px rgba(168, 67, 47, .35); transform: scale(1.06);
}
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 22px 44px rgba(60, 40, 20, .14); }
.opt[aria-pressed="true"] .opt-body { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, #fff), #fff 70%); }
.opt[aria-pressed="true"]::before {   /* băng giấy dán ở mép trên */
  content: ""; position: absolute; z-index: 3; top: -9px; left: 50%; width: 92px; height: 22px; margin-left: -46px; transform: rotate(-3deg);
  background: rgba(244, 191, 58, .62); box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.opt { overflow: visible; }
.opt-img { border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.opt-name { font-size: 21px; }
.opt-price { font: 700 26px/1.1 var(--serif); letter-spacing: -.01em; }
.opt-items { gap: 4px; }
.combo-cta .btn { min-width: 240px; }
@media (max-width: 760px) {
  .combo::before { width: 96px; left: -22px; top: 18px; opacity: .8; }
  .combo::after { width: 110px; right: -30px; top: 6px; opacity: .4; }
  .opt::after { top: 10px; right: auto; left: 10px; width: 24px; height: 24px; }
  .opt[aria-pressed="true"]::after { background-size: 15px; }
  .opt-img { border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px); }
  .opt[aria-pressed="true"]::before { left: auto; right: 18px; margin: 0; width: 70px; height: 18px; }
  .opt-name { font-size: 18px; padding-right: 4px; }
  .opt-price { font-size: 21px; }
}

/* =========================================================
   4. "Vì sao bố mẹ chọn" — vừa khít một màn hình, chấm chuyển nhanh
   ========================================================= */
@media (min-width: 761px) {
  .ab-gallery .reason figure, .ab-gallery .reason:nth-child(even) figure {
    max-width: min(var(--max), calc((100svh - 330px) * 2));
  }
  .ab-gallery .reason { gap: clamp(20px, 2.4vw, 32px); }
}
.ab-gallery .reason figure { background: #fff; }
.ab-gallery .reason figure::after {   /* gáy sách giữa trang đôi */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent 46%, rgba(60, 40, 20, .1) 49.6%, rgba(255, 255, 255, .4) 50%, rgba(60, 40, 20, .1) 50.4%, transparent 54%);
}
.ab-gallery .reason figure { position: relative; }
.ab-gallery .reason .num {          /* số nhỏ nhường chỗ cho số lớn mờ phía sau */
  display: inline-block; width: auto; height: auto; padding: 0; background: none; border-radius: 0; margin-bottom: 6px;
  font: 400 20px/1 var(--hand); color: var(--accent);
}
.ab-gallery .reason .num::before { content: "№ "; opacity: .6; }
.ab-gallery .g-num { color: color-mix(in srgb, var(--accent) 6%, transparent); -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 12%, transparent); }

.g-foot { gap: 18px; flex-wrap: wrap; }
.g-dots { display: flex; gap: 4px; }
.g-dot { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.g-dot span { display: block; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: width .35s var(--ease), background .25s, border-radius .35s; }
.g-dot:hover span { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.g-dot.is-on span { width: 28px; border-radius: 6px; background: var(--accent); }
.g-dot:focus-visible { box-shadow: var(--ring); }
.ab-arrow { width: 48px; height: 48px; background: #fff; box-shadow: 0 4px 12px rgba(60, 40, 20, .08); }
@media (max-width: 760px) {
  .reasons.ab-gallery { padding-top: 8px; padding-bottom: 32px; }
  .ab-gallery > .sec-head { margin-top: 40px; margin-bottom: 22px; }
  .g-foot { justify-content: space-between; }
  .g-count { display: none; }
}

/* =========================================================
   5. "Hợp với tuổi nào" — thẻ loang màu nước, tuổi viết lớn
   ========================================================= */
.layer {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 40px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.layer:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(60, 40, 20, .1); }
.layer.kid {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(244, 191, 58, .28), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(168, 67, 47, .12), transparent 70%), var(--accent-soft);
}
.layer.adult {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(168, 196, 122, .45), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(29, 56, 47, .1), transparent 70%), var(--wash-green);
}
.layer::after {
  content: ""; position: absolute; z-index: -1; right: -10px; bottom: -14px; width: clamp(130px, 13vw, 190px); pointer-events: none; opacity: .95;
  transition: transform .8s var(--ease);
}
.layer.kid::after { aspect-ratio: 474 / 385; background: url("/api/v1/media/kpvh-am-thuc-cut-sauce.webp?v=20261031") center / contain no-repeat; transform: rotate(-6deg); }
.layer.adult::after { aspect-ratio: 508 / 409; background: url("/api/v1/media/kpvh-am-thuc-cut-rice.webp?v=20261031") center / contain no-repeat; transform: rotate(8deg); opacity: .8; }
.layer:hover::after { transform: rotate(0) translateY(-6px); }
.layer .who { font: 700 clamp(34px, 3.4vw, 46px)/1 var(--script); color: var(--accent); margin-bottom: 14px; }
.layer.adult .who { color: var(--moss); }
.layer h3 { font-size: clamp(21px, 2vw, 24px); margin-bottom: 14px; }
.layer ul { list-style: none; padding: 0; max-width: calc(100% - clamp(90px, 9vw, 140px)); }
.layer li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--ink-2); }
.layer li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50% 40% 55% 45%;
  background: var(--accent); opacity: .75; transform: rotate(18deg);
}
.layer.adult li::before { background: var(--moss); }
@media (max-width: 760px) {
  .layer::after { width: 96px; right: -12px; bottom: auto; top: 12px; }
  .layer ul { max-width: none; }
  .layer h3 { padding-right: 60px; }
}

/* =========================================================
   6. "Lật thử" — sách vừa màn hình, chồng giấy, góc trang cong,
      vạch chọn trang, chạm giữa sách để xem lớn
   ========================================================= */
@media (min-width: 761px) {
  .ab-shell { max-width: min(calc(var(--max) + 80px), calc((100svh - 300px) * 2 + 80px)); }
}
.ab-stage { position: relative; padding-bottom: 10px; }
.ab-book {
  cursor: zoom-in;
  box-shadow:
    0 1px 0 #F1E8D8, 0 3px 0 #E6DAC4, 0 5px 0 #F1E8D8, 0 7px 0 #DED0B6, 0 9px 0 #D3C3A6,
    0 26px 40px -6px rgba(60, 40, 20, .28), 0 50px 80px -30px rgba(60, 40, 20, .3);
}
.ab-book.dragging { cursor: grabbing; }
.ab-book::after {                 /* độ cong của trang giấy */
  content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .07) 0%, transparent 6%, transparent 38%, rgba(60, 40, 20, .1) 47%, rgba(255, 255, 255, .25) 50%, rgba(60, 40, 20, .1) 53%, transparent 62%, transparent 94%, rgba(0, 0, 0, .07) 100%);
}
.ab-tap { cursor: pointer; }
.ab-tap:hover:not(:disabled) { background: transparent; }
.ab-tap i {                       /* nút tròn gợi ý hướng lật */
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) center / 20px no-repeat; box-shadow: 0 6px 18px rgba(60, 40, 20, .18);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s var(--ease);
}
.ab-tap.prev i { left: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%2327272A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-tap.next i { right: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%2327272A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ab-tap:hover:not(:disabled) i, .ab-tap:focus-visible i { opacity: 1; transform: none; }
.ab-tap:disabled i { display: none; }
.ab-tap:focus-visible { box-shadow: none; }
.ab-tap.next::before {            /* góc trang cong khi rê chuột tới mép phải */
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-radius: 0 0 8px 0;
  background: linear-gradient(225deg, transparent 50%, #F3EADB 50%, #fff 70%, #E9DFCC 100%);
  box-shadow: -6px -6px 14px rgba(60, 40, 20, .18); transition: width .35s var(--ease), height .35s var(--ease);
}
.ab-book:not(.at-end):hover .ab-tap.next::before { width: 34px; height: 34px; }
.ab-tap.next:hover:not(:disabled)::before { width: 64px; height: 64px; }
.ab-zoom { z-index: 16; font-size: 19px; padding: 8px 16px; }
.ab-zoom::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%2357534E' stroke-width='2.2'/%3E%3Cpath d='M15.5 15.5L20 20M10.5 7.5v6M7.5 10.5h6' stroke='%2357534E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ab-cap { margin-top: 30px; font-size: 16px; }
.ab-cap b { font: 700 19px/1.3 var(--serif); }

.ab-ticks { display: flex; align-items: center; }
.ab-tick { all: unset; box-sizing: border-box; cursor: pointer; width: 26px; height: 44px; display: grid; place-items: center; }
.ab-tick span { display: block; width: 18px; height: 4px; border-radius: 3px; background: var(--beige); transition: background .25s, height .25s, transform .25s; }
.ab-tick.is-read span { background: color-mix(in srgb, var(--accent) 45%, var(--beige)); }
.ab-tick.is-on span { background: var(--accent); height: 8px; }
.ab-tick:hover span { transform: scaleY(1.6); background: color-mix(in srgb, var(--accent) 70%, var(--beige)); }
.ab-tick:disabled { cursor: progress; }
.ab-tick:focus-visible { box-shadow: var(--ring); border-radius: 6px; }
.ab-progress { gap: 10px; }
.ab-progress [data-ab-count] { font-variant-numeric: tabular-nums; min-width: 4.2em; }
@media (max-width: 760px) {
  .ab-nav { flex-wrap: wrap; row-gap: 4px; }
  .ab-progress { display: contents; }
  .ab-progress [data-ab-count] { order: 1; }
  .ab-arrows { order: 2; }
  .ab-ticks { order: 3; width: 100%; }
  .ab-tick { flex: 1 1 0; width: auto; min-width: 24px; }
  .ab-tick span { width: 100%; max-width: 30px; }
  .ab-tap i { display: none; }
  .ab-tap.next::before { display: none; }
  .ab-zoom { font-size: 16px; padding: 6px 12px; }
}
@media (hover: none) { .ab-tap i { display: none; } }

/* =========================================================
   7. "Thông tin sách" — con dấu giá
   ========================================================= */
.spec tr:nth-child(7) td { position: relative; }
.book-mockup .bm { will-change: transform; }

/* --- Ảnh sách thật: một ảnh lớn + ảnh nhỏ để đổi (20261101) --- */
.book-gallery { margin: 0; display: grid; gap: 16px; justify-items: center; }
.bg-stage {
  position: relative; isolation: isolate; width: 100%; max-width: 560px; aspect-ratio: 1;
}
.bg-stage::before {                 /* vệt màu nước sau sách */
  content: ""; position: absolute; z-index: -1; inset: 8% 6% 4%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background:
    radial-gradient(60% 60% at 30% 35%, rgba(244, 191, 58, .28), transparent 70%),
    radial-gradient(60% 65% at 72% 70%, rgba(168, 67, 47, .14), transparent 72%),
    radial-gradient(70% 70% at 50% 50%, rgba(168, 196, 122, .22), transparent 75%);
  filter: blur(4px);
}
.bg-main { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(60, 40, 20, .2)); transition: opacity .25s ease, transform .5s var(--ease); }
.bg-main.is-out { opacity: 0; transform: scale(.97); }
.bg-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bg-thumb {
  all: unset; box-sizing: border-box; cursor: pointer; width: 72px; height: 72px; padding: 4px; border-radius: 12px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1.5px rgba(39, 39, 42, .1);
  transition: box-shadow .25s, transform .35s var(--ease), background .25s;
}
.bg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bg-thumb:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 50%, transparent); }
.bg-thumb[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.bg-thumb:focus-visible { box-shadow: var(--ring); }
@media (max-width: 960px) { .book-gallery { order: -1; } }
@media (max-width: 760px) {
  .bg-stage { max-width: 380px; }
  .bg-thumbs { gap: 8px; }
  .bg-thumb { width: 58px; height: 58px; }
}

/* --- Hero: tranh cắt nền trong suốt (kpvh-am-thuc-hero-v2) — không cắt khung, không bo góc --- */
.hero-art img { object-fit: contain; object-position: center; border-radius: 0; }
.hero-art::after { width: 22%; left: auto; right: -1%; bottom: auto; top: 2%; }          /* bát phở: góc trên phải, chỗ trống của tranh */
.hero-art .tag { left: -14%; right: auto; top: 5%; bottom: auto; }                          /* lời mời cơm: khoảng trống bên trái, không che mặt ai */
@media (max-width: 760px) {
  .hero-art::after { width: 24%; right: 2%; left: auto; top: 0; bottom: auto; }
  .hero-art .tag { left: auto; right: 3%; top: auto; bottom: 1%; white-space: nowrap; font-size: 15px; padding: 6px 10px; }
}

/* =========================================================
   8. Đặt hàng — nền xanh rêu loang màu, cột hướng dẫn dính, thẻ "phiếu"
   ========================================================= */
.order {
  position: relative; isolation: isolate; overflow: clip; color: #F3EEE2;
  background:
    radial-gradient(40% 60% at 8% 10%, rgba(168, 196, 122, .22), transparent 70%),
    radial-gradient(45% 55% at 92% 95%, rgba(244, 191, 58, .14), transparent 70%),
    radial-gradient(30% 40% at 60% 30%, rgba(168, 67, 47, .14), transparent 70%), var(--moss);
}
.order::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .16; background: var(--grain); mix-blend-mode: soft-light;
}
.order .lead, .steps li { color: #D7D2C4; }
.order h2::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C18 3.5 34 9 52 6.2S88 2.6 118 5.4' fill='none' stroke='%23F4BF3A' stroke-width='3.2' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E"); }
@media (min-width: 961px) { .order-grid > div:first-child { position: sticky; top: 112px; } }
.steps li { padding-bottom: 22px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px; width: 0; border-left: 2px dashed rgba(244, 191, 58, .4);
}
.steps li::before { box-shadow: 0 0 0 5px rgba(244, 191, 58, .16); }

.order-card { position: relative; border-radius: 20px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.order-card::before {           /* hai mẩu băng giấy giữ phiếu */
  content: ""; position: absolute; top: -12px; left: 34px; width: 90px; height: 24px; transform: rotate(-5deg);
  background: rgba(244, 191, 58, .72); box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.order-card::after {
  content: ""; position: absolute; top: -10px; right: 40px; width: 70px; height: 22px; transform: rotate(6deg);
  background: rgba(168, 196, 122, .75); box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.field label { font-size: 14.5px; }
.field input, .field select, .field textarea, .qty {
  border: 1.5px solid rgba(39, 39, 42, .16); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(39, 39, 42, .32); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-radius: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #B42318; background: #FFF6F4; box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.form-msg.err { font-weight: 600; padding: 10px 14px; border-radius: 10px; background: #FEF1EF; }
@keyframes fShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#order-form.shake .btn-primary { animation: fShake .4s ease; }
.qty { overflow: hidden; }
.qty button { width: 52px; transition: background .2s, color .2s; }
.qty button:hover { background: var(--paper-2); color: var(--accent); }
.qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.qty input, .qty input:hover, .qty input:focus { border: 0; box-shadow: none; background: transparent; }
.qty input:focus-visible { box-shadow: none; }
.field.has-thumb { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.field.has-thumb > label { grid-column: 1 / -1; }
.opt-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper-2); box-shadow: 0 0 0 1.5px rgba(39, 39, 42, .1); }
.opt-thumb.pop { animation: fPop .45s var(--ease); }
@keyframes fPop { from { transform: scale(.8) rotate(-6deg); opacity: .4; } to { transform: none; opacity: 1; } }
.sum { background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(39, 39, 42, .035) 27px 28px), var(--paper-2); }
.sum .total { font-size: 19px; }
.sum .total span:last-child { font-family: var(--serif); font-size: 22px; }
.order-card .btn { min-height: 54px; font-size: 17px; }
.policy { color: var(--muted); }
.pay { scroll-margin-top: 140px; }
.pay h3 { font-size: 26px; }
.pay h3::before {
  content: ""; display: block; width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23A8432F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat;
  animation: fPop .6s var(--ease) both;
}
#pay-code { font: 700 22px/1.2 var(--serif); letter-spacing: .04em; color: var(--accent); }

/* =========================================================
   9. Cùng bộ, Hỏi đáp, chân trang
   ========================================================= */
.series .now { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.series .now::before { left: 30%; right: 0; background-position: 62% 38%; background-size: auto 150%; }
.series .now::after { background: linear-gradient(90deg, var(--paper) 34%, transparent 44%); }
.series .now b { color: var(--ink); }
@media (max-width: 760px) {
  .series .now::before { left: 26%; right: 0; background-position: 60% 36%; background-size: auto 140%; }
  .series .now::after { background: linear-gradient(90deg, var(--paper) 30%, color-mix(in srgb, var(--paper) 60%, transparent) 46%, transparent 62%); }
}
.series > div { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.foot-col a, .foot-col span { padding: 4px 0; }
.foot-col a { min-height: 32px; display: inline-flex; align-items: center; }

/* Chân trang nối liền phần cuối của main: bỏ lề 40px của khuôn (lộ nền trắng của body),
   nét sóng xanh ở mép trên phủ thẳng lên nền section Hỏi đáp */
.foot { margin-top: 0; }
.foot::before { z-index: 1; }

/* Chân trang: không còn dòng nguồn dưới câu trích, giữ khoảng cách tới logo */
.foot-quote { margin-bottom: 22px; }

/* Thanh mua dính đáy (mobile): kính mờ */
.sticky-cta { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.sticky-cta .btn { min-height: 48px; }

/* Lightbox */
.lightbox { background: rgba(24, 20, 16, .92); }
.lightbox .lb-cap { font-size: 15px; }
.lightbox button { width: 48px; height: 48px; transition: background .2s, transform .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox button:focus-visible { box-shadow: 0 0 0 3px var(--gold); }

/* =========================================================
   9b. Hỏi đáp — như một trang sách, không dùng thẻ nền trắng (20261101)
   Câu hỏi nằm thẳng trên nền giấy của section, ngăn bằng nét cọ vẽ tay,
   số thứ tự viết tay; câu đang mở có vệt màu nước loang phía sau.
   ========================================================= */
.faq { gap: 0; counter-reset: faq; position: relative; }
.faq::before { content: ""; display: block; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C90 2.5 170 8 280 5.2S470 2 560 5.6 720 8.4 798 4.8' fill='none' stroke='%2357534E' stroke-width='1.6' stroke-linecap='round' opacity='.32'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.faq details, .faq details:first-child, .faq details:hover, .faq details[open], .faq details[open]:hover {
  counter-increment: faq; position: relative; isolation: isolate; scroll-margin-top: 110px;
  padding: 0 0 10px; margin: 0; border: 0; border-radius: 0; box-shadow: none; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5.5C90 2.5 170 8 280 5.2S470 2 560 5.6 720 8.4 798 4.8' fill='none' stroke='%2357534E' stroke-width='1.6' stroke-linecap='round' opacity='.32'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
}
.faq details::after {                 /* vệt màu nước */
  content: ""; position: absolute; z-index: -1; inset: 8px -28px 14px; pointer-events: none;
  border-radius: 46% 54% 42% 58% / 56% 44% 58% 42%;
  background:
    radial-gradient(55% 80% at 12% 35%, rgba(244, 191, 58, .26), transparent 70%),
    radial-gradient(60% 90% at 88% 70%, rgba(168, 67, 47, .13), transparent 72%),
    radial-gradient(70% 70% at 50% 50%, rgba(255, 253, 246, .7), transparent 75%);
  filter: blur(2px); opacity: 0; transform: scale(.97);
  transition: opacity .45s ease, transform .6s var(--ease);
}
@media (hover: hover) { .faq details:hover::after { opacity: .45; transform: none; } }
.faq details[open]::after { opacity: 1; transform: none; }
.faq summary {
  position: relative; min-height: 44px; padding: 24px 60px 24px 56px; color: var(--ink);
  font: 700 clamp(19px, 1.8vw, 22px)/1.4 var(--serif); letter-spacing: -.005em;
}
.faq summary::before {
  content: counter(faq, decimal-leading-zero); position: absolute; left: 0; top: 50%; transform: translateY(-52%);
  font: 400 26px/1 var(--hand); color: var(--accent); opacity: .75;
}
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
.faq summary:focus-visible { box-shadow: none; }
.faq details:has(summary:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.faq summary::after, .faq details[open] summary::after {
  content: ""; right: 4px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  transition: transform .4s var(--ease), background-color .25s, box-shadow .25s;
}
.faq summary::after {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%2327272A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(39, 39, 42, .35); transform: none;
}
@media (hover: hover) { .faq summary:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); background-color: rgba(255, 253, 246, .6); } }
.faq details[open] summary::after {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 6px 14px rgba(168, 67, 47, .28); transform: rotate(45deg);
}
.faq details p {
  margin: 0; padding: 0 60px 22px 56px; border: 0;
  font-size: 17px; line-height: 1.7; color: var(--ink-2);
}
/* Mở/đóng trượt mềm (trình duyệt hỗ trợ ::details-content) */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 760px) {
  .faq details::after { inset: 6px -12px 12px; }
  .faq summary { padding: 20px 50px 20px 40px; font-size: 18px; }
  .faq summary::before { font-size: 22px; }
  .faq summary::after, .faq details[open] summary::after { right: 0; width: 32px; height: 32px; margin-top: -16px; }
  .faq details p { padding: 0 8px 20px 40px; font-size: 16px; }
}

/* =========================================================
   10. Giảm chuyển động
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero .wrap > div:first-child > *, .hero-art img, .hero-art .tag, .hero .wrap::after, .hero-art::after,
  .opt-thumb.pop, .pay h3::before, #order-form.shake .btn-primary { animation: none !important; }
  .hero-art img { -webkit-mask-image: none; mask-image: none; }
  .layer, .layer::after, .ab-tap i, .ab-tap.next::before { transition: none; }
  .faq details::details-content { transition: none; }
}

/* =========================================================
   11. Nền loang mềm (20261101)
   Mọi vệt màu dùng chuyển màu nhiều bậc, giảm dần như màu nước thấm giấy;
   vệt rộng hơn, tâm nhạt hơn, không còn mép cứng ở điểm "transparent 70%".
   ========================================================= */
/* Thanh trên + chân trang (ghi đè khuôn) */
.topbar {
  background:
    radial-gradient(75% 190% at 4% 0%, rgba(201, 224, 150, 0.4) 0%, rgba(201, 224, 150, 0.32) 14%, rgba(201, 224, 150, 0.232) 28%, rgba(201, 224, 150, 0.152) 42%, rgba(201, 224, 150, 0.084) 56%, rgba(201, 224, 150, 0.036) 70%, rgba(201, 224, 150, 0.01) 84%, rgba(201, 224, 150, 0.0) 100%),
    radial-gradient(55% 170% at 98% 100%, rgba(244, 191, 58, 0.14) 0%, rgba(244, 191, 58, 0.112) 14%, rgba(244, 191, 58, 0.081) 28%, rgba(244, 191, 58, 0.053) 42%, rgba(244, 191, 58, 0.029) 56%, rgba(244, 191, 58, 0.013) 70%, rgba(244, 191, 58, 0.004) 84%, rgba(244, 191, 58, 0.0) 100%),
    color-mix(in srgb, var(--paper) 94%, transparent);
}
.foot {
  background:
    radial-gradient(70% 85% at 12% 25%, rgba(201, 224, 150, 0.34) 0%, rgba(201, 224, 150, 0.272) 14%, rgba(201, 224, 150, 0.197) 28%, rgba(201, 224, 150, 0.129) 42%, rgba(201, 224, 150, 0.071) 56%, rgba(201, 224, 150, 0.031) 70%, rgba(201, 224, 150, 0.009) 84%, rgba(201, 224, 150, 0.0) 100%),
    radial-gradient(60% 75% at 72% 90%, rgba(244, 191, 58, 0.14) 0%, rgba(244, 191, 58, 0.112) 14%, rgba(244, 191, 58, 0.081) 28%, rgba(244, 191, 58, 0.053) 42%, rgba(244, 191, 58, 0.029) 56%, rgba(244, 191, 58, 0.013) 70%, rgba(244, 191, 58, 0.004) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(50% 60% at 95% 10%, rgba(168, 196, 122, 0.16) 0%, rgba(168, 196, 122, 0.128) 14%, rgba(168, 196, 122, 0.093) 28%, rgba(168, 196, 122, 0.061) 42%, rgba(168, 196, 122, 0.034) 56%, rgba(168, 196, 122, 0.014) 70%, rgba(168, 196, 122, 0.004) 84%, rgba(168, 196, 122, 0.0) 100%),
    var(--wash-green);
}
/* Hero: chấm vàng sau dấu tick, phiếu giá */
.hero-ticks li::after { left: -6px; top: -.1em; width: 32px; height: 32px; background: radial-gradient(circle at 42% 42%, rgba(244, 191, 58, 0.3) 0%, rgba(244, 191, 58, 0.24) 14%, rgba(244, 191, 58, 0.174) 28%, rgba(244, 191, 58, 0.114) 42%, rgba(244, 191, 58, 0.063) 56%, rgba(244, 191, 58, 0.027) 70%, rgba(244, 191, 58, 0.007) 84%, rgba(244, 191, 58, 0.0) 100%); }
.price-box {
  background:
    radial-gradient(85% 150% at 0% 0%, rgba(247, 230, 221, 0.95) 0%, rgba(247, 230, 221, 0.76) 14%, rgba(247, 230, 221, 0.551) 28%, rgba(247, 230, 221, 0.361) 42%, rgba(247, 230, 221, 0.199) 56%, rgba(247, 230, 221, 0.085) 70%, rgba(247, 230, 221, 0.024) 84%, rgba(247, 230, 221, 0.0) 100%),
    radial-gradient(60% 120% at 100% 100%, rgba(244, 191, 58, 0.1) 0%, rgba(244, 191, 58, 0.08) 14%, rgba(244, 191, 58, 0.058) 28%, rgba(244, 191, 58, 0.038) 42%, rgba(244, 191, 58, 0.021) 56%, rgba(244, 191, 58, 0.009) 70%, rgba(244, 191, 58, 0.003) 84%, rgba(244, 191, 58, 0.0) 100%), #fff;
}
/* Thẻ "Chọn bộ" đang chọn */
.opt[aria-pressed="true"] .opt-body {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-soft) 50%, #fff) 0%, color-mix(in srgb, var(--accent-soft) 34%, #fff) 22%,
    color-mix(in srgb, var(--accent-soft) 16%, #fff) 48%, color-mix(in srgb, var(--accent-soft) 5%, #fff) 72%, #fff 100%);
}
/* Thẻ theo tuổi */
.layer.kid {
  background:
    radial-gradient(80% 95% at 100% 0%, rgba(244, 191, 58, 0.26) 0%, rgba(244, 191, 58, 0.208) 14%, rgba(244, 191, 58, 0.151) 28%, rgba(244, 191, 58, 0.099) 42%, rgba(244, 191, 58, 0.055) 56%, rgba(244, 191, 58, 0.023) 70%, rgba(244, 191, 58, 0.007) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(85% 95% at 0% 100%, rgba(168, 67, 47, 0.1) 0%, rgba(168, 67, 47, 0.08) 14%, rgba(168, 67, 47, 0.058) 28%, rgba(168, 67, 47, 0.038) 42%, rgba(168, 67, 47, 0.021) 56%, rgba(168, 67, 47, 0.009) 70%, rgba(168, 67, 47, 0.003) 84%, rgba(168, 67, 47, 0.0) 100%),
    radial-gradient(60% 70% at 40% 40%, rgba(255, 253, 246, 0.5) 0%, rgba(255, 253, 246, 0.4) 14%, rgba(255, 253, 246, 0.29) 28%, rgba(255, 253, 246, 0.19) 42%, rgba(255, 253, 246, 0.105) 56%, rgba(255, 253, 246, 0.045) 70%, rgba(255, 253, 246, 0.013) 84%, rgba(255, 253, 246, 0.0) 100%), var(--accent-soft);
}
.layer.adult {
  background:
    radial-gradient(80% 95% at 100% 0%, rgba(168, 196, 122, 0.4) 0%, rgba(168, 196, 122, 0.32) 14%, rgba(168, 196, 122, 0.232) 28%, rgba(168, 196, 122, 0.152) 42%, rgba(168, 196, 122, 0.084) 56%, rgba(168, 196, 122, 0.036) 70%, rgba(168, 196, 122, 0.01) 84%, rgba(168, 196, 122, 0.0) 100%),
    radial-gradient(85% 95% at 0% 100%, rgba(29, 56, 47, 0.08) 0%, rgba(29, 56, 47, 0.064) 14%, rgba(29, 56, 47, 0.046) 28%, rgba(29, 56, 47, 0.03) 42%, rgba(29, 56, 47, 0.017) 56%, rgba(29, 56, 47, 0.007) 70%, rgba(29, 56, 47, 0.002) 84%, rgba(29, 56, 47, 0.0) 100%),
    radial-gradient(60% 70% at 40% 40%, rgba(255, 253, 246, 0.5) 0%, rgba(255, 253, 246, 0.4) 14%, rgba(255, 253, 246, 0.29) 28%, rgba(255, 253, 246, 0.19) 42%, rgba(255, 253, 246, 0.105) 56%, rgba(255, 253, 246, 0.045) 70%, rgba(255, 253, 246, 0.013) 84%, rgba(255, 253, 246, 0.0) 100%), var(--wash-green);
}
/* Ảnh sách "Về cuốn sách" */
.bg-stage::before {
  inset: 2% 0 0; filter: blur(10px);
  background:
    radial-gradient(70% 70% at 32% 36%, rgba(244, 191, 58, 0.26) 0%, rgba(244, 191, 58, 0.208) 14%, rgba(244, 191, 58, 0.151) 28%, rgba(244, 191, 58, 0.099) 42%, rgba(244, 191, 58, 0.055) 56%, rgba(244, 191, 58, 0.023) 70%, rgba(244, 191, 58, 0.007) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(70% 75% at 72% 70%, rgba(168, 67, 47, 0.12) 0%, rgba(168, 67, 47, 0.096) 14%, rgba(168, 67, 47, 0.07) 28%, rgba(168, 67, 47, 0.046) 42%, rgba(168, 67, 47, 0.025) 56%, rgba(168, 67, 47, 0.011) 70%, rgba(168, 67, 47, 0.003) 84%, rgba(168, 67, 47, 0.0) 100%),
    radial-gradient(85% 85% at 50% 50%, rgba(168, 196, 122, 0.2) 0%, rgba(168, 196, 122, 0.16) 14%, rgba(168, 196, 122, 0.116) 28%, rgba(168, 196, 122, 0.076) 42%, rgba(168, 196, 122, 0.042) 56%, rgba(168, 196, 122, 0.018) 70%, rgba(168, 196, 122, 0.005) 84%, rgba(168, 196, 122, 0.0) 100%);
}
/* Đặt hàng: nền xanh rêu */
.order {
  background:
    radial-gradient(60% 80% at 6% 8%, rgba(168, 196, 122, 0.2) 0%, rgba(168, 196, 122, 0.16) 14%, rgba(168, 196, 122, 0.116) 28%, rgba(168, 196, 122, 0.076) 42%, rgba(168, 196, 122, 0.042) 56%, rgba(168, 196, 122, 0.018) 70%, rgba(168, 196, 122, 0.005) 84%, rgba(168, 196, 122, 0.0) 100%),
    radial-gradient(60% 75% at 94% 96%, rgba(244, 191, 58, 0.13) 0%, rgba(244, 191, 58, 0.104) 14%, rgba(244, 191, 58, 0.075) 28%, rgba(244, 191, 58, 0.049) 42%, rgba(244, 191, 58, 0.027) 56%, rgba(244, 191, 58, 0.012) 70%, rgba(244, 191, 58, 0.003) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(45% 55% at 60% 30%, rgba(168, 67, 47, 0.12) 0%, rgba(168, 67, 47, 0.096) 14%, rgba(168, 67, 47, 0.07) 28%, rgba(168, 67, 47, 0.046) 42%, rgba(168, 67, 47, 0.025) 56%, rgba(168, 67, 47, 0.011) 70%, rgba(168, 67, 47, 0.003) 84%, rgba(168, 67, 47, 0.0) 100%), var(--moss);
}
/* Hỏi đáp: vệt màu nước sau câu đang mở */
.faq details::after {
  inset: -6px -48px 0; border-radius: 0; filter: blur(6px);
  background:
    radial-gradient(60% 95% at 14% 40%, rgba(244, 191, 58, 0.24) 0%, rgba(244, 191, 58, 0.192) 14%, rgba(244, 191, 58, 0.139) 28%, rgba(244, 191, 58, 0.091) 42%, rgba(244, 191, 58, 0.05) 56%, rgba(244, 191, 58, 0.022) 70%, rgba(244, 191, 58, 0.006) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(60% 100% at 86% 68%, rgba(168, 67, 47, 0.11) 0%, rgba(168, 67, 47, 0.088) 14%, rgba(168, 67, 47, 0.064) 28%, rgba(168, 67, 47, 0.042) 42%, rgba(168, 67, 47, 0.023) 56%, rgba(168, 67, 47, 0.01) 70%, rgba(168, 67, 47, 0.003) 84%, rgba(168, 67, 47, 0.0) 100%),
    radial-gradient(80% 90% at 50% 50%, rgba(255, 253, 246, 0.6) 0%, rgba(255, 253, 246, 0.48) 14%, rgba(255, 253, 246, 0.348) 28%, rgba(255, 253, 246, 0.228) 42%, rgba(255, 253, 246, 0.126) 56%, rgba(255, 253, 246, 0.054) 70%, rgba(255, 253, 246, 0.015) 84%, rgba(255, 253, 246, 0.0) 100%);
}
@media (max-width: 760px) { .faq details::after { inset: -4px -16px 0; } }
/* Cùng bộ: tranh Ẩm thực tan vào nền giấy; thẻ Tết */
.series .now::after {
  background: linear-gradient(90deg, var(--paper) 28%, color-mix(in srgb, var(--paper) 82%, transparent) 36%,
    color-mix(in srgb, var(--paper) 55%, transparent) 44%, color-mix(in srgb, var(--paper) 25%, transparent) 52%,
    color-mix(in srgb, var(--paper) 7%, transparent) 60%, transparent 68%);
}
.series .now + div {
  background:
    radial-gradient(circle at 82% 22%, rgba(244, 191, 58, .32) 0 3px, transparent 4px) 0 0 / 34px 34px,
    radial-gradient(110% 100% at 100% 0%, rgba(214, 69, 50, 0.14) 0%, rgba(214, 69, 50, 0.112) 14%, rgba(214, 69, 50, 0.081) 28%, rgba(214, 69, 50, 0.053) 42%, rgba(214, 69, 50, 0.029) 56%, rgba(214, 69, 50, 0.013) 70%, rgba(214, 69, 50, 0.004) 84%, rgba(214, 69, 50, 0.0) 100%),
    radial-gradient(95% 90% at 0% 100%, rgba(244, 191, 58, 0.17) 0%, rgba(244, 191, 58, 0.136) 14%, rgba(244, 191, 58, 0.099) 28%, rgba(244, 191, 58, 0.065) 42%, rgba(244, 191, 58, 0.036) 56%, rgba(244, 191, 58, 0.015) 70%, rgba(244, 191, 58, 0.004) 84%, rgba(244, 191, 58, 0.0) 100%), #FFFBF3;
}
@media (max-width: 760px) {
  .series .now::after {
    background: linear-gradient(90deg, var(--paper) 24%, color-mix(in srgb, var(--paper) 80%, transparent) 34%,
      color-mix(in srgb, var(--paper) 50%, transparent) 44%, color-mix(in srgb, var(--paper) 20%, transparent) 54%, transparent 66%);
  }
}
/* Viền vệt màu tan dần (không lộ mép khối) */
.faq details::after, .bg-stage::before {
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, .2) 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, .2) 82%, transparent 100%);
}
.faq details::after { inset: -14px -90px -6px; }
@media (max-width: 760px) { .faq details::after { inset: -10px -30px -4px; } }
/* Mép trên chân trang trùng màu nét sóng, rồi mới loang */
.foot { background-image: linear-gradient(180deg, var(--wash-green) 0, color-mix(in srgb, var(--wash-green) 60%, transparent) 40px, transparent 110px), radial-gradient(70% 85% at 12% 25%, rgba(201, 224, 150, 0.34) 0%, rgba(201, 224, 150, 0.272) 14%, rgba(201, 224, 150, 0.197) 28%, rgba(201, 224, 150, 0.129) 42%, rgba(201, 224, 150, 0.071) 56%, rgba(201, 224, 150, 0.031) 70%, rgba(201, 224, 150, 0.009) 84%, rgba(201, 224, 150, 0.0) 100%),
    radial-gradient(60% 75% at 72% 90%, rgba(244, 191, 58, 0.14) 0%, rgba(244, 191, 58, 0.112) 14%, rgba(244, 191, 58, 0.081) 28%, rgba(244, 191, 58, 0.053) 42%, rgba(244, 191, 58, 0.029) 56%, rgba(244, 191, 58, 0.013) 70%, rgba(244, 191, 58, 0.004) 84%, rgba(244, 191, 58, 0.0) 100%),
    radial-gradient(50% 60% at 95% 10%, rgba(168, 196, 122, 0.16) 0%, rgba(168, 196, 122, 0.128) 14%, rgba(168, 196, 122, 0.093) 28%, rgba(168, 196, 122, 0.061) 42%, rgba(168, 196, 122, 0.034) 56%, rgba(168, 196, 122, 0.014) 70%, rgba(168, 196, 122, 0.004) 84%, rgba(168, 196, 122, 0.0) 100%);
}
#hoi-dap { overflow-x: clip; }

/* =========================================================
   12. Thẻ "Chọn bộ" — sửa lỗi UI (20261101)
   ========================================================= */
/* Nền thẻ đang chọn bo theo góc thẻ — không che viền đỏ ở hai góc dưới */
.opt-body { border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); }
/* Ảnh nền trắng (tranh Sách lẻ) không làm chìm viền thẻ */
.opt-img { box-shadow: inset 0 -1px 0 rgba(39, 39, 42, .06); }
.opt { border-color: rgba(39, 39, 42, .13); }
/* Ô chọn rõ trên mọi nền ảnh */
.opt::after { box-shadow: inset 0 0 0 2px rgba(39, 39, 42, .4), 0 0 0 3px rgba(255, 255, 255, .7), 0 4px 10px rgba(0, 0, 0, .14); }
@media (hover: hover) { .opt:hover::after { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px rgba(255, 255, 255, .7), 0 4px 10px rgba(0, 0, 0, .14); } }

@media (max-width: 760px) {
  /* Ảnh vuông cố định, canh trên — ba thẻ cùng một nhịp */
  .opt { align-items: flex-start; padding: 10px; }
  .opt-img { width: 96px; height: 96px; aspect-ratio: 1; align-self: flex-start; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(39, 39, 42, .08); }
  .opt-body { padding: 2px 40px 4px 14px; border-radius: 0; background: none; }
  /* Thẻ đang chọn: tô nền cả thẻ thay vì riêng phần chữ */
  .opt[aria-pressed="true"] { background: linear-gradient(90deg, #fff 0%, color-mix(in srgb, var(--accent-soft) 18%, #fff) 40%, color-mix(in srgb, var(--accent-soft) 45%, #fff) 100%); }
  .opt[aria-pressed="true"] .opt-body { background: none; }
  /* Ô chọn chuyển sang góc phải, không đè lên ảnh */
  .opt::after { left: auto; right: 12px; top: 12px; width: 24px; height: 24px; }
  .opt[aria-pressed="true"]::before { left: 22px; right: auto; width: 64px; height: 18px; top: -8px; }
  .opt-check { padding-top: 4px; }
}

/* =========================================================
   13. Danh sách món trong thẻ "Chọn bộ" — đồng nhất 3 thẻ (20261101)
   Mọi món cùng một dấu tick, cùng cỡ chữ, dòng xuống hàng thụt thẳng;
   ghi chú giá lẻ tách thành nhãn nhỏ, không lẫn vào danh sách.
   ========================================================= */
.opt-items {
  gap: 7px; margin-top: 6px; padding-top: 12px;
  border-top: 1px dashed rgba(39, 39, 42, .14);
}
.opt-items span { position: relative; display: block; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.opt-items span::before, .opt-items span + span::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%23A8432F' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  color: transparent; font-size: 0;
}
.opt-note {
  align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); font-size: 12.5px; line-height: 1.3; color: var(--muted);
}
.opt[aria-pressed="true"] .opt-note { background: rgba(255, 255, 255, .75); }
@media (max-width: 760px) {
  .opt-items { margin-top: 4px; padding-top: 8px; gap: 5px; }
  .opt-items span { font-size: 14px; padding-left: 24px; }
  .opt-items span::before, .opt-items span + span::before { width: 16px; height: 16px; background-size: 10px; }
}

/* =========================================================
   14. Hero — phiếu giá (20261101)
   Vừa khít nội dung thay vì kéo hết cột; giá | mô tả ngăn bằng đường xé
   gạch đứt có hai vết khuyết như cuống vé; mô tả tự xuống dòng (bỏ <br> cứng).
   ========================================================= */
.price-box {
  display: inline-flex; flex-wrap: nowrap; align-items: stretch; gap: 0; width: auto; max-width: 100%;
  padding: 0; margin-bottom: 22px; border-radius: 16px;
}
.price-box > div:first-child { display: flex; flex-direction: column; justify-content: center; padding: 16px 24px 16px 22px; }
.price-box .p-label { font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.price-box .p-now { font-size: 34px; line-height: 1; white-space: nowrap; }
.price-box .p-meta {
  position: relative; display: flex; align-items: center; max-width: 230px; padding: 16px 22px 16px 24px;
  border-left: 1.5px dashed rgba(168, 67, 47, .3); font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
}
.price-box .p-meta::before, .price-box .p-meta::after {   /* vết khuyết cuống vé */
  content: ""; position: absolute; left: -9.75px; width: 18px; height: 9px; background: var(--paper);
}
.price-box .p-meta::before { top: 0; border-radius: 0 0 9px 9px; box-shadow: inset 0 -1.5px 2px rgba(60, 40, 20, .1); }
.price-box .p-meta::after { bottom: 0; border-radius: 9px 9px 0 0; box-shadow: inset 0 1.5px 2px rgba(60, 40, 20, .1); }
.price-box::before { left: 18px; }
.cta-row { clear: both; }
@media (max-width: 760px) {
  .price-box { display: flex; width: 100%; }
  .price-box > div:first-child { padding: 14px 18px 14px 18px; flex: none; }
  .price-box .p-now { font-size: 30px; }
  .price-box .p-meta { width: auto; max-width: none; flex: 1 1 auto; border-left: 1.5px dashed rgba(168, 67, 47, .3); padding: 14px 16px 14px 18px; font-size: 14px; }
}

/* =========================================================
   15. Không cho nắm kéo hình ảnh ra khỏi trang (20261101)
   ========================================================= */
img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* =========================================================
   16. Lightbox lật được bằng tay (20261101)
   ========================================================= */
.lightbox img { touch-action: none; user-select: none; }
.lbf.lbf-drag .ab-half { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lbf.lbf-drag .ab-leaf { will-change: transform; }
/* Nút ‹ › không đè lên mép tranh — mép tranh là chỗ nắm để lật */
.lightbox { padding: 64px 84px 64px; }
.lightbox .lb-prev { left: 18px; } .lightbox .lb-next { right: 18px; }
@media (max-width: 760px) {
  .lightbox { padding: 64px 12px 120px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 58px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); }
  .lightbox .lb-cap { bottom: 14px; padding: 0 20px; }
}
.lightbox button:focus-visible { border-radius: 50%; }
@media (max-width: 760px) {
  .lightbox { padding-bottom: 150px; }
  .lightbox .lb-prev, .lightbox .lb-next { bottom: 84px; }
}

/* "Vì sao bố mẹ chọn": bỏ vệt gáy sách giữa ảnh (20261101) */
.ab-gallery .reason figure::after { content: none; }

/* TẠM ẨN section "Cùng bộ — Khám phá văn hoá Việt Nam" (20261101). Xoá dòng dưới để hiện lại. */
section:has(> .wrap > .series) { display: none; }
#hoi-dap > .wrap { border-top: 0; }

/* Chân trang: cụm món ăn to hơn (20261101) */
.foot .wrap.foot-grid { grid-template-columns: 1.3fr .7fr .7fr 1.6fr; align-items: start; }
.foot-art { align-self: center; }
.foot-art { max-width: 520px; width: 100%; margin: -40px -20px -40px 0; }
@media (max-width: 960px) {
  .foot .wrap.foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-art { max-width: 420px; margin: -10px auto -20px; }
}
@media (max-width: 760px) { .foot-art { max-width: 340px; } }
