/* ═══════════════════════════════════════════════════════
   WPVault — Ngũ Hành Thổ × Tech
   Palette: Gold · Nâu Đất · Kem · Đen Than
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Core — Thổ palette */
  --gold:        #C9A84C;   /* vàng đất chủ đạo */
  --gold-d:      #A8852E;   /* vàng đậm hover */
  --gold-l:      #E8C97A;   /* vàng nhạt */
  --gold-bg:     #FBF6E9;   /* nền vàng rất nhạt */
  --gold-border: #ECD89A;   /* border vàng */

  --earth:       #6B4F2A;   /* nâu đất */
  --earth-d:     #4A3318;   /* nâu đậm */
  --earth-l:     #9C7A50;   /* nâu nhạt */
  --earth-bg:    #F5EDE0;   /* nền nâu nhạt */

  --cream:       #FDFAF4;   /* kem trắng — nền trang */
  --cream-2:     #F5F0E8;   /* kem đậm hơn */
  --ink:         #1C1410;   /* đen than ấm */
  --ink-2:       #4A3F35;   /* nâu chữ phụ */
  --ink-3:       #9C8E82;   /* xám nâu nhạt */

  --border:      #E8DFD0;   /* border ấm */
  --border-d:    #D4C4A8;   /* border đậm */
  --white:       #FFFFFF;

  /* Accent phụ — Kim (con của Thổ) */
  --silver:      #8A9BA8;   /* bạc xanh — điểm nhấn tech */
  --silver-bg:   #EEF2F5;

  /* Semantic */
  --success:     #5A8A4A;   /* xanh lá đất */
  --success-bg:  #EBF4E8;
  --danger:      #C0392B;
  --danger-bg:   #FDECEA;
  --warning:     #D4861A;
  --warning-bg:  #FEF3DC;
  --free:        #5A8A4A;

  /* Radius & shadow */
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(107,79,42,.08), 0 2px 8px rgba(107,79,42,.05);
  --shadow:    0 2px 8px rgba(107,79,42,.1),  0 8px 24px rgba(107,79,42,.07);
  --shadow-lg: 0 6px 20px rgba(107,79,42,.14), 0 16px 48px rgba(107,79,42,.1);

  /* Gold glow for CTA */
  --glow-gold: 0 0 0 3px rgba(201,168,76,.25);

  --ff: 'DM Sans',  system-ui, sans-serif;
  --fm: 'DM Mono',  monospace;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.wpv-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ────────────────────────────────────────────────── */
.wpv-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,244,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}
.wpv-nav-inner {
  display: flex; align-items: center; gap: 24px; height: 62px;
}
.wpv-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -.4px; color: var(--ink);
  flex-shrink: 0;
}
.wpv-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(201,168,76,.4);
}
.wpv-logo-icon svg { width: 17px; height: 17px; }
.wpv-nav-links { display: flex; gap: 2px; flex: 1; }
.wpv-nav-links a {
  padding: 6px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .15s;
}
.wpv-nav-links a:hover { background: var(--earth-bg); color: var(--earth); }
.wpv-nav-links a.current-menu-item { background: var(--gold-bg); color: var(--gold-d); font-weight: 600; }
.wpv-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--cream-2); border: 1px solid var(--border-d);
  border-radius: 9px; padding: 8px 14px; width: 230px;
  transition: border .2s, box-shadow .2s;
}
.wpv-search:focus-within { border-color: var(--gold); box-shadow: var(--glow-gold); }
.wpv-search svg { width: 15px; height: 15px; opacity: .45; flex-shrink: 0; color: var(--earth); }
.wpv-search input {
  border: none; background: none; font-family: var(--ff);
  font-size: 14px; color: var(--ink); outline: none; width: 100%;
}
.wpv-search input::placeholder { color: var(--ink-3); }
.wpv-nav-actions { display: flex; gap: 8px; margin-left: auto; }

/* ── BUTTONS ────────────────────────────────────────────── */
.wpv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--r);
  font-family: var(--ff); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s; border: none; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
