/* ============================================================
   VIETNAMSMART THEME - MAIN STYLESHEET
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --color-1: #024383;
    --color-2: #0056a9;
    --color-3: #33496d;
    --color-4: #71ae2c;
    --color-5: #3C3C3C;
    --color-6: #363636;
    --color-bg: #FFFFFF;
    --color-danger: #ed0b25;
    --color-soft-bg: #e0e9ff;
    --color-accent: #5C7AEA;
    --color-trust: #273896;
    --color-active: #5fb5ff;
    --font-main: 'Inter', sans-serif;
}

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-5);
    background-color: var(--color-bg);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* === CONTAINER === */
.container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */

/* --- 1. HEADER TOP --- */
.header-top {
    background-color: var(--color-1);
    color: #fff;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 35px;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top-left a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.header-top-left a:hover {
    color: var(--color-active);
}

.header-top-left .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.header-top .hotline {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.header-top-left i {
    margin-right: 3px;
    color: var(--color-active);
}

.header-top-right i {
    margin-right: 5px;
    color: var(--color-active);
}

/* --- 2. HEADER MAIN --- */
.header-main {
    background-color: var(--color-bg);
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 100;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Logo */
.header-logo img,
img.custom-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* --- Categories Button --- */
.btn-categories {
    background-color: var(--color-2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-categories:hover {
    background-color: var(--color-1);
}

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li,
.main-nav .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li::marker,
.main-nav .menu-item::marker {
    content: '';
}

.main-nav a {
    font-weight: 600;
    color: var(--color-5);
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item>a,
.main-nav .current_page_item>a {
    color: var(--color-2);
}

/* --- Search Form --- */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrapper .search-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-wrapper .search-form:focus-within {
    border-color: var(--color-active);
    box-shadow: 0 0 0 2px rgba(95, 181, 255, 0.2);
    background-color: var(--color-bg);
}

.search-form input[type="search"],
.search-form input[type="text"] {
    border: none;
    padding: 12px 16px;
    outline: none;
    width: 100%;
    font-family: var(--font-main);
    font-size: 13px;
    background: transparent;
    color: var(--color-5);
}

.search-form input::placeholder {
    color: #999;
}

.search-form button[type="submit"] {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--color-3);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.search-form button[type="submit"]:hover {
    color: var(--color-2);
}

/* --- Search Suggest Dropdown --- */
.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #eaeaea;
}

.search-suggest::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    z-index: 0;
}

.search-wrapper:focus-within .search-suggest {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.suggest-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-5);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.suggest-clear {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.suggest-clear:hover {
    color: var(--color-danger);
}

.suggest-history {
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.suggest-history a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.suggest-history a:hover {
    color: var(--color-2);
}

.suggest-trend-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-5);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.trend-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #eaeaea;
}

.trend-item:hover {
    color: var(--color-2);
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.action-icon:hover {
    background-color: var(--color-2);
    color: #fff;
}

.action-icon:focus-visible {
    outline: 2px solid var(--color-active);
    outline-offset: 2px;
}

.action-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-danger);
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--color-bg);
}

/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--color-2);
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.categories-wrapper {
    display: inline-block;
}

.menu-overlay {
    position: fixed;
    top: 114px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 114px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.categories-wrapper:not(.force-hide):hover .menu-overlay,
.categories-wrapper:not(.force-hide):focus-within .menu-overlay,
.categories-wrapper.active .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 30px);
    left: 15px;
    width: calc(100% - 30px);
    z-index: 101;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 450px;
    background: #fff;
    border: 1px solid #e7e9ee;
    overflow: hidden;
}

.categories-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    height: 35px;
    display: none;
}

.categories-wrapper:not(.force-hide):hover::after {
    display: block;
}

.categories-wrapper:not(.force-hide):hover .mega-menu,
.categories-wrapper:not(.force-hide):focus-within .mega-menu,
.categories-wrapper.active .mega-menu,
.categories-wrapper:not(.force-hide):hover .desktop-close-btn,
.categories-wrapper:not(.force-hide):focus-within .desktop-close-btn,
.categories-wrapper.active .desktop-close-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-close-btn {
    font-size: 18px;
    color: var(--color-5);
    background: #f1f1f1;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 110;
    transition: all 0.2s ease;
}

.mega-close-btn:hover {
    background: var(--color-danger);
    color: #fff;
    transform: rotate(90deg);
}

