/* =========================================================
   MỘC TÂY BẮC – giao diện (màu theo logo: đỏ trầm, xanh rừng, nền kem)
   ========================================================= */
:root {
  --paper: #f7efe1; --paper-2: #efe3cd; --card: #fffaf1;
  --ink: #2b2018; --ink-2: #6b5a49; --line: #e3d5bf;
  --smoke: #1c1611; --smoke-2: #2b221a;
  --ember: #a3221c; --ember-2: #7d1612; --gold: #d8a94e; --moss: #3f6b2a;
  --danger: #b42318; --radius: 14px;
  --shadow: 0 14px 34px -16px rgba(43, 32, 24, .45);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --script: 'Dancing Script', 'Lora', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.note { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--sm { padding: 7px 13px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 6px 18px -8px rgba(163, 34, 28, .8); }
.btn--ember:hover:not(:disabled) { background: var(--ember-2); }
.btn--outline { border-color: rgba(243, 231, 211, .45); color: #f3e7d3; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); background: var(--card); }
.btn--ghost-light { background: transparent; border-color: rgba(243, 231, 211, .3); color: #f3e7d3; }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--danger { background: transparent; border-color: #f0c8c2; color: var(--danger); }
.btn--danger:hover { background: #fdf0ee; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 16px; }
.icon-btn:hover { background: var(--paper); }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font-size: 13px; }
.link:hover { color: var(--danger); }
.link--ember { color: var(--ember); font-weight: 600; text-decoration: none; font-size: 14px; }
.link--ember:hover { color: var(--ember-2); text-decoration: underline; }

/* ---------- Thanh free ship + thanh trên ---------- */
.ship-bar { background: var(--moss); color: #fff; text-align: center; font-size: 13.5px; padding: 6px 12px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.ship-bar svg { width: 18px; height: 18px; }
.ship-bar__sep { opacity: .6; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(28, 22, 17, .95); backdrop-filter: blur(10px); color: #f3e7d3; border-bottom: 1px solid rgba(216, 169, 78, .18); }
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { height: 60px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold); }
.cart-btn { display: flex; align-items: center; gap: 8px; background: var(--ember); color: #fff; border: 0; border-radius: 999px; padding: 9px 12px 9px 16px; font-weight: 600; text-decoration: none; font-size: 15px; }
.cart-btn:hover { background: var(--ember-2); }
.cart-btn__count { min-width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--ember-2); font-size: 12.5px; display: grid; place-items: center; padding: 0 7px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--smoke); color: #f3e7d3; padding: 64px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 400px at 78% 60%, rgba(163, 34, 28, .45), transparent 70%), radial-gradient(520px 320px at 8% 6%, rgba(216, 169, 78, .13), transparent 70%), repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .022) 58px 60px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: var(--paper); clip-path: polygon(0 100%, 0 60%, 12% 30%, 26% 70%, 40% 20%, 55% 65%, 68% 35%, 82% 72%, 100% 30%, 100% 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 10px; }
.eyebrow--dark { color: var(--ember); }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.5px; margin-bottom: .35em; }
.hero h1 em { color: var(--gold); font-style: italic; display: block; }
.lead { font-size: 18px; max-width: 50ch; color: #dccdb6; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ship { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #cdebb8; font-size: 14.5px; font-weight: 600; }
.hero__logo { display: grid; place-items: center; }
.hero__logo img { width: min(440px, 100%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }

/* ---------- USP ---------- */
.usp { padding: 26px 0 10px; }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp__item { display: flex; gap: 14px; align-items: flex-start; }
.usp__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ember); color: var(--ember); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 14px; }
.usp__item strong { display: block; font-size: 15.5px; }
.usp__item p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--paper-2); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section__head h2, .section__title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); }
.section__title { text-align: center; margin-bottom: 28px; }
.section__head p { color: var(--ink-2); margin: 0; }

/* ---------- Thẻ sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--skeleton { height: 420px; background: linear-gradient(100deg, var(--card) 40%, var(--paper-2) 50%, var(--card) 60%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card__img { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 250, 241, .9); color: var(--ink); font-size: 22px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.gallery__nav--prev { left: 8px; } .gallery__nav--next { right: 8px; }
.card__img:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__count { position: absolute; bottom: 10px; right: 10px; background: rgba(28, 22, 17, .72); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; pointer-events: none; }
.card__media { width: 100%; height: 100%; }
.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #5b2c17, var(--smoke) 75%); color: var(--gold); font-family: var(--serif); font-weight: 700; }
.ph.card__media { font-size: 46px; letter-spacing: 2px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ember); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.badge--out { left: auto; right: 12px; background: var(--smoke); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 2px; }
.card__unit { margin: 0 0 8px; font-size: 13px; color: var(--moss); font-weight: 600; }
.card__desc { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.card__foot .btn { width: 100%; }
.card__ship { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--moss); font-weight: 600; }
.card__ship svg { width: 17px; height: 17px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-size: 21px; color: var(--ember-2); }
.price s { font-size: 13.5px; color: var(--ink-2); }
.empty-msg { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 30px 0; }

/* ---------- Các bước ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--smoke); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.steps strong { display: block; font-size: 17px; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Slider feedback ---------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); column-gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.fb { margin: 0; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.fb__img { display: block; border: 0; padding: 0; background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; width: 100%; }
.fb__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fb figcaption { padding: 16px 18px 18px; }
.fb figcaption p { margin: 0 0 8px; font-size: 14.5px; font-style: italic; color: var(--ink); }
.fb figcaption strong { color: var(--ember-2); font-size: 14.5px; }
.slider__btn { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 26px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2; }
.slider__btn:hover { background: var(--ember); color: #fff; border-color: var(--ember); }
.slider__btn--prev { left: -18px; } .slider__btn--next { right: -18px; }
.slider--static .slider__btn { display: none; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; min-height: 8px; }
.slider__dots span { width: 8px; height: 8px; border-radius: 999px; background: #d3c3a9; transition: .25s; }
.slider__dots span.on { width: 24px; background: var(--ember); }

/* ---------- Bài viết ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__img { display: block; aspect-ratio: 5 / 3; background: var(--paper-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img .ph { width: 100%; height: 100%; }
.post-card__img .ph img { width: 110px; height: auto; object-fit: contain; }
.post-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 12.5px; color: var(--ink-2); }
.post-card h3 { font-family: var(--serif); font-size: 19px; margin: 4px 0 8px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--ember); }
.post-card p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; color: var(--ember); font-weight: 600; font-size: 14px; text-decoration: none; }
.section .center { margin: 32px 0 0; }

.page { padding: 28px 0 72px; min-height: 60vh; }
.crumbs { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 4px; opacity: .6; }
.page__head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.page__head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); }
.page__head p:last-child { color: var(--ink-2); }
.article__head h1 { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 42px); }
.article__meta { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.article__lead { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.article__cover { width: 100%; border-radius: var(--radius); margin: 0 0 26px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-family: var(--serif); font-size: 26px; margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--serif); font-size: 21px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--ember); }
.prose img { border-radius: 12px; margin: 8px auto; }
.prose figure { margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; }
.cta-box { display: flex; gap: 20px; align-items: center; background: var(--smoke); color: #f3e7d3; border-radius: var(--radius); padding: 22px 24px; margin: 36px 0 18px; }
.cta-box img { width: 110px; flex: none; }
.cta-box h2 { font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.cta-box p { margin: 0 0 12px; color: #dccdb6; font-size: 15px; }
.share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.share a { color: var(--ember); font-weight: 600; }
.share .link { font-size: 14px; }

/* ---------- Chân trang ---------- */
.footer { background: var(--smoke); color: #e8dac4; padding: 52px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer__logo { width: 190px; margin-bottom: 8px; }
.footer__h { color: var(--gold); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font); }
.footer p { margin: 0 0 8px; font-size: 14.5px; }
.footer a:hover { color: var(--gold); }
.footer__muted { color: #b3a28a; }
.footer__ship { display: flex; align-items: center; gap: 8px; color: #cdebb8; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #9c8b74; }

/* ---------- Nút liên hệ nổi ---------- */
.fabs { position: fixed; left: 18px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 12px; }
.fab { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); transition: transform .2s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 26px; height: 26px; }
.fab > span { position: absolute; left: 64px; white-space: nowrap; background: var(--smoke); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; opacity: 0; transform: translateX(-6px); transition: .2s; pointer-events: none; }
.fab:hover > span, .fab:focus-visible > span { opacity: 1; transform: none; }
.fab--call { background: #d62828; }
.fab--call::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(214, 40, 40, .55); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.fab--zalo { background: #0068ff; }
.fab__zalo { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.fab--mess { background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87); }

/* ---------- Hộp thoại ---------- */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
.dialog::backdrop, .lightbox::backdrop { background: rgba(20, 15, 10, .6); backdrop-filter: blur(2px); }
.dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dialog__head h2, .dialog__head h3 { font-family: var(--serif); font-size: 22px; margin: 0; }
.dialog__body { padding: 16px 22px; overflow-y: auto; }
.dialog__foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 8px; }
.dialog__foot--row { display: flex; justify-content: flex-end; gap: 10px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.total-row strong { font-size: 22px; color: var(--ember-2); }
.total-row--sm strong { font-size: 15px; }
.free { color: var(--moss) !important; font-weight: 700; }
.summary { background: var(--paper); border-radius: 12px; padding: 4px 14px; margin-bottom: 8px; }
.summary__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary__row:last-child { border-bottom: 0; }
.summary__item strong { display: block; line-height: 1.3; }
.summary__item small { color: var(--ink-2); font-size: 12.5px; }
.summary__end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 84px; }
.summary-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.note--ship { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--moss); font-weight: 600; }
.note--ship svg { width: 17px; height: 17px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 30px; height: 28px; border: 0; background: none; font-size: 16px; }
.qty button:hover { color: var(--ember); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1000px); max-height: 94dvh; overflow: visible; }
.lightbox img { max-width: min(96vw, 1000px); max-height: 90dvh; width: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: -14px; right: -10px; z-index: 2; }

/* ---------- Form ---------- */
.field { margin: 0 0 14px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input, .field textarea, .field select, .filters input, .filters select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 13px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .filters input:focus, .filters select:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(163, 34, 28, .15); }
.field .invalid { border-color: var(--danger); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-cards label { position: relative; cursor: pointer; margin: 0; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; height: 100%; }
.radio-cards strong { display: block; font-size: 14.5px; }
.radio-cards small { color: var(--ink-2); font-size: 12.5px; font-weight: 400; }
.radio-cards input:checked + span { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(163, 34, 28, .12); }
.radio-cards input:focus-visible + span { outline: 2px solid var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.form-error:empty { display: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bank { text-align: left; background: var(--paper); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; font-size: 14.5px; }
.bank p { margin: 0 0 6px; }
.copyable { cursor: copy; border-bottom: 1px dashed currentColor; }
.copyable.copied::after { content: " ✓ đã sao chép"; font-weight: 400; color: var(--moss); font-size: 12.5px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--smoke); color: #f3e7d3; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: var(--danger); color: #fff; }

/* ---------- Trang cảm ơn ---------- */
.thanks-page { background: linear-gradient(180deg, rgba(63, 107, 42, .25), rgba(63, 107, 42, .05) 50%), radial-gradient(900px 500px at 85% 0%, #f7d891 0, transparent 60%), #dfe9cf; }
.thanks { padding: 32px 16px 110px; }
.letter { position: relative; width: min(760px, 100%); margin: 0 auto; background: #fbf3e2; border-radius: 6px; padding: 34px clamp(20px, 6vw, 64px) 36px; box-shadow: 0 30px 60px -20px rgba(40, 30, 10, .45); border: 2px solid #b0423c; outline: 6px solid #fbf3e2; }
.letter::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(163, 34, 28, .45); pointer-events: none; }
.letter::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 10px; background: repeating-linear-gradient(45deg, #a3221c 0 6px, #1c1611 6px 9px, #d8a94e 9px 12px, #1c1611 12px 15px); border-radius: 4px 4px 0 0; }
.letter__head { text-align: center; }
.letter__logo { width: 230px; margin: 0 auto; }
.letter__title { font-family: var(--script); font-weight: 700; color: var(--ember); font-size: clamp(48px, 10vw, 80px); line-height: 1; margin: 10px 0 6px; }
.letter__to { font-family: var(--script); font-weight: 700; font-size: 26px; color: #5b1712; margin: 0 0 20px; }
.letter__order { background: #fff8ea; border: 1px solid #e2c99a; border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.letter__ok { display: inline-block; background: var(--moss); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.letter__order dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.letter__order dt { font-size: 12.5px; color: var(--ink-2); }
.letter__order dd { margin: 0; font-size: 15.5px; }
.letter__body { font-size: 16.5px; line-height: 1.75; }
.letter__body p { margin: 0 0 12px; }
.letter__divider { text-align: center; color: var(--ember); margin: 4px 0 10px !important; letter-spacing: 10px; }
.letter__wish { font-family: var(--script); font-size: 24px; font-weight: 600; color: #5b1712; text-align: center; line-height: 1.35; background: linear-gradient(90deg, transparent, rgba(216, 169, 78, .35) 15%, rgba(216, 169, 78, .35) 85%, transparent); padding: 14px 10px; margin: 18px 0 !important; transform: rotate(-1.5deg); }
.letter__foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; margin-top: 8px; }
.letter__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ember); color: var(--ember); border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; }
.pill--red { background: var(--ember); color: #fff; line-height: 1.2; }
.pill--red small { font-weight: 600; opacity: .9; }
.letter__qr { text-align: center; text-decoration: none; color: var(--ember); font-weight: 600; font-size: 13px; }
.letter__qr img { width: 130px; height: 130px; border: 3px solid var(--ember); border-radius: 12px; padding: 6px; background: #fff; margin: 0 auto 6px; }
.letter__sign { grid-column: 1 / -1; text-align: right; font-family: var(--script); font-size: 22px; color: #5b1712; margin: 0; }
.letter__sign span { font-size: 34px; color: var(--ember); font-weight: 700; }
.letter .center { margin: 26px 0 0; }

/* =========================================================
   TRANG QUẢN LÝ
   ========================================================= */
.admin { background: var(--paper); min-height: 100vh; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(600px 400px at 70% 80%, rgba(163, 34, 28, .35), transparent 70%), var(--smoke); }
.login__card { width: min(380px, 100%); background: var(--card); border-radius: 20px; padding: 28px 28px 26px; text-align: center; box-shadow: var(--shadow); }
.login__logo { width: 170px; margin: 0 auto 6px; }
.login__card h1 { font-family: var(--serif); font-size: 24px; margin: 0 0 18px; }
.login__card .field { text-align: left; }
.login__card .form-error { margin-bottom: 10px; }
.admin-top { background: var(--smoke); color: #f3e7d3; }
.admin-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding: 8px 0; }
.admin-top .brand__logo { height: 52px; }
.admin-top__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-main { padding: 22px 0 60px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 12px 16px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--ember); }
.tab__count { background: var(--ember); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel__head h2 { font-family: var(--serif); font-size: 26px; margin: 0; }
.panel__head p { margin: 2px 0 0; font-size: 14px; }
.plist { display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 10px; }
.prow--hidden { opacity: .62; }
.prow__img { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--smoke); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.prow__img img { width: 100%; height: 100%; object-fit: cover; }
.prow__img em { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 11px; background: rgba(0, 0, 0, .65); color: #fff; padding: 0 5px; border-radius: 6px; font-family: var(--font); }
.prow__info strong { display: block; }
.prow__info small { color: var(--ink-2); }
.prow__price { text-align: right; }
.prow__price strong { display: block; color: var(--ember-2); }
.prow__price s { font-size: 13px; color: var(--ink-2); }
.prow__act { display: flex; gap: 6px; }
.chips { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 600; }
.chip--ok { background: #e3eed9; color: var(--moss); }
.chip--warn { background: #fbe0d8; color: var(--ember-2); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 8px; }
.imgs__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.imgs__item img { width: 100%; height: 100%; object-fit: cover; }
.imgs__item.pending { outline: 2px dashed var(--gold); outline-offset: -2px; }
.imgs__main { position: absolute; top: 4px; left: 4px; background: var(--ember); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.imgs__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; background: rgba(28, 22, 17, .72); }
.imgs__bar button { flex: 1; border: 0; background: none; color: #fff; padding: 4px 0; font-size: 14px; }
.imgs__bar button:hover { background: rgba(255, 255, 255, .15); }
.imgs__add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--ink-2); display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 6px; background: transparent; }
.imgs__add:hover { border-color: var(--ember); color: var(--ember); }
.add-url { display: flex; gap: 8px; }
.add-url input { flex: 1; }
.uploader { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.uploader__preview { flex: none; width: 140px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); border: 1px dashed var(--ink-2); display: grid; place-items: center; font-size: 13px; color: var(--ink-2); }
.uploader__preview img { width: 100%; height: 100%; object-fit: cover; }
.uploader__ctrl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.uploader__ctrl label.btn { cursor: pointer; margin: 0; }
.toggles { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 8px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 23px; border-radius: 999px; background: #cbbca6; position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--moss); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13.5px; }
.toolbar button:hover { border-color: var(--ember); color: var(--ember); }
.editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px !important; line-height: 1.6; min-height: 320px; }
.dialog--wide { width: min(860px, calc(100% - 24px)); }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-box h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 12px; }
.save-bar { position: sticky; bottom: 0; margin-top: 18px; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.filters { display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin-bottom: 16px; }
.olist { display: grid; gap: 12px; }
.order { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.order[data-status="Mới"] { border-left-color: var(--ember); }
.order[data-status="Đã xác nhận"] { border-left-color: var(--gold); }
.order[data-status="Đang giao"] { border-left-color: #3b6ea8; }
.order[data-status="Hoàn thành"] { border-left-color: var(--moss); }
.order[data-status="Đã hủy"] { opacity: .6; }
.order__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.order__head strong { font-size: 16px; margin-right: 10px; }
.order__head small { color: var(--ink-2); }
.order__head select { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; font-weight: 600; font-size: 14px; }
.order__grid { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr .9fr; gap: 16px; font-size: 14px; }
.lbl { display: block; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 3px; }
.pre { white-space: pre-line; }
.big { font-size: 17px; color: var(--ember-2); }
.order__note { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .slider__track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; }
  .hero__logo img { width: min(300px, 80%); }
  .hero__cta, .hero__ship { justify-content: center; }
  .lead { margin-inline: auto; }
  .usp__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .order__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .cart-btn__label { display: none; }
  .topbar__inner { height: 64px; }
  .brand__logo { height: 50px; }
  .cart-btn { margin-left: auto; padding: 9px 10px 9px 13px; }
  .ship-bar { font-size: 12.5px; }
  .ship-bar__sep, .ship-bar__sep + * { display: none; }
  .hero { padding: 36px 0 84px; }
  .usp__grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .posts { grid-template-columns: 1fr; }
  .slider__track { grid-auto-columns: 82%; }
  .slider__btn { display: none; }
  .radio-cards, .row-2 { grid-template-columns: 1fr; }
  .summary__row { grid-template-columns: 1fr auto; }
  .summary__end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .gallery__nav { display: none; }
  .cta-box { flex-direction: column; text-align: center; }
  .letter__foot { grid-template-columns: 1fr; justify-items: center; }
  .letter__contact { align-items: center; }
  .letter__sign { text-align: center; }
  .letter__order dl { grid-template-columns: 1fr; }
  /* nút liên hệ: thanh dưới cùng trên điện thoại */
  body:has(.fabs) { padding-bottom: 62px; }
  .fabs { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: var(--card); box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom); }
  .fab { flex: 1; width: auto; height: 58px; border-radius: 0; display: flex; gap: 8px; justify-content: center; align-items: center; box-shadow: none; }
  .fab:hover { transform: none; }
  .fab::before { display: none; }
  .fab > span { position: static; opacity: 1; transform: none; background: none; padding: 0; font-size: 14.5px; }
  .fab__zalo { font-size: 0; width: 0; }
  .fab__zalo + span { font-weight: 800; }
  .toast { bottom: 80px; }
  .prow { grid-template-columns: 56px 1fr; }
  .prow__img { width: 56px; height: 56px; }
  .prow__price { text-align: left; grid-column: 2; }
  .prow__act { grid-column: 1 / -1; justify-content: flex-end; }
  .filters, .order__grid { grid-template-columns: 1fr; }
  .uploader { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
