/* ============================================
   VISUCO - Custom Stylesheet
   Primary: #0055A5  |  Secondary: #00A2E8
   Accent: #FF6B00   |  Dark: #1F2E3D
   Text: #333  |  Muted: #6c757d
   Border: #e8edf2  |  BG: #f8f9fc
   ============================================ */

:root {
    --font-standard: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --color-primary: #0055A5;
    --color-primary-hover: #004080;
    --color-secondary: #00A2E8;
    --color-secondary-hover: #008cd1;
    --color-accent: #FF6B00;
    --color-accent-hover: #e05e00;
    --color-dark: #1F2E3D;
    --color-light-bg: #F4F7FA;
    --color-border: #e8edf2;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0, 85, 165, 0.15);
}

/* ===== Global ===== */
html { scroll-behavior: smooth; }

body,
button,
input,
optgroup,
select,
textarea,
.btn,
.form-control {
    font-family: var(--font-standard);
/*    color: #333;*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--color-primary); color: #fff; }

h1, h2, h3, h4, h5, h6,
.section-title, .section-sub-title {
    font-family: var(--font-standard);
    font-weight: 600;
    color: var(--color-dark);
}

a { transition: color .25s ease; }

/* ===== Hotline ===== */
.hotline { color: red !important; }
.hotline:hover { color: darkred !important; }

/* ===== Zalo ===== */
.zalo-chat-widget { bottom: 54px !important; right: 5px !important; }

/* ===== Header ===== */
.header-top.bg-primary { letter-spacing: 0.3px; }

.header-middle .logo img { transition: opacity .3s ease; }
.header-middle .logo:hover img { opacity: 0.85; }

.header-contact .icon-phone-2 { color: var(--color-primary); font-size: 28px; }

/* ===== Breadcrumb ===== */
.breadcrumb-nav {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding: 12px 0 !important;
    margin-bottom: 25px;
}
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    font-size: 13px;
    font-family: var(--font-standard);
    list-style: none !important;
}
.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    align-content: center !important;
    color: #4A5568;
    line-height: 1 !important;
}
.breadcrumb-item a {
    color: #4A5568 !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    align-content: center !important;
    gap: 6px !important;
    line-height: 1 !important;
}
.breadcrumb-item a i {
    font-size: 14px;
    color: #4A5568 !important;
    line-height: 1 !important;
    display: inline-block !important;
    transform: translateY(-1.5px) !important;
}
.breadcrumb-item a:hover {
    color: var(--color-primary) !important;
}
.breadcrumb-item a:hover i {
    color: var(--color-primary) !important;
}
.breadcrumb-item.active {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}
.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›" !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #A0AEC0 !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    transform: translateY(-1.5px) !important;
}

/* Sửa nút đóng Menu Mobile */
.mobile-menu-close {
    background: transparent !important;
    border: none !important;
    color: #a8b2bc !important;
    font-size: 16px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    cursor: pointer !important;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.mobile-menu-close i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* ===== Info Boxes (Home) ===== */
.info-box { border-radius: 8px; transition: box-shadow .3s ease; }
.info-box:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.info-box i { color: var(--color-primary); }

/* ===== Section Titles ===== */
.section-title { position: relative; padding-bottom: 12px; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ===== Post List Cards (DuAn Index, etc.) ===== */
.post-list-hover {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease, border .3s ease;
    height: 100%;
    border: 1px solid transparent;
    padding: 8px;
}
.post-list-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 85, 165, 0.15);
    border-color: var(--color-primary);
}
.post-list-hover .post-media { overflow: hidden; border-radius: 6px; }
.post-list-hover .post-media img { width: 100%; transition: transform .45s ease; }
.post-list-hover:hover .post-media img { transform: scale(1.04); }
.post-list-hover .post-title a { transition: color .25s ease; color: var(--color-dark); }
.post-list-hover:hover .post-title a { color: var(--color-primary); }
.post-list-hover .post-body { padding: 10px 4px 4px; }
.post-list-hover .post-content p { color: #6c757d; font-size: 13.5px; line-height: 1.6; }

/* ===== Post Horizontal List Layout (BaiViet, DuAn Index 1 Column) ===== */
.post-list-row {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 14px;
}
.post-list-row:hover {
    box-shadow: 0 6px 20px rgba(0, 85, 165, 0.12);
    border-color: rgba(0, 85, 165, 0.3);
    transform: translateY(-2px);
}
.post-list-row .post-media {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0;
    position: relative;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    height: 100%;
    min-height: 190px;
}
.post-list-row .post-media a {
    display: block;
    height: 100%;
    width: 100%;
}
.post-list-row .post-media img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-list-row:hover .post-media img {
    transform: scale(1.05);
}
.post-list-row .post-body {
    padding: 4px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 190px;
    justify-content: space-between;
}
.post-list-row .post-top-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.post-list-row .post-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 8px;
    width: 100%;
}
.post-list-row .post-title a {
    color: var(--color-dark);
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.post-list-row:hover .post-title a {
    color: var(--color-primary);
}
.post-list-row .post-content {
    margin-bottom: 12px;
    width: 100%;
}
.post-list-row .post-content p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-list-row .post-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #edf2f7;
    gap: 12px;
}
.post-list-row .post-meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #718096;
}
.post-list-row .post-meta-left span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.post-list-row .post-meta-left i {
    font-size: 13px;
}
.post-list-row .post-cat {
    background: rgba(0, 85, 165, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}
.post-list-row .post-meta-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}
.post-list-row .post-readmore {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(0, 85, 165, 0.06);
    white-space: nowrap;
}
.post-list-row .post-readmore:hover {
    color: #fff;
    background: var(--color-primary);
    gap: 8px;
}

