/**
 * Header Styles for TDService Final Theme - Full Width
 *
 * @package TDService_Final
 * @since 3.2.0
 */

/* =======================================================
   FULL WIDTH HEADER – BÁM SÁT FILE ZIP
======================================================= */

/* Header bao trùm full chiều ngang - SINGLE BORDER FIX */
.site-header,
.header-main,
.header-wrapper,
#masthead {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #DC2626 100%);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* SINGLE BORDER - Remove all duplicate borders */
.site-header {
    border-bottom: 1px solid rgba(31,31,31,0.06) !important;
    box-shadow: 0 4px 12px rgba(6,6,6,0.04) !important;
}

.header-top,
.header-main,
.site-header.scrolled {
    border-bottom: none !important;
    box-shadow: none !important;
}

@keyframes headerShine {
    0%, 100% {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08), 0 0 40px rgba(29, 78, 216, 0.3), 0 5px 25px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08), 0 0 60px rgba(29, 78, 216, 0.5), 0 5px 35px rgba(37, 99, 235, 0.35);
    }
}

/* Bỏ giới hạn container mặc định → dùng container riêng để canh giữa */
.site-header .container,
.header-main .container,
.header-wrapper .container {
    max-width: 1400px;      /* Tối ưu full-width nhưng vẫn giữ sự gọn */
    width: 100%;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =======================================================
   HEADER TOP - REMOVED (Hidden by default)
======================================================= */
.header-top {
    display: none !important; /* Ẩn hoàn toàn header-top */
    width: 100%;
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 2px solid #2563EB;
    padding: 8px 0;
}

.header-top .container {
    max-width: 1400px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.header-contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

/* COMPACT CONTACT ITEM */
.contact-item {
    display: flex;
    align-items: center;
    gap: 6px; /* Giảm từ 8px → 6px */
    color: #ffffff;
    font-size: 13px; /* Compact size */
    line-height: 1.3;
    white-space: nowrap;
}

.contact-item svg {
    flex-shrink: 0;
    color: #2563EB;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2563EB;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-text {
    color: #999;
    font-size: 13px;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 180, 0, 0.1);
    border-radius: 50%;
    color: #2563EB;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background: #2563EB;
    color: #fff;
    transform: translateY(-2px);
}

/* =======================================================
   MAIN HEADER
======================================================= */
.header-main {
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #DC2626 100%);
    position: relative;
    z-index: 100;
}

.site-header {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-header.scrolled .header-top {
    display: none;
}

.site-header.scrolled .header-main {
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 70%, #DC2626 100%);
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 20px;
}

/* =======================================================
   LOGO
======================================================= */
.site-branding {
    flex-shrink: 0;
    position: relative;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 4px 8px;
    border-radius: 12px;
    position: relative;
}

.site-logo-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.05) 0%, rgba(255, 150, 0, 0.08) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-logo-link:hover::before {
    opacity: 1;
}

.site-branding img,
.logo img,
.site-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 15px rgba(29, 78, 216, 0.6))
            drop-shadow(0 0 25px rgba(29, 78, 216, 0.4));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 4px 15px rgba(29, 78, 216, 0.5))
                drop-shadow(0 0 20px rgba(29, 78, 216, 0.3));
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(29, 78, 216, 0.7))
                drop-shadow(0 0 30px rgba(29, 78, 216, 0.5));
    }
}

.site-logo-link:hover .site-logo,
.site-logo-link:hover img {
    filter: drop-shadow(0 8px 25px rgba(29, 78, 216, 0.8))
            drop-shadow(0 0 40px rgba(29, 78, 216, 0.6));
    transform: scale(1.12) rotate(-5deg);
    animation: none;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

/* COMPACT HEADER TEXT - 2025 */
.site-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
    text-shadow: 0 2px 10px rgba(29, 78, 216, 0.3);
    white-space: nowrap; /* Không xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis; /* Thêm ... nếu quá dài */
    max-width: 280px; /* Giới hạn chiều rộng */
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.site-logo-link:hover .site-title {
    letter-spacing: 1.2px;
    transform: scale(1.05);
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563EB 0%, #DC2626 50%, transparent 100%);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(29, 78, 216, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(29, 78, 216, 0.8);
    }
}

