/* ============ Hạt Cải — landing page (thiết kế lại 19/11/2026) ============
 * Bảng màu theo bộ nhận diện (skill brand-assets): xanh lá hạt cải, kem, giấy, vàng hạt, mực.
 * --accent đổi theo mùa phụng vụ (app.js) — CHỈ dùng cho thanh trên cùng & chip mùa, không dùng cho chữ.
 */
:root {
  --green: #2E5A44;
  --green-deep: #1F3F30;
  --green-ink: #183226;
  --green-soft: #E3ECE5;
  --cream: #F6EEDC;
  --parchment: #F3ECDF;
  --paper: #FBF8F2;
  --white: #FFFDF9;
  --gold: #D9B65C;
  --gold-ink: #9C7A2E;
  --gold-soft: #F1E3BC;
  --ink: #1F1A16;
  --ink-soft: #5E554C;
  --ink-mute: #8A8076;
  --line: #E6DCCB;
  --accent: #2F6B4F;          /* mùa phụng vụ (app.js) */
  --accent-soft: #E1EDE5;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(31,26,22,.06);
  --shadow: 0 1px 2px rgba(31,26,22,.05), 0 12px 32px -14px rgba(31,26,22,.22);
  --shadow-lg: 0 2px 4px rgba(31,26,22,.05), 0 30px 60px -28px rgba(31,26,22,.35);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-mute); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--gold); }