@media (max-width: 767.98px) {
    .post-list-row .post-media {
        min-height: unset;
        height: 190px;
        margin-bottom: 12px;
    }
    .post-list-row .post-media img {
        min-height: unset;
        height: 190px;
    }
    .post-list-row .post-body {
        padding: 4px 2px 2px;
        min-height: unset;
    }
    .post-list-row .post-footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .post-list-row .post-meta-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== Search Page Cards ===== */
.search-product-title {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
}
.search-product-card,
.search-equal-card {
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.search-product-card:hover,
.search-equal-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 85, 165, 0.15);
}
.search-product-card img,
.search-equal-card img { width: 100%; height: auto; display: block; border-radius: 6px; }

.search-equal-card .search-card-title,
.search-equal-card a:hover .search-card-title,
.search-equal-card a:focus .search-card-title { color: inherit; text-decoration: none !important; }
.search-section .post.search-equal-card a,
.search-section .post.search-equal-card a:hover,
.search-section .post.search-equal-card a:focus,
.search-section .post.search-equal-card a:active { text-decoration: none !important; }

.search-post-image { width: 100%; height: 220px !important; object-fit: cover; display: block; }

/* ===== Search Section Headings ===== */
.search-section { margin-bottom: 24px; }
.search-section h3 {
    font-size: 1.25rem;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e8edf2;
    color: var(--color-dark);
}

/* ===== X Social Icon ===== */
.icon-x-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}
.icon-x-social::before { content: "X"; }