/* Primary — gold (cả hai class đều hoạt động) */
.wpv-btn-primary,
.wpv-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(201,168,76,.35);
  text-shadow: 0 1px 2px rgba(107,79,42,.3);
}
.wpv-btn-primary:hover,
.wpv-btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  box-shadow: 0 4px 16px rgba(201,168,76,.45);
  transform: translateY(-1px);
  color: #fff !important;
}
/* Ghost */
.wpv-btn-ghost {
  background: var(--cream-2); color: var(--ink-2);
  border: 1px solid var(--border-d);
}
.wpv-btn-ghost:hover { background: var(--earth-bg); color: var(--earth); border-color: var(--earth-l); }
/* White (on dark bg) */
.wpv-btn-white { background: #fff; color: var(--earth-d); font-weight: 700; }
.wpv-btn-white:hover { background: var(--gold-bg); }
/* Outline on dark hero — vàng nổi bật trên nền tối */
.wpv-btn-outline {
  background: rgba(201,168,76,.18);
  color: #E8C97A;
  border: 1.5px solid rgba(201,168,76,.6);
}
.wpv-btn-outline:hover {
  background: rgba(201,168,76,.32);
  border-color: #E8C97A;
  color: #fff;
}
/* Sizes */
.wpv-btn-sm  { padding: 6px 14px; font-size: 13px; }
.wpv-btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.wpv-btn-hero{ padding: 14px 30px; font-size: 15px; border-radius: 13px; }
.wpv-btn-full{ width: 100%; }

/* ── HERO ───────────────────────────────────────────────── */
.wpv-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--earth-d) 50%, #2C1E0F 100%);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
/* Decorative circles */
.wpv-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 65%);
  pointer-events: none;
}
.wpv-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 65%);
  pointer-events: none;
}
.wpv-hero h1 {
  font-size: clamp(32px, 5vw, 54px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.6px; color: #fff; margin-bottom: 20px;
}
.wpv-hero h1 em { font-style: normal; color: var(--gold-l); }
.wpv-hero-desc { font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 36px; max-width: 500px; }
.wpv-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(201,168,76,.2); color: var(--gold-l);
  border: 1px solid rgba(201,168,76,.35);
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px; margin-bottom: 22px;
}
.wpv-pulse {
  width: 6px; height: 6px; background: var(--gold-l);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.wpv-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.wpv-hero-stats { display: flex; gap: 40px; }
.wpv-hero-stat {}
.wpv-stat-num {
  font-size: 26px; font-weight: 700; letter-spacing: -.5px;
  font-family: var(--fm); color: var(--gold-l);
}
.wpv-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ── TRUST BAR ──────────────────────────────────────────── */
.wpv-trust {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.wpv-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.wpv-trust-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 6px 20px; gap: 3px;
}
.wpv-trust-item + .wpv-trust-item { border-left: 1px solid var(--border); }
.wpv-trust-icon { font-size: 22px; margin-bottom: 4px; }
.wpv-trust-item strong { font-size: 13px; font-weight: 600; color: var(--earth); }
.wpv-trust-item span { font-size: 12px; color: var(--ink-3); }

/* ── SECTIONS ───────────────────────────────────────────── */
.wpv-section { padding: 60px 0; }
.wpv-section-gray { background: var(--cream-2); }
.wpv-section-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px;
}
.wpv-section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase;
  color: var(--gold-d); margin-bottom: 6px;
}
.wpv-section-title { font-size: 26px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); }
.wpv-section-link { font-size: 14px; color: var(--gold-d); font-weight: 600; }
.wpv-section-link:hover { text-decoration: underline; color: var(--gold); }

/* ── CATEGORY CARDS ─────────────────────────────────────── */
.wpv-cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.wpv-cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 18px;
  display: block; transition: all .22s;
  position: relative; overflow: hidden;
}
.wpv-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.wpv-cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-border); }
.wpv-cat-card:hover::before { transform: scaleX(1); }
.wpv-cat-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.wpv-cat-count { font-size: 13px; color: var(--ink-3); }
.wpv-cat-arrow {
  position: absolute; bottom: 18px; right: 18px; font-size: 16px;
  opacity: 0; transform: translateX(-6px); transition: all .2s; color: var(--gold);
}
.wpv-cat-card:hover .wpv-cat-arrow { opacity: 1; transform: translateX(0); }

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.wpv-products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.wpv-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.wpv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gold-border);
}
.wpv-card-thumb-link { display: block; }
.wpv-card-thumb {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-2);
}
.wpv-card-thumb img { width:100%; height:auto; max-height:194px; object-fit:contain; transition: transform .4s; padding:8px; }
.wpv-card:hover .wpv-card-thumb img { transform: scale(1.03); }
.wpv-card-emoji { font-size: 52px; }
.wpv-card-badges {
  position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px;
}
.wpv-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 100px; letter-spacing: .4px; text-transform: uppercase;
}
.wpv-badge-hot      { background: var(--danger);     color: #fff; }
.wpv-badge-new      { background: var(--gold);        color: #fff; }
.wpv-badge-sale     { background: var(--warning);     color: #fff; }
.wpv-badge-featured { background: var(--earth);       color: #fff; }

.wpv-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.wpv-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.wpv-card-type {
  font-size: 10px; font-weight: 700; color: var(--gold-d);
  letter-spacing: .6px; text-transform: uppercase;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  padding: 2px 8px; border-radius: 100px;
}
.wpv-card-dot { width: 3px; height: 3px; background: var(--border-d); border-radius: 50%; }
.wpv-card-compat { font-size: 11px; color: var(--ink-3); }
.wpv-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; flex: 1; }
.wpv-card-title a { color: var(--ink); transition: color .15s; }
.wpv-card-title a:hover { color: var(--gold-d); }
.wpv-card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-bottom: 10px; }
.wpv-card-author {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-3); margin-bottom: 10px;
}
.wpv-card-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.wpv-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.wpv-price { font-size: 17px; font-weight: 700; font-family: var(--fm); color: var(--earth); }
.wpv-price-free { color: var(--free); }
.wpv-price-old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; font-family: var(--fm); display: block; }
.wpv-version { font-size: 11px; color: var(--ink-3); font-family: var(--fm); }
.wpv-card-actions {
  padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px;
}

/* ── CONTACT BANNER ─────────────────────────────────────── */
.wpv-contact-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--earth-d) 60%, #2C1E0F 100%);
  padding: 52px 0;
  position: relative; overflow: hidden;
}
.wpv-contact-banner::before {
  content: ''; position: absolute; top: -80px; right: -40px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 65%);
  pointer-events: none;
}
.wpv-contact-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; z-index: 1;
}
.wpv-contact-inner h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wpv-contact-inner p { color: rgba(255,255,255,.65); font-size: 15px; max-width: 420px; line-height: 1.7; }
.wpv-contact-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── ARCHIVE ─────────────────────────────────────────────── */
.wpv-archive { padding: 40px 0 80px; }
.wpv-archive-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }

