/* ============================================================
   QUOC AN FOOD - Storefront
   Mau chu dao: Xanh navy dam (#16305e) + Xanh la (#7cb342)
   ============================================================ */
:root {
    --qa-navy: #16305e;
    --qa-navy-2: #0e2242;
    --qa-green: #7cb342;
    --qa-green-dark: #5e9230;
    --qa-sky: #2e9bd6;
    --qa-bg: #f4f7f2;
    --qa-text: #22304a;
}

* { font-family: 'Be Vietnam Pro', system-ui, sans-serif; }
body { background: var(--qa-bg); color: var(--qa-text); }

/* ---------- Topbar ---------- */
.qa-topbar {
    background: var(--qa-navy-2);
    color: #cdd8ea;
    font-size: .78rem;
    padding: .4rem 0;
}
.qa-topbar a { color: #cdd8ea; text-decoration: none; }
.qa-topbar a:hover { color: #fff; }
.qa-topbar i { color: var(--qa-green); }
.qa-topbar-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
}
.qa-topbar-items span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

/* ---------- Navbar ---------- */
.qa-navbar {
    background: linear-gradient(90deg, var(--qa-navy), var(--qa-navy-2));
    box-shadow: 0 3px 12px rgba(14,34,66,.35);
}
.qa-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}
.qa-brand-logo {
    width: 44px; height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.qa-brand-name { color: #fff; font-weight: 700; line-height: 1.1; font-size: 1.05rem; }
.qa-brand-name span { color: var(--qa-green); }
.qa-brand-sub { color: #9fb4d4; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }

.qa-search input {
    border-radius: 50rem 0 0 50rem;
    border: none;
    padding: .55rem 1rem;
    font-size: .88rem;
    width: 100%;
    min-width: 0;
}
.qa-search {
    flex: 1 1 0% !important;
    min-width: 150px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}
.qa-nav-right {
    flex-shrink: 0;
}
.qa-search button {
    border-radius: 0 50rem 50rem 0;
    background: var(--qa-green);
    border: none;
    color: #fff;
    padding: .55rem 1rem;
}
.qa-search button:hover { background: var(--qa-green-dark); color: #fff; }

/* Search dropdown */
.qa-search { position: relative; }
.qa-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: .3rem;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 30px rgba(22,48,94,.18);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}
.qa-search-dropdown.show { display: block; }
.qa-search-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .85rem;
    text-decoration: none;
    color: var(--qa-text);
    border-bottom: 1px solid #f0f3ee;
    transition: background .12s;
}
.qa-search-item:hover { background: #eef5e4; }
.qa-search-item img {
    width: 42px; height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.qa-search-item-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow: hidden;
}
.qa-search-item-name {
    font-size: .84rem;
    font-weight: 500;
    color: var(--qa-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qa-search-item-name strong { color: var(--qa-green); }
.qa-search-item-price {
    font-size: .78rem;
    color: var(--qa-green);
    font-weight: 600;
}
.qa-search-empty {
    padding: 1.2rem;
    text-align: center;
    color: #999;
    font-size: .85rem;
}
.qa-search-loading {
    padding: 1rem;
    text-align: center;
    color: var(--qa-navy);
    font-size: .85rem;
}
.qa-search-loading i {
    animation: qa-spin 0.8s linear infinite;
    color: var(--qa-green);
}
@keyframes qa-spin { to { transform: rotate(360deg); } }
.qa-search-more {
    display: block;
    padding: .65rem .85rem;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--qa-green);
    text-decoration: none;
    background: #f8faf8;
    border-radius: 0 0 14px 14px;
}
.qa-search-more:hover { background: #eef5e4; }

.qa-cart-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 50rem;
    font-weight: 500;
    white-space: nowrap;
}
.qa-cart-btn:hover { background: var(--qa-green); border-color: var(--qa-green); color: #fff; }

.qa-hotline {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: #fff;
}
.qa-hotline > i {
    font-size: 1.5rem;
    color: var(--qa-green);
    animation: qa-cta-pulse 2s ease-in-out infinite;
}
.qa-hotline span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.qa-hotline small {
    font-size: .68rem;
    color: #9fb4d4;
}
.qa-hotline strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

/* ---------- Subnav (menu phụ) ---------- */
.qa-subnav {
    background: #fff;
    border-bottom: 2px solid #e8eee8;
    box-shadow: 0 2px 6px rgba(22,48,94,.06);
}
.qa-subnav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.qa-subnav-list li a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .7rem 1.1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--qa-navy);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
}
.qa-subnav-list li a:hover {
    color: var(--qa-green);
    border-bottom-color: var(--qa-green);
}
.qa-subnav-list li a.active {
    color: var(--qa-green);
    border-bottom-color: var(--qa-green);
}
.qa-subnav-list li a i {
    font-size: 1rem;
}
.qa-subnav-caret {
    font-size: .7rem !important;
    margin-left: .15rem;
}

/* Dropdown danh mục con */
.qa-subnav-dropdown {
    position: relative;
}
.qa-subnav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(22,48,94,.15);
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1000;
}
.qa-subnav-dropdown:hover .qa-subnav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.qa-subnav-sub li a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.25rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--qa-navy);
    text-decoration: none;
    border-bottom: none;
    transition: background .15s, color .15s;
}
.qa-subnav-cat-img {
    width: 22px; height: 22px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}
