/**
 * Phusa Header Styles
 * Navigation bar only (hero section moved to separate CSS file)
 */

/* Font Face */
@font-face {
    font-family: 'SVN-Shape';
    src: url('../fonts/SVN-Shape.woff2') format('woff2'),
        url('../fonts/SVN-Shape.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'SVN-Shape', sans-serif;
    overflow-x: hidden;
}

/* Prevent header from causing horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ===== READING PROGRESS BAR ===== */
.phusa-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10001;
    transition: background 0.3s ease;
}

.phusa-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #72ACD6 0%, #1B2E59 100%);
    transition: width 0.1s ease, background 0.3s ease;
    box-shadow: 0 0 10px rgba(114, 172, 214, 0.5);
}

/* Change progress bar color when header scrolled */
body.phusa-header-scrolled .phusa-reading-progress {
    background: rgba(27, 46, 89, 0.1);
}

body.phusa-header-scrolled .phusa-reading-progress-bar {
    background: linear-gradient(90deg, #72ACD6 0%, #F4763E 100%);
    box-shadow: 0 0 10px rgba(244, 118, 62, 0.5);
}

/* ===== HEADER STYLES ===== */
.phusa-header-wrapper {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: calc(100vw - 20px);
    z-index: 1000;
    /* Giữ nguyên kích thước khi zoom */
    transform-origin: center top;
    /* Ensure header doesn't overflow on any screen size */
    box-sizing: border-box;
    /* Prevent horizontal overflow */
    padding: 0;
    margin: 0;
}

/* Very large screens (> 1920px) */
@media (min-width: 1921px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1800px;
    }
    
    .phusa-nav-menu {
        flex-wrap: nowrap;
        gap: 38px;
    }
}

/* ===== CONTENT SPACING ===== */
/* Add top margin to main content to prevent header overlap */
.main-wrapper {
    margin-top: 85px; /* 75px header height + 10px spacing */
}

/* Specific spacing for all page types */
.product-container,
.product-catalogue,
.page-wrapper,
.page-breadcrumb,
.page-agency,
.panel-agency,
.panel-body,
.uk-container-center,
.contact-container,
.distribution-container,
.post-container,
.blog-container,
.news-container,
.about-container,
.service-container,
.workshop-container,
.lab-container,
.order-container,
.cart-container,
.auth-container {
    margin-top: 20px;
}

/* Breadcrumb specific spacing */
.page-breadcrumb {
    margin-top: 20px;
}

/* Homepage specific - hero section has padding-top to handle header spacing */
.phusa-hero-section {
    margin-top: 0;
    /* Padding-top is handled in phusa-hero.css to avoid header overlap */
}

/* Auth pages specific spacing */
.auth-container,
.login-container,
.register-container {
    margin-top: 30px;
}

/* Lab booking pages specific spacing */
.lab-container,
.booking-container,
.checkin-container {
    margin-top: 25px;
}

/* Cart and order pages specific spacing */
.cart-container,
.order-container,
.my-order-container {
    margin-top: 25px;
}

/* Special cases for pages with different layouts */
/* Auth pages that don't use main-wrapper */
body.auth-page,
body.login-page,
body.register-page {
    padding-top: 100px;
}

/* Lab booking pages that might have different structure */
.lab-booking-page,
.checkin-page {
    padding-top: 90px;
}

/* Pages with full-width content */
.full-width-page {
    margin-top: 90px;
}

/* Modal and popup pages */
.modal-page,
.popup-page {
    margin-top: 90px;
}

/* Pages with custom containers */
.custom-container {
    margin-top: 20px;
}

/* Ensure all direct content containers have proper spacing */
[main-content] {
    margin-top: 20px;
}

/* Special handling for pages that extend different layouts */
.page-content {
    margin-top: 20px;
}

/* Blog and news specific spacing */
.blog-post,
.news-article,
.post-content {
    margin-top: 20px;
}

/* Contact and about pages */
.contact-form,
.about-content,
.service-content {
    margin-top: 20px;
}

.phusa-header-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 50px;
    height: 75px;
    padding: 0 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: visible;
}