/* Sidebar */
.wpv-sidebar-section { margin-bottom: 26px; }
.wpv-sidebar-title {
  font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase;
  color: var(--gold-d); margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 2px solid var(--gold-border);
}
.wpv-sidebar-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: 8px; font-size: 14px;
  color: var(--ink-2); transition: all .15s; cursor: pointer;
}
.wpv-sidebar-link:hover { background: var(--gold-bg); color: var(--earth); }
.wpv-sidebar-link.active {
  background: linear-gradient(135deg, var(--gold-bg), #FEF9EE);
  color: var(--gold-d); font-weight: 600;
  border: 1px solid var(--gold-border);
}
.wpv-sidebar-count { font-size: 11px; color: var(--ink-3); font-family: var(--fm); }
.wpv-sidebar-link.active .wpv-sidebar-count { color: var(--gold-d); }

.wpv-archive-bar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.wpv-archive-count { font-size: 14px; color: var(--ink-3); }
.wpv-archive-count strong { color: var(--ink); }
.wpv-sort-form select {
  border: 1px solid var(--border-d); border-radius: 7px;
  padding: 7px 12px; font-family: var(--ff); font-size: 13px;
  color: var(--ink-2); background: var(--white); cursor: pointer;
}
.wpv-sort-form select:focus { border-color: var(--gold); outline: none; }

.wpv-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.wpv-pagination .page-numbers {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border-d);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2); transition: all .15s; background: var(--white);
}
.wpv-pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold-d); }
.wpv-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #fff; border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201,168,76,.4);
}
.wpv-empty { text-align: center; padding: 64px 20px; }
.wpv-empty-icon { font-size: 48px; margin-bottom: 16px; }
.wpv-empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.wpv-empty p { color: var(--ink-3); margin-bottom: 20px; }