/* ===== Product Cards (Home & SanPham Index) ===== */
.product-default {
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border .3s ease;
    overflow: hidden;
    padding: 6px;
}
.product-default:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 85, 165, 0.15) !important;
}
.product-default .img-effect img { transition: transform .4s ease; }
.product-default:hover .img-effect img { transform: scale(1.04); }
.product-default .product-title a { transition: color .25s ease; color: var(--color-dark); }
.product-default:hover .product-title a { color: var(--color-primary); }
.product-default .product-price { color: var(--color-primary); font-weight: 600; }

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 6px;
    transition: background-color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(0, 85, 165, 0.3);
    transform: translateY(-1px);
}
.btn-dark {
    border-radius: 6px;
    transition: background-color .3s ease, box-shadow .3s ease, transform .2s ease;
}
.btn-dark:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* ===== Sidebar Widgets ===== */
.sidebar .widget {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.sidebar .widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--color-dark);
}
.tagcloud a { border-radius: 20px !important; transition: background-color .25s ease, color .25s ease; }
.tagcloud a:hover { background-color: var(--color-primary) !important; color: #fff !important; border-color: var(--color-primary) !important; }

/* ===== Pagination ===== */
.toolbox-pagination .page-link { border-radius: 6px; margin: 0 3px; transition: background-color .25s ease, color .25s ease; }
.toolbox-pagination .page-item.active .page-link { background-color: var(--color-primary); border-color: var(--color-primary); color: white; }

/* ===== Social Share ===== */
.social-icon { transition: background-color .3s ease, transform .2s ease; }
.social-icon:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
.footer { border-top: 3px solid var(--color-primary); }
.footer .widget-title { border-bottom-color: rgba(255,255,255,0.25); color: #fff; }
.footer .tagcloud a { border-color: rgba(255,255,255,0.25) !important; color: rgba(255,255,255,0.8) !important; }
.footer .tagcloud a:hover { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; color: #fff !important; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== Scroll to Top ===== */
#scroll-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 18px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #718096 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
    transition: background-color 0.25s, transform 0.25s, opacity 0.3s, visibility 0.3s !important;
}
#scroll-top:hover {
    background-color: var(--color-primary) !important;
    transform: scale(1.1) translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
}
#scroll-top i {
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* ===== Product Tabs (Detail) ===== */
.product-single-tabs .nav-link { border-radius: 6px 6px 0 0; transition: color .25s ease, border-color .25s ease; }
.product-single-tabs .nav-link.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ===== Post Detail ===== */
.post.single .post-title { color: var(--color-dark); line-height: 1.4; }
.post.single .post-content { font-size: 15px; line-height: 1.8; color: #000; }
.post.single .post-content img { border-radius: 8px; margin: 12px 0; }

/* ===== Contact Page ===== */
.contact-us-container .feature-box {
    padding: 24px 16px;
    border-radius: 8px;
    background: #f8f9fc;
    transition: box-shadow .3s ease, transform .3s ease;
    margin-bottom: 16px;
}
.contact-us-container .feature-box:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.contact-us-container .feature-box i { color: var(--color-primary); font-size: 32px; margin-bottom: 12px; }

/* ===== Error 404 ===== */
.error-content h2, .error-content h3 { color: var(--color-dark); }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .search-post-image { height: 160px !important; }
    .sidebar .widget { padding: 12px; }
    .post-list-hover { padding: 6px; }
}

/* ==========================================================================
   VISUCO B2B NEW CUSTOM STYLES (Color Palette & Floating Widget & Modal)
   ========================================================================== */

/* ===== Brand Color Overrides & Helper Classes ===== */
.bg-primary { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.bg-accent { background-color: var(--color-accent) !important; }

/* ===== Sticky Header Override ===== */
.sticky-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff !important;
    box-shadow: var(--shadow-md) !important;
    animation: headerSlideDown 0.3s ease-out;
}
@keyframes headerSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ===== Floating Action Bar ===== */
.floating-contact-bar {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    transition: var(--transition-normal);
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
    border: none;
    outline: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.floating-btn i {
    font-size: 22px;
}

/* Tooltip */
.floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(31, 46, 61, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    font-weight: 500;
    pointer-events: none;
}

.floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.btn-hotline {
    background: var(--color-accent);
    animation: phone-pulse 2s infinite;
}
.btn-hotline:hover {
    background: var(--color-accent-hover);
}

.btn-zalo {
    background: #0068FF;
}

.btn-quote-cta {
    background: var(--color-primary);
}
.btn-quote-cta:hover {
    background: var(--color-primary-hover);
}

/* Phone vibration animation */
@keyframes phone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* Zalo Widget Position adjust */
.zalo-chat-widget {
    bottom: 140px !important;
    right: 20px !important;
}

/* ===== Responsive Floating Bar for Mobile ===== */
@media (max-width: 767px) {
    .floating-contact-bar {
        position: fixed;
        left: 0;
        bottom: 0;
        right: 0;
        flex-direction: row;
        gap: 0;
        background: #fff;
        padding: 8px 16px;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
        border-top: 1px solid var(--color-border);
        justify-content: space-around;
        border-radius: 0;
    }
    
    .floating-btn {
        width: auto;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        flex-direction: column;
        color: var(--color-dark) !important;
        background: transparent !important;
        font-size: 11px;
        font-weight: 500;
        gap: 4px;
    }
    
    .floating-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .floating-btn i {
        font-size: 20px;
    }
    
    .floating-btn::after {
        display: none;
    }
    
    .btn-hotline i { color: var(--color-accent); }
    .btn-zalo i { color: #0068FF; }
    .btn-quote-cta i { color: var(--color-primary); }
    
    /* Chừa khoảng trống chân trang để không bị che bởi Bottom Bar */
    body { padding-bottom: 50px; }
}

/* ===== Modal Yêu Cầu Báo Giá ===== */
.visuco-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visuco-modal.show {
    opacity: 1;
    visibility: visible;
}

.visuco-modal-dialog {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.visuco-modal.show .visuco-modal-dialog {
    transform: translateY(0);
}

.visuco-modal-header {
    background: var(--color-primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visuco-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.visuco-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.visuco-modal-close:hover {
    opacity: 1;
}

.visuco-modal-body {
    padding: 20px;
}

.visuco-form-group {
    margin-bottom: 16px;
}

.visuco-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-dark);
    font-size: 14px;
}

.visuco-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition-fast);
    outline: none;
    color: #333;
}

.visuco-form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.15);
}

