/* ============================================================
   NGÔ MINH OFFLINE — Heritage Natural Theme
   Pure CSS, no CDN, no @import. Works with file:// protocol.
   Palette: deep forest green + warm gold + soft cream
   ============================================================ */

:root {
  /* Brand */
  --brand:        #1f7a50;
  --brand-dark:   #17573a;
  --brand-light:  #2b9d6a;
  --brand-soft:   #edf7f1;

  /* Accent gold */
  --gold:         #c09f70;
  --gold-deep:    #a68452;
  --gold-soft:    #f1e8d7;

  /* Neutral */
  --ink:          #1f2530;
  --muted:        #61697a;
  --line:         #e6ddca;
  --line-soft:    #f0e9da;

  /* Background */
  --bg:           #fbf6ec;
  --bg-soft:       #fffaf2;
  --card:          #ffffff;

  /* Status */
  --danger:       #c0392b;
  --price:        #d31100;
  --success:      #27ae60;

  /* Layout */
  --shadow-sm: 0 4px 14px rgba(37,30,18,0.06);
  --shadow:    0 12px 28px rgba(37,30,18,0.10);
  --shadow-lg: 0 20px 44px rgba(37,30,18,0.14);
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --maxw: 1200px;
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Roboto", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ===== Layout ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }
.section-tight { padding: 16px 0; }
.grid { display: grid; gap: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Glass effect ===== */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-dark {
  background: rgba(23, 87, 58, 0.82);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Animated gradient text ===== */
.gradient-text {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand), var(--gold-deep), var(--brand-dark));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Shimmer effect ===== */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmerMove 3s infinite;
}
@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: "Georgia", "Times New Roman", serif; line-height: 1.2; color: #15201a; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.lead { font-size: 18px; color: var(--muted); }

.kicker {
  display: inline-block;
  padding: 5px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.gold-kicker {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 20px;
  min-height: 46px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  font-size: 15px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,122,80,0.26);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(166,132,82,0.30);
}
.btn-gold:hover { color: #fff; filter: brightness(1.05); }
.btn-danger {
  background: linear-gradient(180deg, #e74c3c, var(--price));
  color: #fff;
  box-shadow: 0 8px 18px rgba(211,17,0,0.26);
}
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-outline {
  background: #fff;
  border-color: var(--gold);
  color: var(--gold-deep);
}
.btn-outline:hover { background: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }

/* ===== Header ===== */
.topbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #d6f0e0;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-promo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-promo .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.topbar-hotline { font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(192, 159, 112, 0.18);
  box-shadow: 0 4px 24px rgba(23, 87, 58, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 14px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-dark); }
.brand-logo {
  height: 44px;
  width: 132px; /* logo 300×100 — giữ tỉ lệ 3:1 */
  max-width: 132px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(23,87,58,0.14);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
  padding: 4px 8px;
}
.brand-logo:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(23,87,58,0.22); }
.brand-logo img {
  width: auto;
  height: auto;
  max-width: 116px;
  max-height: 36px;
  object-fit: contain;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 20px; color: var(--brand-dark); font-family: Georgia, serif; }
.brand-name span { font-size: 11px; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 1px; }

/* Hide brand-name text on mid screens — logo image already has brand name */
@media (max-width: 992px) {
  .brand-name { display: none; }
  .site-header .brand-logo { height: 38px; width: 114px; max-width: 114px; }
  .site-header .brand-logo img { max-width: 100px; max-height: 30px; }
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  color: var(--brand-dark);
  transition: background .15s;
}
.icon-btn:hover { background: #dcefe3; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--price);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--bg-soft);
}

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { padding: 32px 0 24px; }
.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,246,230,0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 159, 112, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(23, 87, 58, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,159,112,0.18), transparent 60%);
  pointer-events: none;
}
.hero-copy { padding: 32px; position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: 14px; }
.hero-copy .lead { margin-bottom: 20px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hero-benefits li {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.hero-benefits li:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.06); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-media {
  background: linear-gradient(160deg, var(--gold-soft), #f9ebd3 55%, #fff);
  padding: 24px;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 320px;
}
.hero-media img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(23, 87, 58, 0.18);
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
.hero-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(23, 87, 58, 0.28);
  animation: badgeBounce 2s ease-in-out infinite;
}
@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===== Section heading ===== */
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); }
.section-head.center { text-align: center; }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 44px rgba(23, 87, 58, 0.14), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.product-card .pcard-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-soft), #fff 60%);
  position: relative;
  display: block;
}
.product-card .pcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.product-card:hover .pcard-img img { transform: scale(1.1); }
/* Overlay actions on image hover */
.pcard-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(0deg, rgba(23,87,58,0.78) 0%, rgba(23,87,58,0) 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.product-card:hover .pcard-overlay { opacity: 1; pointer-events: auto; }
.pcard-overlay .ov-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  text-decoration: none;
  transform: translateY(12px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), background .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}