.site-slogan {
    font-size: 11px; /* Giảm từ 12px → 11px */
    color: #666666;
    line-height: 1.2; /* Giảm từ 1.3 → 1.2 */
    max-width: 250px; /* Giảm từ 300px → 250px */
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85; /* Giảm từ 0.9 → 0.85 */
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-logo-link:hover .site-slogan {
    color: #2563EB;
    opacity: 1;
}

/* =======================================================
   MENU FULL-WIDTH
======================================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-navigation {
    display: block;
}

.main-navigation ul,
.nav-menu {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    list-style: none;
}

.main-navigation ul li,
.nav-menu > li {
    position: relative;
}

.main-navigation ul li a,
.nav-menu > li > a {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    position: relative;
    border-radius: 10px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu Icons - Universal golden icon styling */
.nav-menu > li > a::before {
    content: '●';
    font-size: 10px;
    color: #2563EB;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    }
    50% {
        text-shadow: 0 0 15px rgba(37, 99, 235, 0.9);
    }
}

/* Specific menu icons based on common menu item IDs/classes */
.nav-menu > li[class*="home"] > a::before,
.nav-menu > li:first-child > a::before {
    content: '⌂';
    font-size: 16px;
}

.nav-menu > li[class*="about"] > a::before,
.nav-menu > li[class*="gioi-thieu"] > a::before {
    content: '★';
    font-size: 14px;
}

.nav-menu > li[class*="service"] > a::before,
.nav-menu > li[class*="dich-vu"] > a::before {
    content: '⚙';
    font-size: 15px;
}

.nav-menu > li[class*="product"] > a::before,
.nav-menu > li[class*="san-pham"] > a::before {
    content: '◆';
    font-size: 12px;
}

.nav-menu > li[class*="contact"] > a::before,
.nav-menu > li[class*="lien-he"] > a::before {
    content: '✆';
    font-size: 15px;
}

.nav-menu > li[class*="news"] > a::before,
.nav-menu > li[class*="tin-tuc"] > a::before,
.nav-menu > li[class*="blog"] > a::before {
    content: '◉';
    font-size: 13px;
}

/* ============================================================
   MENU BADGE STICKERS - CSS ONLY
   ============================================================ */

/* Badge base style */
.nav-menu > li > a {
    position: relative; /* Cần cho ::after positioning */
}

/* HOT Badge - Sản phẩm */
.nav-menu > li[class*="product"] > a::after,
.nav-menu > li[class*="san-pham"] > a::after {
    content: "HOT";
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1;
    text-shadow: none;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

/* NEW Badge - Dịch vụ */
.nav-menu > li[class*="service"] > a::after,
.nav-menu > li[class*="dich-vu"] > a::after {
    content: "MỚI";
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.6);
    z-index: 10;
    line-height: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

/* SALE Badge - Contact/Liên hệ */
.nav-menu > li[class*="contact"] > a::after,
.nav-menu > li[class*="lien-he"] > a::after {
    content: "📞";
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.5);
    animation: phoneRing 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.7);
    }
}

/* Mobile: Ẩn badges trên mobile */
@media (max-width: 1024px) {
    .nav-menu > li[class*="product"] > a::after,
    .nav-menu > li[class*="san-pham"] > a::after,
    .nav-menu > li[class*="service"] > a::after,
    .nav-menu > li[class*="dich-vu"] > a::after,
    .nav-menu > li[class*="contact"] > a::after,
    .nav-menu > li[class*="lien-he"] > a::after {
        display: none;
    }
}

/* OLD BACKGROUND HOVER EFFECT - Replaced with badges */
/* Commented out to avoid conflict with badge ::after */
/*
.main-navigation ul li a::after,
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(220, 38, 38, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
*/

.main-navigation ul li a:hover,
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: #2563EB;
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(29, 78, 216, 0.4);
    /* Hover background inline */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(220, 38, 38, 0.1));
}

/* Removed ::after hover since badges use ::after now */

/* Elegant underline animation - using pseudo-element span */
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    box-shadow: inset 0 -3px 0 0 rgba(37, 99, 235, 0.4);
}

/* Dropdown (nếu có) */
.main-navigation ul li ul,
.nav-menu .sub-menu {
    position: absolute;
    background: #fff;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-top: 10px;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    border: 1px solid rgba(255, 180, 0, 0.1);
    top: calc(100% + 10px);
    left: 0;
}

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

.nav-menu .sub-menu li {
    margin: 2px 8px;
    border-radius: 8px;
    overflow: hidden;
}

.nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-radius: 8px;
}

.nav-menu .sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(255, 180, 0, 0.12) 0%, rgba(255, 150, 0, 0.08) 100%);
    color: #000;
    padding-left: 28px;
}

/* Dropdown Indicator */
.nav-menu .menu-item-has-children > a::after {
    content: '';
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: all 0.35s ease;
    opacity: 0.7;
}

.nav-menu .menu-item-has-children:hover > a::after {
    opacity: 1;
    border-top-color: #2563EB;
}