/* ===== HEADER SCROLL EFFECT ===== */
.phusa-header-wrapper.phusa-scrolled .phusa-header-top {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

.phusa-header-top:hover {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Ensure scroll state overrides hover when scrolled */
.phusa-header-wrapper.phusa-scrolled .phusa-header-top:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

.phusa-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 30px;
    width: 100%;
    overflow: visible;
    min-width: 0;
    box-sizing: border-box;
}

.phusa-logo-header {
    display: flex;
    align-items: center;
    min-width: 150px;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.phusa-logo-header a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.phusa-logo-header a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.phusa-logo-header img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* ===== NAVIGATION ===== */
.phusa-header-content > nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
    max-width: 100%;
}

/* ===== NAVIGATION MENU ===== */
.phusa-nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.phusa-nav-menu li {
    position: relative;
    z-index: 1001;
}

.phusa-nav-menu a {
    text-decoration: none;
    color: #1B2E59;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Cấp 2+ (dropdown menu) - chữ thường */
.phusa-dropdown-menu a,
.phusa-dropdown-menu-sub a {
    text-transform: none !important;
    letter-spacing: normal;
    font-size: 15px;
    font-weight: 500;
}

.phusa-nav-menu a:hover,
.phusa-nav-menu a:focus,
.phusa-nav-menu li:hover > a {
    color: #F4763E;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.phusa-dropdown-toggle:hover,
.phusa-dropdown-toggle:focus,
.phusa-dropdown:hover .phusa-dropdown-toggle {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    color: #F4763E !important;
}

.phusa-nav-menu a i {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.phusa-dropdown.active .phusa-dropdown-toggle i {
    transform: rotate(180deg);
}

/* ===== HEADER ACTIONS ===== */
.phusa-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.phusa-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.phusa-search-box i {
    position: absolute;
    left: 15px;
    color: #fff;
    font-size: 14px;
    z-index: 2;
    cursor: pointer;
}

.phusa-search-box input {
    padding: 10px 20px 10px 40px;
    border: none;
    border-radius: 25px;
    background: #72ACD6;
    color: white;
    font-size: 14px;
    width: 160px;
    height: 42px;
    outline: none;
    transition: all 0.3s ease;
}

.phusa-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.phusa-search-box input:focus {
    width: 220px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.phusa-search-box button {
    display: none;
}

/* ===== LOGIN BUTTON ===== */
.phusa-login-btn {
    position: relative;
}

.phusa-btn-login {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.phusa-btn-login:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-btn-login i {
    font-size: 15px;
}

/* Hide login text on smaller screens - show only icon */
@media (max-width: 1100px) {
    .phusa-btn-login {
        padding: 10px 14px !important;
        gap: 0 !important;
    }
    
    .phusa-btn-login span {
        display: none !important;
    }
    
    .phusa-btn-login i {
        font-size: 16px !important;
    }
}

/* ===== PROFILE BUTTON ===== */
.phusa-btn-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.phusa-btn-profile:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-btn-profile i {
    font-size: 15px;
}

/* Hide profile text on smaller screens - show only icon */
@media (max-width: 1100px) {
    .phusa-btn-profile {
        padding: 10px 14px !important;
        gap: 0 !important;
    }
    
    .phusa-btn-profile span {
        display: none !important;
    }
    
    .phusa-btn-profile i {
        font-size: 16px !important;
    }
}

/* ===== CART BUTTON ===== */
.phusa-cart-btn {
    position: relative;
}

.phusa-btn-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.phusa-btn-cart:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-btn-cart i {
    font-size: 15px;
}

.phusa-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* ===== LANGUAGE TOGGLE ===== */
.phusa-language-toggle {
    position: relative;
    width: 90px;
    height: 42px;
    background: #72ACD6;
    border-radius: 21px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 3px;
}

.phusa-language-toggle:hover {
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
}

.phusa-toggle-slider {
    position: absolute;
    left: 3px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.phusa-toggle-slider span {
    font-size: 14px;
    font-weight: 700;
    color: #3B4A7A;
    user-select: none;
}

.phusa-language-options {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
}

.phusa-lang-option {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    user-select: none;
    z-index: 1;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
}

.phusa-lang-option:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.phusa-lang-option.phusa-active {
    color: transparent;
}

.phusa-lang-option.active {
    color: transparent;
}

.phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
    left: 48px;
}

.phusa-language-toggle.phusa-en-active .phusa-lang-option.phusa-en {
    color: transparent;
}

.phusa-language-toggle.phusa-en-active .phusa-lang-option.phusa-vi {
    color: rgba(255, 255, 255, 0.9);
}

.phusa-language-toggle .phusa-lang-option.phusa-vi {
    color: transparent;
}

/* ===== HEADER HOVER/SCROLL STATES - ELEMENT COLORS ===== */
.phusa-header-top:hover .phusa-nav-menu a,
.phusa-header-wrapper.phusa-scrolled .phusa-nav-menu a {
    text-shadow: none;
}

/* Ensure underline shows on hover even when header is hovered */
.phusa-header-top:hover .phusa-nav-menu a:hover,
.phusa-header-wrapper.phusa-scrolled .phusa-nav-menu a:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.phusa-header-top:hover .phusa-search-box input,
.phusa-header-wrapper.phusa-scrolled .phusa-search-box input {
    background: #72ACD6;
    color: white;
}

.phusa-header-top:hover .phusa-language-toggle,
.phusa-header-wrapper.phusa-scrolled .phusa-language-toggle {
    background: #72ACD6;
}

/* Search icon color when scrolled */
.phusa-header-top:hover .phusa-search-box i,
.phusa-header-wrapper.phusa-scrolled .phusa-search-box i {
    color: #fff;
}

/* Mobile toggle button color when scrolled */
.phusa-header-wrapper.phusa-scrolled .phusa-mobile-toggle span {
    background: #1B2E59;
}

.phusa-header-wrapper.phusa-scrolled .phusa-mobile-toggle:hover {
    background-color: rgba(27, 46, 89, 0.1);
}

/* ===== SCROLLBAR STYLING WHEN HEADER SCROLLED ===== */
/* Scrollbar color changes when header is scrolled */
body.phusa-header-scrolled::-webkit-scrollbar,
html.phusa-header-scrolled::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.phusa-header-scrolled::-webkit-scrollbar-track,
html.phusa-header-scrolled::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

body.phusa-header-scrolled::-webkit-scrollbar-thumb,
html.phusa-header-scrolled::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #72ACD6 0%, #1B2E59 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

body.phusa-header-scrolled::-webkit-scrollbar-thumb:hover,
html.phusa-header-scrolled::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a8bb8 0%, #0f1a3d 100%);
}

/* Firefox scrollbar */
body.phusa-header-scrolled,
html.phusa-header-scrolled {
    scrollbar-width: thin;
    scrollbar-color: #72ACD6 #f1f1f1;
}

/* ===== SOCIAL SIDEBAR ===== */
.phusa-social-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 2000;
    transition: all 0.3s ease;
    overflow: visible;
}

/* Toggle Button */
.phusa-social-toggle {
    width: 56.65px;
    height: 56.65px;
    background: #F4763E;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 118, 62, 0.3);
    pointer-events: auto !important;
    z-index: 2001;
    position: relative;
}

.phusa-social-toggle:hover {
    background: #e55a2b;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(244, 118, 62, 0.4);
}

.phusa-social-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Social Icons Container */
.phusa-social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
    overflow: visible;
}

/* Collapsed State */
.phusa-social-sidebar.collapsed .phusa-social-icons {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.phusa-social-sidebar.collapsed .phusa-social-toggle i {
    transform: rotate(180deg);
}

.phusa-social-icon {
    width: 56.65px;
    height: 56.65px;
    background: #1B2E59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.phusa-social-icon:hover {
    background: #4FC3D4;
    transform: scale(1.1);
}

/* ===== NOTIFICATION CONTAINER ===== */
.phusa-notification-container {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.phusa-notification-btn {
    position: relative;
    cursor: pointer;
}

.phusa-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.phusa-notification-dropdown {
    position: fixed;
    top: 50%;
    left: calc(2rem + 56.65px + 1rem);
    transform: translateY(-50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 380px;
    max-width: calc(100vw - 150px);
    max-height: calc(100vh - 280px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phusa-notification-dropdown.show {
    opacity: 1;
    visibility: visible;
}

/* Arrow pointing to notification button */
.phusa-notification-dropdown::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.1));
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .phusa-notification-dropdown {
        position: fixed;
        top: auto;
        bottom: 80px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 100px);
        transform: none;
        border-radius: 12px;
    }
    
    .phusa-notification-dropdown::before {
        display: none;
    }
    
    .phusa-notification-list {
        max-height: calc(100vh - 200px);
    }
}

@media (max-width: 1024px) {
    .phusa-notification-dropdown {
        left: calc(2rem + 56.65px + 0.5rem);
        max-width: calc(100vw - 120px);
    }
}

.phusa-notification-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phusa-notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.phusa-mark-all-read {
    background: #72ACD6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.phusa-mark-all-read:hover {
    background: #5a8bb8;
}

.phusa-notification-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 150px;
    max-height: calc(100vh - 250px);
}

/* Scrollbar styling */
.phusa-notification-list::-webkit-scrollbar {
    width: 6px;
}

.phusa-notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.phusa-notification-list::-webkit-scrollbar-thumb {
    background: #72ACD6;
    border-radius: 10px;
}

.phusa-notification-list::-webkit-scrollbar-thumb:hover {
    background: #5a8bb8;
}

/* Mobile scrollbar */
@media (max-width: 768px) {
    .phusa-notification-list {
        max-height: calc(50vh - 150px);
    }
}

.phusa-notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.phusa-notification-item:hover {
    background: #f8f9fa;
}

.phusa-notification-item.unread {
    background: #f0f8ff;
    border-left: 3px solid #72ACD6;
}

.phusa-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.phusa-notification-icon.order,
.phusa-notification-icon.order_created {
    background: #28a745;
}

.phusa-notification-icon.order_paid {
    background: #17a2b8;
}

.phusa-notification-icon.order_shipped {
    background: #fd7e14;
}

.phusa-notification-icon.order_delivered {
    background: #20c997;
}

.phusa-notification-icon.order_cancelled {
    background: #dc3545;
}

.phusa-notification-icon.booking {
    background: #007bff;
}

.phusa-notification-icon.payment_success,
.phusa-notification-icon.deposit_success {
    background: #28a745;
}

.phusa-notification-icon.promotion {
    background: #ffc107;
}

.phusa-notification-icon.system {
    background: #17a2b8;
}

.phusa-notification-icon.news {
    background: #6f42c1;
}

.phusa-notification-icon.message {
    background: #e83e8c;
}

.phusa-notification-icon.custom {
    background: #6c757d;
}

.phusa-notification-content {
    flex: 1;
}

.phusa-notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.phusa-notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.phusa-notification-time {
    font-size: 12px;
    color: #999;
}

.phusa-notification-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.phusa-view-all {
    color: #72ACD6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.phusa-view-all:hover {
    color: #5a8bb8;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== MOBILE MENU ===== */
.phusa-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.phusa-mobile-toggle:hover {
    background-color: rgba(27, 46, 89, 0.1);
}

.phusa-mobile-toggle:active {
    background-color: rgba(27, 46, 89, 0.2);
}

.phusa-mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #1B2E59;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.phusa-mobile-toggle.phusa-active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.phusa-mobile-toggle.phusa-active span:nth-child(2) {
    opacity: 0;
}

.phusa-mobile-toggle.phusa-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.phusa-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.phusa-mobile-sidebar.phusa-open {
    right: 0;
}

.phusa-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 46, 89, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    color: #1B2E59;
    font-size: 20px;
}

.phusa-mobile-close:hover {
    background: rgba(27, 46, 89, 0.2);
    transform: rotate(90deg);
    color: #4FC3D4;
}

.phusa-mobile-close:active {
    background: rgba(27, 46, 89, 0.3);
    transform: rotate(90deg) scale(0.95);
}

.phusa-mobile-close i {
    font-size: 20px;
}

.phusa-mobile-sidebar-content {
    padding: 90px 30px 30px;
}

/* Mobile sidebar responsive */
@media (max-width: 480px) {
    .phusa-mobile-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .phusa-mobile-close i {
        font-size: 18px;
    }
    
    .phusa-mobile-sidebar-content {
        padding: 75px 18px 18px;
    }
    
    .phusa-mobile-nav-menu a {
        font-size: 17px;
        padding: 14px 18px;
    }
}

@media (max-width: 360px) {
    .phusa-mobile-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .phusa-mobile-close i {
        font-size: 16px;
    }
    
    .phusa-mobile-sidebar-content {
        padding: 70px 15px 15px;
    }
    
    .phusa-mobile-nav-menu a {
        font-size: 16px;
        padding: 12px 15px;
    }
}

.phusa-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.phusa-mobile-nav-menu li {
    margin-bottom: 8px;
}

.phusa-mobile-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none !important;
    color: #1B2E59;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(27, 46, 89, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.phusa-mobile-nav-menu a:visited,
.phusa-mobile-nav-menu a:active,
.phusa-mobile-nav-menu a:link {
    text-decoration: none !important;
}

.phusa-mobile-nav-menu a:hover {
    background: rgba(79, 195, 212, 0.15);
    color: #4FC3D4;
    transform: translateX(5px);
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.phusa-mobile-nav-menu a i {
    font-size: 12px;
}

.phusa-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(27, 46, 89, 0.1);
}

.phusa-mobile-search-box {
    position: relative;
}

.phusa-mobile-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.phusa-mobile-search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 25px;
    background: #72ACD6;
    color: white;
    font-size: 16px;
    outline: none;
}

.phusa-mobile-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.phusa-mobile-search-box button {
    display: none;
}

/* ===== MOBILE LOGIN BUTTON ===== */
.phusa-mobile-login-btn {
    width: 100%;
}

.phusa-mobile-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.phusa-mobile-btn-login:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-mobile-btn-login i {
    font-size: 18px;
}

/* ===== MOBILE PROFILE ===== */
.phusa-mobile-btn-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.phusa-mobile-btn-profile:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-mobile-btn-profile i {
    font-size: 24px;
}

.phusa-mobile-profile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phusa-mobile-profile-name {
    font-size: 16px;
    font-weight: 600;
}

.phusa-mobile-profile-status {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== MOBILE CART BUTTON ===== */
.phusa-mobile-cart-btn {
    width: 100%;
}

.phusa-mobile-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #72ACD6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 172, 214, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    position: relative;
}

.phusa-mobile-btn-cart:hover {
    background: #5a8bb8;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(114, 172, 214, 0.4);
    transform: translateY(-2px);
}

.phusa-mobile-btn-cart i {
    font-size: 18px;
}

.phusa-mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* ===== MOBILE LANGUAGE TOGGLE ===== */
.phusa-mobile-language-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 48px;
}