.product-card:hover .pcard-overlay .ov-btn { transform: translateY(0); }
.product-card:hover .pcard-overlay .ov-btn:nth-child(2) { transition-delay: .06s; }
.product-card:hover .pcard-overlay .ov-btn:nth-child(3) { transition-delay: .12s; }
.product-card:hover .pcard-overlay .ov-btn:nth-child(4) { transition-delay: .18s; }
.ov-btn:hover { color: #fff; }
.ov-btn-zalo { background: linear-gradient(135deg, #0068ff, #0047b3); }
.ov-btn-zalo:hover { background: linear-gradient(135deg, #007af, #0056cc); }
.ov-btn-call { background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); }
.ov-btn-call:hover { filter: brightness(1.1); }
.ov-btn-cart { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.ov-btn-cart:hover { filter: brightness(1.1); }
.ov-btn-share { background: linear-gradient(135deg, #0084ff, #0060c8); }
.ov-btn-share:hover { filter: brightness(1.1); }
.ov-btn svg { width: 22px; height: 22px; }
.product-card .pcard-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.product-card .pcard-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .pcard-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.product-card:hover .pcard-name { color: var(--brand-dark); }
.product-card .pcard-price { font-size: 20px; font-weight: 800; color: var(--price); }
.product-card .pcard-price small { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.product-card .pcard-actions { display: flex; gap: 8px; margin-top: auto; }
.product-card .btn { flex: 1; }

/* ===== Quick action buttons (mobile) ===== */
.pcard-quick-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.qa-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform .15s, filter .2s;
}
.qa-btn:hover { color: #fff; transform: translateY(-1px); }
.qa-btn:active { transform: scale(0.97); }
.qa-btn svg { width: 16px; height: 16px; }
.qa-zalo { background: linear-gradient(135deg, #0068ff, #0047b3); }
.qa-call { background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); }
.qa-share { background: linear-gradient(135deg, #0084ff, #0056cc); }

/* ===== Trust badges ===== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trust-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid; place-items: center;
  color: var(--brand-dark);
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-item h4 { margin: 0; font-size: 15px; font-family: "Segoe UI", sans-serif; }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-dark);
  color: #cde8d8;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 16px; font-family: "Segoe UI", sans-serif; }
.footer-grid a { color: #b8dcc8; display: block; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14px; color: #a8d0b8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; text-align: center; font-size: 13px; color: #8ec5a5; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-logo { background: rgba(255,255,255,0.95); padding: 6px 10px; height: 56px; min-width: 140px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.footer-brand b { color: #fff; font-size: 18px; font-family: Georgia, serif; }
.footer-contact { font-size: 14px; color: #b8dcc8; }
.footer-contact strong { color: #fff; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15,25,18,0.45);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--bg-soft);
  z-index: 210;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-dark);
  color: #fff;
}
.cart-header h3 { color: #fff; font-size: 20px; margin: 0; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: grid; place-items: center;
}
.cart-close:hover { background: rgba(255,255,255,0.25); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.3; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--gold-soft); flex-shrink: 0; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-info b { font-size: 14px; color: var(--ink); }
.cart-item-info .cart-item-price { color: var(--price); font-weight: 700; font-size: 15px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 30px; height: 30px; background: var(--bg); font-weight: 700; color: var(--brand-dark); }
.qty-control button:hover { background: var(--brand-soft); }
.qty-control span { min-width: 36px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item-remove { color: var(--danger); font-size: 13px; font-weight: 600; margin-left: auto; }
.cart-item-remove:hover { text-decoration: underline; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; }
.cart-total b { color: var(--price); font-size: 24px; }
.cart-footer .btn { margin-bottom: 8px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,25,18,0.55);
  z-index: 300;
  display: grid; place-items: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close-bar {
  display: flex; justify-content: flex-end;
  padding: 12px 16px;
}
.modal-close-bar .cart-close { background: var(--brand-soft); color: var(--brand-dark); }

/* ===== Product detail (modal) ===== */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pdetail-gallery { background: linear-gradient(160deg, var(--gold-soft), #fff 60%); padding: 24px; display: grid; place-items: center; }
.pdetail-gallery .main-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.pdetail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pdetail-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; background: #fff; }
.pdetail-thumbs img.active { border-color: var(--brand); }
.pdetail-info { padding: 24px; }
.pdetail-info h2 { margin-bottom: 8px; }
.pdetail-info .pdetail-price { font-size: 32px; font-weight: 800; color: var(--price); margin-bottom: 14px; }
.pdetail-info .pdetail-desc { color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.pdetail-info .pdetail-features { margin-bottom: 18px; }
.pdetail-info .pdetail-features li { padding: 6px 0 6px 26px; position: relative; }
.pdetail-info .pdetail-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.pdetail-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pdetail-qty .qty-control { border-width: 2px; }
.pdetail-qty .qty-control button { width: 36px; height: 36px; }
.pdetail-qty .qty-control span { min-width: 44px; font-size: 16px; }
.pdetail-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pdetail-cta .btn { flex: 1; min-width: 160px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,122,80,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== Checkout page ===== */
.checkout-wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; align-items: start; }
.checkout-form { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.order-summary { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.order-summary h3 { margin-bottom: 14px; }
.order-summary .os-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.order-summary .os-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.order-summary .os-item b { font-size: 14px; display: block; }
.order-summary .os-item span { font-size: 13px; color: var(--price); font-weight: 700; }
.order-summary .os-item small { color: var(--muted); font-size: 12px; }
.os-total { display: flex; justify-content: space-between; align-items: center; font-size: 20px; padding: 14px 0 0; margin-top: 12px; border-top: 2px solid var(--line); }
.os-total b { color: var(--price); font-size: 24px; }

/* ===== Order success ===== */
.success-wrap { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 20px; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 20px; }
.success-icon svg { width: 44px; height: 44px; }
.order-info { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; margin: 20px 0; text-align: left; }
.order-info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.order-info-row:last-child { border: none; }
.order-info-row b { color: var(--ink); }

/* ===== Landing page ===== */
.landing-hero { padding: 24px 0; }
.landing-hero .hero-card { grid-template-columns: 1.05fr 0.95fr; }
.countdown-row { display: flex; gap: 8px; margin: 14px 0; }
.countdown-box {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}
.countdown-box b { display: block; font-size: 24px; line-height: 1; font-family: Georgia, serif; }
.countdown-box span { font-size: 11px; text-transform: uppercase; opacity: 0.8; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-item .feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-item .feature-icon svg { width: 22px; height: 22px; }
.feature-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.feature-item p { margin: 0; font-size: 13px; color: var(--muted); }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 3px solid var(--gold);
}
.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: 8px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--muted); margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-weight: 800;
}
.testimonial-author b { font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--muted); }

/* ===== Floating CTA (mobile) */
.floating-cta {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 150;
  display: none;
  gap: 10px;
  align-items: center;
}
.floating-cta .btn { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== Zalo floating button ===== */
.float-zalo {
  position: fixed;
  bottom: 80px; right: 16px;
  z-index: 149;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0068ff, #0047b3);
  display: none;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.36);
  transition: transform .25s;
  cursor: pointer;
}
.float-zalo:hover { transform: scale(1.1); color: #fff; }
.float-zalo svg { width: 32px; height: 32px; }
.float-zalo::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0068ff;
  animation: ringPulse 2s ease-out infinite;
  opacity: 0;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== Share modal ===== */
.share-modal-content {
  max-width: 420px;
  text-align: center;
  padding: 28px 24px;
}
.share-modal-content h3 { margin-bottom: 8px; }
.share-modal-content p { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s;
  min-width: 90px;
}
.share-btn:hover { color: #fff; transform: translateY(-3px); }
.share-btn svg { width: 28px; height: 28px; }
.share-fb { background: linear-gradient(135deg, #1877f2, #0a5dc2); }
.share-zalo { background: linear-gradient(135deg, #0068ff, #0047b3); }
.share-copy { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.share-mess { background: linear-gradient(135deg, #0084ff, #0060c8); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; order: -1; }
  .hero-media img { max-width: 300px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pdetail { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .floating-cta { display: flex; }
  .float-zalo { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-promo { display: none; }
  .hero-copy { padding: 20px; }
  .hero-media { min-height: 220px; }
  .hero-media img { max-width: 240px; }
  .section { padding: 20px 0; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85%);
  background: var(--bg-soft);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  padding: 16px;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu-header h3 { color: #fff; margin: 0; font-size: 18px; }
.mobile-menu nav { padding: 12px; }
.mobile-menu nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.mobile-menu-contact { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }
.mobile-menu-contact a { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 600; color: var(--brand-dark); }

/* ===== Print */
@media print {
  .site-header, .site-footer, .cart-drawer, .floating-cta, .float-zalo, .btn { display: none !important; }
  body { background: #fff; }
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

/* Focus-visible cho tất cả nút/link — hỗ trợ keyboard */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Touch-friendly: overlay luôn hiện trên thiết bị cảm ứng */
@media (hover: none) and (pointer: coarse) {
  .pcard-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: linear-gradient(0deg, rgba(23,87,58,0.72) 0%, rgba(23,87,58,0) 35%) !important;
  }
  .pcard-overlay .ov-btn { transform: translateY(0) !important; }
}

/* Reduce motion cho người dùng nhạy cảm */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1f1c;
    --bg-soft: #232a25;
    --card: #2a312c;
    --ink: #e8f0ea;
    --muted: #9aa8a0;
    --line: #3a453e;
    --line-soft: #2f3833;
    --brand-soft: rgba(31, 122, 80, 0.18);
    --gold-soft: rgba(192, 159, 112, 0.14);
  }
  .site-header { background: rgba(26, 31, 28, 0.85); border-bottom-color: rgba(192, 159, 112, 0.15); }
  .hero-card { background: linear-gradient(145deg, rgba(42,49,44,0.9), rgba(35,42,37,0.85)); }
  .hero-media { background: linear-gradient(160deg, rgba(192,159,112,0.12), rgba(42,49,44,0.6) 55%, #2a312c); }
  .topbar-hotline, .topbar a { color: #fff; }
  body { color: var(--ink); }
  h1, h2, h3, h4 { color: #e8f0ea; }
  .product-card .pcard-name { color: var(--ink); }
}

/* ===== Optimizations v10 ===== */
.pcard-img-link { display: block; position: relative; width: 100%; height: 100%; }
.pcard-short {
  font-size: 13px; min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-discount {
  position: absolute; top: 10px; right: 10px;
  background: var(--danger); color: #fff;
  padding: 4px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; z-index: 2;
}
.pcard-quick-actions { margin-top: 4px; }
@media (min-width: 769px) {
  .pcard-quick-actions { display: none; }
}
@media (max-width: 768px) {
  .pcard-overlay { display: none !important; }
  .pcard-quick-actions { display: flex; }
}

.search-bar { margin-bottom: 20px; }
.search-bar .form-group { margin-bottom: 0; }
.search-bar input { max-width: 600px; }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--brand-dark); font-weight: 600; }
.pdetail-page { margin-top: 8px; }
.pdetail-old-price { font-size: 16px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.trust-box {
  margin-top: 16px; padding: 12px;
  background: var(--brand-soft); border-radius: 10px;
  font-size: 13px; color: var(--brand-dark);
}
.fw-600 { font-weight: 600; }

.order-success-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.bank-info {
  margin-top: 16px; padding: 14px;
  background: var(--gold-soft); border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px;
}
.order-total-price { color: var(--price) !important; font-size: 18px !important; }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 16px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 14px 0;
  list-style: none; color: var(--brand-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 14px; color: var(--muted); font-size: 15px; }

.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg); padding: 36px 28px;
  color: #fff; text-align: center; box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: #cde8d8; margin-bottom: 20px; font-size: 17px; }
.btn-lg { font-size: 18px; padding: 16px 32px; }

/* ——— Facebook Ads landing ——— */
.ads-landing { padding-bottom: 72px; }
.site-header--ads .header-actions { margin-left: auto; }
.site-header--ads .header-call { white-space: nowrap; }
.floating-cta--hide-ads { display: none !important; }
.float-zalo--ads { bottom: 88px; }

.ads-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transform: translateY(110%);
  transition: transform .25s ease;
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.ads-sticky-bar.is-visible { transform: translateY(0); }
.ads-sticky-bar .btn { flex: 1; max-width: 280px; font-size: 16px; padding: 14px 20px; }
.ads-sticky-bar .btn-outline { flex: 0 0 auto; max-width: none; padding: 14px 16px; }

@media (max-width: 640px) {
  .ads-sticky-bar { padding-left: 12px; padding-right: 12px; }
  .ads-sticky-bar .btn { font-size: 15px; padding: 12px 14px; }
}

/* ——— Product combos ——— */
.pcard-ship, .combo-ship {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 3px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.pcard-combo-teaser {
  font-size: 12px; color: var(--brand-dark); font-weight: 600;
  background: var(--gold-soft); padding: 6px 10px; border-radius: 8px; line-height: 1.4;
}
.pdetail-retail-note { margin: -6px 0 12px; font-size: 15px; }

.combo-section { margin-top: 28px; padding-top: 8px; }
.combo-title { font-size: 22px; margin-bottom: 16px; color: var(--brand-dark); }
.combo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.combo-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.combo-card--best {
  border-color: var(--brand); box-shadow: 0 8px 24px rgba(23,87,58,.15);
  background: linear-gradient(180deg, #f3faf6 0%, var(--card) 100%);
}
.combo-badge {
  position: absolute; top: -10px; right: 12px;
  background: linear-gradient(135deg, #e8b923, #d4a017); color: #3d2e00;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.combo-head b { display: block; font-size: 17px; color: var(--brand-dark); }
.combo-head span { font-size: 13px; color: var(--muted); }
.combo-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.combo-price { font-size: 24px; font-weight: 800; color: var(--price); }
.combo-save { font-size: 13px; color: #c0392b; font-weight: 700; }
.combo-gift {
  font-size: 13px; color: var(--brand-dark); background: var(--gold-soft);
  padding: 8px 10px; border-radius: 8px; margin: 0; line-height: 1.45;
}
.combo-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.combo-actions .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .combo-grid { grid-template-columns: 1fr; }
}