/* =========================================================
   TIỆM CÔNG — Landing bán hàng gọn, nền đỏ đô sáng
   ========================================================= */
:root {
  --red: #9a1c31;        /* đỏ đô sáng – nền chính */
  --red-2: #b02639;      /* sáng hơn cho điểm nhấn */
  --red-3: #7d1426;      /* đậm hơn cho khối xen kẽ */
  --red-ink: #5b0f1c;
  --gold: #f2cf86;
  --gold-2: #e3b562;
  --paper: #fffdf8;
  --ink: #2c1a17;
  --muted: #7d6a62;
  --line: #eedfca;
  --green: #2f7a49;
  --on-red: #fff3e2;
  --on-red-muted: rgba(255, 243, 226, .8);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(60, 6, 16, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--on-red); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--red);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent;
  border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: linear-gradient(180deg, #ffe6b0, var(--gold-2)); color: var(--red-ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-red { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 12px 26px -14px rgba(154, 28, 49, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-red:hover { background: linear-gradient(180deg, #c22d42, var(--red-2)); }
.btn-outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: #fdf0ec; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { width: 100%; padding: 18px; font-size: 18px; letter-spacing: .06em; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; }

.eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { margin: 0; }
.section { padding: clamp(56px, 7vw, 88px) 0; }
.head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); }
.head .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.head .eyebrow::before, .head .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.head h2 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; letter-spacing: -.005em; }
.head h2::after { content: ''; display: block; width: 56px; height: 2px; margin: 16px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.head .sub { margin: 14px auto 0; max-width: 520px; color: var(--on-red-muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--red-ink); font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar b { color: var(--gold); }
.header { position: sticky; top: 0; z-index: 40; background: rgba(154, 28, 49, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 243, 226, .15); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 207, 134, .6); }
.brand b { display: block; white-space: nowrap; font-family: var(--serif); font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { opacity: .88; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--gold); }

/* ---------- Banner ---------- */
.banner { position: relative; background: var(--red-ink); }
.banner-track { display: grid; }
.banner-track .slide { grid-area: 1 / 1; position: relative; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.banner-track .slide .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) brightness(.7); }
.banner-track .slide .fg { position: relative; width: 100%; height: auto; }
.banner-track .slide.on { opacity: 1; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.banner-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.banner-dots button.on { width: 26px; background: var(--gold); }

/* ---------- Giới thiệu ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.intro h1 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; }
.intro h1 em { display: block; font-style: italic; color: var(--gold); }
.intro .lead { font-size: 17.5px; margin: 16px 0 10px; }
.intro-copy > p { color: var(--on-red-muted); margin: 0 0 12px; }
.intro blockquote { margin: 0 0 22px; padding: 12px 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 17.5px; background: rgba(0, 0, 0, .1); border-radius: 0 10px 10px 0; }
.intro-side > img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.why li { display: grid; gap: 2px; padding: 11px 16px; border-radius: 12px; background: rgba(255, 243, 226, .08); border: 1px solid rgba(255, 243, 226, .14); }
.why b { color: var(--gold); }
.why span { font-size: 14.5px; color: var(--on-red-muted); }

/* ---------- Dải ưu đãi ---------- */
.promo-strip { background: linear-gradient(90deg, #ffe2a6, var(--gold-2)); color: var(--red-ink); text-align: center; font-weight: 700; padding: 12px 16px; font-size: 15.5px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; }

/* ---------- Products ---------- */
.products { background: var(--red-3); }
.products.alt { background: var(--red); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-grid.n1 { max-width: 320px; margin-inline: auto; grid-template-columns: 1fr; }
.product-grid.n2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }

.p-card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px -20px rgba(40, 4, 10, .75);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -24px rgba(40, 4, 10, .85); }
.p-card.picked { box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -22px rgba(40, 4, 10, .85); }

/* Khung ảnh: ảnh hiện trọn (contain), nền là chính ảnh làm mờ */
.p-media { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #f3e7d6; }
.p-media .m-bg { display: none; }
.p-media .m-fg { display: block; width: 100%; height: auto; }
.p-media .m-ph { aspect-ratio: 1 / 1; background: radial-gradient(circle, #b02639, #5b0f1c); }
.m-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(.82) saturate(1.1); }
.m-fg { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.product-grid { align-items: stretch; }
.p-card:hover .m-fg { transform: scale(1.04); }
.m-ph { display: grid; place-items: center; height: 100%; }
.m-ph img { width: 38%; border-radius: 50%; }
.p-view {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); opacity: 0;
  padding: 7px 14px; border-radius: 99px; background: rgba(255, 253, 248, .92); color: var(--red-ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; transition: .35s var(--ease); backdrop-filter: blur(6px);
}
.p-card:hover .p-view, .p-media:focus-visible .p-view { opacity: 1; transform: translate(-50%, 0); }
.p-badge { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.p-card.picked .p-badge { opacity: 1; transform: none; }

.p-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.p-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #b0813f; }
.p-body h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--red-ink); }
.p-body h3 button { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-body h3 button:hover { color: var(--red); }
.p-body h3 button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
.p-tagline { margin: 6px 0 0; font-size: 14px; font-style: italic; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.p-body > :nth-last-child(2) { margin-bottom: 14px; }
.p-price { margin: 0; line-height: 1.2; }
.p-price b { font-size: 19px; color: var(--red); font-weight: 800; }
.p-price small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.p-add {
  flex-shrink: 0; padding: 9px 16px; border: 0; border-radius: 99px; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 700; box-shadow: 0 8px 18px -10px rgba(154, 28, 49, .9); transition: background .25s, transform .2s var(--ease);
}
.p-add:hover { background: var(--red-2); transform: translateY(-1px); }
.p-add.picked { background: var(--green); box-shadow: none; }

.empty-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 30px 24px; border-radius: var(--radius); border: 1.5px dashed rgba(255, 243, 226, .35); color: var(--on-red-muted); }
.empty-card b { display: block; color: var(--gold); font-size: 18px; margin-bottom: 4px; }

/* ---------- Chi tiết sản phẩm ---------- */
html.lock, html.lock body { overflow: hidden; }
.pd { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(30, 4, 10, .62); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.pd.open { opacity: 1; pointer-events: auto; }
.pd-card {
  position: relative; display: flex; width: auto; max-width: min(1040px, 100%); min-height: min(460px, 84vh);
  background: var(--paper); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  transform: translateY(24px) scale(.98); transition: transform .5s var(--ease);
}
.pd.open .pd-card { transform: none; }
.pd-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .94); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transition: transform .25s var(--ease); }
.pd-x:hover { transform: rotate(90deg); }
.pd-media { position: relative; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, #b02639, #5b0f1c); }
/* Ảnh giữ tỉ lệ gốc: tự co theo chiều cao màn hình và bề ngang tối đa */
.pd-media .m-fg { position: relative; display: block; width: auto; height: auto; max-height: min(84vh, 700px); max-width: min(54vw, 560px); }
/* Nền mờ chỉ lộ ra với ảnh nằm ngang (khung tối thiểu cao hơn ảnh) */
.pd-media .m-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) brightness(.8); }
/* contain: size → cột chữ không quyết định chiều cao khung, khung cao đúng bằng ảnh; chữ dài thì cuộn */
.pd-info { flex: 0 0 420px; contain: size; overflow-y: auto; padding: 34px 32px 28px; overscroll-behavior: contain; }
.pd-line { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #b0813f; }
.pd-info h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--red-ink); padding-right: 36px; }
.pd-tagline { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: #a5783a; }
.pd-price { margin: 16px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pd-price b { font-size: 28px; font-weight: 800; color: var(--red); }
.pd-price span { color: var(--muted); font-size: 15px; }
.pd-desc { margin: 16px 0 0; white-space: pre-line; color: #5a4840; font-size: 15px; line-height: 1.75; }
.pd-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pd-notes:empty { display: none; }
.pd-notes span { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: #f6ead8; color: #7a4b22; }
.pd-opt { margin-top: 18px; }
.pd-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 700; color: var(--ink); transition: .2s; }
.choice small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.choice:hover { border-color: #d8b892; }
.choice.on { border-color: var(--red); background: #fff6f3; box-shadow: 0 0 0 3px rgba(154, 28, 49, .1); color: var(--red-ink); }
.choice.on small { color: var(--red); }
.pd-qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pd-qty-row .pd-label { margin: 0; width: 100%; }
.pd-line-total { font-weight: 700; color: var(--red); }
.pd-actions { position: sticky; bottom: -28px; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px -32px 0; padding: 14px 32px 28px; background: var(--paper); border-top: 1px solid var(--line); }
.pd-actions .btn { padding: 14px 16px; }
.pd-remove { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.pd-remove:hover { color: var(--red); }

/* ---------- Order ---------- */
.order { background: var(--red-3); padding-bottom: 120px; }
.order-card { max-width: 860px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 30px 70px -30px rgba(40, 4, 10, .8); border-top: 6px solid var(--gold-2); }
.order-step + .order-step { margin-top: 28px; }
.order-step h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 14px; color: var(--red); }
.order-step h3 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; }
.pick-group { margin: 14px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pick-group:first-child { margin-top: 0; }

.pick-list { display: grid; gap: 12px; }
.pick { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, background .25s, box-shadow .25s; cursor: pointer; }
.pick.on { border-color: var(--red); background: #fff6f3; box-shadow: 0 0 0 3px rgba(154, 28, 49, .1); }
.pick.flash { animation: flash 1s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px rgba(227, 181, 98, .7); } }
.pick-check { position: relative; width: 26px; height: 26px; margin-top: 22px; }
.pick-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick-check i { position: absolute; inset: 0; border: 2px solid #c9b49a; border-radius: 7px; background: #fff; transition: .2s; pointer-events: none; }
.pick-check input:checked + i { background: var(--red); border-color: var(--red); }
.pick-check input:checked + i::after { content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pick-check input:focus-visible + i { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.pick-img { width: auto; height: 72px; max-width: 96px; border-radius: 10px; object-fit: contain; }
.pick-main { min-width: 0; }
.pick-name { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pick-name b { font-size: 17px; }
.pick-name .line-price { font-weight: 800; color: var(--red); white-space: nowrap; }
.pick-opts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pick-opts .seg { flex: 1 1 100%; }
@media (min-width: 900px) { .pick-opts .seg { flex: 0 1 auto; } }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 600; transition: .2s; background: #fff; }
.seg small { font-weight: 500; color: var(--muted); }
.seg input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.seg input:checked + span small { color: rgba(255, 255, 255, .8); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.pick select { font: inherit; font-size: 14px; padding: 7px 30px 7px 12px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a1c31' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 18px; color: var(--red); }
.qty button:hover { background: #f8ece0; }
.qty input { width: 34px; border: 0; text-align: center; font: 700 15px var(--sans); color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 600; }
.field > span small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field input { font: inherit; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(154, 28, 49, .12); }
.field input.invalid { border-color: #d0342c; box-shadow: 0 0 0 4px rgba(208, 52, 44, .12); }
.hp { position: absolute !important; left: -9999px !important; }

.order-total { padding: 20px; border-radius: 16px; background: #fbf2e5; }
.total-lines { display: grid; gap: 4px; font-size: 14.5px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #dcc6a8; }
.total-lines div { display: flex; justify-content: space-between; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 15.5px; }
.sum-row b { font-weight: 700; }
.sum-row.discount b, .sum-row b.free { color: var(--green); }
.sum-row.grand { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #dcc6a8; font-size: 18px; font-weight: 700; }
.sum-row.grand b { font-size: 27px; color: var(--red); }
.ship-hint { margin: 2px 0 4px; font-size: 13.5px; color: #a5652a; font-weight: 600; }
.total-note { margin: 6px 0 16px; font-size: 13.5px; color: var(--muted); }
.form-msg { margin: 10px 0 0; color: #c0302a; font-weight: 600; font-size: 14.5px; min-height: 1em; text-align: center; }
.call-alt { margin: 4px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.call-alt b { color: var(--red); }

/* ---------- Footer ---------- */
.footer { position: relative; background: linear-gradient(180deg, var(--red-ink), #3f0912); padding: 56px 0 100px; font-size: 14.5px; color: var(--on-red-muted); }
.footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .7; }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr 1.1fr; gap: 40px; align-items: start; }
.f-title { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.f-logo { display: flex; align-items: center; gap: 14px; color: var(--on-red); }
.f-logo img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(242, 207, 134, .35); }
.f-logo b { display: block; letter-spacing: .08em; font-size: 15.5px; text-transform: uppercase; }
.f-logo em { display: block; margin-top: 2px; color: var(--gold); font-family: var(--serif); font-size: 16px; }
.f-about { margin: 16px 0 24px; max-width: 36ch; line-height: 1.65; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; }
.f-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 10px; border-radius: 99px; border: 1px solid rgba(255, 243, 226, .18); background: rgba(255, 243, 226, .06); color: var(--on-red); font-weight: 600; font-size: 13.5px; transition: background .25s, border-color .25s, transform .25s var(--ease), color .25s; }
.f-social a svg { width: 18px; height: 18px; flex: none; }
.f-social a:hover { transform: translateY(-2px); background: var(--gold); border-color: var(--gold); color: var(--red-ink); }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.f-list li, .f-list a { display: flex; align-items: center; gap: 12px; }
.f-list svg, .f-addr svg { width: 18px; height: 18px; flex: none; }
.f-list li > svg, .f-list a > svg { box-sizing: content-box; padding: 9px; border-radius: 12px; background: rgba(255, 243, 226, .08); color: var(--gold); transition: background .25s, color .25s; }
.f-list a:hover > svg { background: var(--gold); color: var(--red-ink); }
.f-list small { display: block; font-size: 12px; color: rgba(255, 243, 226, .55); line-height: 1.3; }
.f-list b { display: block; color: var(--on-red); font-weight: 600; word-break: break-word; }
.f-addr { display: flex; align-items: flex-start; gap: 10px; color: var(--on-red); font-weight: 600; margin-bottom: 14px; }
.f-addr svg { margin-top: 2px; color: var(--gold); }
.f-addr:hover span { text-decoration: underline; text-underline-offset: 3px; }
.f-map { overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 243, 226, .16); box-shadow: var(--shadow); background: rgba(255, 243, 226, .05); aspect-ratio: 16 / 10; }
.f-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.f-dir { margin-top: 14px; width: 100%; }
.f-dir svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 243, 226, .12); font-size: 13px; color: rgba(255, 243, 226, .55); }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.f-nav a:hover { color: var(--gold); }
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .f-visit { grid-column: 1 / -1; }
  .f-map { aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .footer { padding: 40px 0 110px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .f-about { max-width: none; }
  .f-social { display: grid; grid-template-columns: 1fr 1fr; }
  .f-social a { justify-content: center; }
  .f-map { aspect-ratio: 4 / 3; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 32px; }
}

/* ---------- Nút đặt hàng nổi ---------- */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; gap: 10px; align-items: center; transition: transform .35s var(--ease), opacity .35s; }
.dock.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock-call { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); font-size: 22px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5); }
.dock-main { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .6); text-align: left; }
.dock-info b { display: block; font-size: 15px; }
.dock-info small { display: block; font-size: 13px; color: var(--muted); }
.dock-cta { padding: 12px 20px; border-radius: 99px; background: linear-gradient(180deg, #ffe2a6, var(--gold-2)); color: var(--red-ink); font-weight: 800; white-space: nowrap; }
.dock:not(.has) .dock-info { display: none; }
.dock:not(.has) .dock-main { justify-content: center; padding: 6px; }
.dock:not(.has) .dock-cta { flex: 1; text-align: center; }
.dock.has .dock-main { background: var(--red-2); color: #fff; box-shadow: 0 0 0 3px var(--gold), 0 16px 34px -10px rgba(0, 0, 0, .6); }
.dock.has .dock-info small { color: rgba(255, 255, 255, .85); }
.dock.bump .dock-main { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

/* ---------- Toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14.5px; transition: .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(30, 4, 10, .65); opacity: 0; pointer-events: none; transition: opacity .3s; overflow-y: auto; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(480px, 100%); background: var(--paper); color: var(--ink); border-radius: 22px; padding: 30px 26px 26px; text-align: center; transform: scale(.94); transition: transform .4s var(--ease); }
.modal.open .modal-card { transform: none; }
.check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.modal-card h3 { font-family: var(--serif); font-size: 26px; color: var(--red); margin-bottom: 4px; }
.ok-code { margin: 0 0 14px; color: var(--muted); }
.ok-code b { color: var(--red); letter-spacing: .04em; }
.ok-info { text-align: left; background: #fbf2e5; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; display: grid; gap: 4px; }
.ok-info .r { display: flex; justify-content: space-between; gap: 12px; }
.ok-info .r span:first-child { color: var(--muted); flex-shrink: 0; }
.ok-info .r span:last-child { text-align: right; font-weight: 600; }
.ok-info hr { border: 0; border-top: 1px dashed #dcc6a8; margin: 6px 0; width: 100%; }
.ok-note { margin: 14px 0 6px; font-size: 15px; }
.ok-hotline { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.ok-hotline b { color: var(--red); font-size: 17px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .header-in { height: 60px; }
  .brand small { display: none; }
  .head-cart { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .brand b { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .fields { grid-template-columns: 1fr; }
  .pick { grid-template-columns: auto auto 1fr; grid-template-areas: "chk img name" "opts opts opts"; gap: 10px 12px; padding: 12px; align-items: center; }
  .pick-main { display: contents; }
  .pick-check { grid-area: chk; margin-top: 0; }
  .pick-img { grid-area: img; width: auto; height: 60px; max-width: 72px; }
  .pick-name { grid-area: name; flex-direction: column; gap: 0; }
  .pick-opts { grid-area: opts; margin-top: 2px; gap: 8px; }
  .seg span { padding: 6px 10px; font-size: 13px; }
  .btn-xl { font-size: 17px; letter-spacing: .02em; padding: 16px 12px; white-space: nowrap; }
  /* Nút nổi thành thanh đáy màn hình */
  .dock { left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(91, 15, 28, .97); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
  .dock-call { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
  .dock-main { flex: 1; justify-content: space-between; border-radius: 14px; padding: 6px 6px 6px 14px; min-width: 0; }
  .dock-info { min-width: 0; }
  .dock-info b, .dock-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-cta { padding: 11px 14px; border-radius: 10px; }
  .toast { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Sản phẩm & chi tiết trên màn hình nhỏ ---------- */
@media (max-width: 760px) {
  .pd { padding: 0; place-items: end center; }
  .pd-card { display: block; width: 100%; max-width: none; min-height: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .pd-x { position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; }
  .pd-media { display: block; }
  .pd-media .m-bg { display: none; }
  .pd-media .m-fg { width: 100%; height: auto; max-width: none; max-height: none; }
  .pd-info { contain: none; overflow: visible; padding: 22px 18px 0; }
  .pd-actions { position: sticky; bottom: 0; margin: 20px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  /* Điện thoại: 2 cột gọn như cửa hàng */
  .product-grid, .product-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-grid.n1 { max-width: 260px; }
  .p-card { border-radius: 16px; }
  .p-body { padding: 12px 12px 12px; }
  .p-line { font-size: 10px; letter-spacing: .12em; margin-bottom: 4px; }
  .p-body h3 { font-size: 16px; }
  .p-tagline { font-size: 12.5px; margin-top: 3px; }
  .p-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .p-body > :nth-last-child(2) { margin-bottom: 10px; }
  .p-price b { font-size: 16px; }
  .p-price small { font-size: 11.5px; }
  .p-add { width: 100%; padding: 9px 10px; font-size: 13.5px; }
  .p-view { display: none; }
  .p-badge { top: 8px; right: 8px; font-size: 11px; padding: 4px 8px; }
}
@media (max-width: 340px) {
  .product-grid, .product-grid.n2 { grid-template-columns: 1fr; }
}