.phusa-mobile-language-btn .phusa-language-toggle {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: flex !important;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.phusa-mobile-language-btn .phusa-language-toggle .phusa-toggle-slider {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phusa-mobile-language-btn .phusa-language-toggle .phusa-toggle-slider span {
    font-size: 15px;
}

.phusa-mobile-language-btn .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
    left: calc(100% - 44px);
    transform: translateY(-50%);
}

.phusa-mobile-language-btn .phusa-language-toggle .phusa-language-options {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    pointer-events: none;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
}

.phusa-mobile-language-btn .phusa-language-toggle .phusa-lang-option {
    pointer-events: auto;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    white-space: nowrap !important;
}

.phusa-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.phusa-mobile-overlay.phusa-active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Large Desktop (> 1600px) - Default styles apply */

/* Desktop (1400px - 1600px) */
@media (max-width: 1600px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 20px);
    }
    
    .phusa-header-top {
        padding: 0 28px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        flex-wrap: nowrap;
        gap: 28px;
    }
    
    .phusa-nav-menu a {
        font-size: 17px;
    }
    
    .phusa-header-content {
        gap: 22px;
    }
    
    .phusa-logo-header img {
        height: 48px;
        max-width: 170px;
    }
    
    .phusa-search-box input {
        width: 155px;
    }
    
    .phusa-search-box input:focus {
        width: 210px;
    }
    
    .phusa-header-actions {
        gap: 12px;
    }
}

