/* ============ Heo Corner — design tokens ============ */
:root {
  color-scheme: light;
  --bg: #FFF6F9;
  --bg-soft: #FDE8F0;
  --pink-100: #FCE4EE;
  --pink-200: #F9CADD;
  --pink-300: #F4A9C6;
  --primary: #C2185B;        /* hồng đậm — chữ trắng tương phản 5.9:1 */
  --primary-hover: #A3134B;
  --ink: #3A1D2B;            /* nâu mận — chữ chính */
  --ink-2: #6E4A5B;          /* chữ phụ (5.6:1 trên nền trắng) */
  --price: #B4232A;
  --card: #FFFFFF;
  --border: #F3D3E0;
  --zalo: #0068FF;
  --shadow-sm: 0 1px 2px rgba(88, 24, 54, .06), 0 2px 8px rgba(88, 24, 54, .06);
  --shadow-md: 0 6px 24px rgba(150, 40, 90, .14);
  --shadow-lg: 0 18px 48px rgba(120, 30, 70, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1320px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(194, 24, 91, .28); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--pink-200); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 246, 249, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(194, 24, 91, .2); }
.brand-text { font: 800 1.35rem/1 var(--font-head); color: var(--ink); }
.main-nav { display: none; gap: 4px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.main-nav a:hover { background: var(--pink-100); color: var(--ink); }
@media (min-width: 820px) { .main-nav { display: flex; } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, #FFD6E7 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 100%, #FBE3F5 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero::after { /* chấm pixel trang trí, gợi chữ pixel trong logo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(var(--pink-300) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 20px; padding: 20px 0 24px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.4fr 1fr; padding: 28px 0 32px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--primary); border: 1px solid var(--pink-200);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.eyebrow .ic { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 10px 0 8px; font-weight: 800; }
.hero .hl {
  color: var(--primary);
  background: linear-gradient(transparent 62%, var(--pink-200) 62%, var(--pink-200) 92%, transparent 92%);
  padding: 0 .1em;
}
.lead { font-size: 1rem; color: var(--ink-2); max-width: 40em; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.hero-cta .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ink-2); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .ic { color: var(--primary); }

.hero-art { display: none; position: relative; height: 250px; max-width: 300px; width: 100%; margin-inline: auto; }
@media (min-width: 900px) { .hero-art { display: block; } }
.poster {
  position: absolute; width: 50%; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 5px solid #fff; box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.poster img { width: 100%; height: auto; }
.poster.p1 { left: 2%; top: 4%; transform: rotate(-8deg); }
.poster.p2 { right: 0; top: 0; width: 52%; transform: rotate(6deg); z-index: 2; }
.poster.p3 { left: 26%; bottom: -2%; width: 48%; transform: rotate(-2deg); z-index: 3; }
.hero-art:hover .p1 { transform: rotate(-11deg) translate(-8px, -4px); }
.hero-art:hover .p2 { transform: rotate(9deg) translate(8px, -6px); }
.hero-logo {
  position: absolute; z-index: 4; right: -4%; bottom: 0; width: 76px; height: 76px;
  border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-md);
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* ============ Products ============ */
.products { padding: 24px 0 56px; }
.products h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 2px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head p { font-size: .92rem; }
.section-head p { margin: 0; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255, 246, 249, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin: 0 -16px; padding: 10px 16px;
  display: grid; gap: 10px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1352px) { .toolbar { margin: 0; padding: 12px 0; } }
@media (max-width: 639px) { .toolbar { position: static; } } /* màn hình nhỏ: không dính để chừa chỗ xem sản phẩm */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin: 0 -16px; padding: 2px 16px;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; } }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border); color: var(--ink-2);
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
@media (min-width: 1000px) { .chip { min-height: 38px; padding: 0 12px; font-size: .88rem; } }
.chip:hover { border-color: var(--pink-300); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: .78rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--pink-100); color: var(--primary); }
.chip[aria-selected="true"] .n { background: rgba(255, 255, 255, .18); color: #fff; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.search { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--ink-2); pointer-events: none; }
.search input, .select select {
  width: 100%; min-height: 46px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink);
  font: 500 1rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.search input { padding: 0 16px 0 44px; }
.search input:focus, .select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(194, 24, 91, .14); }
.select { flex: 0 1 210px; }
.select select { padding: 0 38px 0 16px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E4A5B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.view-toggle { display: flex; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 3px; }
.view-toggle button {
  width: 44px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s;
}
.view-toggle button[aria-pressed="true"] { background: var(--pink-100); color: var(--primary); }

.result-count { margin: 10px 0 10px; color: var(--ink-2); font-size: .88rem; }

/* Grid — thẻ gọn, nhiều cột để thấy nhiều sản phẩm trong 1 màn hình */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; width: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  animation: cardIn .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--pink-300); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--pink-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--primary);
  box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.card:hover .card-zoom, .card:focus-visible .card-zoom { opacity: 1; transform: none; }