.desktop-close-btn {
    position: absolute;
    top: calc(100% + 30px);
    right: -25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mega-mobile-header {
    display: none;
}

/* Mega Sidebar */
.mega-sidebar {
    width: 260px;
    flex: 0 0 260px;
    background-color: #f4f6f8;
    border-right: 1px solid #e7e9ee;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
}

.mega-sidebar a {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 14px;
    gap: 14px;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.mega-sidebar .menu-item {
    position: static;
}

.mega-sidebar a i:first-child {
    color: var(--color-2);
    width: 20px;
    font-size: 14px;
    margin-right: 0;
    text-align: center;
    flex: 0 0 20px;
}

.mega-sidebar a i.mobile-caret {
    display: none;
}

.mega-sidebar a i.desktop-caret {
    margin-left: auto;
    color: #a7adb5;
    font-size: 12px;
}

.mega-sidebar a:hover,
.mega-sidebar .menu-item.is-active>a,
.mega-sidebar .menu-item.has-content:hover>a {
    background: #d9ecff;
    color: var(--color-2);
    font-weight: 600;
    box-shadow: none;
}

.mega-sidebar .menu-item.has-content:hover>a i,
.mega-sidebar .menu-item.is-active>a i,
.mega-sidebar .menu-item.is-active>a i:first-child,
.mega-sidebar .menu-item.is-active>a i.desktop-caret,
.mega-sidebar .menu-item.has-content:hover>a i:first-child,
.mega-sidebar .menu-item.has-content:hover>a i.desktop-caret {
    color: var(--color-2);
}

@media (min-width: 1025px) {

    .mega-sidebar .menu-item.is-active>a::after,
    .mega-sidebar .menu-item.has-content:hover>a::after {
        border: 16px solid transparent;
        border-left-color: #d9ecff;
        bottom: 0;
        content: "";
        display: block;
        height: 0;
        left: 100%;
        margin: auto;
        position: absolute;
        top: 0;
        z-index: 1001;
    }
}

/* Mega Content */
.mega-content {
    display: none;
    position: absolute;
    left: 260px;
    top: 0;
    width: calc(100% - 260px);
    height: 100%;
    padding: 24px;
    background-color: #fff;
    border-radius: 0 8px 8px 0;
    overflow-y: auto;
}

@media (min-width: 1025px) {
    .mega-sidebar .menu-item.has-content:first-child .mega-content {
        display: block;
    }

    .mega-sidebar .menu-item.has-content.is-active .mega-content {
        display: block;
        z-index: 106;
    }

    .mega-sidebar .menu-item.has-content:hover .mega-content {
        display: block;
        z-index: 105;
    }
}

.mega-col {
    min-width: 0;
    max-width: 100%;
}

.mega-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--vns-primary, #024383);
    letter-spacing: 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.brand-item {
    border: 1px solid #e7e9ee;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 72px;
    font-size: 15px;
    font-weight: 400;
    color: #2b2f33;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
    text-align: left;
    background-color: #fff;
    white-space: normal;
    line-height: 1.3;
}

.brand-item img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.brand-grid a {
    padding: 10px;
}

.brand-grid a:hover {
    color: var(--color-2);
    background: transparent !important;
}

.brand-item:hover {
    transform: translateY(-1px);
    border-color: #bedcff;
    color: var(--color-2);
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(31, 115, 190, .10);
}

.tag-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-item {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: var(--color-5);
    text-align: center;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    line-height: 1.3;
    transition: border-color 0.2s, color 0.2s;
}

.tag-item:hover {
    border-color: var(--color-active);
    color: var(--color-2);
}

.tag-item-relative {
    position: relative;
}

.hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-danger);
    color: white;
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 0 6px 0 6px;
    font-weight: 400;
    box-shadow: 0 2px 5px rgba(237, 11, 37, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */

/* --- 1. Footer Contact Top --- */
.footer-top {
    background-color: var(--color-1);
    color: #fff;
    padding: 16px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.footer-top-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.contact-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-top-item span {
    color: #e5e7eb;
}

.contact-top-item a,
.contact-top-item .phone-number {
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    transition: color 0.3s ease;
}

.contact-top-item a.email-link {
    font-weight: 500;
    font-size: 18px;
}

.contact-top-item a:hover {
    color: var(--color-active);
}

/* --- 2. Staff Directory --- */
.footer-staff {
    background-color: #fff;
    padding: 48px 0;
    border-bottom: 1px solid #eaeaea;
    background-image: url(/wp-content/uploads/2019/11/global.png);
    background-position: center center;
    background-repeat: repeat;
    background-size: auto;
}

.staff-section {
    margin-bottom: 40px;
}

.staff-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--color-2);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-2);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 24px;
}