.qa-subnav-sub li a i {
    color: var(--qa-green);
    font-size: .9rem;
    flex-shrink: 0;
}
.qa-subnav-sub li a:hover {
    background: #eef5e4;
    color: var(--qa-green);
    border-bottom-color: transparent;
}

/* ---------- SS1: Hero ---------- */
.qa-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(124,179,66,.35), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(46,155,214,.25), transparent 40%),
        linear-gradient(120deg, var(--qa-navy), var(--qa-navy-2));
    color: #fff;
    border-radius: 22px;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
    position: relative;
}
.qa-hero-badge {
    display: inline-block;
    background: rgba(124,179,66,.2);
    border: 1px solid var(--qa-green);
    color: #b9dc85;
    border-radius: 50rem;
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 500;
}
.qa-hero h1 { font-weight: 800; }
.qa-hero h1 span { color: var(--qa-green); }
.qa-hero .lead { color: #b9c9e2; }
.qa-hero-stats { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.qa-hero-stat b { display: block; font-size: 1.4rem; color: var(--qa-green); }
.qa-hero-stat small { color: #9fb4d4; }
.qa-hero-snow {
    position: absolute;
    right: 2rem; top: 1.5rem;
    font-size: 8rem;
    color: rgba(255,255,255,.06);
    pointer-events: none;
}

.btn-qa-green {
    background: linear-gradient(90deg, var(--qa-green), var(--qa-green-dark));
    border: none; color: #fff;
    border-radius: 50rem;
    font-weight: 600;
    padding: .7rem 1.6rem;
}
.btn-qa-green:hover { color: #fff; filter: brightness(1.08); }
.btn-qa-outline {
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 50rem;
    font-weight: 500;
    padding: .7rem 1.6rem;
}
.btn-qa-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Section title ---------- */
.qa-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.qa-section-title h4 { margin: 0; font-weight: 700; color: var(--qa-navy); }
.qa-dot {
    width: 12px; height: 12px; border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--qa-green), var(--qa-sky));
}
.qa-section-title small { color: #7a8aa3; }

/* ---------- SS2: Categories ---------- */
.qa-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1.5px solid #dfe8d5;
    color: var(--qa-navy);
    border-radius: 50rem;
    padding: .5rem 1.1rem;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: all .15s ease;
}
.qa-cat-pill i { color: var(--qa-green); }
.qa-cat-pill:hover, .qa-cat-pill.active {
    background: linear-gradient(90deg, var(--qa-navy), var(--qa-navy-2));
    border-color: var(--qa-navy);
    color: #fff;
}
.qa-cat-pill:hover i, .qa-cat-pill.active i { color: var(--qa-green); }

/* ---------- Product card ---------- */

/* Shop sidebar */
.qa-shop-sidebar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(22,48,94,.07);
    border: 1px solid rgba(22,48,94,.05);
    position: sticky;
    top: 80px;
}
.qa-shop-sidebar-head {
    background: linear-gradient(120deg, var(--qa-navy), var(--qa-navy-2));
    color: #fff;
    font-weight: 700;
    padding: .85rem 1.1rem;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.qa-shop-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.qa-shop-cat-list li {
    border-bottom: 1px solid #f0f4f8;
}
.qa-shop-cat-list li:last-child { border-bottom: none; }
.qa-shop-cat-list a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.1rem;
    color: #4a5a72;
    text-decoration: none;
    font-size: .88rem;
    transition: all .15s ease;
}
.qa-shop-cat-list a:hover {
    background: #f4f8fc;
    color: var(--qa-navy);
}
.qa-shop-cat-list a.active {
    background: linear-gradient(90deg, rgba(30,136,229,.08), transparent);
    color: var(--qa-navy);
    font-weight: 600;
    border-left: 3px solid var(--qa-green);
    padding-left: calc(1.1rem - 3px);
}
.qa-shop-cat-list a i { color: var(--qa-green); font-size: 1rem; flex-shrink: 0; }
.qa-shop-cat-list a img {
    width: 24px; height: 24px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.qa-shop-cat-count {
    margin-left: auto;
    background: #eef3fa;
    color: var(--qa-navy);
    font-size: .72rem;
    font-weight: 600;
    padding: .1rem .5rem;
    border-radius: 20px;
    flex-shrink: 0;
}
.qa-shop-cat-list a.active .qa-shop-cat-count {
    background: var(--qa-green);
    color: #fff;
}

/* Combo item in sidebar */
.qa-shop-combo-box {
    border-top: 1px solid #f0f4f8;
}
.qa-shop-combo-box a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.1rem;
    font-size: .88rem;
    text-decoration: none;
    color: #c62828;
    font-weight: 600;
    transition: all .15s ease;
}
.qa-shop-combo-box a:hover {
    background: #fff5f5;
    color: #c62828;
}
.qa-shop-combo-box a.active {
    background: linear-gradient(90deg, rgba(229,57,53,.08), transparent);
    border-left: 3px solid #e53935;
    padding-left: calc(1.1rem - 3px);
}
.qa-shop-combo-box a i { color: #e53935; font-size: 1rem; flex-shrink: 0; }
.qa-shop-combo-box a img {
    width: 24px; height: 24px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Combo pill mobile */
.qa-cat-pill-combo {
    background: linear-gradient(135deg, #e53935, #ff6f00) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.qa-cat-pill-combo.active {
    box-shadow: 0 4px 12px rgba(229,57,53,.4);
}

/* Combo in subnav dropdown */
.qa-subnav-divider {
    border-top: 1px solid #e8eee8;
    margin: .25rem 0;
}
.qa-subnav-combo {
    color: #c62828 !important;
}
.qa-subnav-combo:hover {
    background: #fff5f5 !important;
    color: #b71c1c !important;
}
.qa-subnav-combo i {
    color: #e53935;
    margin-right: .35rem;
}

.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22,48,94,.07);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(22,48,94,.14);
}
.product-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef3ea;
}
.product-card .card-title a:hover { color: var(--qa-green-dark) !important; }
.badge-qa-code {
    background: #eef3fa;
    color: var(--qa-navy);
    font-weight: 600;
    font-size: .7rem;
}
.price { color: #d33; font-weight: 700; }
.price-old { text-decoration: line-through; color: #999; font-size: .85rem; }

.btn-qa-add {
    background: linear-gradient(90deg, var(--qa-green), var(--qa-green-dark));
    border: none; color: #fff;
    border-radius: 10px;
}
.btn-qa-add:hover { color: #fff; filter: brightness(1.08); }

/* ---------- SS4: Why us ---------- */

/* Trust / About section */
.qa-trust {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(22,48,94,.12);
}
.qa-trust-left {
    flex: 0 0 38%;
    background: linear-gradient(155deg, var(--qa-navy), var(--qa-navy-2));
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.qa-trust-left::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(124,179,66,.08);
}
.qa-trust-badge-top {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(124,179,66,.15);
    color: var(--qa-green);
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 50rem;
    margin-bottom: 1rem;
    width: fit-content;
}
.qa-trust-heading {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: .75rem;
    line-height: 1.3;
}
.qa-trust-slogan {
    color: #a8bcd8;
    font-size: .9rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}
.qa-trust-right {
    flex: 1;
    background: #fff;
    padding: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-content: center;
}
.qa-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #f4f8ef;
    border: 1px solid #e0ead4;
    border-radius: 50rem;
    padding: .45rem .9rem;
    font-size: .82rem;
    font-weight: 500;
    color: #3d5a1e;
    transition: all .2s ease;
}
.qa-trust-chip i {
    color: var(--qa-green);
    font-size: .95rem;
}
.qa-trust-chip:hover {
    background: var(--qa-green);
    border-color: var(--qa-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124,179,66,.3);
}
.qa-trust-chip:hover i { color: #fff; }
@media (max-width: 767px) {
    .qa-trust { flex-direction: column; border-radius: 14px; }
    .qa-trust-left { flex: none; padding: 1rem .9rem; }
    .qa-trust-right { padding: .8rem; }
    .qa-trust-badge-top { font-size: .68rem; padding: .25rem .6rem; margin-bottom: .6rem; }
    .qa-trust-heading { font-size: 1.05rem; margin-bottom: .5rem; }
    .qa-trust-slogan { font-size: .76rem; line-height: 1.5; }
    .qa-trust-chip { font-size: .72rem; padding: .35rem .6rem; gap: .35rem; }
    .qa-trust-chip i { font-size: .8rem; }
}

/* ---------- SS4: Why us ---------- */
.qa-feature {
    background: linear-gradient(160deg, #fff, #f8fafc);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    height: 100%;
    box-shadow: 0 3px 12px rgba(22,48,94,.07);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(22,48,94,.05);
    position: relative;
    overflow: hidden;
}
.qa-feature::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(30,136,229,.06);
}
.qa-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(22,48,94,.14);
}
.qa-feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--qa-navy), var(--qa-sky));
    box-shadow: 0 6px 16px rgba(22,48,94,.2);
    position: relative;
    z-index: 1;
}
.qa-feature:nth-child(even) .qa-feature-icon {
    background: linear-gradient(135deg, var(--qa-green), var(--qa-green-dark));
    box-shadow: 0 6px 16px rgba(67,160,71,.25);
}
.qa-feature h6 { font-weight: 700; color: var(--qa-navy); margin-bottom: .35rem; }
.qa-feature small { line-height: 1.5; }