.visuco-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== Button Báo Giá Thêm Vào Product Card (Nhỏ gọn kế bên chữ Liên hệ) ===== */
.btn-card-quote-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent) !important;
    border: 1px solid var(--color-accent) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.2);
}

.btn-card-quote-small:hover {
    background: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.35);
}

.btn-card-quote-small i {
    font-size: 11px;
}

/* Tooltip bằng CSS thuần */
.btn-card-quote-small::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(31, 46, 61, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-standard);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-card-quote-small::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: rgba(31, 46, 61, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
}

.btn-card-quote-small:hover::after,
.btn-card-quote-small:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== Tối ưu Grid Chứng Nhận Chất Lượng ===== */
.certification-section {
    background: #fff;
    padding: 40px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.cert-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.cert-card figure {
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #F8FAFC;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.cert-card figure img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
    cursor: zoom-in;
}

.cert-card h4 {
    font-size: 14px;
    margin: 0;
    color: var(--color-dark);
    font-weight: 600;
    line-height: 1.5;
}

/* Style cho lightbox xem ảnh chứng nhận phóng to */
.cert-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cert-lightbox.show {
    opacity: 1;
    visibility: visible;
}
.cert-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s;
}
.cert-lightbox.show img {
    transform: scale(1);
}
.cert-lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Tối ưu hóa ẩn Zalo Chat Widget trên Mobile */
@media (max-width: 991px) {
    .zalo-chat-widget,
    iframe[src*="zalo"],
    [id*="zalo-chat-widget"],
    div[class*="zalo-chat-widget"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Định dạng Menu Ngang Desktop (Header Bottom) */
.header-bottom .main-nav .menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-bottom .main-nav .menu > li {
    position: relative;
    margin-right: 5px;
}

.header-bottom .main-nav .menu > li > a {
    display: block;
    padding: 15px 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-bottom .main-nav .menu > li:hover > a,
.header-bottom .main-nav .menu > li.active > a {
    color: var(--color-primary) !important;
}

.header-bottom .main-nav .menu > li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    background-color: var(--color-primary);
}

/* ===== Rich Text Editor Custom Styling (Admin Syncfusion Editor Alignment) ===== */
/* Override default font-family and styling inside the editor's iframe body */
body.post-content,
body.product-desc-content,
.post-content,
.product-desc-content {
    font-family: var(--font-standard) !important;
    padding: 20px !important;
}

.post-content,
.product-desc-content {
    padding: 0 !important;
}

body.post-content,
.post-content {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

body.post-content p,
body.post-content div,
body.post-content span,
body.post-content li,
.post-content p,
.post-content div,
.post-content span,
.post-content li {
    font-family: var(--font-standard) !important;
}

/* Định dạng danh sách chuẩn cho bài viết */
body.post-content ul,
.post-content ul {
    list-style: disc !important;
    list-style-type: disc !important;
    padding-left: 28px !important;
    margin-bottom: 1rem !important;
}

body.post-content ol,
.post-content ol {
    list-style: decimal !important;
    list-style-type: decimal !important;
    padding-left: 28px !important;
    margin-bottom: 1rem !important;
}

body.post-content ul ul,
.post-content ul ul {
    list-style-type: circle !important;
    padding-left: 20px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

body.post-content ol ol,
.post-content ol ol {
    list-style-type: lower-alpha !important;
    padding-left: 20px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

body.post-content li,
.post-content li {
    display: list-item !important;
    margin-bottom: 6px !important;
    line-height: 1.7 !important;
}

/* Product specifications checkmark lists inside editor */
body.product-desc-content,
.product-desc-content {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

body.product-desc-content p,
body.product-desc-content div,
body.product-desc-content span,
body.product-desc-content li,
.product-desc-content p,
.product-desc-content div,
.product-desc-content span,
.product-desc-content li {
    font-family: var(--font-standard) !important;
}

body.product-desc-content ol,
body.product-desc-content ul {
    margin-bottom: 2rem !important;
    padding-left: 4.5rem !important;
    position: relative;
}

body.product-desc-content li {
    margin-bottom: 9px !important;
    position: relative !important;
    list-style-type: none !important; /* Ẩn bullet tròn mặc định của editor */
}

body.product-desc-content li::before {
    content: "\f058" !important; /* Dấu check-circle FontAwesome */
    position: absolute;
    left: -2.8rem !important;
    display: inline-block;
    vertical-align: middle;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: #21293c !important; /* Màu xanh đen như client */
    font-size: 1.6rem !important;
}

/* ===================================================
   Post Date Badge & Modern Meta / Views Display
   =================================================== */
.post-body .post-date,
.post-media .post-date {
    width: 62px !important;
    min-width: 62px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 85, 165, 0.12) !important;
    margin-right: 18px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: center !important;
    float: left !important;
}

.post-body .post-date .day,
.post-media .post-date .day {
    display: block !important;
    padding: 6px 2px 4px !important;
    background-color: #f8fafd !important;
    color: #0055A5 !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    font-family: var(--font-standard) !important;
}

.post-body .post-date .month,
.post-media .post-date .month {
    display: block !important;
    padding: 4px 2px 5px !important;
    background-color: #0055A5 !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

/* Post Meta Bar (Detail Pages) */
.post-meta-bar {
    margin-top: 8px;
    margin-bottom: 20px;
    gap: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-meta-bar .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

.post-meta-bar .meta-date i {
    color: #0055A5;
}

.post-meta-bar .meta-category {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 4px;
}

.post-meta-bar .meta-views {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.post-meta-bar .meta-views i {
    color: #0284c7;
    font-size: 14px;
}

.post-meta-bar .meta-views strong {
    color: #0369a1;
    font-weight: 700;
}

/* Post Meta in List / Index Pages */
.post-footer-meta .post-meta-left {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
}

.post-footer-meta .post-date-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-weight: 500;
    font-size: 13.5px;
}

.post-footer-meta .post-date-item i {
    color: #0055A5;
    font-size: 14px;
}

.post-footer-meta .post-views-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 2px 9px;
    border-radius: 15px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.post-footer-meta .post-views-pill i {
    font-size: 13px;
    color: #16a34a;
}

/* Product Views & Meta (SanPham) */
.product-single-details .product-views-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #0369a1;
    border: 1px solid #bfdbfe;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-single-details .product-views-box i {
    color: #0284c7;
    font-size: 15px;
}

.product-single-details .product-views-box strong {
    color: #0055A5;
    font-weight: 700;
}

.single-info-list li .info-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0055A5;
    font-weight: 600;
}

.single-info-list li .info-views i {
    color: #0284c7;
    font-size: 14px;
}

.product-details .product-views-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.product-details .product-views-tag i {
    color: #0055A5;
    font-size: 12px;
}

/* ===== Home Slide Custom Modern Styling ===== */
.home-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.home-slide {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.home-slide .slide-link-cover {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.home-slide .slide-bg {
    width: 100%;
    height: 428px;
    object-fit: cover;
    display: block;
}

.home-slide-caption {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 480px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 22px;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary, #0055A5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 3;
    transition: all 0.3s ease;
}

.home-slide:hover .home-slide-caption {
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.home-slide-title {
    color: #ffffff !important;
    font-family: var(--font-standard);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.home-slide-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.home-slide-title a:hover {
    color: #60a5fa !important;
}

.home-slide-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary, #0055A5);
    color: #ffffff !important;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 85, 165, 0.4);
}

.home-slide-btn:hover {
    background: var(--color-secondary, #ff6b00);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.45);
}

.home-slide-btn i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.home-slide-btn:hover i {
    transform: translateX(3px);
}

/* Căn giữa owl-dots ở đáy cho hiện đại */
.home-slider .owl-dots {
    position: absolute;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.home-slider .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.home-slider .owl-dots .owl-dot.active span,
.home-slider .owl-dots .owl-dot:hover span {
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: scale(1.15);
}

/* Responsive cho Mobile & Tablet */
@media (max-width: 991px) {
    .home-slide-caption {
        left: 20px;
        max-width: 380px;
        padding: 14px 18px;
    }
    .home-slide-title {
        font-size: 16px;
    }
    .home-slide-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }
    .home-slide-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .home-slide .slide-bg {
        height: 240px;
    }
    .home-slide-caption {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 16px;
        transform: none;
        max-width: calc(100% - 24px);
        padding: 10px 14px;
        border-radius: 8px;
        border-left-width: 3px;
    }
    .home-slide-title {
        font-size: 14px;
        margin-bottom: 3px;
    }
    .home-slide-desc {
        display: none;
    }
    .home-slide-btn {
        padding: 4px 12px;
        font-size: 11px;
    }
    .home-slider .owl-dots {
        bottom: 6px !important;
    }
}

/* Toast Notification Font Alignment */
.visuco-toast {
    font-family: var(--font-standard) !important;
}