.grid-staff {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.staff-card {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.staff-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.staff-avatar {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-img-wrapper {
    width: 85px;
    height: 85px;
    position: relative;
}

.staff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background-color: var(--color-4);
    border: 2px solid #fff;
    border-radius: 50%;
}

.online-badge {
    background-color: #fff;
    color: #3b82f6;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.staff-info {
    display: flex;
    font-size: 13px;
    line-height: 1.4;
    gap: 5px;
    flex-direction: column;
}

.staff-name-role {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.staff-role {
    color: var(--color-5);
    font-weight: 600;
    font-size: 13px;
}

.staff-name {
    color: var(--color-danger);
    font-weight: 700;
    font-size: 14px;
}

.staff-region {
    color: var(--color-1);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-5);
}

.staff-contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

/* --- 3. Footer Main --- */
.footer-main {
    background-color: #1a1a1a;
    padding-top: 48px;
    border-top: 1px solid #1a1a1a;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.footer-col {
    color: #cbcbcb;
    font-size: 14px;
    line-height: 1.6;
}

.footer-logo {
    margin-bottom: 16px;
    max-width: 70%;
    height: auto;
}

.footer-desc p {
    margin-bottom: 12px;
}

.footer-socials {
    margin-top: 14px;
}

.footer-title {
    color: #cbcbcb;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbcbcb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-2);
}

.footer-links i {
    font-size: 10px;
    color: #cbcbcb;
}

.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #cbcbcb;
}

.footer-contact-list i,
.footer-contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 28px;
    color: var(--color-2);
}

.footer-contact-list a {
    color: #cbcbcb;
    font-weight: 600;
}

.footer-contact-list a:hover {
    color: var(--color-2);
}

.footer-contact-featured {
    gap: 10px;
}