/* ── SINGLE PRODUCT ─────────────────────────────────────── */
.wpv-single { padding: 32px 0 80px; }
.wpv-breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.wpv-breadcrumb a { color: var(--gold-d); }
.wpv-breadcrumb a:hover { text-decoration: underline; }
.wpv-single-grid { display: grid; grid-template-columns: 1fr 310px; gap: 40px; }
.wpv-single-preview {
  background: var(--cream-2); border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 24px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.wpv-single-preview img { width:100%; max-height:380px; object-fit:cover; }
.wpv-single-emoji { font-size: 80px; }

.wpv-single-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.wpv-tab {
  padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; background: none; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: var(--ff); transition: all .15s;
}
.wpv-tab:hover { color: var(--gold-d); }
.wpv-tab.active { color: var(--gold-d); border-bottom-color: var(--gold); font-weight: 600; }

.wpv-tab-content p { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.wpv-info-table { width: 100%; border-collapse: collapse; }
.wpv-info-table tr { border-bottom: 1px solid var(--border); }
.wpv-info-table th {
  text-align: left; padding: 10px 0; font-size: 13px;
  color: var(--ink-3); width: 140px; font-weight: 500;
}
.wpv-info-table td { padding: 10px 0; font-size: 14px; color: var(--ink); }
.wpv-info-table a { color: var(--gold-d); }

.wpv-install-steps { display: flex; flex-direction: column; gap: 20px; }
.wpv-step { display: flex; gap: 14px; align-items: flex-start; }
.wpv-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(201,168,76,.4);
}
.wpv-step strong { display: block; margin-bottom: 4px; color: var(--ink); }
.wpv-step p, .wpv-step code { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.wpv-step code { background: var(--cream-2); padding: 1px 6px; border-radius: 4px; font-family: var(--fm); }

/* ── BUY BOX — Thương mại rõ ràng ─────────────────────── */
.wpv-buy-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* Vùng giá — nền kem nổi bật */
.wpv-price-section {
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 22px 16px;
}
.wpv-buy-old-price {
  font-size: 14px; color: var(--ink-3);
  text-decoration: line-through; font-family: var(--fm);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.wpv-buy-old-price::after {
  content: 'Sale'; font-size: 10px; font-weight: 700;
  background: var(--danger); color: #fff;
  padding: 1px 6px; border-radius: 100px; letter-spacing: .3px;
}
.wpv-buy-price {
  font-size: 38px; font-weight: 700; font-family: var(--fm);
  color: var(--earth); line-height: 1; margin-bottom: 6px;
}
.wpv-buy-price.wpv-price-free {
  color: var(--free); font-size: 32px;
}
.wpv-buy-tagline {
  font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 5px;
}
.wpv-buy-tagline::before { content: '✓'; color: var(--success); font-weight: 700; }

/* Vùng ưu đãi */
.wpv-perks {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--gold-bg);
}
.wpv-perks-title {
  font-size: 11px; font-weight: 700; color: var(--gold-d);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.wpv-perk-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-2); padding: 3px 0;
  line-height: 1.5;
}
.wpv-perk-icon { color: var(--gold-d); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* Vùng nút CTA */
.wpv-cta-section {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Nút chính — gold lớn */
.wpv-btn-cta-primary {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #fff !important; font-size: 15px; font-weight: 700;
  border-radius: 12px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(201,168,76,.4);
  transition: all .18s; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.wpv-btn-cta-primary:hover {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  box-shadow: 0 6px 20px rgba(201,168,76,.5);
  transform: translateY(-1px); color: #fff !important;
}

/* Nút Zalo — nổi bật xanh */
.wpv-btn-cta-zalo {
  width: 100%; padding: 13px;
  background: #06C755; color: #fff !important;
  font-size: 14px; font-weight: 700; border-radius: 12px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .18s; text-decoration: none;
}
.wpv-btn-cta-zalo:hover { background: #05b04a; transform: translateY(-1px); color: #fff !important; }

/* Nút demo — ghost nhạt */
.wpv-btn-cta-demo {
  width: 100%; padding: 11px;
  background: var(--cream-2); color: var(--ink-2);
  font-size: 14px; font-weight: 500; border-radius: 12px;
  border: 1.5px solid var(--border-d); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .18s; text-decoration: none;
}
.wpv-btn-cta-demo:hover { background: var(--earth-bg); border-color: var(--earth-l); color: var(--earth); }

/* Separator text */
.wpv-cta-sep {
  text-align: center; font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.wpv-cta-sep::before, .wpv-cta-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Vùng thông tin nhanh */
.wpv-quick-info {
  border-top: 1px solid var(--border);
}
.wpv-qi-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; font-size: 13px; border-bottom: 1px solid var(--border);
}
.wpv-qi-row:last-child { border-bottom: none; }
.wpv-qi-row:nth-child(even) { background: var(--cream-2); }
.wpv-qi-row span { color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.wpv-qi-row strong { color: var(--ink); font-weight: 600; }

/* Bảo hành / trust note dưới buy box */
.wpv-trust-note {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; color: var(--ink-3);
  padding: 10px; text-align: center;
}
.wpv-trust-note svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* Free badge ở price */
.wpv-free-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--success-bg); border: 1px solid #a7d89a;
  color: var(--success); font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 8px;
}

/* Payment info box */
.wpv-payment-info {
  background: var(--earth-bg); border-radius: 9px; padding: 14px 16px;
  font-size: 13px; color: var(--ink-2); border: 1px solid var(--border);
}
.wpv-payment-info strong { display: block; margin-bottom: 6px; color: var(--earth); }
.wpv-payment-info ol { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.wpv-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 60px 0 30px;
  border-top: 3px solid var(--gold-d);
}
.wpv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; margin-bottom: 44px; }
.wpv-footer-logo {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
}
.wpv-footer-desc { font-size: 14px; line-height: 1.75; max-width: 240px; }
.wpv-footer-col-title { font-size: 12px; font-weight: 700; color: var(--gold-l); margin-bottom: 14px; letter-spacing: .6px; text-transform: uppercase; }
.wpv-footer-links { display: flex; flex-direction: column; gap: 10px; }
.wpv-footer-links a { font-size: 14px; transition: color .15s; }
.wpv-footer-links a:hover { color: var(--gold-l); }
.wpv-footer-links li { list-style: none; }
.wpv-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px;
}
.wpv-footer-bottom-links { display: flex; gap: 20px; }
.wpv-footer-bottom-links a:hover { color: var(--gold-l); }

/* ── PAYMENT MODAL ──────────────────────────────────────── */
.wpv-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28,20,16,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wpv-modal-overlay.open { opacity: 1; pointer-events: all; }
.wpv-modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 800px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(28,20,16,.35);
  transform: translateY(10px); transition: transform .22s;
  border-top: 3px solid var(--gold);
}
.wpv-modal-overlay.open .wpv-modal { transform: translateY(0); }
.wpv-modal-header {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wpv-modal-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--gold-d); margin-bottom: 4px;
}
.wpv-modal-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.wpv-modal-close {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: none; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); flex-shrink: 0; transition: all .15s;
}
.wpv-modal-close:hover { background: var(--earth-bg); color: var(--earth); }

/* Steps bar */
.wpv-steps-bar {
  display: flex; align-items: center;
  padding: 14px 28px; background: var(--cream-2);
  border-bottom: 1px solid var(--border);
}
.wpv-step-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  flex: 1; transition: color .2s;
}
.wpv-step-item.active { color: var(--gold-d); }
.wpv-step-item.done { color: var(--success); }
.wpv-step-circle {
  width: 25px; height: 25px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.wpv-step-item.active .wpv-step-circle {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  border-color: var(--gold); color: #fff;
  box-shadow: 0 2px 6px rgba(201,168,76,.4);
}
.wpv-step-item.done .wpv-step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.wpv-step-sep { flex: 1; height: 1px; background: var(--border-d); max-width: 40px; }

.wpv-modal-step { padding: 24px 28px; }
.wpv-step-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.65; }

/* Payment grid */
.wpv-payment-grid { display: grid; grid-template-columns: 196px 1fr; gap: 24px; align-items: start; }
.wpv-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wpv-qr-label { font-size: 11px; font-weight: 700; color: var(--gold-d); text-align: center; letter-spacing: .4px; text-transform: uppercase; }
.wpv-qr-img { width: 180px; height: 180px; border-radius: 12px; border: 2px solid var(--gold-border); object-fit: cover; }
.wpv-qr-placeholder {
  width: 180px; height: 180px; border-radius: 12px;
  border: 2px dashed var(--border-d); display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--ink-3); text-align: center; padding: 16px;
}
.wpv-qr-app-logos { font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.6; }

