/* MãGiảm.vn — main.css — Generated from theme design */


  :root {
    --orange: #EE4D2D;
    --orange-dark: #C73B1C;
    --orange-light: #fff1ed;
    --orange-soft: #ffd8cc;
    --yellow: #FFB100;
    --green: #1DB954;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --bg: #fff9f7;
    --card-bg: #ffffff;
    --border: #ffe0d4;
    --shadow: 0 4px 20px rgba(238,77,45,0.1);
    --radius: 16px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }

  /* HEADER */
  header {
    background: var(--orange);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(238,77,45,0.3);
  }
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
  }
  .logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
  }
  .logo span { color: var(--yellow); }
  nav { display: flex; gap: 8px; }
  nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
  }
  nav a:hover, nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }

  /* HERO */
  .hero {
    background: linear-gradient(135deg, #EE4D2D 0%, #ff7043 50%, #ffb347 100%);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -100px; right: -80px;
  }
  .hero::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    bottom: -60px; left: -40px;
  }
  .hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }
  .hero h1 span {
    background: var(--yellow);
    color: var(--orange);
    padding: 2px 12px;
    border-radius: 8px;
    display: inline-block;
  }
  .hero p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }
  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 1;
  }
  .stat { text-align: center; }
  .stat-number {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--yellow);
  }
  .stat-label { color: rgba(255,255,255,0.85); font-size: 13px; }

  /* SEARCH */
  .search-bar {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    transform: translateY(-24px);
    position: relative;
    z-index: 10;
  }
  .search-inner {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(238,77,45,0.2);
    overflow: hidden;
    border: 2px solid var(--orange-soft);
  }
  .search-inner input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text);
    background: transparent;
  }
  .search-inner button {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Be Vietnam Pro', sans-serif;
  }
  .search-inner button:hover { background: var(--orange-dark); }

  /* QUICK LINKS BAR */
  .quick-links {
    background: #fff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 20px 12px 16px;
    margin-bottom: 16px;
  }
  .quick-links-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
  }
  .ql-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 6px 8px 10px;
    cursor: pointer; text-decoration: none;
    transition: all 0.18s;
    border-right: 1px solid #f3f4f6;
  }
  .ql-item:last-child { border-right: none; }
  .ql-item:hover .ql-name { color: var(--orange); }
  .ql-icon-wrap {
    width: 68px; height: 68px;
    border-radius: 18px;
    border: 1.5px solid #eee;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: transform 0.18s; flex-shrink: 0;
    background: #fff;
  }
  .ql-icon-wrap svg { width:100%; height:100%; display:block; }
  .ql-item:hover .ql-icon-wrap { transform: scale(1.06); border-color: var(--orange-soft); }
  .ql-icon-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 900; line-height: 1;
    text-align: center; padding: 4px;
  }
  /* Individual icon backgrounds */
  .ql-freeship .ql-icon-inner  { background: linear-gradient(135deg,#00b14f,#00d56e); color:#fff; font-size:11px; }
  .ql-xtra     .ql-icon-inner  { background: linear-gradient(135deg,var(--orange),#ff7043); color:#fff; font-size:11px; }
  .ql-sale     .ql-icon-inner  { background: linear-gradient(135deg,#1877f2,#42a5f5); color:#fff; }
  .ql-hoanxu   .ql-icon-inner  { background: linear-gradient(135deg,#f59e0b,#fbbf24); color:#fff; font-size:11px; }
  .ql-spay     .ql-icon-inner  { background: linear-gradient(135deg,var(--orange),#ff7043); color:#fff; font-size:26px; }
  .ql-voucher  .ql-icon-inner  { background: linear-gradient(135deg,#7c3aed,#a78bfa); color:#fff; font-size:11px; }
  .ql-bank     .ql-icon-inner  { background: linear-gradient(135deg,#0369a1,#38bdf8); color:#fff; font-size:22px; }
  .ql-name {
    font-size: 12px; font-weight: 600; color: var(--orange);
    text-align: center; line-height: 1.35; word-break: break-word;
  }
  @media (max-width: 640px) {
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
    .ql-item { border-bottom: 1px solid #f3f4f6; }
    .ql-item:nth-child(4n) { border-right: none; }
    .ql-icon-wrap { width: 54px; height: 54px; border-radius: 14px; }
  }

  /* FILTER TABS */
  .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
  .filter-section { padding: 8px 0 24px; }
  .filter-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
  .tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tab {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-muted);
  }
  .tab:hover { border-color: var(--orange); color: var(--orange); }
  .tab.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
  }
  .tab .emoji { margin-right: 4px; }

  /* COUPON GRID */
  .section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .section-title .badge {
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
  }

  /* COUPON GRID — 3 cột */
  .coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
  }
  @media (max-width: 900px) { .coupon-grid { grid-template-columns: repeat(2,1fr) !important; } }
  @media (max-width: 560px)  { .coupon-grid { grid-template-columns: 1fr !important; gap: 10px !important; } }

  /* COUPON CARD — horizontal layout như ảnh */
  .coupon-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .coupon-card:hover {
    box-shadow: 0 4px 18px rgba(238,77,45,0.13);
    transform: translateY(-2px);
  }

  /* HOT / NEW badge */
  .card-badge {
    position: absolute; top: 10px; right: 10px;
    font-size: 10px; font-weight: 800;
    padding: 2px 8px; border-radius: 20px; z-index: 2;
  }
  .badge-hot { background: var(--orange); color: #fff; }
  .badge-new { background: var(--green);  color: #fff; }

  /* TOP ROW: logo | info | discount */
  .card-main {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 14px 10px;
    border-bottom: 1px dashed #f0f0f0;
  }
  /* Logo tròn */
  .c-logo-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    flex-shrink: 0; width: 64px;
  }
  .c-logo-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; font-weight: 900;
    overflow: hidden; flex-shrink: 0;
  }
  .c-logo-label {
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    text-align: center; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; width: 100%; word-break: break-word;
  }

  /* Middle info */
  .c-info { flex: 1; min-width: 0; }
  .c-discount-line {
    font-size: 17px; font-weight: 800; color: var(--orange);
    margin-bottom: 3px;
  }
  .c-discount-line span { font-size: 22px; }
  .c-meta-line { font-size: 12px; color: #555; margin-bottom: 2px; }
  .c-meta-line b { font-weight: 700; color: var(--text); }
  .c-note {
    font-size: 11px; color: #00a854; font-style: italic;
    line-height: 1.45; margin-top: 3px;
  }
  .c-note a { color: #00a854; text-decoration: underline; cursor: pointer; }

  /* BOTTOM ROW: HSD | links | button */
  .card-foot {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .c-hsd {
    font-size: 11px; color: var(--text-muted);
    display: flex; align-items: center; gap: 3px;
    white-space: nowrap;
  }
  .c-hsd.soon { color: #dc2626; font-weight: 600; }
  .c-list-link {
    font-size: 12px; font-weight: 600; color: #00a854;
    text-decoration: underline; cursor: pointer; white-space: nowrap;
  }
  .card-foot-spacer { flex: 1; }
  /* Action button */
  .c-action {
    padding: 7px 16px; border-radius: 6px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; border: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    white-space: nowrap; transition: all 0.18s;
    text-decoration: none; display: inline-block;
  }
  .c-action.orange { background: var(--orange); color: #fff; }
  .c-action.orange:hover { background: var(--orange-dark); }
  .c-action.green  { background: #00a854; color: #fff; }
  .c-action.green:hover  { background: #007a3d; }
  .c-action.outline {
    background: #fff; color: var(--orange);
    border: 1.5px solid var(--orange);
  }
  .c-action.outline:hover { background: var(--orange-light); }

  /* CATEGORY — Shopee style 2-row slider */
  .category-section { margin-bottom: 32px; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border); padding: 20px 0 0; position: relative; }
  .cat-slider-wrap { position: relative; overflow: hidden; }
  .cat-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 10);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }
  .cat-card {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 12px 6px 16px; text-align: center; cursor: pointer; transition: background 0.18s;
    text-decoration: none; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
    min-width: 0;
  }
  .cat-card:hover { background: var(--orange-light); }
  .cat-card:hover .cat-name { color: var(--orange); }
  .cat-img-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    background: #f5f5f5; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; overflow: hidden; transition: transform 0.18s; flex-shrink: 0;
  }
  .cat-card:hover .cat-img-wrap { transform: scale(1.06); }
  .cat-emoji-big { font-size: 36px; line-height: 1; display: block; }
  .cat-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; word-break: break-word; }
  /* Arrow buttons */
  .cat-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; font-size: 14px; color: #555;
    transition: all 0.18s; user-select: none;
  }
  .cat-arrow:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
  .cat-arrow.left { left: -14px; }
  .cat-arrow.right { right: -14px; }
  .cat-arrow.hidden { opacity: 0; pointer-events: none; }
  @media (max-width: 960px) { .cat-grid { grid-auto-columns: calc(100% / 5); } }
  @media (max-width: 500px) { .cat-grid { grid-auto-columns: calc(100% / 4); } .cat-img-wrap { width: 52px; height: 52px; } .cat-emoji-big { font-size: 26px; } }


  /* ── FLASH SALE BANNER ── */
  .flash-banner {
    background: linear-gradient(135deg, #EE4D2D 0%, #ff6a35 60%, #ffb347 100%);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 20px;
    position: relative; overflow: hidden;
  }
  .flash-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg,rgba(255,255,255,0.03) 0px,rgba(255,255,255,0.03) 2px,transparent 2px,transparent 12px);
  }
  .fb-icon { font-size: 36px; flex-shrink: 0; position: relative; z-index:1; animation: fbBounce 1s infinite alternate; }
  @keyframes fbBounce { from{transform:scale(1)} to{transform:scale(1.12)} }
  .fb-text { flex: 1; position: relative; z-index:1; }
  .fb-title { font-family:'Nunito',sans-serif; font-size:20px; font-weight:900; color:#fff; letter-spacing:-0.3px; margin-bottom:2px; }
  .fb-sub   { font-size:12px; color:rgba(255,255,255,0.8); }
  .fb-countdown { display:flex; align-items:center; gap:6px; position:relative; z-index:1; }
  .fb-lbl { font-size:11px; color:rgba(255,255,255,0.75); font-weight:600; margin-right:4px; text-transform:uppercase; letter-spacing:0.05em; }
  .fb-unit {
    background: rgba(0,0,0,0.35); color:#fff;
    font-family:'Nunito',sans-serif; font-size:22px; font-weight:900;
    padding: 6px 12px; border-radius:8px; min-width:44px; text-align:center;
    line-height:1;
  }
  .fb-sep { color:rgba(255,255,255,0.7); font-size:20px; font-weight:900; }
  .fb-btn {
    background:#fff; color:var(--orange); border:none;
    padding:10px 20px; border-radius:50px;
    font-size:13px; font-weight:800; cursor:pointer;
    font-family:'Be Vietnam Pro',sans-serif;
    transition:all .18s; white-space:nowrap; position:relative; z-index:1;
    text-decoration:none; display:inline-block;
  }
  .fb-btn:hover { background:var(--yellow); color:var(--orange-dark); transform:translateY(-1px); }

  /* ── CATEGORY FILTER TABS ── */
  .cat-filter-bar {
    display:flex; gap:8px; flex-wrap:wrap;
    margin-bottom:20px; align-items:center;
  }
  .cat-ftab {
    display:inline-flex; align-items:center; gap:6px;
    padding:7px 16px; border-radius:50px;
    font-size:13px; font-weight:600; cursor:pointer;
    border:1.5px solid var(--border);
    background:#fff; color:var(--text-muted);
    transition:all .17s; user-select:none; white-space:nowrap;
  }
  .cat-ftab:hover  { border-color:var(--orange); color:var(--orange); }
  .cat-ftab.active { background:var(--orange); color:#fff; border-color:var(--orange); }
  .cat-ftab .cf-emoji { font-size:15px; }
  .cat-ftab .cf-cnt  {
    background:rgba(255,255,255,0.25); font-size:10px;
    padding:1px 6px; border-radius:20px; font-weight:700;
  }
  .cat-ftab:not(.active) .cf-cnt { background:var(--bg); color:var(--text-muted); }

  /* ── SECTION HEADER ── */
  .sec-header {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:16px; flex-wrap:wrap; gap:8px;
  }
  .sec-header-title {
    font-family:'Nunito',sans-serif; font-size:20px; font-weight:800;
    display:flex; align-items:center; gap:8px;
  }
  .sec-header-title .badge {
    background:var(--orange); color:#fff;
    font-size:11px; padding:2px 10px; border-radius:20px; font-weight:700;
  }
  .sec-header-right { font-size:13px; color:var(--text-muted); }

  /* ── PAGINATION ── */
  .pagination {
    display:flex; align-items:center; justify-content:center;
    gap:8px; margin-top:28px; margin-bottom:20px; flex-wrap:wrap;
  }
  .pg-btn {
    padding:8px 18px; border-radius:8px; font-size:13px; font-weight:700;
    cursor:pointer; border:1.5px solid var(--border);
    background:#fff; color:var(--text-muted);
    transition:all .18s; font-family:'Be Vietnam Pro',sans-serif;
  }
  .pg-btn:hover    { border-color:var(--orange); color:var(--orange); }
  .pg-btn.active   { background:var(--orange); color:#fff; border-color:var(--orange); }
  .pg-btn.disabled { opacity:.4; pointer-events:none; }
  .pg-dots { color:var(--text-muted); font-size:16px; padding:0 4px; }
  .load-more-btn {
    display:block; width:100%; max-width:320px; margin:24px auto 8px;
    background:#fff; color:var(--orange);
    border:2px solid var(--orange); border-radius:10px;
    padding:12px; font-size:14px; font-weight:700;
    cursor:pointer; transition:all .18s; font-family:'Be Vietnam Pro',sans-serif;
    text-align:center;
  }
  .load-more-btn:hover { background:var(--orange); color:#fff; }
  .load-more-btn.hidden { display:none; }


  /* ── TIN KHUYẾN MÃI ── */
  .blog-section { margin-top: 48px; }
  .blog-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
  }
  .blog-title {
    font-family: 'Nunito', sans-serif;
    font-size: 22px; font-weight: 800; color: var(--text);
    letter-spacing: -0.3px;
  }
  .blog-see-all {
    font-size: 13px; font-weight: 600; color: var(--orange);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    transition: gap 0.18s;
  }
  .blog-see-all:hover { gap: 8px; }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  @media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 500px) { .blog-grid { grid-template-columns: 1fr; } }

  .blog-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex; flex-direction: column;
  }
  .blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238,77,45,0.11);
  }
  .blog-thumb {
    width: 100%; aspect-ratio: 16/8;
    object-fit: cover; display: block;
    background: var(--surface);
    position: relative; overflow: hidden;
  }
  .blog-thumb-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--orange) 0%, #ff7043 50%, #ffb347 100%);
    position: relative;
  }
  .blog-thumb-inner.green  { background: linear-gradient(135deg,#00b14f,#00d56e); }
  .blog-thumb-inner.blue   { background: linear-gradient(135deg,#0369a1,#38bdf8); }
  .blog-thumb-inner.purple { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
  .blog-thumb-label {
    position: absolute; top: 7px; left: 7px;
    background: rgba(0,0,0,0.35); color: #fff;
    font-size: 9px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase;
  }
  .blog-body { padding: 10px 10px 8px; flex: 1; display: flex; flex-direction: column; }
  .blog-tag {
    font-size: 10px; font-weight: 700; color: var(--orange);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
  }
  .blog-post-title {
    font-size: 13px; font-weight: 700; color: var(--text);
    line-height: 1.4; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .blog-excerpt {
    font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .blog-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-top: 1px solid var(--border);
    font-size: 10px; color: var(--text-muted);
  }
  .blog-date { display: flex; align-items: center; gap: 3px; }
  .blog-read-more {
    font-size: 11px; font-weight: 700; color: var(--orange);
    display: flex; align-items: center; gap: 2px;
  }

  .expiry-soon { color: #dc2626; font-weight: 600; }
  .expiry-ok { color: var(--green); }

  /* TOAST */
  .toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* FOOTER */
  footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 32px 24px;
    font-size: 13px;
    margin-top: 40px;
  }
  footer a { color: var(--orange); text-decoration: none; }
  .footer-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
  }
  .footer-logo span { color: var(--yellow); }

  @media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .hero-stats { gap: 20px; }
    .coupon-grid { grid-template-columns: 1fr; }
    nav { display: none; }
  }

/* ── WORDPRESS SPECIFIC ── */
.site-header { background: var(--orange); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(238,77,45,0.3); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 22px; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--yellow); }
.site-nav .nav-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav-list a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 20px; transition: all 0.2s; }
.site-nav .nav-list a:hover, .site-nav .nav-list .current-menu-item a { background: rgba(255,255,255,0.2); color: #fff; }
.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.6); text-align: center; padding: 32px 24px; font-size: 13px; }
.footer-logo { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--yellow); }
.footer-nav-list { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin: 8px 0; }
.footer-nav-list a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-nav-list a:hover { color: #fff; }
.footer-copy { margin-top: 10px; font-size: 12px; }
.site-main { min-height: 60vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.entry-content { line-height: 1.7; color: #444; }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 20px 0 10px; }
.entry-content p { margin-bottom: 14px; }

@media (max-width: 640px) {
  .mobile-menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--orange); padding: 12px; z-index: 200; }
  .site-nav.open { display: block; }
  .site-nav .nav-list { flex-direction: column; }
}

/* ── ELEMENTOR + HEADER/FOOTER ── */
.site-header{background:var(--orange);padding:0 24px;position:sticky;top:0;z-index:100;box-shadow:0 2px 16px rgba(238,77,45,.3)}
.header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-family:'Nunito',sans-serif;font-weight:900;font-size:22px;color:#fff;text-decoration:none}
.logo span{color:var(--yellow)}
.nav-list{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.nav-list a{color:rgba(255,255,255,.85);text-decoration:none;font-size:14px;font-weight:500;padding:6px 14px;border-radius:20px;transition:all .2s}
.nav-list a:hover,.nav-list .current-menu-item a{background:rgba(255,255,255,.2);color:#fff}
.mobile-menu-toggle{display:none;background:none;border:none;color:#fff;font-size:24px;cursor:pointer}
.site-footer{background:#1a1a2e;color:rgba(255,255,255,.6);text-align:center;padding:32px 24px;font-size:13px}
.footer-logo{font-family:'Nunito',sans-serif;font-size:20px;font-weight:900;color:#fff;margin-bottom:8px}
.footer-logo span{color:var(--yellow)}
.footer-nav-list{display:flex;justify-content:center;gap:20px;list-style:none;padding:0;margin:8px 0}
.footer-nav-list a{color:rgba(255,255,255,.5);text-decoration:none}
.footer-nav-list a:hover{color:#fff}
.site-main{min-height:60vh}
.container{max-width:1100px;margin:0 auto;padding:0 24px}
@media(max-width:640px){.mobile-menu-toggle{display:block}.site-nav{display:none;position:absolute;top:60px;left:0;right:0;background:var(--orange);padding:12px;z-index:200}.site-nav.open{display:block}.nav-list{flex-direction:column}}

/* ══════════════════════════════════
   BLUR MÃ — tạo tò mò người dùng
══════════════════════════════════ */

/* Card mới — layout ngang gọn hơn */
.coupon-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.coupon-card:hover {
  box-shadow: 0 4px 20px rgba(238,77,45,.13);
  transform: translateY(-2px);
}

/* BLUR CODE BOX */
.blur-code-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--orange-light);
  border: 1.5px dashed var(--orange-soft);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all .18s;
  min-height: 44px;
}
.blur-code-wrap:hover { border-color: var(--orange); }

/* Mã bị blur */
.blur-code-text {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--orange);
  padding: 10px 14px;
  flex: 1;
  filter: blur(5px);
  user-select: none;
  transition: filter .3s;
  pointer-events: none;
}
/* Khi đã reveal */
.blur-code-wrap.revealed .blur-code-text {
  filter: blur(0);
}

/* Nút lấy mã */
.blur-reveal-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Be Vietnam Pro', sans-serif;
  letter-spacing: 0.02em;
  transition: all .18s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(238,77,45,.3);
}
.blur-reveal-btn:hover { background: var(--orange-dark); transform: translateX(-50%) scale(1.05); }
.blur-code-wrap.revealed .blur-reveal-btn { display: none; }

/* Copy btn sau khi reveal */
.blur-copy-btn {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: #fff;
  border: 1.5px solid var(--orange-soft);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  margin-right: 10px;
  font-family: 'Be Vietnam Pro', sans-serif;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.blur-code-wrap.revealed .blur-copy-btn { display: block; }
.blur-copy-btn:hover { background: var(--orange); color: #fff; }
.blur-copy-btn.ok { background: #00a854; color: #fff; border-color: #00a854; }

/* Nút CTA chính */
.c-cta-main {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--sp-light, #ff6544));
  color: #fff; border: none;
  border-radius: 8px; padding: 11px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  transition: all .18s; letter-spacing: .01em;
}
.c-cta-main:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(238,77,45,.3); }

/* Badge HOT/MỚI */
.card-badge { position:absolute; top:10px; right:10px; font-size:10px; font-weight:800; padding:3px 10px; border-radius:20px; text-transform:uppercase; z-index:2; }
.badge-hot { background:var(--orange); color:#fff; }
.badge-new { background:#00a854; color:#fff; }

/* ══════════════════════════════════════════
   FOOTER MỚI — WebGiamGia.Online
══════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   FOOTER — Phong cách A: Gradient cam Shopee
══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   FOOTER — 3 dải độc lập
══════════════════════════════════════════════ */

/* Container chung căn giữa nội dung */
.wgg-f-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* DẢI 1: Gradient cam */
.wgg-f1 {
  background: linear-gradient(135deg, #c0392b 0%, #EE4D2D 60%, #f05a2a 100%);
  color: #fff;
  margin-top: 8px;
  padding: 44px 0 36px;
}
.wgg-f1 .wgg-f-wrap {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media(max-width:900px){
  .wgg-f1 .wgg-f-wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width:560px){
  .wgg-f1 .wgg-f-wrap { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
}

/* Brand */
.wgg-footer-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 22px; font-weight: 900;
  color: #fff; margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.wgg-footer-logo span { color: #ffd8cc; }
.wgg-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Social */
.wgg-footer-socials { display: flex; gap: 8px; }
.wgg-soc {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  transition: background .18s, transform .18s;
  flex-shrink: 0;
}
.wgg-soc:hover { background: rgba(255,255,255,0.32); transform: translateY(-2px); }

/* Cột link */
.wgg-footer-col { display: flex; flex-direction: column; gap: 0; }
.wgg-fcol-title {
  font-size: 11px; font-weight: 700;
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px; opacity: 0.9;
}
.wgg-flink {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none; padding: 4px 0;
  transition: color .18s;
}
.wgg-flink:hover { color: #fff; }

/* DẢI 2: Disclaimer đỏ đậm hơn */
.wgg-f2 {
  background: #b03020;
  padding: 14px 0;
  color: rgba(255,255,255,0.7);
  font-size: 11.5px;
  line-height: 1.75;
  text-align: center;
}
.wgg-f2 strong { color: rgba(255,255,255,0.9); }

/* DẢI 3: Copyright đậm nhất */
.wgg-f3 {
  background: #8c2318;
  padding: 13px 0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}
.wgg-f3-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wgg-f3-inner strong { color: rgba(255,255,255,0.75); }
.wgg-aff-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 3px 10px;
  border-radius: 4px; letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   KHUNG BÀI VIẾT LIÊN QUAN
══════════════════════════════════════════════════════════ */
.wgg-related-section { display: block; }

.wgg-related-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: #fff1ed;
  margin-bottom: 0;
}
.wgg-related-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wgg-related-section-bar {
  display: inline-block;
  width: 4px; height: 18px;
  background: #EE4D2D;
  border-radius: 2px;
  flex-shrink: 0;
}
.wgg-related-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 800;
  color: #1a1a2e; margin: 0;
}
.wgg-related-section-more {
  font-size: 12px; font-weight: 600;
  color: #EE4D2D; text-decoration: none;
  padding: 4px 14px;
  border: 1.5px solid #EE4D2D;
  border-radius: 20px;
  transition: all .2s; white-space: nowrap;
}
.wgg-related-section-more:hover { background: #EE4D2D; color: #fff; }

.wgg-related-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 20px 20px;
}
@media(max-width:900px) { .wgg-related-section-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .wgg-related-section-grid { grid-template-columns: repeat(2,1fr); gap: 10px; } }

.wgg-related-section-card {
  text-decoration: none; color: inherit;
  border-radius: 8px; overflow: hidden;
  border: 1px solid #ffd8cc; background: #fff;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.wgg-related-section-card:hover {
  box-shadow: 0 6px 18px rgba(238,77,45,0.12);
  transform: translateY(-3px);
  border-color: #EE4D2D;
}
.wgg-related-section-img {
  width: 100%; height: 130px;
  background-size: cover; background-position: center;
  background-color: #fff1ed;
}
.wgg-related-section-info { padding: 10px 12px 12px; }
.wgg-related-section-post-title {
  font-size: 13px; font-weight: 700;
  color: #1a1a2e; line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 7px;
}
.wgg-related-section-date { font-size: 11px; color: #bbb; }

/* ══════════════════════════════════════════════
   RESPONSIVE — đầy đủ breakpoint
══════════════════════════════════════════════ */

/* Tablet lớn: 768px - 1024px */
@media (max-width: 1024px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Tablet nhỏ / phablet: 560px - 768px */
@media (max-width: 768px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .wgg-related-section-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wgg-f1 .wgg-f-wrap { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .wgg-title-box h1 { font-size: 22px !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile lớn: 480px - 560px (iPhone Plus, Samsung S series) */
@media (max-width: 560px) {
  .coupon-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .coupon-card { padding: 14px !important; border-radius: 10px !important; }
  .coupon-logo { width: 54px !important; height: 54px !important; font-size: 24px !important; }
  .coupon-shop { font-size: 13px !important; }
  .coupon-title { font-size: 13px !important; -webkit-line-clamp: 2 !important; }
  .coupon-btn { font-size: 13px !important; padding: 9px 12px !important; }

  .wgg-related-section-grid { grid-template-columns: 1fr !important; gap: 10px !important; padding: 12px 14px 16px !important; }
  .wgg-related-section-card { display: flex !important; flex-direction: row !important; }
  .wgg-related-section-img { width: 110px !important; height: 85px !important; flex-shrink: 0 !important; }
  .wgg-related-section-info { padding: 8px 10px !important; }

  .wgg-title-box { padding: 16px !important; }
  .wgg-title-box h1 { font-size: 20px !important; line-height: 1.35 !important; }
  .wgg-content-box { padding: 16px !important; }

  .wgg-f1 { padding: 28px 0 22px !important; }
  .wgg-f1 .wgg-f-wrap { grid-template-columns: 1fr !important; gap: 20px !important; padding: 0 16px !important; }
  .wgg-f-wrap { padding: 0 16px !important; }
  .wgg-footer-logo { font-size: 18px !important; }
  .wgg-footer-desc { font-size: 12px !important; margin-bottom: 14px !important; }

  .blog-grid { grid-template-columns: 1fr !important; }
  .header-inner { padding: 0 14px !important; }
  .wgg-single-wrapper { padding: 6px 0 0 !important; }
}

/* Mobile nhỏ: dưới 380px (iPhone SE, màn hình cũ) */
@media (max-width: 380px) {
  .coupon-card { padding: 10px !important; }
  .coupon-logo { width: 46px !important; height: 46px !important; font-size: 20px !important; }
  .coupon-shop { font-size: 11px !important; }
  .coupon-title { font-size: 11px !important; }
  .coupon-btn { font-size: 11px !important; padding: 7px 10px !important; }

  .wgg-title-box h1 { font-size: 17px !important; }
  .wgg-related-section-img { width: 90px !important; height: 72px !important; }
  .wgg-related-section-post-title { font-size: 12px !important; }

  .wgg-footer-logo { font-size: 16px !important; }
  .wgg-f-wrap { padding: 0 12px !important; }
  .wgg-f1 .wgg-f-wrap { padding: 0 12px !important; }
}

/* Quick links mobile — giữ 3-4 cột */
@media (max-width: 560px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .ql-icon-wrap {
    width: 52px !important; height: 52px !important;
  }
  .ql-name { font-size: 11px !important; }
}
@media (max-width: 380px) {
  .quick-links-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .ql-icon-wrap { width: 44px !important; height: 44px !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE TOÀN DIỆN — mọi kích thước màn hình
   Các thiết bị phổ biến tại VN:
   - iPhone SE: 375px
   - iPhone 14/15: 390px  
   - Samsung S23: 393px
   - iPhone Plus/Max: 430px
   - Samsung Ultra: 480px
   - Tablet nhỏ: 600-768px
══════════════════════════════════════════════════════ */

/* ── 430px+: iPhone Plus, Pro Max ── */
@media (min-width: 430px) and (max-width: 560px) {
  .coupon-grid { grid-template-columns: 1fr !important; }
  .quick-links-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .coupon-card { padding: 16px !important; }
  .coupon-logo { width: 60px !important; height: 60px !important; }
}

/* ── 375-429px: iPhone SE, 14, 15, Samsung S ── */
@media (min-width: 375px) and (max-width: 429px) {
  .coupon-grid { grid-template-columns: 1fr !important; }
  .quick-links-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .coupon-card { padding: 14px !important; }
  .coupon-logo { width: 54px !important; height: 54px !important; }
  .wgg-title-box h1 { font-size: 20px !important; }
}

/* ── dưới 375px: iPhone SE cũ, màn hình nhỏ ── */
@media (max-width: 374px) {
  .coupon-grid { grid-template-columns: 1fr !important; }
  .quick-links-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .ql-icon-wrap { width: 42px !important; height: 42px !important; }
  .ql-name { font-size: 10px !important; }
  .coupon-card { padding: 10px !important; }
  .coupon-logo { width: 46px !important; height: 46px !important; font-size: 20px !important; }
  .coupon-shop { font-size: 11px !important; }
  .coupon-title { font-size: 11px !important; }
  .coupon-btn { font-size: 11px !important; padding: 7px 8px !important; }
  .wgg-title-box h1 { font-size: 17px !important; }
  .wgg-title-box { padding: 14px !important; }
  .wgg-content-box { padding: 12px !important; }
}

/* ── Tablet: 600-768px ── */
@media (min-width: 600px) and (max-width: 768px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .quick-links-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wgg-related-section-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Đảm bảo không bao giờ tràn ngang ── */
@media (max-width: 768px) {
  html { overflow-x: hidden !important; }
  body { overflow-x: hidden !important; max-width: 100vw !important; }
  .elementor-section { max-width: 100% !important; }
  img, video, iframe { max-width: 100% !important; }
  .wgg-single-wrapper { box-sizing: border-box !important; }
  .wgg-f1 .wgg-f-wrap { padding: 0 16px !important; }
  .wgg-f-wrap { padding: 0 16px !important; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PREMIUM — Card ngang + clamp() tự co giãn
   Áp dụng cho mọi màn hình ≤ 560px
══════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {

  /* ── 1. COUPON CARD: Layout ngang ── */
  .coupon-card {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Top row: logo + info nằm ngang, gọn hơn */
  .card-main {
    padding: clamp(10px, 3vw, 14px) !important;
    gap: clamp(8px, 2.5vw, 12px) !important;
    align-items: center !important;
  }

  /* Logo nhỏ gọn */
  .c-logo-wrap { width: clamp(44px, 12vw, 56px) !important; }
  .c-logo-circle {
    width: clamp(42px, 11vw, 52px) !important;
    height: clamp(42px, 11vw, 52px) !important;
    font-size: clamp(18px, 5vw, 24px) !important;
  }
  .c-logo-label { font-size: clamp(9px, 2.5vw, 11px) !important; }

  /* Text tự co giãn theo màn hình */
  .c-discount-line {
    font-size: clamp(14px, 4.5vw, 18px) !important;
    margin-bottom: 2px !important;
  }
  .c-discount-line span { font-size: clamp(18px, 5.5vw, 22px) !important; }
  .c-meta-line { font-size: clamp(10px, 3vw, 12px) !important; }
  .c-note { font-size: clamp(10px, 2.8vw, 11px) !important; }

  /* Footer card: HSD + button nằm ngang */
  .card-foot {
    padding: clamp(6px, 2vw, 10px) clamp(10px, 3vw, 14px) clamp(10px, 3vw, 12px) !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .c-hsd { font-size: clamp(9px, 2.5vw, 11px) !important; }
  .c-action {
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 14px) !important;
    font-size: clamp(11px, 3vw, 13px) !important;
    white-space: nowrap !important;
  }

  /* ── 2. HEADER: clamp logo + padding ── */
  .logo { font-size: clamp(16px, 5vw, 22px) !important; }
  .site-header { padding: 0 clamp(12px, 4vw, 24px) !important; }

  /* ── 3. TITLE BOX bài viết ── */
  .wgg-title-box h1 {
    font-size: clamp(16px, 5vw, 22px) !important;
    line-height: 1.35 !important;
  }
  .wgg-title-box { padding: clamp(12px, 4vw, 20px) !important; }
  .wgg-content-box { padding: clamp(12px, 4vw, 20px) !important; }

  /* ── 4. FOOTER clamp ── */
  .wgg-footer-logo { font-size: clamp(16px, 5vw, 22px) !important; }
  .wgg-footer-desc { font-size: clamp(11px, 3vw, 13px) !important; }
  .wgg-flink { font-size: clamp(11px, 3vw, 13px) !important; }
  .wgg-fcol-title { font-size: clamp(10px, 2.8vw, 12px) !important; }
  .wgg-f2 { font-size: clamp(10px, 2.8vw, 11.5px) !important; padding: 12px 0 !important; }
  .wgg-f3 { font-size: clamp(10px, 2.8vw, 12px) !important; }

  /* ── 5. QUICK LINKS clamp ── */
  .ql-name { font-size: clamp(9px, 2.5vw, 11px) !important; }
  .ql-icon-wrap {
    width: clamp(42px, 12vw, 58px) !important;
    height: clamp(42px, 12vw, 58px) !important;
  }

  /* ── 6. BLOG CARD clamp ── */
  .blog-post-title { font-size: clamp(12px, 3.5vw, 14px) !important; }
  .blog-tag { font-size: clamp(9px, 2.5vw, 11px) !important; }

  /* ── 7. PAGINATION gọn trên mobile ── */
  .pagination { gap: 4px !important; }
  .page-btn {
    width: clamp(28px, 8vw, 36px) !important;
    height: clamp(28px, 8vw, 36px) !important;
    font-size: clamp(11px, 3vw, 13px) !important;
  }

  /* ── 8. Bài viết liên quan: layout ngang ── */
  .wgg-related-section-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .wgg-related-section-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }
  .wgg-related-section-img {
    width: clamp(90px, 28vw, 120px) !important;
    height: auto !important;
    min-height: 80px !important;
    flex-shrink: 0 !important;
  }
  .wgg-related-section-post-title {
    font-size: clamp(12px, 3.2vw, 14px) !important;
    -webkit-line-clamp: 3 !important;
  }
  .wgg-related-section-date { font-size: clamp(10px, 2.5vw, 11px) !important; }
}

/* ══════════════════════════════════════════════
   FIX MOBILE — Flash Banner + Quick Links
══════════════════════════════════════════════ */
@media (max-width: 560px) {

  /* Flash banner: layout dọc gọn */
  .flash-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .fb-icon { font-size: 28px !important; }
  .fb-title {
    font-size: clamp(16px, 5vw, 20px) !important;
    white-space: normal !important;
  }
  .fb-sub { font-size: 11px !important; }
  .fb-countdown {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 4px !important;
  }
  .fb-unit {
    font-size: clamp(16px, 5vw, 22px) !important;
    padding: 5px 10px !important;
    min-width: 36px !important;
  }
  .fb-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 10px !important;
  }

  /* Quick links: 4 cột — 7 items = 4+3 */
  .quick-links-grid,
  div.quick-links-grid,
  .quick-links .quick-links-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  /* Filter tabs: scroll ngang thay vì wrap xuống dòng */
  .cat-filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .cat-filter-bar::-webkit-scrollbar { display: none !important; }
  .cat-ftab { flex-shrink: 0 !important; }
}

/* Filter tabs scroll ngang trên mobile */
@media (max-width: 560px) {
  .cat-filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .cat-filter-bar::-webkit-scrollbar { display: none !important; }
  .cat-ftab { flex-shrink: 0 !important; }
}

/* ══════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
══════════════════════════════════════ */
.archive-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.archive-card:hover {
  box-shadow: 0 4px 16px rgba(238,77,45,0.1);
  transform: translateY(-2px);
  border-color: #ffd8cc;
}

.archive-thumb {
  width: 140px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  min-height: 110px;
}
.archive-thumb-placeholder {
  background: #fff1ed;
}

.archive-info {
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.archive-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
  margin-top: auto;
}

.archive-read {
  color: #EE4D2D;
  font-weight: 600;
}

@media (max-width: 560px) {
  .archive-thumb { width: 100px; min-height: 90px; }
  .archive-title { font-size: 13px; }
  .archive-excerpt { display: none; }
}

/* ══════════════════════════════════════
   ARCHIVE GRID — 4 cột giống related
══════════════════════════════════════ */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
@media(max-width:900px){ .arc-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .arc-grid { grid-template-columns: repeat(2,1fr); gap:10px; } }

.arc-card {
  text-decoration: none; color: inherit;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #ffd8cc; background: #fff;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.arc-card:hover {
  box-shadow: 0 6px 18px rgba(238,77,45,0.12);
  transform: translateY(-3px);
  border-color: #EE4D2D;
}

.arc-img {
  width: 100%; height: 130px;
  background-size: cover; background-position: center;
  background-color: #fff1ed;
}

.arc-info { padding: 10px 12px 12px; }

.arc-cat {
  font-size: 10px; font-weight: 700;
  color: #EE4D2D; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 5px;
}

.arc-title {
  font-size: 13px; font-weight: 700;
  color: #1a1a2e; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 7px;
}

.arc-date { font-size: 11px; color: #bbb; }

/* Phân trang */
.arc-pagination {
  margin-top: 28px;
  display: flex; justify-content: center;
}
.arc-pagination .page-numbers {
  display: inline-flex; gap: 6px; list-style: none;
  padding: 0; margin: 0; flex-wrap: wrap; justify-content: center;
}
.arc-pagination .page-numbers a,
.arc-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1.5px solid #eee; color: #555;
  transition: all .18s;
}
.arc-pagination .page-numbers .current {
  background: #EE4D2D; color: #fff; border-color: #EE4D2D;
}
.arc-pagination .page-numbers a:hover {
  border-color: #EE4D2D; color: #EE4D2D;
}
.arc-pagination .prev, .arc-pagination .next {
  width: auto !important; padding: 0 14px;
}

/* Fix blur code wrap trên mobile */
@media (max-width: 560px) {
  .blur-code-text {
    font-size: 13px !important;
    letter-spacing: 2px !important;
    padding: 8px 10px !important;
  }
  .blur-copy-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
    margin-right: 6px !important;
  }
  .blur-reveal-btn {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
  .blur-code-wrap {
    min-height: 40px !important;
  }
}