/* Desktop lớn (1600px - 1700px) */
@media (min-width: 1601px) and (max-width: 1699px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 20px);
    }
    
    .phusa-header-top {
        padding: 0 28px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        flex-wrap: nowrap;
        gap: 30px;
    }
    
    .phusa-nav-menu a {
        font-size: 17.5px;
    }
    
    .phusa-header-content {
        gap: 25px;
    }
    
    .phusa-logo-header img {
        height: 49px;
        max-width: 175px;
    }
    
    .phusa-search-box input {
        width: 158px;
    }
    
    .phusa-search-box input:focus {
        width: 215px;
    }
    
    .phusa-header-actions {
        gap: 13px;
    }
}

/* Desktop rất lớn (1700px+) */
@media (min-width: 1700px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 20px);
    }
    
    .phusa-header-top {
        padding: 0 30px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        flex-wrap: nowrap;
        gap: 32px;
    }
    
    .phusa-nav-menu a {
        font-size: 18px;
    }
    
    .phusa-header-content {
        gap: 28px;
    }
    
    .phusa-logo-header img {
        height: 50px;
        max-width: 180px;
    }
    
    .phusa-search-box input {
        width: 160px;
    }
    
    .phusa-search-box input:focus {
        width: 220px;
    }
    
    .phusa-header-actions {
        gap: 15px;
    }
}