.footer-contact-featured .footer-contact-icon,
.footer-contact-featured>i {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    margin-top: 0;
    font-size: 24px;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.footer-contact-list .footer-contact-main {
    color: #cbcbcb;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.footer-contact-list .footer-contact-main:hover {
    color: var(--color-2);
}

.footer-contact-sub {
    color: #cbcbcb;
    font-size: 13px;
    line-height: 1.35;
}

/* Open Time Box */
.open-time-box {
    margin-top: 14px;
    padding: 0;
}

.open-time-text .ot-title {
    font-weight: 700;
    color: #cbcbcb;
    font-size: 14px;
    margin-bottom: 2px;
}

.open-time-text .ot-hours {
    color: #cbcbcb;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.open-time-text .ot-note {
    color: #cbcbcb;
    font-style: italic;
    font-size: 13px;
}

/* Facebook Plugin & Social */
.fb-plugin-box {
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    max-width: 300px;
}

.fb-plugin-box img {
    width: 100%;
    display: block;
}

.social-networks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.s-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.s-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.s-icon.facebook {
    background-color: #1877F2;
}

.s-icon.twitter {
    background-color: #1DA1F2;
}

.s-icon.youtube {
    background-color: #FF0000;
}

.s-icon.linkedin {
    background-color: #0A66C2;
}

.s-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.s-icon.pinterest {
    background-color: #E60023;
}

.s-icon.tiktok {
    background-color: #111827;
}

.footer-certificates {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.footer-certificates img {
    max-width: calc(50% - 4px);
    max-height: 44px;
    width: 100%;
    height: auto;
    object-fit: contain;
    flex: 1 1 0;
    min-width: 0;
}

/* --- 4. Copyright Bar --- */
.footer-copyright {
    background-color: #1a1a1a;
    padding: 12px 0;
    color: #cbcbcb;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid rgba(203, 203, 203, .12);
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */

/* ============================================================
   STICKY FOOTER CTA & GLOBAL CONTACT BUTTONS
   ============================================================ */

/* CTA Buttons Grid (4 buttons on 1 row) */
.pd-cta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.pd-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--color-5);
}

.pd-cta-btn:hover {
    border-color: var(--color-active);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.pd-cta-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-cta-icon svg {
    width: 28px;
    height: 28px;
}

.pd-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.pd-cta-text b {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-cta-text small {
    font-size: 11px;
    color: #999;
}

/* Zalo button accent */
.pd-cta-zalo {
    border-color: #d4e6ff;
    background: #f0f6ff;
}

.pd-cta-zalo:hover {
    border-color: #2962FF;
    background: #e8f0ff;
}

.pd-cta-zalo .pd-cta-text b {
    color: #2962FF;
}

/* Phone button accent */
.pd-cta-phone {
    border-color: #d4f5ec;
    background: #f0faf6;
}

.pd-cta-phone:hover {
    border-color: #33D9B2;
    background: #e8f8f2;
}

.pd-cta-phone .pd-cta-text b {
    color: var(--color-3);
}

/* Footer specific sticky bar – DESKTOP: right sidebar, MOBILE: bottom bar */
.footer-sticky-cta {
    position: fixed;
    right: 10px;
    bottom: 60px;
    z-index: 100;
    display: block;
}

.footer-sticky-cta .pd-cta-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.footer-sticky-cta .pd-cta-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
    position: relative;
}

.footer-sticky-cta .pd-cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-sticky-cta .pd-cta-icon {
    width: 24px;
    height: 24px;
}

.footer-sticky-cta .pd-cta-icon svg {
    width: 24px;
    height: 24px;
}

.footer-sticky-cta .pd-cta-text {
    display: none;
}

/* Tooltip on hover (desktop) */
.footer-sticky-cta .pd-cta-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.footer-sticky-cta .pd-cta-btn:hover::after {
    opacity: 1;
}

/* === MOBILE: bottom horizontal sticky bar === */
@media (max-width: 1024px) {
    .pd-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-sticky-cta {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }

    .footer-sticky-cta .pd-cta-grid {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 0 6px;
    }

    .footer-sticky-cta .pd-cta-btn {
        width: auto;
        height: auto;
        border-radius: 8px;
        flex-direction: column;
        gap: 3px;
        padding: 6px 8px;
        box-shadow: none;
        background: transparent;
        border: none;
    }

    .footer-sticky-cta .pd-cta-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .footer-sticky-cta .pd-cta-text {
        display: flex;
    }

    .footer-sticky-cta .pd-cta-text b {
        font-size: 10px;
        text-align: center;
    }

    .footer-sticky-cta .pd-cta-text small {
        display: none;
    }

    .footer-sticky-cta .pd-cta-btn::after {
        display: none;
    }

    body {
        padding-bottom: 65px;
    }

    .back-to-top {
        bottom: 80px !important;
    }
}

/* === Global Zalo QR Popup === */
.zalo-qr-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zalo-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    animation: fadeIn 0.2s ease;
}

.zalo-qr-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 760px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.zalo-qr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: center;
}

.zalo-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.zalo-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 58px;
    background: #eef6ff;
    border: 1px solid #dbeafe;
}

.zalo-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zalo-profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.zalo-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.zalo-verified svg {
    display: block;
    width: 24px;
    height: 24px;
}

.zalo-profile-type {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.zalo-profile-detail {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.zalo-profile-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.zalo-profile-detail ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.zalo-profile-detail li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.zalo-profile-detail li i {
    margin-top: 3px;
    color: #667685;
    width: 16px;
    text-align: center;
}

.zalo-profile-detail a {
    color: #1d93ff;
    text-decoration: none;
}

.zalo-profile-detail mark {
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
}

.zalo-profile-detail p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.zalo-qr-figure {
    margin: 0;
    text-align: center;
}

.zalo-qr-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.zalo-qr-close:hover {
    color: var(--color-danger);
}

.zalo-qr-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 6px;
}

.zalo-qr-desc {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

.zalo-qr-scan-wrap {
    position: relative;
    display: inline-flex;
    padding: 10px;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
}

.zalo-qr-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #eaeaea;
    background: #fff;
}

.zalo-qr-scan-wrap .qr-scanner {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(204, 231, 255, .2), #007bff, rgba(204, 231, 255, .2));
    box-shadow: 0 0 10px #87ceeb, 0 0 20px rgba(135, 206, 235, .75), 0 0 30px rgba(135, 206, 235, .55);
    animation: qr-scan 1.55s linear infinite alternate;
    z-index: 2;
}

.zalo-qr-scan-wrap .qr-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid #007bff;
    z-index: 3;
}

.zalo-qr-scan-wrap .qr-corner-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
    animation: qr-corner-zoom-tl .85s ease-in-out infinite;
}