@media (hover: none) { .card-zoom { opacity: 1; transform: none; } }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; flex: 1; }
.card-origin { font-size: .72rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font: 700 .92rem/1.25 var(--font-head); margin: 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-variants { display: flex; flex-wrap: wrap; gap: 3px; }
.card-variants span { font-size: .68rem; padding: 1px 6px; border-radius: 5px; background: var(--bg-soft); color: var(--ink-2); }
.card-price { margin-top: auto; padding-top: 4px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.card-price .from { font-size: .72rem; color: var(--ink-2); }
.card-price b { font: 800 1.05rem/1 var(--font-head); color: var(--price); }
.card-price small { font-size: .7rem; color: var(--ink-2); }
.badge { left: 6px; top: 6px; padding: 2px 8px; font-size: .68rem; }
.card-zoom { width: 30px; height: 30px; right: 6px; bottom: 6px; }
.card-zoom .ic { width: 16px; height: 16px; }
.card { border-radius: 14px; }

/* Table view */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ptable th, .ptable td { padding: 10px 14px; text-align: left; vertical-align: middle; }
.ptable thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; }
.ptable tbody tr { border-top: 1px solid var(--border); cursor: pointer; transition: background-color .15s; }
.ptable tbody tr:hover { background: var(--bg); }
.ptable .cat-row td { background: var(--pink-100); font: 700 1rem var(--font-head); color: var(--primary); cursor: default; }
.ptable .thumb { width: 44px; height: 55px; object-fit: cover; object-position: top; border-radius: 8px; }
.ptable .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.ptable .pname { font-weight: 600; }
.ptable .sub { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 400; }
.ptable button.linklike { all: unset; cursor: pointer; font-weight: 600; }
.ptable button.linklike:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.ptable thead th.num { color: #fff; }
.ptable .sub-pack { display: none; }
@media (max-width: 639px) {
  .ptable .col-origin, .ptable .col-thumb, .ptable .col-pack { display: none; }
  .ptable .sub-pack { display: inline; }
  .ptable th, .ptable td { padding: 10px; }
}

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty img { margin: 0 auto 12px; border-radius: 50%; }

/* ============ Why ============ */
.why { padding: 72px 0; background: #fff; border-block: 1px solid var(--border); }
.why-grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-card { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card p { color: var(--ink-2); margin: 0; }
.why-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--pink-200); color: var(--primary); margin-bottom: 14px; }
.why-ic .ic { width: 26px; height: 26px; }

/* ============ Contact ============ */
.contact { padding: 36px 0; }
.contact-inner { display: grid; gap: 16px; max-width: 980px; margin-inline: auto; }
@media (min-width: 820px) { .contact-inner { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 18px 20px; box-shadow: var(--shadow-sm); font-size: .92rem; }
.contact-card h2 { font-size: 1.35rem; margin: 0; }
.contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-logo { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow-sm); flex: none; }
.contact-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.contact-list .ic { width: 18px; height: 18px; }
.contact-cta .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--primary); margin-top: 2px; }
.contact-list small { color: var(--ink-2); }
.contact-list a { color: var(--primary); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 220px; background: var(--pink-100); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #F6E6EE; padding: 20px 0; font-size: .88rem; text-align: center; }
.site-footer p { max-width: 760px; margin: 0 auto 6px; }
.site-footer .age { color: #FFB3D0; font-weight: 600; margin-bottom: 0; }
/* Điện thoại: chừa chỗ cho nút Zalo nổi để không che chữ */
@media (max-width: 639px) { .site-footer { padding: 18px 76px 18px 0; text-align: left; } .site-footer p { margin-left: 0; } }

/* ============ Zalo bubble ============ */
.zalo-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.zalo-icon {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: var(--zalo); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0, 104, 255, .4);
  transition: transform .2s var(--ease);
}
.zalo-icon svg { width: 40px; height: 40px; }
.zalo-icon::before, .zalo-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--zalo); animation: ring 2.4s ease-out infinite;
}
.zalo-icon::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.zalo-label {
  background: #fff; color: var(--zalo); font-weight: 700; font-size: .92rem;
  padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(0, 104, 255, .2); white-space: nowrap;
  position: relative;
}
.zalo-fab:hover .zalo-icon { transform: scale(1.08); }
.zalo-fab:focus-visible { outline: none; }
.zalo-fab:focus-visible .zalo-icon { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 639px) {
  .zalo-label { font-size: .85rem; padding: 8px 12px; }
  .zalo-fab.compact .zalo-label { opacity: 0; transform: translateX(10px); pointer-events: none; }
  .zalo-label { transition: opacity .25s, transform .25s; }
}

