/* ==========================================================================
   HEADER CSS - LIGHTUI CHILD THEME (MODERN DARK STYLE)
   Mẫu chuẩn: Top Bar Đen (Icon mạng xã hội tròn trắng) + Main Header Trắng (Giỏ hàng tròn đỏ)
   ========================================================================== */

.lmt-header-wrapper,
.lmt-header-wrapper *,
.lmt-mobile-drawer,
.lmt-mobile-drawer * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.lmt-header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

body.admin-bar .lmt-header-wrapper {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .lmt-header-wrapper {
        top: 46px;
    }
}

.lmt-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 1. TẦNG 1: TOP BAR ĐEN */
.lmt-top-bar {
    background-color: var(--header-top-bg, #0a0a0a);
    color: #ffffff;
    padding: 7px 0;
    font-size: 13px;
}

.lmt-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lmt-top-bar-left {
    display: flex;
    align-items: center;
}

.lmt-top-hotline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.lmt-top-hotline a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lmt-top-hotline a:hover {
    opacity: 0.8;
}

.lmt-top-bar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.lmt-top-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lmt-top-hotline .lmt-hotline-custom-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* ICON MẠNG XÃ HỘI TOP BAR (BỎ VÒNG TRÒN BỌC NGOÀI, DÙNG NGUYÊN BẢN ẢNH) */
.lmt-social-circle {
    width: auto;
    height: auto;
    min-width: 26px;
    min-height: 26px;
    border-radius: 0;
    background-color: transparent !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: none !important;
    overflow: visible;
}

.lmt-social-circle:hover {
    transform: scale(1.15);
    opacity: 0.85;
    box-shadow: none !important;
}

.lmt-social-circle svg {
    display: block;
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.lmt-social-circle .lmt-social-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* 2. TẦNG 2: MAIN HEADER TRẮNG */
.lmt-main-header {
    background-color: var(--header-main-bg, #ffffff);
    padding: 14px 0;
    transition: padding 0.2s ease;
}

.lmt-main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.lmt-logo {
    display: flex;
    align-items: center;
}

.lmt-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.lmt-logo .logo-main {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.lmt-logo .site-title-text {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CỘT PHẢI: NAVIGATION + NÚT GIỎ HÀNG */
.lmt-header-right {
    display: flex;
    align-items: center;
    gap: 36px;
}

.lmt-main-nav {
    display: flex;
    align-items: center;
}

.lmt-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

.lmt-menu-list > li {
    position: relative;
    padding: 10px 0;
}

.lmt-menu-list > li > a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.lmt-menu-list > li:hover > a,
.lmt-menu-list > li.current-menu-item > a,
.lmt-menu-list > li.current-menu-parent > a {
    color: var(--color-primary, #991b1b);
}

/* SUBMENU DROPDOWN */
.lmt-menu-list ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 999;
}

.lmt-menu-list li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lmt-menu-list ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.15s ease;
}

.lmt-menu-list ul.sub-menu li a:hover {
    background-color: #fbfbfb;
    color: var(--color-primary, #991b1b);
    padding-left: 22px;
}

/* NÚT GIỎ HÀNG HÌNH TRÒN ĐỎ ĐÔ ĐÚNG MẪU ẢNH */
.lmt-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-cart-bg, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.28);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    flex-shrink: 0;
}

.lmt-cart-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.38);
}

/* KHI ĐÃ CÓ ẢNH ICON GIỎ HÀNG RIÊNG -> BỎ HOÀN TOÀN VÒNG TRÒN ĐỎ BỌC NGOÀI */
.lmt-cart-btn.has-custom-icon {
    width: auto !important;
    height: auto !important;
    min-width: 40px;
    min-height: 40px;
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.lmt-cart-btn.has-custom-icon:hover {
    transform: scale(1.08);
    box-shadow: none !important;
}

.lmt-cart-btn .lmt-cart-custom-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.lmt-cart-btn.has-custom-icon .lmt-cart-count {
    top: -4px;
    right: -6px;
}

.lmt-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmt-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #ffffff;
    color: var(--color-cart-bg, #991b1b);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid var(--color-cart-bg, #991b1b);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* MOBILE TOGGLE & BUTTONS */
.lmt-mobile-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lmt-cart-btn-mobile {
    width: 38px;
    height: 38px;
}

.lmt-mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lmt-mobile-menu-toggle .bar {
    width: 24px;
    height: 2.5px;
    background-color: #111111;
    border-radius: 2px;
}

/* MOBILE DRAWER */
.lmt-mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lmt-mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.lmt-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lmt-mobile-drawer.is-open {
    transform: translateX(0);
}

.lmt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0a0a0a;
    color: #ffffff;
}

.lmt-drawer-header .drawer-title {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lmt-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.lmt-drawer-body {
    padding: 20px 16px;
    overflow-y: auto;
    flex: 1;
}

.lmt-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.lmt-mobile-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.lmt-mobile-menu-list li a {
    display: block;
    padding: 12px 6px;
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.lmt-mobile-menu-list li:hover > a,
.lmt-mobile-menu-list li.current-menu-item > a {
    color: var(--color-primary, #991b1b);
}

.lmt-mobile-hotline {
    margin-top: 10px;
}

.lmt-hotline-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    padding: 10px 14px;
    border-radius: 6px;
    color: #111111;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}

/* RESPONSIVE DISPLAY */
@media (min-width: 992px) {
    .desktop-only {
        display: flex !important;
    }
    .desktop-hide {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    .desktop-hide {
        display: flex !important;
    }
    .lmt-main-header {
        padding: 10px 0;
    }
    .lmt-logo .logo-main {
        max-height: 42px;
    }
}