/* ---------- SS5: CTA ---------- */
.qa-cta {
    background: linear-gradient(135deg, var(--qa-navy), var(--qa-navy-2));
    border-radius: 24px;
    color: #fff;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(22,48,94,.18);
}
.qa-cta-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.qa-cta-img {
    position: absolute;
    left: 0; top: 0;
    width: 45%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.qa-cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: .25;
    mask-image: linear-gradient(to left, transparent 0%, #000 40%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 40%);
}
.qa-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(124,179,66,.18);
    border: 1px solid rgba(124,179,66,.35);
    color: var(--qa-green);
    border-radius: 50rem;
    padding: .35rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.qa-cta-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: .5rem;
    line-height: 1.3;
}
.qa-cta-desc {
    font-size: .95rem;
    opacity: .92;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.qa-cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.qa-cta-points span {
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.qa-cta-points i { font-size: 1rem; }
.qa-cta-phone-wrap {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}
.qa-cta-phone-wrap small { opacity: .8; font-size: .78rem; }
.qa-cta-phone-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--qa-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: .25rem;
    animation: qa-cta-pulse 2s ease-in-out infinite;
}
@keyframes qa-cta-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124,179,66,.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(124,179,66,0); }
}
.qa-cta-phone {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: .02em;
}
.qa-cta-phone:hover { color: #fff; opacity: .9; }

/* ---------- CTA 50% (bên phải bài viết) ---------- */
.qa-cta-50 {
    background: linear-gradient(135deg, var(--qa-navy), var(--qa-navy-2));
    border-radius: 20px;
    color: #fff;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(22,48,94,.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.qa-cta-50-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.qa-cta-50-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: .18;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.qa-cta-50-glow {
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    z-index: 0;
}
.qa-cta-50-body {
    position: relative;
    z-index: 1;
    text-align: center;
}
.qa-cta-50-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: .5rem;
    line-height: 1.35;
}
.qa-cta-50-body .qa-cta-badge {
    margin-left: auto;
    margin-right: auto;
}
.qa-cta-50-body .qa-cta-points {
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-top: .5rem;
}
.qa-cta-50-desc {
    font-size: .88rem;
    opacity: .9;
    line-height: 1.55;
    margin-bottom: 1rem;
    text-align: left;
}
.qa-cta-50-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: .75rem 1rem;
    margin-top: 1.25rem;
}
.qa-cta-50-phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}
.qa-cta-50-phone-info small {
    opacity: .75;
    font-size: .72rem;
    margin-bottom: .1rem;
}
.qa-cta-50-phone .qa-cta-phone {
    font-size: 1.15rem;
}
.qa-cta-50-phone .qa-cta-phone-icon {
    width: 42px; height: 42px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- SS1: Banner slider ---------- */
.qa-slider { border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(22,48,94,.12); }
.qa-slide-img { height: 340px; object-fit: cover; }
.qa-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }
@media (max-width: 767px) {
    .qa-slide-img { height: auto; object-fit: contain; }
    .qa-banner-mid, .qa-banner-combo { object-fit: contain !important; height: auto !important; }
    .qa-featured-item { flex: 0 0 140px; }
    .qa-combo-item { flex: 0 0 140px; }
    .qa-cat-scroll-item { flex: 0 0 140px; }
    .qa-featured-track, .qa-combo-track, .qa-cat-scroll { gap: .5rem; }
    .product-card .card-img-top { aspect-ratio: 1 / 1; }
    .product-card .card-body { padding: .4rem .4rem .5rem; }
    .product-card .card-title { font-size: .72rem; line-height: 1.2; }
    .product-card .card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-card .price { font-size: .76rem; }
    .product-card .badge-qa-code { font-size: .58rem; }
    .product-card .btn-qa-add { padding: .15rem .35rem; font-size: .7rem; }
    .product-card small { font-size: .65rem; }
    .qa-sold-bar-text { font-size: .62rem; }
    .qa-sold-bar-pct { font-size: .62rem; }
    .qa-featured-head h4 { font-size: 1rem; }
    .qa-featured-head { padding: .6rem .8rem; margin-bottom: .6rem; }
    .qa-countdown small { font-size: .65rem; }
    .qa-countdown span { font-size: .75rem; min-width: 20px; height: 20px; }
    .qa-combo-head h5 { font-size: .9rem; }
    .qa-combo-head { padding: .6rem .8rem; }
    .qa-cat-head h5 { font-size: .9rem; }
    .qa-cat-head { padding: .6rem .8rem; }
    .qa-cat-more { font-size: .72rem; padding: .2rem .6rem; }
    .qa-combo-body, .qa-cat-body { padding: .6rem .6rem .8rem; }
}