/* =======================================================
   HEADER RIGHT ICONS
======================================================= */
.header-right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.12) 0%, rgba(255, 150, 0, 0.15) 100%);
    border-radius: 12px;
    color: #000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border: 2px solid transparent;
}

.header-cart-icon:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.4);
    border-color: rgba(255, 180, 0, 0.5);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* HOTLINE BUTTON - HIDDEN, replaced with search */
.hotline-btn {
    display: none !important; /* Ẩn số điện thoại */
}

/* ============================================================
   SEARCH ICON & DROPDOWN - Replace Hotline
   ============================================================ */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.12) 0%, rgba(255, 150, 0, 0.15) 100%);
    border-radius: 12px;
    border: 2px solid transparent;
    color: #000;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.search-toggle:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.4);
    border-color: rgba(255, 180, 0, 0.5);
}

.search-toggle svg {
    width: 22px;
    height: 22px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border-left: 2px solid rgba(37, 99, 235, 0.2);
    border-top: 2px solid rgba(37, 99, 235, 0.2);
    transform: rotate(45deg);
}

.ajax-search-form {
    display: flex;
    gap: 10px;
}

.ajax-search-form .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ajax-search-form .search-field:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ajax-search-form .search-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ajax-search-form .search-submit:hover {
    background: linear-gradient(135deg, #DC2626 0%, #DC2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Mobile search */
@media (max-width: 768px) {
    .search-toggle {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(255, 180, 0, 0.3);
    }

    .search-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 180, 0, 0.5);
    }

    .search-toggle svg {
        width: 20px;
        height: 20px;
        color: #000;
    }

    .search-dropdown {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .search-toggle {
        width: 42px;
        height: 42px;
        background: linear-gradient(135deg, #2563EB 0%, #DC2626 100%);
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(255, 180, 0, 0.35);
    }

    .search-toggle:hover {
        transform: scale(1.03);
    }

    .search-toggle svg {
        width: 18px;
        height: 18px;
    }

    .search-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

.hotline-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotline-btn:hover::before {
    opacity: 1;
}

.hotline-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, 0.5);
}

.hotline-btn svg {
    animation: phoneRing 1.5s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.hotline-text {
    font-weight: 800;
}

/* =======================================================
   MOBILE MENU TOGGLE
======================================================= */
.mobile-menu-toggle,
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 180, 0, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover,
.header-mobile-toggle:hover {
    background: #2563EB;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 24px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(1),
.header-mobile-toggle[aria-expanded="true"] .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(2),
.header-mobile-toggle[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(3),
.header-mobile-toggle[aria-expanded="true"] .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================================================
   MOBILE NAVIGATION
======================================================= */
.mobile-navigation,
.header-menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
}

.mobile-navigation.active,
.header-menu-mobile.active {
    right: 0;
    display: flex;
    max-height: 100vh;
    opacity: 1;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-navigation.active ~ .mobile-overlay,
.mobile-navigation.active .mobile-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-wrapper {
    padding: 15px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #2563EB;
    margin-bottom: 20px;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 180, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #2563EB;
    transform: rotate(90deg);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item > a {
    color: #2563EB;
    padding-left: 10px;
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mobile-nav-menu .menu-item-has-children.open > .sub-menu {
    display: block;
}

.mobile-nav-menu .sub-menu li a {
    font-size: 14px;
    font-weight: 500;
}

.mobile-nav-menu .submenu-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.mobile-nav-menu .submenu-toggle:hover {
    color: #2563EB;
}

/* =======================================================
   FULL-WIDTH MOBILE HEADER
======================================================= */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle,
    .header-mobile-toggle {
        display: flex !important;
    }

    .hotline-text {
        display: none;
    }

    .hotline-btn {
        padding: 10px 16px;
    }

    .hotline-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .site-header .container,
    .header-main .container {
        padding: 0 16px;
    }

    .site-branding img,
    .logo img,
    .site-logo {
        height: 48px;
    }

    .site-title {
        font-size: 16px;
    }

    .site-slogan {
        font-size: 10px;
        max-width: 180px;
    }

    .header-cart-icon {
        width: 40px;
        height: 40px;
    }

    .hotline-btn {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .site-info {
        max-width: 130px;
    }

    .site-branding img,
    .logo img,
    .site-logo {
        height: 40px;
    }

    .site-title {
        font-size: 14px;
    }

    .site-slogan {
        font-size: 8px;
        max-width: 120px;
    }

    .header-right-icons {
        gap: 8px;
    }
}

/* =======================================================
   CHỐNG TRÙNG LÊN CONTENT
======================================================= */
body {
    scroll-padding-top: 80px;
}