/* Bank info */
.wpv-bank-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.wpv-bank-logo {
  width: 42px; height: 42px; background: var(--earth-bg);
  border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.wpv-bank-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.wpv-bank-branch { font-size: 12px; color: var(--ink-3); }
.wpv-bank-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wpv-bank-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px; background: var(--cream-2);
  border: 1px solid var(--border);
}
.wpv-bank-label { font-size: 12px; color: var(--ink-3); flex-shrink: 0; width: 120px; }
.wpv-bank-value-wrap { display: flex; align-items: center; gap: 7px; }
.wpv-bank-value { font-size: 14px; font-weight: 700; font-family: var(--fm); color: var(--ink); }
.wpv-amount { color: var(--earth); font-size: 17px; }
.wpv-copy-btn {
  border: 1px solid var(--border-d); background: var(--white);
  border-radius: 5px; padding: 2px 8px; font-size: 13px;
  cursor: pointer; transition: all .15s; color: var(--ink-3);
}
.wpv-copy-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.wpv-copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }
.wpv-bank-note {
  background: var(--warning-bg); border: 1px solid #F5C85A;
  border-radius: 9px; padding: 10px 14px;
  font-size: 13px; color: #7A4F10; line-height: 1.55;
}

/* Form */
.wpv-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.wpv-form-group label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wpv-form-group input, .wpv-form-group textarea {
  border: 1px solid var(--border-d); border-radius: 9px;
  padding: 10px 14px; font-family: var(--ff); font-size: 14px;
  color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; width: 100%;
  background: var(--cream);
}
.wpv-form-group input:focus, .wpv-form-group textarea:focus {
  border-color: var(--gold); box-shadow: var(--glow-gold);
}
.wpv-form-desc { font-size: 12px; color: var(--ink-3); }
.wpv-upload-area {
  border: 2px dashed var(--border-d); border-radius: 10px;
  padding: 20px; text-align: center; cursor: pointer;
  transition: all .18s; background: var(--cream-2);
}
.wpv-upload-area:hover, .wpv-upload-area.drag { border-color: var(--gold); background: var(--gold-bg); }
.wpv-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.wpv-modal-footer { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Success */
.wpv-success-wrap { text-align: center; padding: 20px 0; }
.wpv-success-icon { font-size: 56px; margin-bottom: 12px; }
.wpv-success-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.wpv-success-wrap p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.wpv-order-ref-box {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: 10px; padding: 14px 24px;
  font-size: 15px; display: inline-block; margin-bottom: 20px;
  font-family: var(--fm); color: var(--earth);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:960px){
  .wpv-products-grid { grid-template-columns: repeat(2,1fr); }
  .wpv-cat-grid { grid-template-columns: repeat(2,1fr); }
  .wpv-trust-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .wpv-trust-item + .wpv-trust-item { border-left: none; }
  .wpv-archive-inner { grid-template-columns: 1fr; }
  .wpv-sidebar { display: none; }
  .wpv-single-grid { grid-template-columns: 1fr; }
  .wpv-footer-grid { grid-template-columns: 1fr 1fr; }
  .wpv-contact-inner { flex-direction: column; text-align: center; }
  .wpv-contact-actions { justify-content: center; }
}
@media(max-width:600px){
  .wpv-products-grid { grid-template-columns: 1fr; }
  .wpv-nav-links, .wpv-search { display: none; }
  .wpv-hero-cta { flex-direction: column; }
  .wpv-hero-stats { gap: 24px; }
  .wpv-footer-grid { grid-template-columns: 1fr; }
  .wpv-payment-grid { grid-template-columns: 1fr; }
  .wpv-qr-wrap { flex-direction: row; gap: 12px; }
  .wpv-qr-img { width: 100px; height: 100px; }
  .wpv-modal-step { padding: 18px 16px; }
}

/* ── SIDEBAR MỚI (sb-*) ─────────────────────────────────── */
.sb-box{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:12px}
.sb-price-area{background:var(--cream-2);border-bottom:1px solid var(--border);padding:18px 20px 16px}
.sb-free-badge{display:inline-flex;align-items:center;gap:5px;background:var(--success-bg);border:1px solid #a7d89a;color:var(--success);font-size:12px;font-weight:700;padding:4px 12px;border-radius:100px;margin-bottom:8px}
.sb-price{font-size:36px;font-weight:700;font-family:var(--fm);color:var(--earth);line-height:1;margin-bottom:6px}
.sb-price-free{color:var(--free);font-size:28px}
.sb-old-price{font-size:14px;color:var(--ink-3);text-decoration:line-through;font-family:var(--fm);display:flex;align-items:center;gap:8px;margin-bottom:4px}
.sb-sale-tag{font-size:10px;font-weight:700;background:var(--danger);color:#fff;padding:1px 7px;border-radius:100px;text-decoration:none}
.sb-tagline{font-size:13px;color:var(--ink-3);display:flex;align-items:center;gap:5px}
.sb-tagline::before{content:'✓';color:var(--success);font-weight:700}
.sb-perks{padding:12px 20px;border-bottom:1px solid var(--border);background:var(--gold-bg)}
.sb-perks-title{font-size:10px;font-weight:700;color:var(--gold-d);text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px}
.sb-perk{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--ink-2);padding:3px 0;line-height:1.5}
.sb-perk span{color:var(--gold-d);flex-shrink:0}
.sb-plans-wrap{padding:14px 20px;border-bottom:1px solid var(--border)}
.sb-plans-title{font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:10px}
.sb-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sb-plan{border:2px solid var(--border);border-radius:10px;padding:12px 8px;text-align:center;cursor:pointer;transition:all .15s;background:#fff}
.sb-plan:hover{border-color:var(--gold);background:var(--gold-bg)}
.sb-plan-active{border-color:var(--gold)!important;background:var(--gold-bg)!important}
.sb-plan-name{font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:5px}
.sb-plan-price{font-size:14px;font-weight:700;color:var(--earth);font-family:var(--fm)}
.sb-domain-wrap{padding:14px 20px;border-bottom:1px solid var(--border)}
.sb-domain-label{display:block;font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:7px}
.sb-domain-input-wrap{display:flex;border:1.5px solid var(--border-d);border-radius:9px;overflow:hidden;background:#fff;transition:border .15s}
.sb-domain-input-wrap:focus-within{border-color:var(--gold)}
.sb-domain-prefix{padding:10px 12px;background:var(--cream-2);border-right:1px solid var(--border-d);font-size:12px;color:var(--ink-3);flex-shrink:0}
.sb-domain-field{border:none;background:none;flex:1;padding:10px 12px;font-size:14px;font-family:var(--fm);outline:none;min-width:0}
.sb-domain-hint{font-size:11px;color:var(--ink-3);margin-top:5px}
.sb-cta{padding:14px 20px;display:flex;flex-direction:column;gap:9px}
.sb-btn-primary{width:100%;padding:15px;background:linear-gradient(135deg,var(--gold),var(--gold-d));color:#fff!important;font-size:15px;font-weight:700;border-radius:12px;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 14px rgba(201,168,76,.4);transition:all .18s;text-decoration:none;font-family:var(--ff)}
.sb-btn-primary:hover{box-shadow:0 6px 20px rgba(201,168,76,.5);transform:translateY(-1px);color:#fff!important}
.sb-btn-zalo{width:100%;padding:13px;background:#06C755;color:#fff!important;font-size:14px;font-weight:700;border-radius:12px;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .18s;text-decoration:none;font-family:var(--ff)}
.sb-btn-zalo:hover{background:#05b04a;transform:translateY(-1px);color:#fff!important}
.sb-btn-ghost{width:100%;padding:11px;background:var(--cream-2);color:var(--ink-2);font-size:14px;font-weight:500;border-radius:12px;border:1.5px solid var(--border-d);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .18s;text-decoration:none;font-family:var(--ff)}
.sb-btn-ghost:hover{background:var(--earth-bg);color:var(--earth);border-color:var(--earth-l)}
.sb-sep{text-align:center;font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:8px}
.sb-sep::before,.sb-sep::after{content:'';flex:1;height:1px;background:var(--border)}
.sb-meta{border-top:1px solid var(--border)}
.sb-meta-row{display:flex;align-items:center;justify-content:space-between;padding:9px 20px;font-size:13px;border-bottom:1px solid var(--border)}
.sb-meta-row:last-child{border-bottom:none}
.sb-meta-row:nth-child(even){background:var(--cream-2)}
.sb-meta-row span{color:var(--ink-3)}
.sb-meta-row strong{color:var(--ink);font-weight:600}
.sb-trust{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--ink-3);padding:8px;text-align:center}

/* Mobile sidebar */
@media(max-width:760px){
  .wpv-single-grid{grid-template-columns:1fr}
  .sb-plans{grid-template-columns:repeat(3,1fr)}
}

/* ── FORCE OVERRIDE — Đảm bảo màu Thổ không bị WP override ── */
body { background: #FDFAF4 !important; }
body .wpv-hero { background: linear-gradient(160deg, #1C1410 0%, #4A3318 50%, #2C1E0F 100%) !important; }
body .wpv-hero h1 { color: #ffffff !important; }
body .wpv-hero h1 em { color: #E8C97A !important; font-style: normal !important; }
body .wpv-hero-desc { color: rgba(255,255,255,.7) !important; }
body .wpv-hero-eyebrow { background: rgba(201,168,76,.2) !important; color: #E8C97A !important; }
body .wpv-stat-num { color: #E8C97A !important; }
body .wpv-stat-label { color: rgba(255,255,255,.5) !important; }
body .wpv-btn-primary, body .wpv-btn-gold {
  background: linear-gradient(135deg,#C9A84C,#A8852E) !important;
  color: #fff !important;
  border: none !important;
}
body .wpv-badge-hot    { background: #C0392B !important; color: #fff !important; }
body .wpv-badge-new    { background: #C9A84C !important; color: #fff !important; }
body .wpv-badge-sale   { background: #D4861A !important; color: #fff !important; }
body .wpv-badge-featured { background: #6B4F2A !important; color: #fff !important; }
body .wpv-card-type { background: #FBF6E9 !important; border-color: #ECD89A !important; color: #A8852E !important; }
body .wpv-price { color: #6B4F2A !important; }
body .wpv-price.wpv-price-free { color: #5A8A4A !important; }
body .wpv-nav { background: rgba(253,250,244,.95) !important; }
body .wpv-logo-icon { background: linear-gradient(135deg,#C9A84C,#A8852E) !important; }
body .wpv-footer { background: #1C1410 !important; border-top: 3px solid #A8852E !important; }
body .wpv-footer-col-title { color: #E8C97A !important; }
body .wpv-section-eyebrow { color: #A8852E !important; }
body .wpv-trust-bar, body .wpv-trust { background: #F5F0E8 !important; }
body .wpv-trust-item strong { color: #6B4F2A !important; }
body .wpv-sidebar-title { color: #A8852E !important; border-bottom-color: #ECD89A !important; }
body .wpv-sidebar-link.active { background: #FBF6E9 !important; color: #A8852E !important; border-color: #ECD89A !important; }
body .wpv-pagination .page-numbers.current { background: linear-gradient(135deg,#C9A84C,#A8852E) !important; color: #fff !important; }
body .wpv-contact-banner { background: linear-gradient(135deg,#1C1410,#4A3318 60%,#2C1E0F 100%) !important; }
body a { color: inherit; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints: 1200 | 960 | 768 | 480 | 360
   ════════════════════════════════════════════════════════ */

/* ── TABLET (768-960px) ─────────────────────────────────── */
@media(max-width:960px){
  /* Nav — ẩn links, giữ logo + search + actions */
  .wpv-nav-inner{gap:12px}
  .wpv-search{width:180px}

  /* Hero */
  .wpv-hero{padding:48px 0 44px}
  .wpv-hero h1{font-size:clamp(26px,4vw,40px)}
  .wpv-hero-stats{gap:20px}
  .wpv-stat-num{font-size:20px}

  /* Trust */
  .wpv-trust-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .wpv-trust-item{padding:10px 12px}

  /* Why section */
  .wpv-why-grid{grid-template-columns:repeat(2,1fr)!important}

  /* Featured section */
  .wpv-featured-grid{grid-template-columns:1fr}

  /* Blog homepage grid */
  .wpv-blog-home-grid{grid-template-columns:repeat(2,1fr)!important}

  /* Products */
  .wpv-products-grid{grid-template-columns:repeat(2,1fr);gap:16px}

  /* Archive */
  .wpv-archive-inner{grid-template-columns:1fr}
  .wpv-sidebar{display:none}

  /* Single product */
  .wpv-single-grid, .sp-grid{grid-template-columns:1fr!important}
  .sp-gallery-thumbs .sp-gallery-thumb{width:60px;height:60px}

  /* Footer */
  .wpv-footer-grid{grid-template-columns:1fr 1fr;gap:32px}

  /* Blog */
  .blog-grid{grid-template-columns:1fr}
  .blog-sidebar{display:none}
  .post-card{grid-template-columns:160px 1fr}

  /* Contact banner */
  .wpv-contact-inner{flex-direction:column;text-align:center;gap:20px}
  .wpv-contact-actions{justify-content:center}
}

/* ── MOBILE (≤600px) ────────────────────────────────────── */
@media(max-width:600px){
  /* Base */
  body{font-size:15px}
  .wpv-container{padding:0 16px}

  /* Nav */
  .wpv-nav-inner{height:54px;gap:8px}
  .wpv-nav-links,.wpv-search{display:none}
  .wpv-logo{font-size:15px}
  .wpv-logo-icon{width:26px;height:26px}
  .wpv-nav-actions{gap:6px}
  .wpv-nav-actions .wpv-btn-ghost{display:none} /* Ẩn nút đăng nhập, giữ đăng ký */

  /* Hero */
  .wpv-hero{padding:36px 0 32px}
  .wpv-hero h1{font-size:clamp(22px,6vw,32px);margin-bottom:14px}
  .wpv-hero-desc{font-size:15px;margin-bottom:24px}
  .wpv-hero-eyebrow{font-size:10px}
  .wpv-hero-cta{flex-direction:column;gap:10px}
  .wpv-hero-cta .wpv-btn-hero,.wpv-hero-cta .wpv-btn-outline{width:100%;justify-content:center;padding:13px}
  .wpv-hero-stats{gap:16px}
  .wpv-stat-num{font-size:18px}
  .wpv-stat-label{font-size:11px}

  /* Trust bar */
  .wpv-trust{padding:16px 0}
  .wpv-trust-grid{grid-template-columns:repeat(2,1fr);gap:0}
  .wpv-trust-item{padding:10px 8px;font-size:11px}
  .wpv-trust-item strong{font-size:12px}
  .wpv-trust-icon{font-size:18px}

  /* Section headers */
  .wpv-section{padding:36px 0}
  .wpv-section-title{font-size:20px}
  .wpv-section-header{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:20px}

  /* Why section — 2 cột gọn trên mobile */
  .wpv-why-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}

  /* Products grid — 1 cột */
  .wpv-products-grid{grid-template-columns:1fr;gap:14px}

  /* Blog homepage grid — 2 cột gọn trên mobile */
  .wpv-blog-home-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
  .wpv-card-thumb{height:180px}

  /* Category */
  .wpv-cat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .wpv-cat-card{padding:16px 14px}
  .wpv-cat-name{font-size:13px}

  /* Archive filters */
  .wpv-archive-bar{flex-direction:column;align-items:flex-start;gap:10px}

  /* Single product */
  .spg{padding:16px 16px 48px}
  .sp-bc{font-size:12px;margin-bottom:14px}
  .sp-grid{grid-template-columns:1fr!important;gap:20px}
  .sp-article-body{padding:16px}
  .sp-article-title{font-size:clamp(18px,5vw,26px)}
  .sp-gallery-thumbs{gap:6px}
  .sp-gallery-thumb{width:54px;height:54px}

  /* Sidebar sb-* */
  .sb-price{font-size:28px}
  .sb-plans{grid-template-columns:repeat(3,1fr);gap:6px}
  .sb-plan{padding:10px 6px}
  .sb-plan-name{font-size:11px}
  .sb-plan-price{font-size:12px}

  /* Modal */
  #spModal{padding:0 0 max(24px,env(safe-area-inset-bottom))!important}
  #spModal > div{border-radius:0!important;width:100vw!important;max-width:100vw!important;max-height:none!important}
  #spModal > div > div:last-child{padding-bottom:32px!important}
  #spModal div[style*="justify-content:space-between"][style*="border-bottom:1px solid #E8DFD0"]{padding-left:16px!important;padding-right:16px!important}
  #spModal div[style*="padding:18px 32px"],
  #spModal div[style*="padding:14px 32px"]{padding-left:16px!important;padding-right:16px!important}
  .wpv-qr-panel{padding:18px 16px!important}
  .wpv-qr-grid{grid-template-columns:1fr!important;gap:16px!important}
  .wpv-qr-card{width:100%!important;box-sizing:border-box!important;align-items:center!important}
  #spModal .sp-lightbox-inner{max-width:95vw}
  /* 3 nút bước Chuyển khoản: full width, xếp dọc gọn */
  #spModal div[style*="border-top:1px solid #E8DFD0"][style*="flex-wrap:wrap"]{
    flex-direction:column!important
  }
  #spModal div[style*="border-top:1px solid #E8DFD0"][style*="flex-wrap:wrap"] > button,
  #spModal div[style*="border-top:1px solid #E8DFD0"][style*="flex-wrap:wrap"] > a{
    width:100%!important;justify-content:center!important;box-sizing:border-box
  }

  /* Form trong modal */
  #sp-form > div[style*="grid-template-columns:1fr 1fr"]{
    grid-template-columns:1fr!important
  }

  /* Footer */
  .wpv-footer{padding:36px 0 20px}
  .wpv-footer-grid{grid-template-columns:1fr;gap:24px}
  .wpv-footer-bottom{flex-direction:column;gap:12px;text-align:center}
  .wpv-footer-bottom-links{justify-content:center}

  /* Blog */
  .blog-wrap{padding:20px 16px 48px}
  .blog-hero{padding:24px 0 20px}
  .blog-hero h1{font-size:24px}
  .blog-hero p{font-size:14px}
  .post-card{grid-template-columns:1fr}
  .post-card-thumb{min-height:160px}
  .blog-pagination{flex-wrap:wrap}

  /* Contact banner */
  .wpv-contact-banner{padding:32px 0}
  .wpv-contact-inner h2{font-size:20px}
  .wpv-contact-inner p{font-size:14px}
  .wpv-contact-actions{flex-direction:column;width:100%}
  .wpv-contact-actions .wpv-btn-white,
  .wpv-contact-actions .wpv-btn-outline{width:100%;justify-content:center}

  /* Pagination */
  .wpv-pagination,.blog-pagination{gap:4px}
  .wpv-pagination .page-numbers,.blog-pagination .page-numbers{width:32px;height:32px;font-size:13px}

  /* QR modal */
  .wpv-payment-grid{grid-template-columns:1fr}
  .wpv-qr-wrap{flex-direction:row;gap:12px;align-items:center}
  .wpv-qr-img{width:110px;height:110px}

  /* Tabs */
  .sp-tabs,.wpv-single-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  .sp-tabs::-webkit-scrollbar,.wpv-single-tabs::-webkit-scrollbar{display:none}
}

/* ── SMALL MOBILE (≤380px) ──────────────────────────────── */
@media(max-width:380px){
  .wpv-hero h1{font-size:20px}
  .wpv-hero-stats{flex-direction:column;gap:10px}
  .sb-plans{grid-template-columns:1fr}
  .wpv-cat-grid{grid-template-columns:1fr}
  .wpv-trust-grid{grid-template-columns:1fr}
  .wpv-trust-item+.wpv-trust-item{border-left:none;border-top:1px solid var(--border)}
  .wpv-footer-grid{gap:20px}
  .sp-nav{grid-template-columns:1fr}
  .wpv-contact-actions .wpv-btn-white,
  .wpv-contact-actions .wpv-btn-outline{font-size:13px;padding:11px}
}

/* ── IPAD / TABLET ĐỨNG (768px) ────────────────────────── */
@media(min-width:601px) and (max-width:768px){
  .wpv-nav-links{display:none}
  .wpv-search{width:200px}
  .wpv-hero h1{font-size:32px}
  .wpv-products-grid{grid-template-columns:repeat(2,1fr)}
  .sp-grid{grid-template-columns:1fr!important}
  .wpv-why-grid{grid-template-columns:repeat(2,1fr)!important}
  .post-card{grid-template-columns:140px 1fr}
}

/* ── IPAD NGANG (1024px) ────────────────────────────────── */
@media(min-width:961px) and (max-width:1200px){
  .wpv-container{padding:0 20px}
  .wpv-products-grid{grid-template-columns:repeat(3,1fr);gap:16px}
  .wpv-single-grid,.sp-grid{grid-template-columns:1fr 280px}
}

/* ── SAFE AREA (iPhone notch) ───────────────────────────── */
@supports(padding:max(0px)){
  .wpv-nav{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}
  .wpv-container{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
}

/* ── TOUCH — Tăng hit area nút bấm ─────────────────────── */
@media(hover:none){
  .wpv-btn,.sb-btn-primary,.sb-btn-zalo,.sb-btn-ghost{min-height:44px}
  .wpv-card-thumb img{transition:none}
  .wpv-card:hover{transform:none}
}

/* ── PREVENT OVERFLOW NGANG ─────────────────────────────── */
html,body{max-width:100%!important;overflow-x:hidden!important;position:relative}
img,video,iframe{max-width:100%}
table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
pre{overflow-x:auto;-webkit-overflow-scrolling:touch}