/* Category scroll on mobile */
.qa-cat-scroll {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.qa-cat-scroll::-webkit-scrollbar { height: 4px; }
.qa-cat-scroll::-webkit-scrollbar-track { background: #eef3ea; border-radius: 50rem; }
.qa-cat-scroll::-webkit-scrollbar-thumb { background: var(--qa-green); border-radius: 50rem; }
.qa-cat-scroll-item { flex: 0 0 160px; }

.qa-side-banner {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(22,48,94,.12);
    transition: transform .18s ease, filter .18s ease;
    min-height: 140px;
}
.qa-side-banner:hover { transform: translateY(-3px); filter: brightness(1.06); }
.qa-side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- SS2: Danh muc card vuong ---------- */
.qa-cat-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .5rem .25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--qa-green) #e2e8e0;
    -webkit-overflow-scrolling: touch;
}
.qa-cat-cards::-webkit-scrollbar { height: 6px; }
.qa-cat-cards::-webkit-scrollbar-track { background: #e2e8e0; border-radius: 50rem; }
.qa-cat-cards::-webkit-scrollbar-thumb { background: var(--qa-green); border-radius: 50rem; }
.qa-cat-card {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: 150px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid #e2e8e0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22,48,94,.06);
    padding: 1.25rem 1rem;
    transition: box-shadow .2s, transform .2s;
}
.qa-cat-card:hover {
    box-shadow: 0 8px 24px rgba(22,48,94,.14);
    transform: translateY(-4px);
}
.qa-cat-card-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(22,48,94,.15);
    margin-bottom: .75rem;
}
.qa-cat-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qa-cat-card-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--qa-navy);
    line-height: 1.3;
    margin-bottom: .75rem;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qa-cat-card-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 50rem;
    padding: .35rem .9rem;
    transition: filter .15s;
}
.qa-cat-card:hover .qa-cat-card-btn { filter: brightness(1.1); }
.qa-cat-btn-1 { background: #e3f2fd; color: #1565c0; }
.qa-cat-btn-2 { background: #e8f5e9; color: #2e7d32; }
.qa-cat-btn-3 { background: #fff3e0; color: #e65100; }
.qa-cat-btn-4 { background: #f3e5f5; color: #7b1fa2; }
.qa-cat-btn-5 { background: #fce4ec; color: #c62828; }
.qa-cc-1 { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.qa-cc-2 { background: linear-gradient(135deg, #43a047, #1b5e20); }
.qa-cc-3 { background: linear-gradient(135deg, #fb8c00, #e65100); }
.qa-cc-4 { background: linear-gradient(135deg, #8e24aa, #4a148c); }
.qa-cc-5 { background: linear-gradient(135deg, #00897b, #004d40); }
.qa-cc-6 { background: linear-gradient(135deg, #e53935, #b71c1c); }

@media (max-width: 991px) {
    .qa-cat-card { flex: 0 0 calc((100% - 3rem) / 4); }
}
@media (max-width: 575px) {
    .qa-cat-card { flex: 0 0 calc((100% - 2rem) / 2.5); }
}
.qa-featured {
    background: linear-gradient(135deg, #d32f2f, #f4511e);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 8px 22px rgba(211,47,47,.28);
}
.qa-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
    color: #fff;
}
.qa-featured-head h4 { margin: 0; font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.qa-featured-head h4 i { color: #ffe082; }
.qa-countdown { display: flex; align-items: center; gap: .35rem; }
.qa-countdown small { opacity: .9; margin-right: .25rem; }
.qa-countdown span {
    background: #fff;
    color: #d32f2f;
    font-weight: 800;
    border-radius: 8px;
    padding: .15rem .5rem;
    min-width: 40px;
    text-align: center;
}
.qa-countdown i { font-style: normal; font-weight: 800; }
.qa-featured-track {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}
.qa-featured-item { flex: 0 0 218px; }

.disc-badge, .tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all .15s;
}
.disc-badge.is-active, .tier-badge.is-active {
    background: #d4edda;
    border-color: #28a745;
    font-weight: 600;
}

.badge-featured {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    color: #fff;
    font-weight: 700;
    font-size: .72rem;
    border-radius: 50rem;
    padding: .25rem .6rem;
    box-shadow: 0 3px 8px rgba(255,143,0,.45);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.badge-featured i { font-size: .7rem; }

/* ---------- Sold progress bar (featured cards) ---------- */
.qa-sold-bar {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px dashed #eee;
}
.qa-sold-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    margin-bottom: .25rem;
}
.qa-sold-bar-text { color: #e53935; font-weight: 600; }
.qa-sold-bar-pct { color: #999; }
.qa-sold-bar-track {
    height: 8px;
    background: #f0f0f0;
    border-radius: 50rem;
    overflow: hidden;
}
.qa-sold-bar-fill {
    height: 100%;
    border-radius: 50rem;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    transition: width .6s ease;
}

/* ---------- SS4+: Section theo danh muc (nhieu mau) ---------- */

/* ---------- SECTION COMBO ---------- */
.qa-combo-section {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(123,31,162,.15);
    background: #fff;
    border: 2px solid #e1bee7;
}
.qa-combo-head {
    background: linear-gradient(90deg, #7b1fa2, #c2185b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.25rem;
}
.qa-combo-head h5 {
    margin: 0;
    font-weight: 800;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.qa-combo-head .qa-cat-more {
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,.2);
    border-radius: 50rem;
    padding: .3rem .9rem;
    white-space: nowrap;
}
.qa-combo-head .qa-cat-more:hover { background: rgba(255,255,255,.35); color: #fff; }
.qa-combo-body { background: linear-gradient(180deg, #faf5fc, #fce4ec); padding: 1rem 1.25rem 1.25rem; }
.qa-combo-track {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
    scrollbar-color: #7b1fa2 #f3e5f5;
    -webkit-overflow-scrolling: touch;
}
.qa-combo-track::-webkit-scrollbar { height: 6px; }
.qa-combo-track::-webkit-scrollbar-track { background: #f3e5f5; border-radius: 50rem; }
.qa-combo-track::-webkit-scrollbar-thumb { background: #7b1fa2; border-radius: 50rem; }
.qa-combo-item { flex: 0 0 218px; }

.qa-cat-section {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(22,48,94,.1);
    background: #fff;
}
.qa-cat-head {
    background: var(--cat);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1.25rem;
}
.qa-cat-head h5 { margin: 0; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: .6rem; }
.qa-cat-head h5 .qa-dot { display: inline-block; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(0,0,0,.25); }
.qa-cat-more {
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,.18);
    border-radius: 50rem;
    padding: .3rem .9rem;
    white-space: nowrap;
}
.qa-cat-more:hover { background: rgba(255,255,255,.32); color: #fff; }
.qa-cat-body { background: var(--cat-soft); padding: 1rem 1.25rem 1.25rem; }
.qa-cat-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 100%;
    min-height: 240px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--cat), var(--cat-dark, var(--cat)));
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 1.5rem .75rem;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.qa-cat-side::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.qa-cat-side::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.qa-cat-side:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: #fff; }
.qa-cat-side i { font-size: 2.8rem; opacity: .9; position: relative; z-index: 1; }
.qa-cat-side img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    position: relative;
    z-index: 1;
}
.qa-cat-side b { font-size: 1rem; line-height: 1.3; position: relative; z-index: 1; }
.qa-cat-side small { opacity: .85; font-size: .8rem; position: relative; z-index: 1; }
.qa-cat-side .qa-cat-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border-radius: 20px;
    padding: .25rem .75rem;
    font-size: .75rem;
    margin-top: .25rem;
    position: relative;
    z-index: 1;
}

.qa-theme-1 { --cat: #7cb342; --cat-dark: #5e9230; --cat-soft: #f4f8ef; }
.qa-theme-2 { --cat: #16305e; --cat-dark: #0e2242; --cat-soft: #eef2f8; }

/* ---------- Nha cung cap (marquee logo) ---------- */
.qa-marquee {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(160deg, #fff, #f8fafc);
    border: 1px solid rgba(22,48,94,.06);
    box-shadow: 0 3px 12px rgba(22,48,94,.07);
    padding: 1.5rem 0;
    position: relative;
}
.qa-marquee::before,
.qa-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.qa-marquee::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}
.qa-marquee::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}
.qa-marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: qa-marquee-scroll 30s linear infinite;
}
.qa-marquee:hover .qa-marquee-track {
    animation-play-state: paused;
}
.qa-marquee-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: .5rem 1rem;
    box-shadow: 0 2px 8px rgba(22,48,94,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.qa-marquee-item:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(22,48,94,.14);
}
.qa-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@keyframes qa-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Goc kinh nghiem / meo hay ---------- */
.qa-tip-tag {
    display: inline-block;
    background: rgba(30,136,229,.1);
    color: var(--qa-navy);
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .7rem;
    border-radius: 20px;
    margin-bottom: .5rem;
}

/* Feature card (large) */
.qa-tip-feature {
    background: linear-gradient(160deg, #fff, #f4f8fc);
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(22,48,94,.08);
    border: 1px solid rgba(22,48,94,.05);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.qa-tip-feature:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(22,48,94,.14); }
.qa-tip-feature-num {
    position: absolute;
    top: -.3rem; right: .5rem;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(30,136,229,.07);
    line-height: 1;
    z-index: 0;
}
.qa-tip-feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #29b6f6, #1565c0);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(21,101,192,.3);
    position: relative; z-index: 1;
}
.qa-tip-feature-body { position: relative; z-index: 1; }
.qa-tip-feature-body h5 { font-weight: 800; color: var(--qa-navy); margin-bottom: .5rem; }
.qa-tip-feature-body p { color: #5a6a82; font-size: .9rem; line-height: 1.6; margin-bottom: .75rem; }
.qa-tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.qa-tip-list li { font-size: .85rem; color: #4a5a72; display: flex; align-items: center; gap: .5rem; }
.qa-tip-list li i { color: var(--qa-green); font-size: .9rem; }

/* Mini cards */
.qa-tip-mini {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 3px 12px rgba(22,48,94,.07);
    border: 1px solid rgba(22,48,94,.04);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.qa-tip-mini:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(22,48,94,.13); }
.qa-tip-mini-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    margin-bottom: .75rem;
}
.qa-tip-mini-2 { background: linear-gradient(135deg, #26a69a, #00695c); box-shadow: 0 4px 12px rgba(0,105,92,.25); }
.qa-tip-mini-3 { background: linear-gradient(135deg, #ffa726, #ef6c00); box-shadow: 0 4px 12px rgba(239,108,0,.25); }
.qa-tip-mini-4 { background: linear-gradient(135deg, #ab47bc, #7b1fa2); box-shadow: 0 4px 12px rgba(123,31,162,.25); }
.qa-tip-mini-5 { background: linear-gradient(135deg, #ff7043, #d84315); box-shadow: 0 4px 12px rgba(216,67,21,.25); }
.qa-tip-mini h6 { font-weight: 700; color: var(--qa-navy); margin-bottom: .35rem; font-size: .95rem; }
.qa-tip-mini p { color: #6a7a92; font-size: .82rem; line-height: 1.5; margin: 0; }

/* CTA card */
.qa-tip-cta {
    background: linear-gradient(135deg, var(--qa-navy), var(--qa-sky));
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(22,48,94,.18);
}
.qa-tip-cta-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
}
.qa-tip-cta h6 { font-weight: 700; margin-bottom: .25rem; }
.qa-tip-cta p { font-size: .85rem; opacity: .88; margin-bottom: .6rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.qa-footer {
    background: linear-gradient(180deg, var(--qa-navy), var(--qa-navy-2));
    color: #b9c9e2;
    margin-top: 4rem;
    position: relative;
}
.qa-footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--qa-green), var(--qa-sky), var(--qa-green));
    background-size: 200% 100%;
    animation: qa-footer-accent 4s ease infinite;
}
@keyframes qa-footer-accent {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.qa-footer a { color: #b9c9e2; text-decoration: none; transition: color .15s ease, padding-left .15s ease; }
.qa-footer a:hover { color: var(--qa-green); }
.qa-footer-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.qa-footer-logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.qa-footer-brand-name { color: #fff; font-weight: 700; line-height: 1.1; font-size: 1.1rem; }
.qa-footer-brand-name span { color: var(--qa-green); }
.qa-footer-brand-sub { color: #9fb4d4; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.qa-footer-desc { font-size: .85rem; line-height: 1.6; color: #9fb4d4; margin-bottom: 1rem; }
.qa-footer-trust { display: flex; flex-wrap: wrap; gap: .5rem; }
.qa-footer-trust span {
    font-size: .72rem;
    color: #cdd8ea;
    background: rgba(124,179,66,.12);
    border: 1px solid rgba(124,179,66,.25);
    border-radius: 50rem;
    padding: .25rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.qa-footer-trust i { color: var(--qa-green); font-size: .85rem; }

.qa-footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid rgba(124,179,66,.3);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.qa-footer-heading i { color: var(--qa-green); font-size: .9rem; }

.qa-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.qa-footer-links a { font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }
.qa-footer-links a:hover { padding-left: .25rem; }
.qa-footer-links i { font-size: .65rem; color: var(--qa-green); }

.qa-footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.qa-footer-contact li { font-size: .85rem; display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5; }
.qa-footer-contact i { color: var(--qa-green); font-size: .9rem; margin-top: .15rem; flex-shrink: 0; }

.qa-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8rem;
    color: #8ba4c4;
}
.qa-footer-pay { font-size: .78rem; }
.qa-footer-pay i { color: var(--qa-green); }

/* ---------- Footer social links ---------- */
.qa-social-links { display: flex; gap: .5rem; }
.qa-social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 1rem;
    transition: all .15s ease;
}
.qa-social-links a:hover { background: var(--qa-green); color: #fff; transform: translateY(-2px); }

/* ---------- Floating contact widget ---------- */
.qa-float-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.qa-float-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
}
.qa-float-btn:hover { transform: translateY(-3px) scale(1.06); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.qa-float-phone { background: linear-gradient(135deg, #43a047, #1b5e20); }
.qa-float-fb { background: linear-gradient(135deg, #1877f2, #0d47a1); }
.qa-float-zalo { background: linear-gradient(135deg, #0068ff, #0043a8); }
.qa-float-mess { background: linear-gradient(135deg, #0084ff, #0061d6); }

@media (max-width: 767px) {
    .qa-float-contact { right: 12px; bottom: 12px; gap: .5rem; }
    .qa-float-btn { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ---------- Misc ---------- */
.table-img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
}
.breadcrumb-item a { color: var(--qa-navy); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--qa-green-dark); }

.btn-success {
    background: var(--qa-green);
    border-color: var(--qa-green);
}
.btn-success:hover, .btn-success:focus {
    background: var(--qa-green-dark);
    border-color: var(--qa-green-dark);
}
.btn-outline-success { color: var(--qa-green-dark); border-color: var(--qa-green); }
.btn-outline-success:hover { background: var(--qa-green); border-color: var(--qa-green); }
.text-success { color: var(--qa-green-dark) !important; }
.bg-success { background-color: var(--qa-green) !important; }

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------- Product Detail ---------- */
.qa-detail-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(22,48,94,.1);
}
.qa-detail-gallery {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf6;
    border-right: 1px solid #eef3ea;
}
.qa-detail-img-wrap {
    position: relative;
    width: 100%;
}
.qa-detail-img-wrap img {
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.qa-detail-info {
    padding: 1.75rem;
}
.qa-detail-title {
    font-weight: 800;
    color: var(--qa-navy);
    margin-bottom: .5rem;
}
.qa-detail-meta {
    margin-bottom: .75rem;
}
.qa-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f0f5ec;
    color: var(--qa-navy);
    border-radius: 50rem;
    padding: .3rem .8rem;
    font-size: .82rem;
    font-weight: 500;
}
.qa-meta-chip i { color: var(--qa-green); }

.qa-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}
.qa-price-main { font-size: 1.75rem; font-weight: 800; }
.qa-price-old { font-size: 1.1rem; }
.qa-price-badge { font-size: .8rem; padding: .3rem .6rem; }
.qa-price-unit { font-size: .9rem; }

.qa-stock-ok { color: var(--qa-green-dark); font-weight: 500; }
.qa-stock-out { color: #d33; font-weight: 500; }

.qa-detail-desc {
    font-size: .9rem;
    line-height: 1.6;
    padding: .75rem 1rem;
    background: #f8faf6;
    border-radius: 10px;
    border-left: 3px solid var(--qa-green);
}

.qa-si-table {
    border: 1px solid #e0e8d6;
    border-radius: 12px;
    overflow: hidden;
}
.qa-si-title {
    padding: .6rem .85rem;
    margin: 0;
    background: #f0f5ec;
    font-weight: 700;
    color: var(--qa-navy);
    font-size: .9rem;
}
.qa-si-table table { font-size: .85rem; }
.qa-si-table th { font-weight: 600; color: var(--qa-navy); }

.qa-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.qa-qty-selector .btn {
    border-radius: 0;
    border: none;
    padding: .3rem .6rem;
}
.qa-qty-selector input {
    border: none;
    text-align: center;
    width: 60px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.qa-qty-selector input:focus { box-shadow: none; }
.qa-qty-total small { font-size: .75rem; }

.qa-btn-row .btn { border-radius: 50rem; padding: .65rem 1.5rem; font-weight: 600; }

.qa-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #eef3ea;
}
.qa-trust-item {
    font-size: .8rem;
    color: #6a7a92;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.qa-trust-item i { color: var(--qa-green); font-size: 1rem; }

.qa-info-block {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(22,48,94,.07);
    height: 100%;
}
.qa-info-block-title {
    font-weight: 700;
    color: var(--qa-navy);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #eef3ea;
}
.qa-info-block-title i { color: var(--qa-green); }
.qa-info-block table th { color: #6a7a92; font-weight: 500; }
.qa-info-block table td { font-weight: 500; color: var(--qa-navy); }

.qa-si-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.qa-si-list li {
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--qa-navy);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.qa-si-list li i { font-size: 1rem; }

.qa-hotline-box {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: linear-gradient(120deg, var(--qa-green-dark), var(--qa-green));
    color: #fff;
    border-radius: 12px;
    padding: .75rem 1rem;
}
.qa-hotline-box i { font-size: 1.5rem; }
.qa-hotline-box small { display: block; opacity: .85; font-size: .75rem; }
.qa-hotline-box strong { font-size: 1.1rem; }

@media (max-width: 767px) {
    .qa-detail-info { padding: 1.25rem 1rem; }
    .qa-detail-gallery { border-right: none; border-bottom: 1px solid #eef3ea; }
    .qa-price-main { font-size: 1.4rem; }
}

/* ===== LAZY SECTION: skeleton loading ===== */
.qa-skeleton {
    height: var(--qa-h, 320px);
    border-radius: 20px;
    background: linear-gradient(100deg, #edf2ee 40%, #f8faf9 50%, #edf2ee 60%);
    background-size: 200% 100%;
    animation: qa-shimmer 1.4s ease infinite;
}
@keyframes qa-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
.qa-lazy-done {
    animation: qa-fadein .35s ease;
}
@keyframes qa-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Article Card (trang chủ) ---------- */
.qa-article-card {
    transition: box-shadow .2s, transform .2s;
    border: 1px solid #e8eee8;
    border-radius: .75rem;
    overflow: hidden;
}
.qa-article-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(22,48,94,.12);
    transform: translateY(-4px);
}
.qa-article-card .card-img-top {
    border-radius: 0;
}

/* ---------- Article Detail ---------- */
.qa-article-title {
    font-weight: 800;
    color: var(--qa-navy);
    line-height: 1.3;
}
.qa-article-meta {
    font-size: .85rem;
}
.qa-article-meta span {
    margin-right: 1rem;
}
.qa-article-meta i {
    color: var(--qa-green);
}
.qa-article-content h3 {
    color: var(--qa-navy);
    font-weight: 700;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e8eee8;
}
.qa-article-content h4 {
    color: var(--qa-navy);
    font-weight: 600;
}
.qa-article-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.qa-article-content ul,
.qa-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.qa-article-content li {
    line-height: 1.7;
    margin-bottom: .4rem;
}
.qa-article-cover {
    border-radius: .75rem;
}