/* Medium Desktop (1200px - 1400px) */
@media (max-width: 1400px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 20px);
    }
    
    .phusa-header-top {
        padding: 0 24px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        gap: 22px;
        flex-wrap: nowrap;
    }
    
    .phusa-nav-menu a {
        font-size: 16px;
        padding: 0 2px;
    }
    
    .phusa-header-content {
        gap: 18px;
    }
    
    .phusa-logo-header {
        min-width: 140px;
        max-width: 160px;
        flex-shrink: 0;
    }
    
    .phusa-logo-header img {
        height: 45px;
        max-width: 160px;
    }
    
    .phusa-search-box {
        flex-shrink: 0;
    }
    
    .phusa-search-box input {
        width: 140px;
        font-size: 13px;
    }
    
    .phusa-search-box input:focus {
        width: 190px;
    }
    
    .phusa-header-actions {
        gap: 10px;
        flex-shrink: 0;
    }
    
    .phusa-btn-login,
    .phusa-btn-profile,
    .phusa-btn-cart {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .phusa-language-toggle {
        width: 80px;
        height: 38px;
        flex-shrink: 0;
    }
    
    .phusa-toggle-slider {
        width: 32px;
        height: 32px;
    }
    
    .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
        left: 43px;
    }
    
    .phusa-lang-option {
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* Bridge between 1200px and 1400px - Prevent overlapping */
@media (min-width: 1201px) and (max-width: 1350px) {
    .phusa-header-wrapper {
        width: 90%;
        max-width: calc(100vw - 20px);
    }
    
    .phusa-header-top {
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .phusa-logo-header {
        min-width: 130px;
        max-width: 150px;
        flex-shrink: 0;
    }
    
    .phusa-logo-header img {
        height: 42px;
        max-width: 150px;
    }
    
    .phusa-header-content > nav {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 420px);
    }
    
    .phusa-nav-menu {
        gap: 16px;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .phusa-nav-menu a {
        font-size: 15.5px;
        padding: 0 2px;
        white-space: nowrap;
    }
    
    .phusa-nav-menu a i {
        font-size: 10px;
    }
    
    .phusa-header-content {
        gap: 14px;
    }
    
    .phusa-search-box {
        flex-shrink: 0;
        min-width: 130px;
    }
    
    .phusa-search-box input {
        width: 125px;
        font-size: 13px;
        padding: 10px 15px 10px 38px;
    }
    
    .phusa-search-box input:focus {
        width: 175px;
    }
    
    .phusa-header-actions {
        gap: 8px;
        flex-shrink: 0;
        min-width: 200px;
    }
    
    .phusa-btn-login,
    .phusa-btn-profile,
    .phusa-btn-cart {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Keep text visible on larger screens (1201px-1350px) */
    .phusa-btn-login span,
    .phusa-btn-profile span {
        display: inline;
    }
    
    .phusa-btn-login i,
    .phusa-btn-profile i,
    .phusa-btn-cart i {
        font-size: 15px;
    }
    
    .phusa-language-toggle {
        width: 72px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .phusa-toggle-slider {
        width: 30px;
        height: 30px;
    }
    
    .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
        left: 38px;
    }
    
    .phusa-lang-option {
        font-size: 12px;
        padding: 4px 5px;
    }
}

/* Laptop - Giữ nguyên kích thước header khi zoom - Expanded range */
@media (min-width: 1025px) and (max-width: 1680px) and (min-height: 700px) and (max-height: 1080px) {
    .phusa-header-wrapper {
        left: 50%;
        right: auto;
        /* Adaptive width based on screen size */
        width: 90%;
        max-width: calc(100vw - 20px);
        /* Đảm bảo wrapper không bị scale, chỉ translate để center */
        transform: translateX(-50%) !important;
    }
    
    .phusa-header-top {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 75px !important;
        min-height: 75px !important;
        max-height: 75px !important;
        padding: 0 clamp(22px, 3vw, 30px) !important;
        box-sizing: border-box !important;
        /* Transform scale sẽ được apply bởi JavaScript để đảo ngược zoom */
        transform-origin: center top;
        /* Đảm bảo header không bị ảnh hưởng bởi zoom của body */
        position: relative;
        z-index: 1001;
        /* Force layout để tránh reflow */
        will-change: transform;
    }
    
    .phusa-header-content {
        height: 100% !important;
        min-height: 75px !important;
        max-height: 75px !important;
    }
    
    /* Đảm bảo các elements bên trong cũng giữ nguyên kích thước */
    .phusa-header-top * {
        box-sizing: border-box;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 18px);
    }
    
    .phusa-header-top {
        padding: 0 22px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        gap: 18px;
        flex-wrap: nowrap;
    }
    
    .phusa-nav-menu a {
        font-size: 15.5px;
        padding: 0 2px;
    }
    
    .phusa-search-box input {
        width: 130px;
        font-size: 13px;
    }
    
    .phusa-search-box input:focus {
        width: 170px;
    }
    
    .phusa-logo-header {
        min-width: 130px;
        max-width: 180px;
    }
    
    .phusa-logo-header img {
        height: 42px;
        max-width: 150px;
    }
    
    .phusa-header-content {
        gap: 15px;
    }
    
    .phusa-header-actions {
        gap: 10px;
    }
    
    .phusa-btn-login,
    .phusa-btn-profile,
    .phusa-btn-cart {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .phusa-language-toggle {
        width: 80px;
        height: 38px;
    }
    
    .phusa-toggle-slider {
        width: 32px;
        height: 32px;
    }
    
    .phusa-toggle-slider span {
        font-size: 13px;
    }
    
    .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
        left: 43px;
    }
    
    .phusa-lang-option {
        font-size: 13px;
        padding: 5px 7px;
    }
}

/* Medium Tablet - Bridge between 1200px and 1024px */
@media (max-width: 1100px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 18px);
    }
    
    .phusa-header-top {
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .phusa-nav-menu a {
        font-size: 15px;
        padding: 0 2px;
    }
    
    .phusa-search-box input {
        width: 120px;
        font-size: 13px;
        height: 40px;
    }
    
    .phusa-search-box input:focus {
        width: 160px;
    }
    
    .phusa-logo-header {
        min-width: 120px;
        max-width: 160px;
    }
    
    .phusa-logo-header img {
        height: 40px;
        max-width: 140px;
    }
    
    .phusa-header-content {
        gap: 12px;
    }
    
    .phusa-header-actions {
        gap: 8px;
    }
    
    .phusa-btn-login,
    .phusa-btn-profile,
    .phusa-btn-cart {
        padding: 9px 13px;
        font-size: 13px;
        height: 40px;
    }
    
    .phusa-btn-login i,
    .phusa-btn-profile i,
    .phusa-btn-cart i {
        font-size: 14px;
    }
    
    .phusa-language-toggle {
        width: 75px;
        height: 36px;
    }
    
    .phusa-toggle-slider {
        width: 30px;
        height: 30px;
    }
    
    .phusa-toggle-slider span {
        font-size: 12px;
    }
    
    .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
        left: 40px;
    }
    
    .phusa-lang-option {
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* Specific breakpoint for 1045px screens */
@media (max-width: 1045px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 18px);
    }
    
    .phusa-header-top {
        padding: 0 18px;
        box-sizing: border-box;
    }
    
    .phusa-nav-menu {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .phusa-nav-menu a {
        font-size: 14.5px;
        padding: 0 1px;
    }
    
    .phusa-search-box input {
        width: 110px;
        font-size: 12px;
        height: 38px;
    }
    
    .phusa-search-box input:focus {
        width: 160px;
    }
    
    .phusa-logo-header {
        min-width: 110px;
        max-width: 140px;
    }
    
    .phusa-logo-header img {
        height: 38px;
        max-width: 130px;
    }
    
    .phusa-header-content {
        gap: 10px;
    }
    
    .phusa-header-actions {
        gap: 7px;
    }
    
    .phusa-btn-login,
    .phusa-btn-profile,
    .phusa-btn-cart {
        padding: 8px 12px;
        font-size: 13px;
        height: 38px;
    }
    
    .phusa-btn-login i,
    .phusa-btn-profile i,
    .phusa-btn-cart i {
        font-size: 14px;
    }
    
    .phusa-language-toggle {
        width: 72px;
        height: 34px;
    }
    
    .phusa-toggle-slider {
        width: 28px;
        height: 28px;
    }
    
    .phusa-toggle-slider span {
        font-size: 11px;
    }
    
    .phusa-language-toggle.phusa-en-active .phusa-toggle-slider {
        left: 39px;
    }
    
    .phusa-lang-option {
        font-size: 11px;
        padding: 3px 5px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 16px);
        top: 8px;
    }
    
    .phusa-header-top {
        height: auto;
        min-height: 60px;
        border-radius: 35px;
        padding: 12px 18px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    
    .phusa-logo-header {
        min-width: 100px;
        max-width: calc(100% - 70px);
        flex-shrink: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 40px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }
    
    .phusa-nav-menu {
        display: none !important;
    }
    
    .phusa-login-btn,
    .phusa-cart-btn,
    .phusa-search-box,
    .phusa-language-toggle {
        display: none !important;
    }
    
    .phusa-mobile-toggle {
        display: flex !important;
        flex-shrink: 0;
        margin-left: auto;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Ensure dropdown doesn't show on tablet */
    .phusa-dropdown-menu {
        display: none !important;
    }
    
    /* Ensure header actions are hidden */
    .phusa-header-actions {
        display: none !important;
    }
    
    /* Adjust content spacing for tablet */
    .main-wrapper {
        margin-top: 95px;
    }
    
    /* Tablet spacing for all page types */
    .product-container,
    .product-catalogue,
    .page-wrapper,
    .page-breadcrumb,
    .page-agency,
    .panel-agency,
    .panel-body,
    .uk-container-center,
    .contact-container,
    .distribution-container,
    .post-container,
    .blog-container,
    .news-container,
    .about-container,
    .service-container,
    .workshop-container,
    .lab-container,
    .order-container,
    .cart-container,
    .auth-container {
        margin-top: 25px;
    }
    
    /* Tablet spacing for special cases */
    body.auth-page,
    body.login-page,
    body.register-page {
        padding-top: 110px;
    }
    
    .lab-booking-page,
    .checkin-page {
        padding-top: 100px;
    }
    
    .full-width-page,
    .modal-page,
    .popup-page {
        margin-top: 100px;
    }
    
    [main-content],
    .page-content,
    .blog-post,
    .news-article,
    .post-content,
    .contact-form,
    .about-content,
    .service-content {
        margin-top: 25px;
    }
}

/* Mobile Landscape & Small Tablet */
@media (max-width: 768px) {
    .phusa-header-wrapper {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 16px);
    }
    
    .phusa-header-top {
        border-radius: 30px;
        padding: 10px 16px;
        min-height: 60px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }
    
    .phusa-logo-header {
        min-width: 90px;
        max-width: calc(100% - 65px);
        flex-shrink: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 38px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }
    
    .phusa-nav-menu {
        display: none !important;
    }
    
    .phusa-login-btn,
    .phusa-cart-btn,
    .phusa-search-box,
    .phusa-language-toggle {
        display: none !important;
    }
    
    .phusa-header-actions {
        display: none !important;
    }
    
    .phusa-mobile-toggle {
        display: flex !important;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .phusa-mobile-toggle span {
        width: 26px;
        height: 3px;
    }
    
    .phusa-mobile-sidebar {
        width: 300px;
        max-width: 85vw;
        min-width: 260px;
    }
    
    /* Responsive Social Sidebar trên mobile */
    .phusa-social-sidebar {
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        gap: 0.5rem;
        z-index: 999;
    }
    
    .phusa-social-toggle {
        width: 42px;
        height: 42px;
        box-shadow: 0 3px 10px rgba(244, 118, 62, 0.4);
    }
    
    .phusa-social-toggle i {
        font-size: 15px;
    }
    
    .phusa-social-icon {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    /* Mặc định collapsed trên mobile */
    .phusa-social-sidebar .phusa-social-icons {
        opacity: 0;
        transform: translateX(-100%);
        pointer-events: none;
    }
    
    .phusa-social-sidebar .phusa-social-toggle i {
        transform: rotate(180deg);
    }
    
    /* Adjust content spacing for mobile */
    .main-wrapper {
        margin-top: 95px;
    }
    
    /* Mobile spacing for all page types */
    .product-container,
    .product-catalogue,
    .page-wrapper,
    .page-breadcrumb,
    .page-agency,
    .panel-agency,
    .panel-body,
    .uk-container-center,
    .contact-container,
    .distribution-container,
    .post-container,
    .blog-container,
    .news-container,
    .about-container,
    .service-container,
    .workshop-container,
    .lab-container,
    .order-container,
    .cart-container,
    .auth-container {
        margin-top: 25px;
    }
    
    /* Mobile spacing for special cases */
    body.auth-page,
    body.login-page,
    body.register-page {
        padding-top: 110px;
    }
    
    .lab-booking-page,
    .checkin-page {
        padding-top: 100px;
    }
    
    .full-width-page,
    .modal-page,
    .popup-page {
        margin-top: 100px;
    }
    
    [main-content],
    .page-content,
    .blog-post,
    .news-article,
    .post-content,
    .contact-form,
    .about-content,
    .service-content {
        margin-top: 25px;
    }
}

/* Bridge between 768px and 480px */
@media (max-width: 600px) {
    .phusa-header-wrapper {
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 14px);
    }
    
    .phusa-header-top {
        border-radius: 28px;
        padding: 9px 15px;
        min-height: 60px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        gap: 11px;
        align-items: center;
        justify-content: space-between;
    }
    
    .phusa-logo-header {
        min-width: 85px;
        max-width: calc(100% - 60px);
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 36px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }
    
    .phusa-mobile-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .phusa-mobile-toggle span {
        width: 25px;
        height: 3px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .phusa-header-wrapper {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 12px);
    }
    
    .phusa-header-top {
        border-radius: 25px;
        padding: 8px 14px;
        min-height: 60px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }
    
    .phusa-logo-header {
        min-width: 80px;
        max-width: calc(100% - 55px);
        flex-shrink: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 35px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }
    
    .phusa-nav-menu {
        display: none !important;
    }
    
    .phusa-login-btn,
    .phusa-cart-btn,
    .phusa-search-box,
    .phusa-language-toggle {
        display: none !important;
    }
    
    .phusa-header-actions {
        display: none !important;
    }
    
    .phusa-mobile-toggle {
        display: flex !important;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .phusa-mobile-toggle span {
        width: 24px;
        height: 3px;
    }
    
    .phusa-mobile-sidebar {
        width: 85%;
        max-width: 280px;
        min-width: 240px;
    }
    
    .phusa-mobile-sidebar-content {
        padding: 85px 18px 18px;
    }
    
    /* Adjust content spacing for small mobile */
    .main-wrapper {
        margin-top: 85px;
    }
    
    /* Small mobile spacing for all page types */
    .product-container,
    .product-catalogue,
    .page-wrapper,
    .page-breadcrumb,
    .page-agency,
    .panel-agency,
    .panel-body,
    .uk-container-center,
    .contact-container,
    .distribution-container,
    .post-container,
    .blog-container,
    .news-container,
    .about-container,
    .service-container,
    .workshop-container,
    .lab-container,
    .order-container,
    .cart-container,
    .auth-container {
        margin-top: 20px;
    }
    
    /* Small mobile spacing for special cases */
    body.auth-page,
    body.login-page,
    body.register-page {
        padding-top: 100px;
    }
    
    .lab-booking-page,
    .checkin-page {
        padding-top: 95px;
    }
    
    .full-width-page,
    .modal-page,
    .popup-page {
        margin-top: 95px;
    }
    
    [main-content],
    .page-content,
    .blog-post,
    .news-article,
    .post-content,
    .contact-form,
    .about-content,
    .service-content {
        margin-top: 20px;
    }
}

/* Bridge between 480px and 360px */
@media (max-width: 400px) {
    .phusa-header-wrapper {
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 10px);
    }
    
    .phusa-header-top {
        border-radius: 22px;
        padding: 7px 12px;
        min-height: 60px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        gap: 9px;
        align-items: center;
        justify-content: space-between;
    }
    
    .phusa-logo-header {
        min-width: 72px;
        max-width: calc(100% - 51px);
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 32px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }
    
    .phusa-mobile-toggle {
        padding: 7px;
        min-width: 42px;
        min-height: 42px;
        flex-shrink: 0;
    }
    
    .phusa-mobile-toggle span {
        width: 23px;
        height: 2.8px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .phusa-header-wrapper {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: calc(100vw - 10px);
        top: 3px;
    }
    
    .phusa-header-top {
        padding: 6px 10px;
        min-height: 60px;
        border-radius: 20px;
        box-sizing: border-box;
    }
    
    .phusa-header-content {
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }
    
    .phusa-logo-header {
        min-width: 65px;
        max-width: calc(100% - 48px);
        flex-shrink: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    
    .phusa-logo-header img {
        height: 30px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
        display: block;
    }
    
    .phusa-nav-menu {
        display: none !important;
    }
    
    .phusa-login-btn,
    .phusa-cart-btn,
    .phusa-search-box,
    .phusa-language-toggle {
        display: none !important;
    }
    
    .phusa-header-actions {
        display: none !important;
    }
    
    .phusa-mobile-toggle {
        display: flex !important;
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .phusa-mobile-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .phusa-mobile-sidebar {
        width: 90%;
        max-width: 260px;
        min-width: 200px;
    }
    
    .phusa-mobile-sidebar-content {
        padding: 75px 12px 12px;
    }
    
    .main-wrapper {
        margin-top: 75px;
    }
    
    /* Extra small mobile spacing */
    .product-container,
    .product-catalogue,
    .page-wrapper,
    .page-breadcrumb,
    .page-agency,
    .panel-agency,
    .panel-body,
    .uk-container-center,
    .contact-container,
    .distribution-container,
    .post-container,
    .blog-container,
    .news-container,
    .about-container,
    .service-container,
    .workshop-container,
    .lab-container,
    .order-container,
    .cart-container,
    .auth-container {
        margin-top: 15px;
    }
    
    body.auth-page,
    body.login-page,
    body.register-page {
        padding-top: 90px;
    }
    
    .lab-booking-page,
    .checkin-page {
        padding-top: 85px;
    }
    
    .full-width-page,
    .modal-page,
    .popup-page {
        margin-top: 85px;
    }
    
    [main-content],
    .page-content,
    .blog-post,
    .news-article,
    .post-content,
    .contact-form,
    .about-content,
    .service-content {
        margin-top: 15px;
    }
}

/* ===== PRODUCT DROPDOWN MENU ===== */
.phusa-dropdown {
    position: relative;
    z-index: 1001;
}

.phusa-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 1001;
    margin-top: 5px;
    padding: 20px 0 15px 0;
    padding-top: 25px;
    list-style: none;
    margin-left: 0;
    pointer-events: none;
}

/* Create invisible bridge between menu item and submenu - Tăng chiều cao để dễ di chuyển chuột */
.phusa-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -10px;
    right: -10px;
    height: 25px;
    background: transparent;
    pointer-events: auto;
}

.phusa-dropdown:hover .phusa-dropdown-menu,
.phusa-dropdown.active .phusa-dropdown-menu,
.phusa-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Giữ dropdown mở khi hover vào dropdown menu */
.phusa-dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Ensure bridge area is also hoverable */
.phusa-dropdown:hover .phusa-dropdown-menu::before,
.phusa-dropdown-menu::before {
    pointer-events: auto;
}

.phusa-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phusa-dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.phusa-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.phusa-dropdown-menu li a:hover,
.phusa-dropdown-item:hover {
    background: #f8f9fa;
    color: #72ACD6;
    text-decoration: none;
}

.phusa-dropdown-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #72ACD6;
    flex-shrink: 0;
}

.phusa-dropdown-item:hover i {
    color: #5a8bb8;
}

.phusa-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phusa-dropdown-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.phusa-dropdown-desc {
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

.phusa-dropdown-item:hover .phusa-dropdown-title {
    color: #72ACD6;
}

.phusa-dropdown-item:hover .phusa-dropdown-desc {
    color: #5a8bb8;
}

/* ===== SUBMENU (Cấp 3+) ===== */
.phusa-dropdown-sub {
    position: relative;
}

.phusa-dropdown-menu-sub {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 5px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 1002;
    padding: 20px 0 15px 0;
    padding-left: 10px;
    list-style: none;
    pointer-events: none;
}

/* Bridge area cho submenu */
.phusa-dropdown-menu-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: 100%;
    width: 15px;
    height: 100%;
    background: transparent;
    pointer-events: auto;
}

.phusa-dropdown-sub:hover .phusa-dropdown-menu-sub,
.phusa-dropdown-menu-sub:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Giữ submenu mở khi hover vào submenu */
.phusa-dropdown-menu-sub:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.phusa-dropdown-menu-sub li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phusa-dropdown-menu-sub li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.phusa-dropdown-menu-sub li a:hover {
    background: #f8f9fa;
    color: #72ACD6;
    text-decoration: none;
}

.phusa-dropdown-toggle-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.phusa-dropdown-toggle-sub i {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.phusa-dropdown-sub:hover .phusa-dropdown-toggle-sub i {
    transform: translateX(3px);
}

/* Mobile dropdown adjustments */
@media (max-width: 1024px) {
    .phusa-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        border-radius: 10px;
        padding: 10px 0;
    }
    
    .phusa-dropdown-item {
        color: white;
        padding: 10px 20px;
    }
    
    .phusa-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .phusa-dropdown-item i {
        color: white;
    }
    
    .phusa-dropdown-item:hover i {
        color: white;
    }
}

/* ===== MOBILE DROPDOWN MENU ===== */
.phusa-mobile-dropdown {
    position: relative;
}

.phusa-mobile-dropdown-menu {
    display: none;
    background: rgba(27, 46, 89, 0.08);
    border-radius: 10px;
    margin: 10px 0;
    padding: 10px 0;
    margin-left: 20px;
    list-style: none;
}

.phusa-mobile-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.phusa-mobile-dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #1B2E59;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.phusa-mobile-dropdown-menu li a:hover {
    background: rgba(79, 195, 212, 0.15);
    color: #4FC3D4;
    text-decoration: none;
}

.phusa-mobile-dropdown.active .phusa-mobile-dropdown-menu {
    display: block;
}

.phusa-mobile-dropdown.active .phusa-mobile-dropdown-toggle i {
    transform: rotate(90deg);
}

.phusa-mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #1B2E59;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.phusa-mobile-dropdown-item:hover {
    background: rgba(79, 195, 212, 0.15);
    color: #4FC3D4;
    text-decoration: none;
}

.phusa-mobile-dropdown-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #1B2E59;
    flex-shrink: 0;
}

.phusa-mobile-dropdown-item:hover i {
    color: #4FC3D4;
}

.phusa-mobile-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phusa-mobile-dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #1B2E59;
}

.phusa-mobile-dropdown-desc {
    font-size: 12px;
    color: rgba(27, 46, 89, 0.7);
}

.phusa-mobile-dropdown-item:hover .phusa-mobile-dropdown-title {
    color: #4FC3D4;
}

.phusa-mobile-dropdown-item:hover .phusa-mobile-dropdown-desc {
    color: rgba(79, 195, 212, 0.9);
}

