{"id":4817,"date":"2026-10-21T02:56:32","date_gmt":"2026-10-21T02:56:32","guid":{"rendered":"https:\/\/bestvaluelab.com\/?page_id=4817"},"modified":"2026-10-22T02:22:59","modified_gmt":"2026-10-22T02:22:59","slug":"gear","status":"publish","type":"page","link":"https:\/\/bestvaluelab.com\/es\/gear\/","title":{"rendered":"G\u00f3c Gear VN"},"content":{"rendered":"\n<!-- G\u00f3c Gear VN v4.9 \u2013 \u0110\u00e3 c\u1eadp nh\u1eadt \u0111\u00fang SCRIPT_URL m\u1edbi -->\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&amp;display=swap\" rel=\"stylesheet\">\n<style>\n  #gear-app {\n    --bg: #090d16;\n    --card-bg: rgba(255, 255, 255, 0.04);\n    --border: rgba(255, 255, 255, 0.08);\n    --text: #f8fafc;\n    --muted: #94a3b8;\n    --neon-cyan: #06b6d4;\n    --primary: #ee4d2d;\n    background: radial-gradient(circle at top, #1e1b4b 0%, var(--bg) 100%);\n    color: var(--text);\n    min-height: 100vh;\n    min-height: 100dvh;\n    display: flex;\n    justify-content: center;\n    padding: 14px 12px 40px;\n    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;\n  }\n  #gear-app *, #gear-app *::before, #gear-app *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; }\n  #gear-app .container { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }\n  \n  #gear-app .header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }\n  #gear-app .avatar { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--neon-cyan); box-shadow: 0 0 16px rgba(6, 182, 212, 0.35); object-fit: cover; background: #1e293b; }\n  #gear-app .brand-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-top: 2px; }\n  #gear-app .brand-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }\n\n  #gear-app .affiliate-notice {\n    font-size: 0.68rem; color: #94a3b8; text-align: center;\n    padding: 2px 6px; border-radius: 6px;\n  }\n\n  #gear-app .quick-actions {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 8px;\n    width: 100%;\n  }\n  #gear-app .btn-action {\n    display: flex; align-items: center; justify-content: center; gap: 5px;\n    padding: 10px 6px; border-radius: 10px; text-decoration: none;\n    font-weight: 700; font-size: 0.82rem; text-align: center;\n    line-height: 1.25; transition: transform 0.15s ease;\n  }\n  #gear-app .btn-action:active { transform: scale(0.97); }\n  #gear-app .btn-zalo {\n    background: linear-gradient(135deg, #0072ff 0%, #004ecc 100%);\n    color: #fff; box-shadow: 0 3px 12px rgba(0, 114, 255, 0.25);\n    border: 1px solid rgba(255, 255, 255, 0.15);\n  }\n  #gear-app .btn-pin {\n    background: linear-gradient(135deg, #ee4d2d 0%, #c43012 100%);\n    color: #fff; box-shadow: 0 3px 12px rgba(238, 77, 45, 0.25);\n  }\n\n  #gear-app .toolbar { display: flex; flex-direction: column; gap: 7px; }\n  #gear-app .search-box { position: relative; display: flex; align-items: center; }\n  #gear-app .search-ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }\n  #gear-app .search-input {\n    width: 100%; height: 38px; padding: 0 38px 0 34px;\n    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 10px;\n    color: var(--text); font-size: 16px;\n    outline: none; -webkit-appearance: none; appearance: none;\n    transition: border-color 0.2s, box-shadow 0.2s;\n  }\n  #gear-app .search-input::placeholder { color: var(--muted); font-size: 0.82rem; }\n  #gear-app .search-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2); }\n  #gear-app .search-clear {\n    position: absolute; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%;\n    display: flex; align-items: center; justify-content: center;\n    background: rgba(255, 255, 255, 0.1); color: var(--text); font-size: 12px; line-height: 1; cursor: pointer;\n    -webkit-tap-highlight-color: transparent;\n  }\n  #gear-app .search-clear[hidden] { display: none; }\n\n  #gear-app .cat-tabs {\n    display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 4px; margin: 0 -1px;\n    scrollbar-width: none; -ms-overflow-style: none;\n    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;\n  }\n  #gear-app .cat-tabs::-webkit-scrollbar { display: none; }\n  #gear-app .cat-pill {\n    flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;\n    border: 1px solid var(--border); background: var(--card-bg); color: var(--muted);\n    font-size: 0.76rem; font-weight: 700; -webkit-tap-highlight-color: transparent;\n    transition: background 0.2s, color 0.2s, border-color 0.2s;\n  }\n  #gear-app .cat-pill:hover { border-color: rgba(6, 182, 212, 0.45); color: var(--text); }\n  #gear-app .cat-pill[aria-pressed=\"true\"] {\n    background: var(--neon-cyan); border-color: var(--neon-cyan); color: #04141b;\n    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);\n  }\n  #gear-app .result-status { font-size: 0.74rem; color: var(--muted); text-align: center; }\n  #gear-app .result-status:empty { display: none; }\n\n  #gear-app .deals-list { display: flex; flex-direction: column; gap: 10px; }\n  #gear-app .deal-card {\n    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;\n    padding: 10px; display: flex; gap: 12px; align-items: center; text-decoration: none;\n    color: inherit; transition: 0.2s; backdrop-filter: blur(8px);\n  }\n  #gear-app .deal-card:hover { border-color: rgba(6, 182, 212, 0.4); transform: translateY(-2px); }\n  #gear-app .btn-action:focus-visible,\n  #gear-app .deal-card:focus-visible,\n  #gear-app .btn-more:focus-visible,\n  #gear-app .cat-pill:focus-visible,\n  #gear-app .search-clear:focus-visible,\n  #gear-app .fomo-close:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }\n  \n  #gear-app .deal-img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: #1e293b; flex-shrink: 0; }\n  #gear-app .deal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }\n  #gear-app .deal-title {\n    font-size: 0.88rem; font-weight: 700; line-height: 1.3;\n    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;\n  }\n  #gear-app .deal-desc { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n\n  #gear-app .deal-coupon {\n    display: inline-flex; align-items: center; gap: 4px;\n    background: rgba(238, 77, 45, 0.12); border: 1px dashed #ee4d2d;\n    color: #ff6b4a; font-size: 0.74rem; font-weight: 700;\n    padding: 2px 7px; border-radius: 4px; width: fit-content;\n    margin-top: 1px; letter-spacing: 0.3px;\n  }\n  #gear-app .deal-coupon span { color: #fff; background: #ee4d2d; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 0.76rem; }\n  #gear-app .badge-btn.has-coupon { background: linear-gradient(135deg, #ee4d2d 0%, #b91c1c 100%); }\n  \n  #gear-app .copy-toast {\n    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);\n    background: rgba(15, 23, 42, 0.96); border: 1px solid var(--neon-cyan);\n    color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 0.88rem; font-weight: 700;\n    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(6, 182, 212, 0.4);\n    z-index: 100000; opacity: 0; pointer-events: none; transition: 0.25s ease;\n    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;\n  }\n  #gear-app .copy-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }\n\n  #gear-app .deal-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }\n  #gear-app .deal-price { font-size: 0.9rem; font-weight: 800; color: #fb7185; }\n  #gear-app .badge-btn { background: var(--primary); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; border-radius: 6px; }\n  \n  #gear-app .btn-more {\n    width: 100%; padding: 11px; background: transparent; cursor: pointer;\n    border: 1px solid rgba(6, 182, 212, 0.5); color: var(--neon-cyan);\n    font-weight: 700; font-size: 0.88rem; border-radius: 10px;\n  }\n  #gear-app .btn-more:hover { background: rgba(6, 182, 212, 0.08); }\n  #gear-app .btn-more[hidden] { display: none; }\n  #gear-app .loading { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 25px 0; }\n  #gear-app .empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 0.88rem; padding: 24px 8px 8px; }\n  #gear-app .empty .btn-more { width: auto; padding: 8px 16px; }\n  #gear-app .footer { text-align: center; font-size: 0.72rem; color: #94a3b8; margin-top: 10px; line-height: 1.4; }\n\n  #gear-app .fomo {\n    position: fixed; left: 50%; z-index: 9999;\n    bottom: calc(12px + env(safe-area-inset-bottom, 0px));\n    width: calc(100% - 32px); max-width: 360px;\n    display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 11px;\n    background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.45); border-radius: 12px;\n    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(6, 182, 212, 0.18);\n    opacity: 0; visibility: hidden; transform: translate(-50%, 14px);\n    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;\n    pointer-events: none;\n  }\n  #gear-app .fomo.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s; }\n  #gear-app .fomo-ico { font-size: 1.1rem; flex-shrink: 0; }\n  #gear-app .fomo-text {\n    flex: 1; min-width: 0; font-size: 0.78rem; line-height: 1.35; color: var(--text);\n    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;\n  }\n  #gear-app .fomo-close {\n    flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;\n    background: rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 12px; line-height: 1;\n    display: flex; align-items: center; justify-content: center; pointer-events: none;\n    -webkit-tap-highlight-color: transparent;\n  }\n  #gear-app .fomo.show .fomo-close { pointer-events: auto; }\n\n  @media (prefers-reduced-motion: reduce) {\n    #gear-app .deal-card { transition: none; }\n    #gear-app .deal-card:hover { transform: none; }\n    #gear-app .fomo, #gear-app .fomo.show { transition: opacity 0.2s linear, visibility 0s; transform: translate(-50%, 0); }\n  }\n<\/style>\n\n<div id=\"gear-app\">\n  <div class=\"container\">\n    <header class=\"header\">\n      <img id=\"brand-avatar\" alt=\"G\u00f3c Gear VN\" class=\"avatar\" width=\"66\" height=\"66\">\n      <h1 class=\"brand-title\">G\u00f3c Gear VN \u26a1<\/h1>\n      <p class=\"brand-desc\">T\u1ed5ng h\u1ee3p deal Gear review &amp; m\u00e3 gi\u1ea3m gi\u00e1 m\u1edbi nh\u1ea5t.<\/p>\n      <div class=\"affiliate-notice\">\n        \ud83d\udce2 Link ti\u1ebfp th\u1ecb Shopee. Gi\u00e1 cu\u1ed1i \u00e1p d\u1ee5ng t\u1ea1i gi\u1ecf h\u00e0ng.\n      <\/div>\n    <\/header>\n\n    <div class=\"quick-actions\">\n      <a href=\"https:\/\/zalo.me\/g\/vacd71oaaegn2axjff69\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"btn-action btn-zalo\">\n        \ud83d\udcac Nh\u00f3m Zalo\n      <\/a>\n      <a id=\"btn-pin-voucher\" href=\"https:\/\/s.shopee.vn\/1LghdK8FOV\" target=\"_blank\" rel=\"sponsored noopener noreferrer\" class=\"btn-action btn-pin\">\n        \ud83c\udf9f\ufe0f Voucher Shopee\n      <\/a>\n    <\/div>\n\n    <div class=\"toolbar\">\n      <div class=\"search-box\">\n        <svg class=\"search-ico\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"><\/circle><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"><\/line><\/svg>\n        <input id=\"search-input\" class=\"search-input\" type=\"text\" inputmode=\"search\" enterkeyhint=\"search\" autocomplete=\"off\" autocapitalize=\"off\" autocorrect=\"off\" spellcheck=\"false\" placeholder=\"T\u00ecm b\u00e0n ph\u00edm, chu\u1ed9t, l\u00f3t, arm...\" aria-label=\"T\u00ecm s\u1ea3n ph\u1ea9m\">\n        <button id=\"search-clear\" class=\"search-clear\" type=\"button\" aria-label=\"X\u00f3a t\u1eeb kh\u00f3a\" hidden>\u2715<\/button>\n      <\/div>\n      <div id=\"cat-tabs\" class=\"cat-tabs\" role=\"group\" aria-label=\"L\u1ecdc theo danh m\u1ee5c\">\n        <button type=\"button\" class=\"cat-pill\" data-cat=\"all\" aria-pressed=\"true\">T\u1ea5t c\u1ea3<\/button>\n        <button type=\"button\" class=\"cat-pill\" data-cat=\"keyboard\" aria-pressed=\"false\">B\u00e0n ph\u00edm<\/button>\n        <button type=\"button\" class=\"cat-pill\" data-cat=\"mouse\" aria-pressed=\"false\">Chu\u1ed9t &amp; L\u00f3t<\/button>\n        <button type=\"button\" class=\"cat-pill\" data-cat=\"monitor\" aria-pressed=\"false\">M\u00e0n h\u00ecnh &amp; Gi\u00e1 \u0111\u1ee1<\/button>\n        <button type=\"button\" class=\"cat-pill\" data-cat=\"other\" aria-pressed=\"false\">Ph\u1ee5 ki\u1ec7n kh\u00e1c<\/button>\n      <\/div>\n      <p id=\"result-status\" class=\"result-status\" aria-live=\"polite\"><\/p>\n    <\/div>\n\n    <div id=\"deals-container\" class=\"deals-list\">\n      <div class=\"loading\">\u0110ang t\u1ea3i deal m\u1edbi nh\u1ea5t&#8230;<\/div>\n    <\/div>\n\n    <button id=\"btn-load-more\" class=\"btn-more\" type=\"button\" hidden>Xem th\u00eam deal \u25be<\/button>\n\n    <footer class=\"footer\">\n      <p>\u00a9 G\u00f3c Gear VN \u00b7 BestValueLab<\/p>\n    <\/footer>\n  <\/div>\n\n  <div id=\"fomo-toast\" class=\"fomo\" role=\"status\" aria-live=\"polite\">\n    <span class=\"fomo-ico\" id=\"fomo-ico\" aria-hidden=\"true\">\ud83d\udd25<\/span>\n    <span class=\"fomo-text\" id=\"fomo-text\"><\/span>\n    <button id=\"fomo-close\" class=\"fomo-close\" type=\"button\" aria-label=\"\u0110\u00f3ng th\u00f4ng b\u00e1o\">\u2715<\/button>\n  <\/div>\n<\/div>\n\n<script>\n(function () {\n  \/* \u0110\u00e3 c\u1eadp nh\u1eadt \u0111\u00fang SCRIPT_URL m\u1edbi nh\u1ea5t c\u1ee7a b\u1ea1n *\/\n  const SCRIPT_URL = 'https:\/\/script.google.com\/macros\/s\/AKfycbyxSaGekHoaQM_UDFV2xWL1xTRUIux7-UwcuIqpODrNDJ4UuTRHCD17bb-rX_kQgtfSrQ\/exec';\n  const LOGO_URL = 'https:\/\/bestvaluelab.com\/img\/gocgear.webp';\n  const PAGE_SIZE = 6;\n\n  const TOAST_CFG = { enabled: true, first: 6000, show: 4000, min: 10000, max: 15000 };\n\n  const PH = 'data:image\/svg+xml;utf8,' + encodeURIComponent(\n    '<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100\" height=\"100\" viewBox=\"0 0 100 100\">' +\n    '<rect width=\"100\" height=\"100\" fill=\"#1e293b\"\/>' +\n    '<text x=\"50\" y=\"62\" font-size=\"40\" text-anchor=\"middle\">\u26a1<\/text><\/svg>');\n\n  const esc = s => String(s == null ? '' : s).replace(\/[\\x26<>\"']\/g, c =>\n    ({ '\\x26': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' }[c]));\n  const fmtPrice = p => typeof p === 'number'\n    ? p.toLocaleString('vi-VN') + '\u0111'\n    : (p ? String(p) : 'Xem gi\u00e1 sale');\n  const safeUrl = u => new RegExp('^https?:\\\\\/\\\\\/', 'i').test(String(u || '')) ? String(u).trim() : '';\n\n  const norm = s => {\n    s = String(s == null ? '' : s).toLowerCase();\n    try { s = s.normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, ''); } catch (e) {}\n    return s.replace(\/\u0111\/g, 'd');\n  };\n\n  const avatar = document.getElementById('brand-avatar');\n  avatar.onerror = function () { avatar.onerror = null; avatar.src = PH; };\n  avatar.src = LOGO_URL;\n\n  const container = document.getElementById('deals-container');\n  const moreBtn = document.getElementById('btn-load-more');\n  const searchInput = document.getElementById('search-input');\n  const clearBtn = document.getElementById('search-clear');\n  const tabsEl = document.getElementById('cat-tabs');\n  const statusEl = document.getElementById('result-status');\n  let deals = [];\n  let filtered = [];\n  let shown = 0;\n  let loaded = false;\n  let cat = 'all';\n  let tokens = [];\n\n  const store = {\n    get(k) { try { return localStorage.getItem(k); } catch (e) { return null; } },\n    set(k, v) { try { localStorage.setItem(k, v); } catch (e) {} }\n  };\n  const DEBUG = \/[?\\x26]debug=1\/.test(location.search);\n  let lastErr = '';\n\n  const CATS = {\n    keyboard: ['phim', 'keycap', 'switch', 'keyboard'],\n    mouse: ['chuot', 'mouse', 'mousepad', 'lot', 'pad'],\n    monitor: ['man hinh', 'monitor', 'gia do', 'stand', 'arm']\n  };\n  const reEsc = s => s.replace(\/[.*+?^${}()|[\\]\\\\]\/g, '\\\\$\\x26');\n  const catRe = {};\n  Object.keys(CATS).forEach(function (k) {\n    catRe[k] = new RegExp('(^|[^a-z0-9])(' + CATS[k].map(reEsc).join('|') + ')(s|es)?($|[^a-z0-9])');\n  });\n  const keyMap = new WeakMap();\n  function keyOf(it) {\n    let k = keyMap.get(it);\n    if (k === undefined) { k = norm((it.name || '') + ' ' + (it.desc || '')); keyMap.set(it, k); }\n    return k;\n  }\n  function matchCat(key) {\n    if (cat === 'all') return true;\n    if (cat === 'other') return !(catRe.keyboard.test(key) || catRe.mouse.test(key) || catRe.monitor.test(key));\n    return catRe[cat].test(key);\n  }\n  function matches(it) {\n    const key = keyOf(it);\n    if (!matchCat(key)) return false;\n    for (let i = 0; i < tokens.length; i++) if (key.indexOf(tokens[i]) < 0) return false;\n    return true;\n  }\n\n  function showMessage(msg) {\n    container.innerHTML = '<div class=\"loading\">' + esc(msg) + '<\/div>';\n    moreBtn.hidden = true;\n  }\n\n  function showEmpty() {\n    container.innerHTML = '<div class=\"empty\"><div>\ud83d\udd0d Kh\u00f4ng t\u00ecm th\u1ea5y s\u1ea3n ph\u1ea9m ph\u00f9 h\u1ee3p<\/div><\/div>';\n    const b = document.createElement('button');\n    b.type = 'button'; b.className = 'btn-more'; b.textContent = 'X\u00f3a b\u1ed9 l\u1ecdc';\n    b.addEventListener('click', resetFilters);\n    container.firstChild.appendChild(b);\n    moreBtn.hidden = true;\n  }\n\n  function fallbackCopy(text) {\n    try {\n      const ta = document.createElement('textarea');\n      ta.value = text;\n      ta.style.position = 'fixed';\n      ta.style.top = '-9999px';\n      ta.style.left = '-9999px';\n      ta.setAttribute('readonly', '');\n      document.body.appendChild(ta);\n      ta.select();\n      ta.setSelectionRange(0, text.length);\n      const res = document.execCommand('copy');\n      document.body.removeChild(ta);\n      return Boolean(res);\n    } catch (e) {\n      return false;\n    }\n  }\n\n  function copyText(text) {\n    if (!text) return Promise.resolve(false);\n    \n    if (fallbackCopy(text)) {\n      return Promise.resolve(true);\n    }\n\n    if (navigator.clipboard ? window.isSecureContext : false) {\n      return Promise.race([\n        navigator.clipboard.writeText(text).then(() => true).catch(() => false),\n        new Promise(r => setTimeout(() => r(false), 200))\n      ]);\n    }\n\n    return Promise.resolve(false);\n  }\n\n  function showCopyAlert(coupon, ok) {\n    let alertEl = document.getElementById('copy-toast-alert');\n    if (!alertEl) {\n      alertEl = document.createElement('div');\n      alertEl.id = 'copy-toast-alert';\n      alertEl.className = 'copy-toast';\n      document.getElementById('gear-app').appendChild(alertEl);\n    }\n    if (ok) {\n      alertEl.innerHTML = '\ud83c\udf9f\ufe0f \u0110\u00e3 copy m\u00e3: <b style=\"color:#06b6d4;font-family:monospace;\">' + esc(coupon) + '<\/b><br><small style=\"color:#94a3b8;font-weight:400;\">\u0110ang m\u1edf Shopee...<\/small>';\n    } else {\n      alertEl.innerHTML = '\u26a0\ufe0f Kh\u00f4ng th\u1ec3 t\u1ef1 copy! M\u00e3: <b style=\"color:#fb7185;font-family:monospace;\">' + esc(coupon) + '<\/b><br><small style=\"color:#f8fafc;font-weight:400;\">B\u1ea1n h\u00e3y nh\u1edb m\u00e3 \u0111\u1ec3 nh\u1eadp nh\u00e9!<\/small>';\n    }\n    alertEl.classList.add('show');\n    setTimeout(() => alertEl.classList.remove('show'), ok ? 1400 : 2500);\n  }\n\n  function openLink(url, isMobile) {\n    const target = safeUrl(url);\n    if (!target) return;\n    if (isMobile) {\n      window.location.href = target;\n    } else {\n      window.open(target, '_blank', 'noopener,noreferrer');\n    }\n  }\n\n  function makeCard(item) {\n    const rawCoupon = item.coupon != null ? item.coupon : (item.code != null ? item.code : item.voucher);\n    const couponCode = String(rawCoupon || '').trim();\n    const hasCoupon = Boolean(couponCode);\n\n    const card = document.createElement('a');\n    card.className = 'deal-card';\n    card.href = safeUrl(item.link);\n    card.target = '_blank';\n    card.rel = 'sponsored noopener noreferrer';\n    \n    let couponHtml = '';\n    if (hasCoupon) {\n      couponHtml = '<div class=\"deal-coupon\">\ud83c\udf9f\ufe0f M\u00e3: <span>' + esc(couponCode) + '<\/span> (Ch\u1ea1m copy)<\/div>';\n    }\n\n    card.innerHTML =\n      '<img class=\"deal-img\" alt=\"' + esc(item.name) + '\" width=\"76\" height=\"76\" loading=\"lazy\" referrerpolicy=\"no-referrer\">' +\n      '<div class=\"deal-info\">' +\n        '<div class=\"deal-title\">' + esc(item.name) + '<\/div>' +\n        '<div class=\"deal-desc\">' + esc(item.desc) + '<\/div>' +\n        couponHtml +\n        '<div class=\"deal-bottom\">' +\n          '<span class=\"deal-price\">' + esc(fmtPrice(item.price)) + '<\/span>' +\n          '<span class=\"badge-btn ' + (hasCoupon ? 'has-coupon' : '') + '\">' + (hasCoupon ? 'Copy \\x26 Mua' : 'S\u0103n Ngay') + '<\/span>' +\n        '<\/div>' +\n      '<\/div>';\n    \n    const img = card.querySelector('img');\n    img.onerror = function () { img.onerror = null; img.src = PH; };\n    img.src = safeUrl(item.image) || PH;\n\n    card.addEventListener('click', function (e) {\n      const isMobile = \/Android|iPhone|iPad|iPod\/i.test(navigator.userAgent);\n      \n      if (hasCoupon) {\n        copyText(couponCode).then(function (ok) {\n          showCopyAlert(couponCode, ok);\n          if (isMobile) {\n            setTimeout(() => { openLink(item.link, true); }, ok ? 260 : 700);\n          }\n        });\n        if (isMobile) {\n          e.preventDefault();\n        }\n      } else if (isMobile) {\n        e.preventDefault();\n        openLink(item.link, true);\n      }\n    });\n    return card;\n  }\n\n  function renderMore() {\n    filtered.slice(shown, shown + PAGE_SIZE).forEach(item => container.appendChild(makeCard(item)));\n    shown = Math.min(shown + PAGE_SIZE, filtered.length);\n    moreBtn.hidden = shown >= filtered.length;\n  }\n\n  function refresh(keepCount) {\n    if (!loaded) return;\n    const prev = shown;\n    filtered = deals.filter(matches);\n    shown = 0;\n    container.innerHTML = '';\n    const active = tokens.length > 0 || cat !== 'all';\n    statusEl.textContent = (active ? filtered.length : 0) ? 'T\u00ecm th\u1ea5y ' + filtered.length + ' s\u1ea3n ph\u1ea9m' : '';\n    if (!deals.length) { showMessage('Ch\u01b0a c\u00f3 deal n\u00e0o. Quay l\u1ea1i sau nh\u00e9!'); return; }\n    if (!filtered.length) { showEmpty(); return; }\n    renderMore();\n    if (keepCount) { while (shown < prev ? shown < filtered.length : false) renderMore(); }\n  }\n\n  function scrollToToolbar() {\n    const tb = tabsEl.parentNode;\n    try { if (tb.getBoundingClientRect().top < 0) tb.scrollIntoView({ block: 'start' }); } catch (e) {}\n  }\n\n  function setCat(id) {\n    cat = id;\n    tabsEl.querySelectorAll('.cat-pill').forEach(function (b) {\n      const on = b.getAttribute('data-cat') === id;\n      b.setAttribute('aria-pressed', on ? 'true' : 'false');\n      if (on) { try { b.scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' }); } catch (e) {} }\n    });\n  }\n\n  function onSearch() {\n    const v = searchInput.value;\n    clearBtn.hidden = !v;\n    tokens = norm(v).trim().split(\/\\s+\/).filter(Boolean);\n    refresh();\n    scrollToToolbar();\n  }\n\n  function resetFilters() {\n    searchInput.value = '';\n    clearBtn.hidden = true;\n    tokens = [];\n    setCat('all');\n    refresh();\n  }\n\n  searchInput.addEventListener('input', onSearch);\n  searchInput.addEventListener('keydown', function (e) {\n    if (e.key === 'Enter') searchInput.blur();\n    else if (e.key === 'Escape') { searchInput.value = ''; onSearch(); }\n  });\n  clearBtn.addEventListener('click', function () { searchInput.value = ''; onSearch(); searchInput.focus(); });\n  tabsEl.addEventListener('click', function (e) {\n    const b = e.target.closest ? e.target.closest('.cat-pill') : null;\n    if (!b) return;\n    setCat(b.getAttribute('data-cat'));\n    refresh();\n    scrollToToolbar();\n  });\n\n  function showRetry(msg) {\n    container.innerHTML = '<div class=\"loading\">' + esc(msg) +\n      ((DEBUG ? lastErr : '') ? '<br><small>' + esc(lastErr) + '<\/small>' : '') + '<\/div>';\n    const b = document.createElement('button');\n    b.type = 'button'; b.className = 'btn-more'; b.textContent = 'Th\u1eed l\u1ea1i';\n    b.addEventListener('click', function () { container.innerHTML = '<div class=\"loading\">\u0110ang t\u1ea3i deal m\u1edbi nh\u1ea5t...<\/div>'; loadDeals(); });\n    container.appendChild(b);\n    moreBtn.hidden = true;\n  }\n\n  function fetchJSON(url, ms) {\n    return new Promise(function (resolve, reject) {\n      const ctrl = ('AbortController' in window) ? new AbortController() : null;\n      const t = setTimeout(function () { if (ctrl) ctrl.abort(); reject(new Error('fetch timeout')); }, ms);\n      fetch(url, { signal: ctrl ? ctrl.signal : undefined, credentials: 'omit', cache: 'no-store' })\n        .then(function (r) { if (!r.ok) throw new Error('HTTP ' + r.status); return r.text(); })\n        .then(function (txt) { clearTimeout(t); resolve(JSON.parse(txt)); })\n        .catch(function (e) { clearTimeout(t); reject(e); });\n    });\n  }\n\n  function jsonp(url, ms) {\n    return new Promise(function (resolve, reject) {\n      const cb = '__gg' + Date.now(), s = document.createElement('script');\n      function done() { clearTimeout(t); try { delete window[cb]; } catch (e) { window[cb] = undefined; } if (s.parentNode) s.parentNode.removeChild(s); }\n      const t = setTimeout(function () { done(); reject(new Error('jsonp timeout')); }, ms);\n      window[cb] = function (d) { done(); resolve(d); };\n      s.onerror = function () { done(); reject(new Error('jsonp script error')); };\n      s.src = url + (url.indexOf('?') > -1 ? '\\x26' : '?') + 'callback=' + cb;\n      document.head.appendChild(s);\n    });\n  }\n\n  function applyData(data) {\n    if (!Array.isArray(data)) throw new Error('D\u1eef li\u1ec7u kh\u00f4ng h\u1ee3p l\u1ec7');\n    deals = data.slice().reverse().filter(function (it) { return it ? (it.name ? safeUrl(it.link) : '') : ''; });\n    store.set('gocgear_cached_deals', JSON.stringify(deals));\n    loaded = true;\n    refresh(true);\n  }\n\n  async function loadDeals() {\n    const raw = store.get('gocgear_cached_deals');\n    if (raw) {\n      try {\n        const c = JSON.parse(raw);\n        if (Array.isArray(c) ? c.length : 0) { deals = c; loaded = true; refresh(); }\n      } catch (e) {}\n    }\n    try {\n      let data;\n      try { data = await fetchJSON(SCRIPT_URL, 7000); }\n      catch (e1) { lastErr = 'fetch: ' + e1.message; data = await jsonp(SCRIPT_URL, 9000); }\n      applyData(data);\n    } catch (e2) {\n      lastErr += ' | jsonp: ' + (e2 ? e2.message : '');\n      if (!loaded) showRetry('Kh\u00f4ng t\u1ea3i \u0111\u01b0\u1ee3c deal. Vui l\u00f2ng th\u1eed l\u1ea1i.');\n    }\n  }\n\n  window.addEventListener('error', function (ev) { lastErr += ' | ' + (ev ? ev.message : ''); });\n  setTimeout(function () { if (loaded ? false : (container.querySelector('.loading') ? !container.querySelector('.btn-more') : false)) showRetry('T\u1ea3i ch\u1eadm. Vui l\u00f2ng th\u1eed l\u1ea1i.'); }, 20000);\n\n  const pinVoucherBtn = document.getElementById('btn-pin-voucher');\n  if (pinVoucherBtn) {\n    pinVoucherBtn.addEventListener('click', function (e) {\n      if (\/Android|iPhone|iPad|iPod\/i.test(navigator.userAgent)) {\n        e.preventDefault();\n        openLink(this.href, true);\n      }\n    });\n  }\n  moreBtn.addEventListener('click', renderMore);\n  loadDeals().catch(function (e) { lastErr = String(e ? e.message : ''); if (!loaded) showRetry('Kh\u00f4ng t\u1ea3i \u0111\u01b0\u1ee3c deal. Vui l\u00f2ng th\u1eed l\u1ea1i.'); });\n\n  const toast = document.getElementById('fomo-toast');\n  const toastText = document.getElementById('fomo-text');\n  const toastIco = document.getElementById('fomo-ico');\n  const toastClose = document.getElementById('fomo-close');\n  let toastOn = (TOAST_CFG.enabled ? store.get('gocgear_fomo_off') !== '1' : false);\n  let fomoTimer = null, hideTimer = null, moreVisible = false;\n\n  if ('IntersectionObserver' in window) {\n    new IntersectionObserver(function (es) { moreVisible = es[0].isIntersecting; }).observe(moreBtn);\n  }\n\n  const pick = a => a[Math.floor(Math.random() * a.length)];\n  const shortName = n => { n = String(n || '').trim(); return n.length > 34 ? n.slice(0, 32).trim() + '\u2026' : n; };\n\n  function realProductMessage() {\n    if (!deals.length || Math.random() < 0.25) {\n      return { ico: '\ud83c\udf9f\ufe0f', text: 'Voucher Shopee \\x26 Freeship \u0111ang c\u00f3 s\u1eb5n' };\n    }\n    const item = pick(deals);\n    const name = shortName(item.name);\n    return pick([\n      { ico: '\u26a1', text: 'G\u1ee3i \u00fd m\u00f3n gear review: ' + name },\n      { ico: '\ud83d\udd0d', text: 'Xem chi ti\u1ebft deal: ' + name },\n      { ico: '\ud83c\udfaf', text: 'S\u1ea3n ph\u1ea9m c\u00f3 tr\u00ean video: ' + name }\n    ]);\n  }\n\n  function canToast() {\n    return [toastOn, loaded, !document.hidden, !moreVisible, document.activeElement !== searchInput].every(Boolean);\n  }\n  function hideToast() { toast.classList.remove('show'); }\n  function tick() {\n    if (!toastOn) return;\n    if (canToast()) {\n      const m = realProductMessage();\n      toastIco.textContent = m.ico;\n      toastText.textContent = m.text;\n      toast.classList.add('show');\n      clearTimeout(hideTimer);\n      hideTimer = setTimeout(hideToast, TOAST_CFG.show);\n    }\n    fomoTimer = setTimeout(tick, TOAST_CFG.show + TOAST_CFG.min + Math.random() * (TOAST_CFG.max - TOAST_CFG.min));\n  }\n\n  toastClose.addEventListener('click', function () {\n    toastOn = false;\n    clearTimeout(fomoTimer); clearTimeout(hideTimer);\n    hideToast();\n    store.set('gocgear_fomo_off', '1');\n  });\n\n  if (toastOn) fomoTimer = setTimeout(tick, TOAST_CFG.first);\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>G\u00f3c Gear VN \u26a1 T\u1ed5ng h\u1ee3p deal Gear review &amp; m\u00e3 gi\u1ea3m gi\u00e1 m\u1edbi nh\u1ea5t. \ud83d\udce2 Link ti\u1ebfp th\u1ecb Shopee. Gi\u00e1 cu\u1ed1i \u00e1p d\u1ee5ng t\u1ea1i gi\u1ecf h\u00e0ng. \ud83d\udcac Nh\u00f3m Zalo \ud83c\udf9f\ufe0f Voucher Shopee \u2715 T\u1ea5t c\u1ea3 B\u00e0n ph\u00edm Chu\u1ed9t &amp; L\u00f3t M\u00e0n h\u00ecnh &amp; Gi\u00e1 \u0111\u1ee1 Ph\u1ee5 ki\u1ec7n kh\u00e1c \u0110ang t\u1ea3i deal m\u1edbi nh\u1ea5t&#8230; Xem&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","_kad_post_transparent":"","_kad_post_title":"hide","_kad_post_layout":"fullwidth","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":true,"_kad_post_footer":true,"_kad_post_classname":"","footnotes":""},"class_list":["post-4817","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Best Value Lab Team \u2705","author_link":"https:\/\/bestvaluelab.com\/es\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"G\u00f3c Gear VN \u26a1 T\u1ed5ng h\u1ee3p deal Gear review &amp; m\u00e3 gi\u1ea3m gi\u00e1 m\u1edbi nh\u1ea5t. \ud83d\udce2 Link ti\u1ebfp th\u1ecb Shopee. Gi\u00e1 cu\u1ed1i \u00e1p d\u1ee5ng t\u1ea1i gi\u1ecf h\u00e0ng. \ud83d\udcac Nh\u00f3m Zalo \ud83c\udf9f\ufe0f Voucher Shopee \u2715 T\u1ea5t c\u1ea3 B\u00e0n ph\u00edm Chu\u1ed9t &amp; L\u00f3t M\u00e0n h\u00ecnh &amp; Gi\u00e1 \u0111\u1ee1 Ph\u1ee5 ki\u1ec7n kh\u00e1c \u0110ang t\u1ea3i deal m\u1edbi nh\u1ea5t&#8230; Xem...","_links":{"self":[{"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/pages\/4817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/comments?post=4817"}],"version-history":[{"count":24,"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/pages\/4817\/revisions"}],"predecessor-version":[{"id":4907,"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/pages\/4817\/revisions\/4907"}],"wp:attachment":[{"href":"https:\/\/bestvaluelab.com\/es\/wp-json\/wp\/v2\/media?parent=4817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}