/* ============================================================
   MANHINH247 THEME - MAIN STYLESHEET
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    --color-1: #d7150e;
    --color-2: #d7150e;
    --color-3: #505050;
    --color-4: #aa100b;
    --color-5: #333333;
    --color-6: #363636;
    --color-bg: #FFFFFF;
    --color-danger: #d7150e;
    --color-soft-bg: #fff0ef;
    --color-accent: #d7150e;
    --color-trust: #aa100b;
    --color-active: #ff4136;
    --font-main: 'Inter', sans-serif;
    /* Hikvision Display palette */
    --primary: #d7150e;
    --primary-dark: #aa100b;
    --white: #ffffff;
    --gray: #505050;
    --dark: #333333;
    --light: #f7f7f7;
    --border: #eeeeee;
    --soft-red: #fff0ef;
    --shadow: 0 16px 45px rgba(0, 0, 0, .08);
    --radius: 18px;
}

/* === 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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-active);
    outline-offset: 3px;
}

body.menu-open {
    overflow: hidden;
}

/* === 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,
.btn-categories[aria-expanded="true"] {
    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(215, 21, 14, 0.15);
    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 {
    background: transparent;
    border: 0;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    padding: 2px 0;
    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 — Hikvision Display Style
   ============================================================ */
.hkv-mega-wrap {
    display: inline-block;
    position: relative;
}

@media (min-width: 1025px) {
    .hkv-mega-wrap {
        position: static;
    }
}

/* Overlay */
.hkv-mega-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    pointer-events: none;
}

.hkv-mega-wrap.is-open .hkv-mega-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dropdown panel */
.hkv-mega-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 15px;
    width: calc(100% - 30px);
    max-width: 1140px;
    z-index: 101;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s, transform .25s ease;
    padding: 0;
    overflow: hidden;
}

.hkv-mega-dropdown[hidden],
.hkv-mega-overlay[hidden],
.hkv-mega-panel[hidden] {
    display: none !important;
}

.hkv-mega-wrap.is-open .hkv-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Close button */
.hkv-mega-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

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

/* Bridge gap */
.hkv-mega-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
    display: none;
}

.hkv-mega-wrap.is-open::after {
    display: block;
}

/* ---- TABS (horizontal) ---- */
.hkv-mega-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hkv-mega-tabs::-webkit-scrollbar {
    display: none;
}

.hkv-mega-tab {
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.01em;
}

.hkv-mega-tab:hover,
.hkv-mega-tab:focus-visible {
    color: #222;
}

.hkv-mega-tab.is-active,
.hkv-mega-tab[aria-selected="true"] {
    color: var(--color-2, #d7150e);
    font-weight: 600;
    border-bottom-color: var(--color-2, #d7150e);
}

/* ---- PANELS (card grid) ---- */
.hkv-mega-panels {
    padding: 10px;
    min-height: 200px;
}

.hkv-mega-panel {
    display: none;
    animation: hkvFadeIn .25s ease;
}

.hkv-mega-panel.is-active {
    display: block;
}

.hkv-mega-panel-desc {
    margin: -8px 0 18px;
    max-width: 760px;
    color: #5f6878;
    font-size: 14px;
    line-height: 1.5;
}

.hkv-mega-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/*.hkv-mega-row+.hkv-mega-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}*/

@keyframes hkvFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- CARD ---- */
.hkv-mega-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.hkv-mega-card:hover {
    transform: translateY(-3px);
}

/* Card image container */
.hkv-mega-card-img {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.hkv-mega-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CSS device placeholder (when no real image) */
.hkv-device-placeholder {
    width: 80px;
    height: 56px;
    background: linear-gradient(135deg, #e8edf2 0%, #d0d8e0 100%);
    border-radius: 6px;
    border: 2px solid #c5ced8;
    position: relative;
    display: block;
}

.hkv-device-placeholder::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: #c5ced8;
    border-radius: 2px;
}

/* Card name */
.hkv-mega-card-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #333;
    transition: color .2s;
}

.hkv-mega-card-desc {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 4px;
    text-align: center;
}

.hkv-mega-card:hover .hkv-mega-card-name {
    color: var(--color-2, #d7150e);
}

.hkv-mega-card:hover .hkv-mega-card-desc {
    color: #4b5563;
}


/* ============================================================
   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;
}

.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: var(--color-2);
    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: #d5001c;
    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;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    }

    .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: 12px;
        flex-direction: column;
        gap: 4px;
        padding: 8px 6px;
        box-shadow: none;
        background: transparent;
        border: none;
        min-height: 52px;
    }

    .footer-sticky-cta .pd-cta-phone {
        background: linear-gradient(135deg, #f0faf6 0%, #e6fff4 100%);
    }

    .footer-sticky-cta .pd-cta-zalo {
        background: linear-gradient(135deg, #f0f6ff 0%, #eaf2ff 100%);
    }

    .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: calc(74px + env(safe-area-inset-bottom));
    }

    .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) {

    /* Mega menu mobile: fullscreen dropdown */
    .hkv-mega-wrap .btn-categories span {
        display: none;
    }

    .hkv-mega-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform .3s ease, opacity .3s, visibility .3s;
    }

    .hkv-mega-wrap.is-open .hkv-mega-dropdown {
        transform: translateX(0);
    }

    .hkv-mega-tabs {
        flex-wrap: nowrap;
        padding: 0 12px;
        padding-top: 50px;
    }

    .hkv-mega-tab {
        padding: 12px 14px;
        font-size: 13px;
    }

    .hkv-mega-panels {
        padding: 16px;
        overflow-y: auto;
        max-height: calc(100vh - 110px);
    }

    .hkv-mega-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .hkv-mega-card-img {
        width: 80px;
        height: 60px;
    }

    .hkv-mega-card-name {
        font-size: 11px;
    }

    .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;
    }

    .manhinh247-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;
    }

    .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 .manhinh247-header {
    top: 0;
}

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

/* Homepage override */
main.homepage-main {
    padding: 0;
}

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

.mh247-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;
}

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

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

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

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

.mh247-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;
}

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

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

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

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

.mh247-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;
}

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

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

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

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

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

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

.mh247-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;
}

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

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

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

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

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

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

.mh247-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;
}

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

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

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

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

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

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

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

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

    .mh247-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;
}