/* tiêu đề lớn: Cormorant; tiêu đề nhỏ (h3): sans đậm — dấu tiếng Việt rõ ở cỡ nhỏ */
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.012em; color: var(--green-ink); text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.lead { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--ink-soft); text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(31,63,48,.7); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 14px 28px -14px rgba(31,63,48,.8); }
.btn-ghost { background: transparent; border-color: rgba(31,63,48,.28); color: var(--green-ink); }
.btn-ghost:hover { background: var(--white); border-color: var(--green); }
.btn-gold { background: var(--gold); color: var(--green-ink); }
.btn-gold:hover { background: #E4C46F; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  background: var(--green-deep); color: #E9F0EA; font-size: 13.5px; text-align: center; padding: 8px 16px;
}
.topbar strong { font-weight: 600; color: var(--gold); }
.tb-season { display: inline-flex; align-items: center; gap: 8px; }
.season-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.18); filter: brightness(1.5) saturate(1.1); }
header.site {
  position: sticky; top: 0; z-index: 40; background: rgba(251,248,242,.82);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
header.site.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(31,26,22,.35); background: rgba(251,248,242,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 34px; height: auto; }
.logo-name { display: block; font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1; color: var(--green-ink); }
.logo-sub { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.menu { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.menu > a:not(.btn) { position: relative; text-decoration: none; color: var(--ink-soft); padding: 6px 0; transition: color .2s ease; }
.menu > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu > a:not(.btn):hover { color: var(--green-ink); }
.menu > a:not(.btn):hover::after { transform: scaleX(1); }
.season-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; background: var(--white);
}
.season-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.menu .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 88px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(217,182,92,.18), transparent 60%),
    radial-gradient(50% 60% at 10% 0%, rgba(46,90,68,.08), transparent 60%),
    var(--parchment);
}
.hero::after { /* vân lớp in 3D, rất nhẹ */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(31,26,22,.028) 0 1px, transparent 1px 6px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.08; margin: 18px 0 24px; max-width: 13.5ch; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { max-width: 33em; font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 22px; justify-content: start; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.facts b { display: block; color: var(--green-ink); font-weight: 600; font-size: 14.5px; }
.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-arch {
  position: absolute; left: 12%; right: 12%; top: 2%; bottom: 8%;
  border-radius: 999px 999px 28px 28px;
  background: radial-gradient(80% 60% at 50% 30%, #FFFFFF 0%, var(--cream) 60%, #EADFC6 100%);
  box-shadow: inset 0 0 0 1px rgba(156,122,46,.18), var(--shadow-lg);
}
.hero-arch::before { content: ''; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(156,122,46,.22); }
.hero-fig { position: absolute; bottom: 4%; height: auto; filter: drop-shadow(0 22px 22px rgba(31,26,22,.22)); transition: transform .6s var(--ease); }
.hf-mid { left: 50%; width: 38%; transform: translateX(-50%); z-index: 3; bottom: 6%; }
.hf-left { left: 4%; width: 31%; z-index: 2; }
.hf-right { right: 4%; width: 31%; z-index: 2; }
.hero-art:hover .hf-left { transform: translateY(-6px) rotate(-1.5deg); }
.hero-art:hover .hf-right { transform: translateY(-6px) rotate(1.5deg); }
.hero-badge {
  position: absolute; top: 9%; right: 2%; z-index: 4; display: grid; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-badge b { font-size: 20px; font-weight: 700; color: var(--green-ink); line-height: 1.1; }
.hero-badge b small { font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-right: 3px; }
.hero-badge > small { font-size: 12px; color: var(--ink-mute); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- section scaffolding ---------- */
section { padding: 104px 0; }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.sec-head h2 { margin-top: 14px; }

/* ---------- collection ---------- */
.collection { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #DCCDB2; }
.card-wide { grid-column: span 2; }
.card-art {
  position: relative; aspect-ratio: 4 / 3.6; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding: 22px 18px 18px;   /* chừa đáy: đế không chạm viền dưới */
  background: radial-gradient(70% 70% at 50% 35%, #FFFFFF 0%, var(--cream) 70%, #EFE3C9 100%);
}
.card-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.card-art img { height: 94%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(31,26,22,.18)); transition: transform .6s var(--ease); }
.card:hover .card-art img { transform: scale(1.04) translateY(-4px); }
.card-art.duo { gap: 0; }
.card-art.duo img { height: 90%; }
.card-art.duo img + img { margin-left: -8%; }
.card-wide .card-art { aspect-ratio: auto; height: 100%; min-height: 0; }
.art-saints { background: radial-gradient(60% 80% at 50% 30%, #FFFFFF 0%, #EEF1EA 60%, #DCE6DD 100%); }
.art-saints img { height: auto; width: 86%; max-height: 92%; }
.art-glow { background: radial-gradient(55% 45% at 50% 82%, #FFE7B0 0%, #E9C98A 32%, #3A2C1E 78%, #261C13 100%); }
.art-glow img { filter: drop-shadow(0 0 22px rgba(255,214,140,.55)) brightness(.96); }
.ribbon {
  position: absolute; top: 16px; left: 16px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 22px; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 17px; color: var(--green-ink); }
.price small { font-weight: 500; font-size: 13px; color: var(--ink-mute); margin-right: 2px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--green);
  padding: 8px 14px; border-radius: 999px; background: var(--green-soft); transition: background .25s ease, color .25s ease;
}
.card-link .ic-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.card-link:hover { background: var(--green); color: #fff; }
.card-link:hover .ic-arrow { transform: translateX(3px); }
/* thẻ rộng Tượng Thánh: ảnh trái, chữ phải */
@media (min-width: 981px) {
  .card-wide { flex-direction: row; }
  .card-wide .card-art { flex: 1.45; aspect-ratio: auto; align-items: center; padding: 24px 20px; }
  .card-wide .card-art::after { left: auto; top: 0; width: 1px; height: auto; }
  .card-wide .art-saints img { width: 100%; max-height: none; }
  .card-wide .card-body { flex: 1; justify-content: center; padding: 32px 30px; }
  .card-wide .card-meta { margin-top: 10px; }
  .card-wide h3 { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--green-ink); }
}

/* ---------- features ---------- */
.features { background: var(--green-deep); color: #E9F0EA; position: relative; overflow: hidden; }
.features::before { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 60% at 20% 55%, rgba(217,182,92,.20), transparent 70%); pointer-events: none; }
.feat-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.features h2 { color: #fff; margin-top: 14px; }
.features .eyebrow { color: var(--gold); }
.feat-art { position: relative; aspect-ratio: 1 / 1.15; border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 80%, #FFE7B0 0%, #E3BE76 30%, #4A3826 72%, #241B14 100%); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.feat-art img { position: absolute; left: 50%; bottom: 4%; height: 88%; width: auto; transform: translateX(-50%); filter: brightness(.82) drop-shadow(0 0 26px rgba(255,214,140,.5)); }
.feat-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.feat-list li { display: flex; gap: 14px; }
.feat-list svg { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(217,182,92,.35);
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat-list h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.feat-list p { color: #BFD0C4; font-size: 14.5px; line-height: 1.6; }

/* ---------- personalizer (xem trước) ---------- */
.studio { background: var(--parchment); }
/* máy tính: khung xem trước bên trái (dính khi cuộn), tiêu đề + lựa chọn bên phải */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "stage head" "stage panel"; gap: 0 56px; align-items: start; }
.studio-head { grid-area: head; }
.studio-panel { grid-area: panel; }
.stage-slot { grid-area: stage; align-self: stretch; }
.studio-head h2 { margin: 14px 0 12px; font-size: clamp(32px, 3.4vw, 46px); }
.studio-head .lead { margin-bottom: 28px; }
.stage {
  position: sticky; top: 96px; border-radius: 28px; padding: 18px 18px 16px;
  background: linear-gradient(160deg, #24493A 0%, var(--green-deep) 55%, #172F24 100%);
  color: #E9F0EA; box-shadow: var(--shadow-lg); transition: background .5s ease;
}
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 4px 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #BFD0C4; }
.stage-btns { display: flex; gap: 8px; }
.light-btn { white-space: nowrap; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #F2EBDD; border-radius: 999px; padding: 7px 15px; font-size: 13.5px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.light-btn:hover { background: rgba(255,255,255,.14); }
.light-btn.btn-3d { background: var(--gold); color: var(--green-ink); border-color: var(--gold); font-weight: 600; }
.light-btn.btn-3d:hover { background: #E4C46F; }
.light-btn.btn-3d[aria-pressed="true"] { background: rgba(255,255,255,.06); color: #F2EBDD; border-color: rgba(255,255,255,.22); font-weight: 400; }
.dock-close, .dock-pill { display: none; }
.stage-note { margin: 12px 6px 2px; text-align: center; font-size: 12.5px; color: #A9BDB0; }
.canvas3d { position: relative; width: 100%; aspect-ratio: 4 / 4.5; border-radius: 18px; overflow: hidden; cursor: grab;
  background: radial-gradient(90% 70% at 50% 35%, #FFFFFF 0%, #F3EBDC 70%, #E8DDC7 100%); transition: background .5s ease; }
.canvas3d:active { cursor: grabbing; }
.canvas3d canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.stage.night .canvas3d { background: radial-gradient(80% 60% at 50% 70%, #2e2e2e 0%, #2e2e2e 60%, #2e2e2e 100%); }
.canvas3d.is-2d { cursor: default; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #8C7A66; pointer-events: none; }
.loading:not([hidden]) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.loading::before { content: ''; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(140,122,102,.25); border-top-color: #C9A24B; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.photo2d { position: absolute; inset: 0; }
.photo2d .ph-box { position: absolute; }
.photo2d img, .photo2d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.photo2d img { filter: drop-shadow(0 14px 14px rgba(31,26,22,.16)); transition: filter .5s ease, opacity .3s ease; }

.form { display: grid; gap: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--green-ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D6C7AC; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46,90,68,.12); outline: none; }
.field input:disabled { background: #F4EFE6; color: var(--ink-mute); }
.field .hint, .hint { font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-qty { grid-template-columns: 1fr 120px; }
.swatches, .shapes { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch, .shape {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s var(--ease);
}
.swatch:hover, .shape:hover { border-color: var(--green); color: var(--green-ink); }
.swatch:active, .shape:active { transform: scale(.97); }
.swatch[aria-pressed="true"], .shape[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.swatch { padding: 7px 14px 7px 8px; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; display: block; position: relative; overflow: hidden; }
.swatch i[style] { border: 1px solid rgba(0,0,0,.15); }
.opt-rows { display: grid; gap: 10px; }
.opt-row { display: grid; gap: 6px; }
.opt-sub { font-size: 13px; color: var(--ink-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
/* nhãn "Tên khắc trên đế" + công tắc "Khắc tên" cùng hàng, ô tên rộng hết bên dưới */
.name-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.field .name-head > label:first-child { margin: 0; }
.field label.toggle, .toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; flex: none;
  font-size: 14px !important; font-weight: 600; letter-spacing: 0 !important; white-space: nowrap; color: var(--green-ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .tg { width: 42px; height: 24px; border-radius: 999px; background: #CFC4B2; position: relative; transition: background .25s ease; }
.toggle .tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle input:checked + .tg { background: var(--green); }
.toggle input:checked + .tg::after { transform: translateX(18px); }
.toggle input:focus-visible + .tg { outline: 3px solid var(--gold); outline-offset: 2px; }
/* phiên bản: Bản Ngà / Bản Màu — thẻ có mô tả + khoảng giá */
.vers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ver { position: relative; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center;
  border: 1.5px solid var(--line); background: var(--white); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: var(--ink-soft);
  font: inherit; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.ver:hover { border-color: var(--green); }
.ver i { grid-row: 1; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.ver-nga i { background: radial-gradient(circle at 35% 30%, #fffaf0, #e3d5bb); }
.ver-mau i { background: conic-gradient(#f2c6a2 0 25%, #4a3a32 0 50%, #b21f30 0 75%, #f7f4ee 0); }
.ver b { grid-row: 1; font-size: 15px; font-weight: 700; color: var(--green-ink); }
.ver span, .ver em { grid-column: 1 / -1; }
.ver span { font-size: 13px; line-height: 1.35; color: var(--ink-mute); }
.ver em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.ver[aria-pressed="true"] { border-color: var(--green); background: #F2F6F1; box-shadow: 0 0 0 3px rgba(46,90,68,.14); }
.ver[aria-pressed="true"]::after { content: ''; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ver:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) { .ver { padding: 10px 11px; } .ver em { font-size: 13px; letter-spacing: -.01em; white-space: nowrap; } }
@media (max-width: 340px) { .vers { grid-template-columns: 1fr; } }
.studio-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.price-note { font-size: 14px; color: var(--ink-mute); }
.price-note b { color: var(--green-ink); }

/* ---------- parish (B2B) ---------- */
.parish { background: var(--cream); position: relative; overflow: hidden; }
.offers { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer .num { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--gold-ink); }
.offer h3 { font-size: 19px; color: var(--green-ink); margin-top: 6px; }
.offer p { color: var(--ink-soft); font-size: 15px; }
.offer-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-mute); }
.offer-price b { font-size: 18px; color: var(--green-ink); margin-right: 4px; }
.offer-price b small { font-size: 13px; font-weight: 500; color: var(--ink-mute); }
.parish-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- process ---------- */
.process { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); opacity: .7; }
.step { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--gold);
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--green-ink); margin-bottom: 18px; box-shadow: 0 0 0 8px var(--paper); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- faq ---------- */
.faq-sec { background: var(--parchment); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid h2 { margin: 14px 0 14px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: #DCCDB2; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 16.5px; padding: 18px 0; color: var(--green-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5A44' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- order ---------- */
.order { background: var(--paper); }
.order-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.order-intro h2 { margin: 14px 0 14px; }
.countdown { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 18px 22px; border-radius: var(--radius); background: var(--green-deep); color: #DCE7DF; font-size: 14.5px; line-height: 1.4; }
.countdown b { font-family: var(--serif); font-size: 56px; line-height: .9; color: var(--gold); }
.contact-box { margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-box h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.contact-list { display: grid; gap: 6px; color: var(--ink-soft); font-size: 15px; }
.contact-list a { color: var(--green); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.preview { white-space: pre-wrap; margin: 0; font: 13.5px/1.65 var(--sans); color: var(--ink-soft); background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: 14px; color: var(--ink-soft); background: var(--gold-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--green-ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; transition: transform .35s var(--ease), visibility .35s; z-index: 60; visibility: hidden; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- footer ---------- */
footer { background: var(--green-ink); color: #B9C9BE; padding: 72px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
footer .logo-name { color: #fff; font-size: 32px; }
.foot-about { margin-top: 12px; max-width: 30em; }
footer h4 { color: #fff; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 16px; }
.foot-links { display: grid; gap: 10px; }
footer a { text-decoration: none; transition: color .2s ease; }
footer a:hover { color: #fff; }
.motto { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--gold); margin-top: 20px; }
.motto small { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .12em; color: #8FA597; margin-left: 6px; }
.foot-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8FA597; }

/* ---------- hiệu ứng xuất hiện (stagger) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.cards > .reveal:nth-child(2), .offers > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { --d: .08s; }
.cards > .reveal:nth-child(3), .offers > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { --d: .16s; }
.cards > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { --d: .08s; }
.cards > .reveal:nth-child(5) { --d: .16s; }
.hero-art.reveal { --d: .15s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  section { padding: 84px 0; }
  /* menu gọn (nút ☰) từ máy tính bảng trở xuống — 761–980px menu ngang bị chen chữ */
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
          gap: 4px; padding: 14px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; animation: drop .25s var(--ease); }
  .menu > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu > a:not(.btn)::after { display: none; }
  .menu .season-chip { align-self: flex-start; margin: 10px 0 6px; }
  .menu-toggle { display: block; }
  .hero-grid, .studio-grid, .order-grid, .sec-head, .feat-grid, .faq-grid { grid-template-columns: 1fr; }
  .sec-head { gap: 16px; margin-bottom: 36px; }
  .hero { padding-top: 36px; }
  .hero h1 { max-width: 14ch; }
  .hero-art { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .cards, .offers { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .card-wide .card-art { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .steps::before { display: none; }
  .feat-art { max-width: 380px; width: 100%; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* màn hình hẹp: tiêu đề → khung xem trước (cỡ vừa, không dính) → lựa chọn.
     Cuộn qua khung → app.js thu nó thành khung nhỏ dính dưới thanh đầu trang (.docked), có nút ✕ để ẩn. */
  .studio-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "stage" "panel"; gap: 0; }
  .studio-head .lead { margin-bottom: 22px; }
  .stage-slot { align-self: auto; margin-bottom: 28px; }
  .stage { position: relative; top: auto; padding: 10px; border-radius: 20px; }
  .stage .canvas3d { aspect-ratio: auto; height: clamp(300px, 50vh, 440px); }
  .stage-note { margin: 10px 4px 2px; font-size: 12px; line-height: 1.5; }
  .stage-bar { margin: 0 2px 8px; font-size: 11px; letter-spacing: .08em; }
  .stage-bar .light-btn { padding: 6px 12px; font-size: 13px; }
  .stage.docked { position: fixed; z-index: 30; top: calc(var(--hdr, 72px) + 8px); left: 12px; right: 12px; max-width: 560px; margin-inline: auto;
    padding: 6px; border-radius: 16px; box-shadow: 0 14px 34px -12px rgba(15,30,22,.55); animation: dock-in .28s var(--ease); }
  /* khung nhỏ: ảnh bên trái, nút xếp dọc bên phải (không che tượng) */
  .stage.docked { display: flex; flex-direction: row-reverse; align-items: stretch; gap: 8px; }
  .stage.docked .canvas3d { flex: 1; min-width: 0; height: clamp(130px, 22vh, 200px); border-radius: 12px; }
  .stage.docked .stage-note, .stage.docked #stage-title, .stage.docked #btn-rotate { display: none !important; }
  .stage.docked .stage-bar { flex: none; width: 104px; margin: 0; padding: 30px 0 0; justify-content: center; }
  .stage.docked .stage-btns { flex-direction: column; justify-content: center; gap: 8px; width: 100%; }
  .stage.docked .light-btn { width: 100%; padding: 8px 6px; font-size: 12.5px; }
  .stage.docked .dock-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 6px; right: 6px;
    width: 30px; height: 30px; padding: 0; font-size: 13px; border-color: transparent; background: transparent; }
  .dock-pill:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 30; top: calc(var(--hdr, 72px) + 10px); right: 12px;
    border: 0; border-radius: 999px; padding: 8px 14px; background: var(--green-deep); color: #F2EBDD; font-size: 13px; font-weight: 600;
    box-shadow: 0 10px 24px -10px rgba(15,30,22,.6); cursor: pointer; animation: dock-in .28s var(--ease); }
  .dock-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  section { padding: 68px 0; }
  .hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .facts { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .hero-art { aspect-ratio: 1 / 1; }
  .hero-badge { top: 4%; right: 0; padding: 10px 12px; }
  .cards, .offers, .feat-list { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card-art { aspect-ratio: 4 / 3.3; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .step-n { grid-row: span 2; margin: 0; }
  .row2, .row-qty { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .order-card { padding: 22px 18px; }
  .order-actions { gap: 8px; }
  .order-actions .btn { flex: 1 1 100%; padding: 12px 16px; font-size: 15px; }
  .order-actions .btn-primary { padding: 15px 20px; font-size: 16px; }
  .countdown b { font-size: 46px; }
}
@media (max-width: 560px) { .tb-season { display: none; } }
@media (max-width: 420px) { .stage-bar > span:first-child { display: none; } .stage-bar { justify-content: flex-end; } }
/* điện thoại xoay ngang / màn hình thấp: khung xem trước không chiếm hết màn hình (và không dính — app.js) */
@media (max-width: 980px) and (max-height: 560px) { .stage .canvas3d { height: min(68vh, 440px); } }
@keyframes dock-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none; }
  .card, .card-art img, .hero-fig, .btn { transition: none; }
}
/* phối màu Bản Ngà (Xem trước 2D) */
.pdots { display: inline-flex; margin-right: 2px; }
.pdots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -4px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.pdots i:first-child { margin-left: 0; }
.paint-custom { display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
.pc-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name pick" "sw sw"; gap: 6px 10px; align-items: center; }
.pc-name { grid-area: name; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pc-row input[type=color] { grid-area: pick; width: 40px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.pc-sw { grid-area: sw; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-sw button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.pc-sw button:hover { transform: scale(1.12); }