/* ============ Dialog ============ */
.dlg {
  width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dlg::backdrop { background: rgba(58, 29, 43, .55); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .28s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dlg-body { display: grid; max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (min-width: 780px) { .dlg-body { grid-template-columns: 1fr 1fr; overflow: hidden; } }
.dlg-media { display: block; background: var(--pink-100); cursor: zoom-in; }
.dlg-media img { width: 100%; height: auto; }
@media (min-width: 780px) {
  .dlg-media { max-height: calc(100dvh - 24px); overflow-y: auto; }
}
.dlg-info { padding: 24px 22px 26px; }
@media (min-width: 780px) { .dlg-info { overflow-y: auto; max-height: calc(100dvh - 24px); padding: 36px 32px; } }
.dlg-close {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transition: background-color .2s, transform .15s;
}
.dlg-close:hover { background: var(--pink-100); }
.dlg-close:active { transform: scale(.94); }
.dlg-cat { margin: 0 0 6px; color: var(--primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.dlg-info h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 6px; padding-right: 36px; }
.dlg-meta { color: var(--ink-2); font-weight: 500; margin-bottom: 10px; }
.dlg-desc { color: var(--ink); }
.vtable { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: .95rem; }
.vtable th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 0 8px 8px 0; border-bottom: 2px solid var(--border); }
.vtable td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--border); }
.vtable .num { text-align: right; padding-right: 0; }
.vtable td.num { font: 800 1.15rem/1 var(--font-head); color: var(--price); white-space: nowrap; }
.dlg-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.dlg-cta .btn { flex: 1 1 180px; }
.dlg-note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 1000; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .zalo-icon::before, .zalo-icon::after { display: none; }
}

/* ============ Dữ liệu động: thông báo, tình trạng, giá cũ, khung tải ============ */
.announce { background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; text-align: center; padding: 8px 0; }
.announce a { color: #FFD3E5; text-decoration: underline; text-underline-offset: 3px; }

.stock {
  position: absolute; z-index: 1; right: 6px; top: 6px;
  padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.stock-out { color: #8A5A00; background: #FFF3D6; }
.stock-discontinued { color: #fff; background: #55424C; }
.card.is-out .card-media img { filter: saturate(.55); opacity: .82; }
.card.is-discontinued .card-media img { filter: grayscale(1); opacity: .6; }
.card.is-discontinued .card-price b { color: var(--ink-2); }
.ptable .stock { position: static; margin-left: 6px; box-shadow: none; vertical-align: middle; }
.ptable tr.row-discontinued td { color: var(--ink-2); }

.card-price s, .ptable .num s, .vtable .num s {
  color: var(--ink-2); font-weight: 500; font-size: .75rem; margin-left: 2px; text-decoration-thickness: 1.5px;
}
.ptable .num s, .vtable .num s { display: block; font-family: var(--font-body); }

.dlg-status { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.dlg-status.st-available { background: #E3F6EA; color: #1B6B3A; }
.dlg-status.st-out { background: #FFF3D6; color: #8A5A00; }
.dlg-status.st-discontinued { background: #EDE6EA; color: #55424C; }

.card.skeleton { cursor: default; animation: none; pointer-events: none; }
.card.skeleton .card-media, .card.skeleton .card-body span {
  background: linear-gradient(90deg, var(--pink-100) 0%, #fff 50%, var(--pink-100) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.card.skeleton .card-body span { display: block; height: 10px; border-radius: 6px; }
.card.skeleton .card-body span:nth-child(2) { width: 80%; height: 14px; }
.card.skeleton .card-body span:nth-child(3) { width: 45%; height: 14px; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Dải tình trạng trên ảnh sản phẩm */
.stock-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 7px 8px; text-align: center; font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.strip-out { background: rgba(255, 196, 61, .95); color: #4A3100; }
.strip-discontinued { background: rgba(58, 29, 43, .9); color: #fff; }
.card.is-out .card-zoom, .card.is-discontinued .card-zoom { bottom: 40px; }