.zalo-qr-scan-wrap .qr-corner-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
    animation: qr-corner-zoom-tr .85s ease-in-out infinite;
}

.zalo-qr-scan-wrap .qr-corner-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
    animation: qr-corner-zoom-bl .85s ease-in-out infinite;
}

.zalo-qr-scan-wrap .qr-corner-br {
    right: 12px;
    bottom: 12px;
    border-left: none;
    border-top: none;
    animation: qr-corner-zoom-br .85s ease-in-out infinite;
}

@keyframes qr-scan {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(236px);
    }
}

@keyframes qr-corner-zoom-tl {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3px, -3px) scale(1.08);
    }
}

@keyframes qr-corner-zoom-tr {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(3px, -3px) scale(1.08);
    }
}

@keyframes qr-corner-zoom-bl {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3px, 3px) scale(1.08);
    }
}

@keyframes qr-corner-zoom-br {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(3px, 3px) scale(1.08);
    }
}

@media (max-width: 768px) {
    .zalo-qr-modal {
        padding: 24px 18px;
    }

    .zalo-qr-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zalo-profile-name {
        font-size: 21px;
    }

    .zalo-qr-figure {
        order: -1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99;
    width: 40px;
    height: 40px;
    background-color: #4b5563;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: #1f2937;
}

/* ============================================================
   RESPONSIVE - TABLET (<= 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .categories-wrapper {
        display: none;
    }

    .categories-wrapper.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.5);
    }

    .categories-wrapper.active .btn-categories,
    .categories-wrapper.active .menu-overlay {
        display: none;
    }

    .categories-wrapper.active .mega-menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 95%;
        max-width: 95%;
        height: 100vh;
        background-color: #fff;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        animation: slideInLeft 0.3s forwards;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
        border-radius: 0;
        border: none;
        margin-top: 0;
        min-height: unset;
        overflow-y: auto;
    }

    .desktop-close-btn {
        display: none !important;
    }

    .mega-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: var(--color-2);
        border-bottom: 1px solid #eaeaea;
        flex-shrink: 0;
    }

    .mega-mobile-logo img {
        height: 35px;
        width: auto;
        display: block;
    }

    @keyframes slideInLeft {
        to {
            transform: translateX(0);
        }
    }

    .categories-wrapper.active .mega-sidebar {
        width: 100%;
        border-right: none;
        background: #fff;
        padding: 0;
    }

    .mega-sidebar a i.mobile-caret {
        display: inline-block;
        margin-left: auto;
        color: #ccc;
        font-size: 14px;
        transition: transform 0.2s;
    }

    .mega-sidebar a i.desktop-caret {
        display: none;
    }

    .menu-item.open>a i.mobile-caret {
        transform: rotate(180deg);
        color: var(--color-2);
    }

    .categories-wrapper.active .mega-content {
        position: static;
        display: none;
        width: 100%;
        padding: 15px;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        background-color: #fafafa;
        height: auto;
        border-radius: 0;
    }

    .menu-item.open .mega-content {
        display: block;
    }

    .categories-wrapper.active .mega-col {
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-staff {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE - MOBILE (<= 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Header Top => Blue */
    .header-top {
        background-color: var(--color-2);
        border-bottom: none;
        display: block !important;
    }

    .header-main {
        background-color: var(--color-2);
        padding: 10px 0;
        border-bottom: none;
    }

    .vietnam-smart-header {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .header-top-right {
        display: none;
    }

    .header-top-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 11px;
    }

    .header-top-left a,
    .header-top .hotline {
        color: #fff;
    }

    /* Header Main reorder */
    .header-main .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .header-logo {
        order: 1;
        flex-shrink: 0;
    }

    .search-wrapper {
        order: 2;
        flex: 1;
        max-width: 100%;
    }

    .mobile-toggle {
        order: 3;
        flex-shrink: 0;
        color: #fff;
    }

    .header-logo img {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 6px;
        background-color: #fff;
        padding: 3px;
    }

    img.custom-logo {
        background: #ffffff;
        padding: 5px;
        border-radius: 4px;
        height: 38px;
    }

    .categories-wrapper.active .mega-content .vns-mega-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-form {
        background-color: #fff;
        border: none;
    }

    .search-form input[type="search"],
    .search-form input[type="text"] {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-suggest {
        position: fixed;
        top: 105px;
        left: 10px;
        width: calc(100vw - 20px);
        min-width: unset;
        height: auto;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .suggest-trend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-actions,
    .btn-categories {
        display: none;
    }

    /* Footer responsive */
    .footer-top-inner {
        flex-direction: column;
        gap: 12px;
    }

    .contact-top-item a,
    .contact-top-item .phone-number {
        font-size: 20px;
    }

    .grid-footer {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE NHO (<= 600px)
   ============================================================ */
@media (max-width: 600px) {
    .grid-staff {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */

/* Screen reader text (accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* WP Admin bar fix */
.admin-bar .vietnam-smart-header {
    top: 0;
}

/* Default content styles */
main {
    min-height: 50vh;
    padding: 30px 0 50px;
}

/* Homepage override - homepage.css handles its own padding */
main.homepage-main {
    padding: 0;
    padding-bottom: 50px;
}

.vs-404-page {
    padding: 48px 0 64px;
}

.vs-404-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    margin: 0 auto;
    max-width: 720px;
    padding: 48px 24px;
    text-align: center;
}

.vs-404-code {
    color: var(--color-2, #1d93ff);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.vs-404-card h1 {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.vs-404-card p {
    color: #4b5563;
    font-size: 16px;
    margin: 0 0 24px;
}

.vs-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.vs-404-button {
    align-items: center;
    background: var(--color-2, #1d93ff);
    border: 1px solid var(--color-2, #1d93ff);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 600;
    min-height: 40px;
    padding: 0 18px;
    text-decoration: none;
}

.vs-404-button:hover {
    color: #fff;
    opacity: 0.9;
}

.vs-404-button-outline {
    background: #fff;
    color: var(--color-2, #1d93ff);
}

.vs-404-button-outline:hover {
    color: var(--color-2, #1d93ff);
}

.vs-search-page {
    padding: 0 15px 48px;
}

.vs-search-hero {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: grid;
    gap: 12px 20px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    margin: 12px 0 22px;
    padding: 16px;
}

.vs-search-eyebrow {
    color: var(--color-2, #1d93ff);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.vs-search-hero h1 {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px;
}

.vs-search-hero h1 span {
    color: var(--color-2, #1d93ff);
}

.vs-search-hero p {
    color: #4b5563;
    font-size: 13px;
    margin: 0;
}

.vs-search-form {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    display: flex;
    gap: 6px;
    max-width: none;
    padding: 5px;
}

.vs-search-form input {
    border: 0;
    color: #111827;
    flex: 1;
    font-size: 14px;
    min-height: 36px;
    outline: 0;
    padding: 0 8px;
}

.vs-search-form button {
    align-items: center;
    background: var(--color-2, #1d93ff);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
}

.vs-search-section {
    margin-bottom: 32px;
}

.vs-search-section-heading {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 0 12px;
}

.vs-search-section-heading h2 {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.vs-search-section-heading span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.vs-search-product-grid.product-grid {
    gap: 15px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0;
}

.vs-search-news-list.news-list {
    gap: 15px;
}

.vs-search-type {
    align-self: flex-start;
    background: #eef6ff;
    border-radius: 999px;
    color: var(--color-2, #1d93ff);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 4px 10px;
}

.vs-search-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 44px 24px;
    text-align: center;
}

.vs-search-empty-icon {
    color: var(--color-2, #1d93ff);
    font-size: 44px;
    line-height: 1;
    margin-bottom: 14px;
}

.vs-search-empty h2 {
    color: #111827;
    font-size: 24px;
    margin: 0 0 8px;
}

.vs-search-empty p {
    color: #6b7280;
    margin: 0;
}

@media (max-width: 1024px) {
    .vs-search-product-grid.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .vs-search-hero {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .vs-search-hero h1 {
        font-size: 20px;
    }

    .vs-search-form {
        flex-direction: column;
    }

    .vs-search-product-grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.suggest-loading,
.suggest-no-result,
.suggest-empty-history {
    color: #6b7280;
    font-size: 13px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.suggest-result-header {
    margin-bottom: 10px;
}

.suggest-view-all {
    color: var(--color-2);
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.suggest-result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.suggest-result-item {
    align-items: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    color: var(--color-5);
    display: flex;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.suggest-result-item:hover {
    background: #f8fbff;
    border-color: #dbeafe;
}

.suggest-result-img {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    color: #9ca3af;
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.suggest-result-img img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.suggest-result-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.suggest-result-title {
    color: #111827;
    display: -webkit-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.suggest-result-meta {
    color: #6b7280;
    font-size: 12px;
}

.suggest-result-meta strong {
    color: var(--color-danger, #e11d48);
    font-weight: 700;
}

.suggest-keyword-highlight {
    background: #fff3b0;
    border-radius: 3px;
    color: inherit;
    font-weight: 700;
    padding: 0 2px;
}

.search-suggest .suggest-history {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: flex-start;
}

.search-suggest .suggest-history a,
.search-suggest .suggest-empty-history {
    margin: 0;
}

/* ============================================================
   VIETNAMSMART MEGA MENU ONLY - VNS STYLE OVERRIDE
   ============================================================ */
.vns-mega-menu,
.categories-wrapper *,
.vns-mega-menu * {
    box-sizing: border-box;
}

.vns-mega-menu {
    --vns-primary: #024383;
    --vns-primary-2: #0056a9;
    --vns-green: #71ae2c;
    --vns-text: #162033;
    --vns-muted: #64748b;
    --vns-line: #e2e8f0;
    --vns-soft: #f6f8fb;
    --vns-white: #ffffff;
    --vns-radius: 16px;
    --vns-shadow: 0 20px 50px rgba(15, 23, 42, .12);
    position: relative;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--vns-text);
}

.categories-wrapper {
    --vns-primary: #024383;
    --vns-primary-2: #0056a9;
    --vns-green: #71ae2c;
    --vns-text: #162033;
    --vns-muted: #64748b;
    --vns-line: #e2e8f0;
    --vns-soft: #f6f8fb;
    --vns-white: #ffffff;
    --vns-radius: 16px;
    --vns-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

.vns-mega-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--vns-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.categories-wrapper .btn-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    padding: 11px 16px;
    background: var(--vns-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.vns-toggle-icon {
    font-size: 20px;
    line-height: 1;
}

.categories-wrapper .menu-overlay {
    position: fixed;
    inset: 114px 0 0;
    background-color: rgba(15, 23, 42, .42);
    backdrop-filter: blur(1px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.categories-wrapper:not(.force-hide):hover .menu-overlay,
.categories-wrapper:not(.force-hide):focus-within .menu-overlay,
.categories-wrapper.active .menu-overlay,
.vns-mega-menu.is-open .vns-mega-wrap {
    opacity: 1;
    visibility: visible;
}

.categories-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 24px;
    display: none;
}

.categories-wrapper:not(.force-hide):hover::after {
    display: block;
}

.categories-wrapper .mega-menu,
.vns-mega-wrap {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    width: min(1140px, calc(100vw - 30px));
    z-index: 101;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: 550px;
    background: var(--vns-white);
    border: 1px solid var(--vns-line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--vns-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .28s cubic-bezier(.25, .8, .25, 1);
}

.categories-wrapper:not(.force-hide):hover .mega-menu,
.categories-wrapper:not(.force-hide):focus-within .mega-menu,
.categories-wrapper.active .mega-menu,
.vns-mega-menu.is-open .vns-mega-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-wrapper .desktop-close-btn {
    top: calc(100% + 18px);
    right: -18px;
}

.categories-wrapper .mega-sidebar,
.vns-mega-sidebar {
    width: auto;
    flex: initial;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid var(--vns-line);
    border-radius: 0;
    padding: 12px;
}

.categories-wrapper .mega-sidebar a,
.vns-menu-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: auto;
    padding: 14px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--vns-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: .18s ease;
}

.vns-menu-main {
    display: block;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
}

.vns-menu-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 650;
    color: var(--vns-muted);
}

.categories-wrapper .mega-sidebar a i:first-child {
    color: var(--vns-primary);
    width: 20px;
    font-size: 14px;
    text-align: center;
    flex: 0 0 20px;
}

.categories-wrapper .mega-sidebar a i.desktop-caret,
.vns-menu-arrow {
    margin-left: auto;
    color: var(--vns-muted);
    font-size: 14px;
    line-height: 1;
    opacity: .72;
}

.categories-wrapper .mega-sidebar a:hover,
.categories-wrapper .mega-sidebar .menu-item.is-active>a,
.categories-wrapper .mega-sidebar .menu-item.has-content:hover>a,
.vns-menu-btn:hover,
.vns-menu-btn.is-active {
    background: linear-gradient(135deg, var(--vns-primary), var(--vns-primary-2));
    color: #fff;
    font-weight: 800;
}

.categories-wrapper .mega-sidebar .menu-item.has-content:hover>a i,
.categories-wrapper .mega-sidebar .menu-item.is-active>a i,
.vns-menu-btn:hover .vns-menu-sub,
.vns-menu-btn.is-active .vns-menu-sub,
.vns-menu-btn:hover .vns-menu-arrow,
.vns-menu-btn.is-active .vns-menu-arrow {
    color: rgba(255, 255, 255, .82);
}

.categories-wrapper .mega-sidebar .menu-item.is-active>a::after,
.categories-wrapper .mega-sidebar .menu-item.has-content:hover>a::after {
    display: none;
}

.categories-wrapper .mega-content,
.vns-mega-panel {
    left: 292px;
    width: calc(100% - 292px);
    min-width: 0;
    padding: 24px;
    background: #fff;
    border-radius: 0;
    overflow-y: auto;
}

.categories-wrapper .mega-col,
.vns-mega-col {
    min-width: 0;
    max-width: 100%;
    background: var(--vns-soft);
    border: 1px solid var(--vns-line);
    border-radius: 4px;
    padding: 14px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.categories-wrapper .mega-title,
.vns-mega-col h4 {
    font-size: 15px;
    line-height: 1.25;
    color: var(--vns-primary);
    font-weight: 800;
    letter-spacing: 0;
}

.vns-card-list {
    display: grid;
    gap: 10px;
}

.vns-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #edf2f7;
    color: var(--vns-text);
    text-decoration: none;
    transition: .18s ease;
}

.vns-card-placeholder {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 1px dashed #60a5fa;
    position: relative;
    flex: 0 0 auto;
}

.vns-card-placeholder::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.vns-card-thumb {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.vns-card-title {
    display: block;
    font-size: 14px;
}

.vns-card-meta {
    display: block;
    margin-top: 2px;
    color: var(--vns-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.vns-card {
    border: 1px solid var(--vns-white) !important;
    background: var(--vns-white) !important;
    padding: 10px !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .07);
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

a.vns-card:hover,
.vns-card:hover {
    color: var(--vns-text) !important;
    background: transparent !important;
    border: 1px solid #b7d4ff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .07);
    cursor: pointer !important;
}

.vns-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.vns-panel-head h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: var(--vns-primary);
}

.vns-panel-head p {
    margin: 5px 0 0;
    color: var(--vns-muted);
    font-size: 14px;
}

.vns-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--vns-primary);
    font-size: 12px;
    font-weight: 800;
}

.vns-mega-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1024px) {
    .vns-mega-menu {
        display: none;
        max-width: none;
    }

    .vns-mega-menu.is-open {
        display: block;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        background: rgba(15, 23, 42, .42);
    }

    .categories-wrapper.active .mega-menu,
    .vns-mega-menu.is-open .vns-mega-wrap {
        position: absolute;
        top: 0;
        left: 0;
        width: 95%;
        max-width: 95%;
        height: 100vh;
        min-height: initial;
        grid-template-columns: 1fr;
        border-radius: 0;
        border: none;
        transform: translateX(-100%);
        animation: slideInLeft .3s forwards;
        overflow-y: auto;
    }

    .categories-wrapper.active .mega-sidebar,
    .vns-mega-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--vns-line);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        padding: 12px;
    }

    .categories-wrapper .mega-sidebar a,
    .vns-menu-btn {
        padding: 12px;
        font-size: 13px;
    }

    .vns-menu-main {
        font-size: 13px;
    }

    .categories-wrapper .mega-sidebar a i.desktop-caret,
    .categories-wrapper .mega-sidebar a i.mobile-caret,
    .vns-menu-sub,
    .vns-menu-arrow {
        display: none;
    }

    .categories-wrapper.active .mega-content,
    .vns-mega-panel {
        position: static;
        width: 100%;
        padding: 16px;
        border-radius: 0;
    }

    .categories-wrapper.active .mega-col {
        min-width: 0;
    }

    .vns-mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vns-panel-head {
        display: block;
    }

    .vns-panel-badge {
        margin-top: 10px;
    }
}

@media (max-width: 560px) {

    .categories-wrapper.active .mega-sidebar,
    .vns-mega-sidebar,
    .vns-mega-columns {
        grid-template-columns: 1fr;
    }

    .vns-mega-menu.is-open .vns-mega-wrap {
        width: 100%;
        max-width: 100%;
    }

    .vns-mega-panel {
        padding: 16px;
    }
}