/* ==========================================================================
   NANO BEAUTY LIFE - UNIFIED FRONTEND LAYOUT & SHARED COMPONENT STYLES
   Refined Architectural Luxury Theme (Navy/Cyan with Crisp 6px-10px Corners)
   ========================================================================== */
:root {
    --nano-navy: #0f4c81;
    --nano-navy-dark: #082949;
    --nano-navy-deep: #051b30;
    --nano-navy-btn: #0b3d68;
    --nano-blue: #0284c7;
    --nano-cyan: #00a8ff;
    --nano-cyan-glow: rgba(0, 168, 255, 0.35);
    --nano-active-blue: #1664be;
    --nano-active-gradient: linear-gradient(180deg, #1976d2 0%, #115293 100%);
    --nano-accent-cyan: #00a8ff;
    --nano-gold: #f59e0b;
    --nano-gold-light: #fbbf24;
    --nano-ice: #f0f7ff;
    --nano-ice-light: #f8fbff;
    --nano-cart-bg: #e6f4fe;
    --nano-badge-red: #e11d48;
    --nano-text-dark: #1e293b;
    --nano-text-menu: #1e293b;
    --nano-gray: #64748b;
    --nano-border: #e2e8f0;
    --nano-card-border: rgba(15, 76, 129, 0.12);
    --nano-radius-xs: 4px;
    --nano-radius-sm: 6px;
    --nano-radius-md: 8px;
    --nano-radius-lg: 10px;
    --nano-shadow-sm: 0 2px 10px rgba(15, 76, 129, 0.05);
    --nano-shadow-md: 0 6px 20px rgba(15, 76, 129, 0.09);
    --nano-shadow-lg: 0 12px 32px rgba(15, 76, 129, 0.13);
}

/* Shared UI Component: Breadcrumb */
.nano-breadcrumb-wrap {
    margin-bottom: 22px;
}
.nano-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
    flex-wrap: wrap;
}
.nano-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.nano-breadcrumb a:hover {
    color: var(--nano-navy);
}
.nano-breadcrumb .active {
    color: var(--nano-navy);
    font-weight: 700;
}

/* Shared UI Component: Section Header */
.nano-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.nano-section-badge {
    display: inline-block;
    background: rgba(0, 168, 255, 0.1);
    color: var(--nano-blue);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: var(--nano-radius-xs);
    margin-bottom: 10px;
    border: 1px solid rgba(0, 168, 255, 0.22);
}
.nano-section-title {
    font-family: 'Playfair Display', 'Montserrat', serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--nano-navy);
    margin-bottom: 12px;
    line-height: 1.25;
}
.nano-section-subtitle {
    font-size: 15px;
    color: var(--nano-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Product Card Action Buttons --- */
        .nano-card-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            margin-top: auto;
        }
        .nano-card-btn-cart {
            width: 42px;
            height: 40px;
            min-width: 42px;
            border-radius: 8px;
            background: #f0f7ff;
            border: 1.5px solid rgba(15, 76, 129, 0.25);
            color: #0f4c81;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.25s ease;
            padding: 0;
            flex-shrink: 0;
            outline: none;
        }
        .nano-card-btn-cart:hover:not(:disabled) {
            background: #0f4c81;
            color: #ffffff;
            border-color: #0f4c81;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
        }
        .nano-card-btn-cart:active {
            transform: scale(0.96);
        }
        .nano-card-btn-cart:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none;
        }
        .nano-card-btn-buy {
            flex: 1;
            height: 40px;
            border-radius: 8px;
            background: linear-gradient(135deg, #0f4c81 0%, #00a8ff 100%);
            color: #ffffff !important;
            border: none;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 4px 14px rgba(0, 168, 255, 0.3);
            padding: 0 14px;
            white-space: nowrap;
            text-decoration: none !important;
            outline: none;
        }
        .nano-card-btn-buy:hover:not(:disabled) {
            background: linear-gradient(135deg, #092f52 0%, #0284c7 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 168, 255, 0.45);
            color: #ffffff !important;
        }
        .nano-card-btn-buy:active {
            transform: scale(0.98);
        }
        .nano-card-btn-buy:disabled {
            opacity: 0.75;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }
        @media (max-width: 767.98px) {
            .nano-card-actions {
                gap: 6px;
            }
            .nano-card-btn-cart {
                width: 36px;
                height: 36px;
                min-width: 36px;
                font-size: 16px;
            }
            .nano-card-btn-buy {
                height: 36px;
                font-size: 11px;
                padding: 0 6px;
                letter-spacing: 0.2px;
                gap: 4px;
            }
            .nano-card-btn-buy i {
                font-size: 12px;
            }
        }
/* --- Main Header & Navigation Drawer --- */
    :root {
        --nano-navy: #0f4c81;
        --nano-navy-dark: #092f52;
        --nano-navy-btn: #0b3d68;
        --nano-active-blue: #1664be;
        --nano-active-gradient: linear-gradient(180deg, #1976d2 0%, #115293 100%);
        --nano-accent-cyan: #00a8ff;
        --nano-cart-bg: #e6f4fe;
        --nano-badge-red: #e11d48;
        --nano-text-dark: #1e293b;
        --nano-text-menu: #1e293b;
        --nano-border: #e2e8f0;
    }

    /* HEADER MAIN WRAPPER */
    .nano-main-header {
        position: sticky;
        top: 0;
        z-index: 1050;
        background: #ffffff;
        box-shadow: 0 2px 15px rgba(15, 76, 129, 0.08);
        border-bottom: 1px solid rgba(15, 76, 129, 0.06);
        width: 100%;
    }

    .nano-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 30px;
        max-width: 1480px;
        margin: 0 auto;
        width: 100%;
        gap: 15px;
    }

    /* LOGO */
    .nano-brand-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none !important;
        flex-shrink: 0;
    }

    .nano-brand-icon {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .nano-brand-icon svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 2px 5px rgba(15, 76, 129, 0.25));
    }

    .nano-brand-info {
        display: flex;
        flex-direction: column;
    }

    .nano-brand-name {
        font-family: 'Playfair Display', 'Montserrat', serif;
        font-size: 20px;
        font-weight: 800;
        color: var(--nano-navy);
        letter-spacing: 0.8px;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .nano-brand-slogan {
        font-family: 'Great Vibes', 'Playfair Display', cursive, italic;
        font-size: 14px;
        color: #5c8bb3;
        letter-spacing: 0.5px;
        line-height: 1.1;
        margin-top: 1px;
        white-space: nowrap;
    }

    /* NAVBAR MENU - SINGLE LINE */
    .nano-navbar-nav {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .nano-nav-link-item {
        position: relative;
        flex-shrink: 0;
    }

    .nano-nav-link-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 9px 16px;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 800;
        color: var(--nano-text-menu);
        text-decoration: none !important;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-radius: 8px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }

    .nano-nav-link-btn:hover {
        color: var(--nano-navy);
        background: #f0f7ff;
    }

    /* ACTIVE MENU PILL */
    .nano-nav-link-item.active .nano-nav-link-btn,
    .nano-nav-link-btn.active-pill {
        background: var(--nano-active-gradient) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(22, 100, 190, 0.35);
    }

    .nano-nav-link-btn i.dropdown-caret {
        font-size: 10px;
        margin-left: 5px;
        transition: transform 0.25s ease;
    }

    .nano-nav-link-item:hover .nano-nav-link-btn i.dropdown-caret {
        transform: rotate(180deg);
    }

    /* DROPDOWN SUBMENU */
    .nano-submenu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 260px;
        width: max-content;
        max-width: 320px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 12px 35px rgba(15, 76, 129, 0.16);
        border: 1px solid rgba(15, 76, 129, 0.1);
        padding: 10px 0;
        margin-top: 4px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 1000;
        list-style: none;
    }

    .nano-nav-link-item:hover .nano-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nano-submenu-link {
        display: flex;
        align-items: center;
        padding: 10px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    .nano-submenu-link:hover,
    .nano-submenu-link.active {
        background-color: #f0f7ff;
        color: var(--nano-navy);
        padding-left: 24px;
    }

    /* RIGHT ACTIONS (AUTH & CART) */
    .nano-actions-group {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    /* CART BUTTON */
    .nano-cart-circle-btn {
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: var(--nano-cart-bg);
        color: var(--nano-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        font-size: 18px;
        transition: all 0.25s ease;
        border: 1px solid rgba(0, 168, 255, 0.15);
    }

    .nano-cart-circle-btn:hover {
        background-color: var(--nano-navy);
        color: #ffffff;
        transform: scale(1.06);
    }

    .nano-cart-count-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--nano-badge-red);
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        padding: 0 4px;
    }

    /* AUTH BUTTONS: ĐĂNG NHẬP / ĐĂNG KÝ / USER / LOGOUT */
    .nano-header-auth,
    .nano-auth-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nano-btn-login {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        background: transparent;
        color: var(--nano-navy) !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-radius: 8px;
        text-decoration: none !important;
        border: 1.5px solid var(--nano-navy);
        transition: all 0.25s ease;
        white-space: nowrap;
    }

    .nano-btn-login:hover {
        background: #f0f7ff;
        color: var(--nano-navy-dark) !important;
        transform: translateY(-1px);
    }

    .nano-btn-register {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        background: var(--nano-navy-btn);
        color: #ffffff !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-radius: 8px;
        text-decoration: none !important;
        border: 1.5px solid var(--nano-navy-btn);
        box-shadow: 0 4px 12px rgba(11, 61, 104, 0.28);
        transition: all 0.25s ease;
        white-space: nowrap;
    }

    .nano-btn-register:hover {
        background: var(--nano-navy-dark);
        border-color: var(--nano-navy-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(11, 61, 104, 0.38);
    }

    /* LOGGED IN USER STATE */
    .nano-btn-user {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 16px;
        background: #f0f7ff;
        color: var(--nano-navy) !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 700;
        border-radius: 8px;
        text-decoration: none !important;
        border: 1px solid rgba(15, 76, 129, 0.2);
        transition: all 0.25s ease;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nano-btn-user span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
        display: inline-block;
        vertical-align: middle;
    }

    .nano-btn-user:hover {
        background: #e0f2fe;
        color: var(--nano-navy-dark) !important;
        transform: translateY(-1px);
    }

    .nano-btn-logout {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 9px 14px;
        background: #fee2e2;
        color: #b91c1c !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 12.5px;
        font-weight: 700;
        border-radius: 8px;
        text-decoration: none !important;
        border: 1px solid #fecaca;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

    .nano-btn-logout:hover {
        background: #ef4444;
        color: #ffffff !important;
        border-color: #ef4444;
        transform: translateY(-1px);
    }

    .nano-search-trigger-btn,
    .nano-hamburger-btn {
        display: none;
        background: #f0f7ff;
        border: 1px solid rgba(15, 76, 129, 0.12);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        color: var(--nano-navy);
        cursor: pointer;
        transition: all 0.25s ease;
        padding: 0;
    }

    .nano-search-trigger-btn:hover,
    .nano-hamburger-btn:hover {
        background: var(--nano-navy);
        color: #ffffff;
        transform: scale(1.05);
    }

    /* MOBILE SEARCH DROPDOWN BAR */
    .nano-mobile-search-box {
        display: none;
        background: #ffffff;
        padding: 10px 16px;
        border-top: 1px solid rgba(15, 76, 129, 0.08);
        border-bottom: 1px solid rgba(15, 76, 129, 0.12);
        box-shadow: 0 4px 15px rgba(15, 76, 129, 0.06);
    }

    .nano-mobile-search-box.open {
        display: block;
        animation: slideDownSearch 0.25s ease-out;
    }

    @keyframes slideDownSearch {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nano-mobile-search-form {
        display: flex;
        align-items: center;
        background: #f1f5f9;
        border-radius: 8px;
        padding: 4px 6px 4px 14px;
        border: 1.5px solid transparent;
        transition: all 0.2s ease;
    }

    .nano-mobile-search-form:focus-within {
        background: #ffffff;
        border-color: var(--nano-navy);
        box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
    }

    .nano-mobile-search-form i {
        color: #64748b;
        font-size: 15px;
        margin-right: 8px;
    }

    .nano-mobile-search-input {
        border: none;
        background: transparent;
        font-size: 13.5px;
        color: #1e293b;
        width: 100%;
        outline: none;
        font-family: 'Montserrat', sans-serif;
    }

    .nano-mobile-search-submit {
        background: linear-gradient(135deg, #0f4c81 0%, #00a8ff 100%);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 6px 14px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* MOBILE DRAWER: HIDE ON DESKTOP STRICTLY */
    .nano-mobile-drawer,
    .nano-drawer-overlay {
        display: none !important;
    }

    /* RESPONSIVE BREAKPOINTS */
    @media (max-width: 1360px) {
        .nano-header-container {
            padding: 12px 18px;
            gap: 10px;
        }
        .nano-navbar-nav {
            gap: 6px;
        }
        .nano-nav-link-btn {
            padding: 8px 11px;
            font-size: 12px;
        }
        .nano-brand-name {
            font-size: 17px;
        }
        .nano-btn-login,
        .nano-btn-register {
            padding: 8px 14px;
            font-size: 12px;
        }
    }

    @media (max-width: 991.98px) {
        .nano-navbar-nav {
            display: none !important;
        }
        .nano-header-auth,
        .nano-auth-wrap {
            display: none !important;
        }
        .nano-search-trigger-btn,
        .nano-hamburger-btn {
            display: inline-flex !important;
        }
        .nano-header-container {
            padding: 10px 16px;
            gap: 8px;
        }
        .nano-actions-group {
            gap: 8px;
        }

        /* ENABLE MOBILE DRAWER ON MOBILE */
        .nano-mobile-drawer {
            display: flex !important;
            position: fixed;
            top: 0;
            left: -330px;
            width: min(320px, calc(100vw - 45px));
            height: 100vh;
            background: #ffffff;
            z-index: 10000;
            box-shadow: 6px 0 30px rgba(15, 76, 129, 0.2);
            transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            flex-direction: column;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .nano-mobile-drawer.open {
            left: 0;
        }

        .nano-drawer-overlay {
            display: block !important;
            position: fixed;
            inset: 0;
            background: rgba(15, 76, 129, 0.45);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .nano-drawer-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* DRAWER HEADER */
        .nano-drawer-top {
            background: linear-gradient(135deg, #0f4c81 0%, #082a4a 100%);
            color: #ffffff;
            padding: 24px 20px 20px;
            position: relative;
        }

        .nano-drawer-brand-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .nano-drawer-brand-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none !important;
            color: #ffffff;
        }

        .nano-drawer-close {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .nano-drawer-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        /* DRAWER USER CARD */
        .nano-drawer-user-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 14px;
        }

        .nano-drawer-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nano-drawer-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00a8ff 0%, #38bdf8 100%);
            color: #082949;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 800;
            border: 2px solid #ffffff;
            flex-shrink: 0;
        }

        .nano-drawer-guest-btns {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .nano-drawer-btn-login {
            flex: 1;
            padding: 8px 12px;
            border-radius: 8px;
            background: #ffffff;
            color: #0f4c81 !important;
            font-weight: 800;
            font-size: 12px;
            text-align: center;
            text-decoration: none !important;
            text-transform: uppercase;
        }

        .nano-drawer-btn-reg {
            flex: 1;
            padding: 8px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.4);
            font-weight: 700;
            font-size: 12px;
            text-align: center;
            text-decoration: none !important;
            text-transform: uppercase;
        }

        /* DRAWER BODY & MENU LIST */
        .nano-drawer-body {
            padding: 18px 16px;
            flex: 1;
            overflow-y: auto;
        }

        .nano-drawer-section-title {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: #94a3b8;
            margin: 14px 8px 8px;
        }

        .nano-mobile-menu-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .nano-mobile-menu-list li a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 11px 14px;
            font-size: 13.5px;
            font-weight: 700;
            color: #334155;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .nano-mobile-menu-list li a .nav-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nano-mobile-menu-list li a i.menu-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: #f0f7ff;
            color: var(--nano-navy);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.2s;
        }

        .nano-mobile-menu-list li a:hover,
        .nano-mobile-menu-list li.active a {
            background-color: #f0f7ff;
            color: var(--nano-navy);
        }

        .nano-mobile-menu-list li.active a i.menu-icon {
            background: var(--nano-navy);
            color: #ffffff;
        }

        .nano-menu-badge-hot {
            font-size: 10px;
            font-weight: 800;
            background: #ef4444;
            color: #ffffff;
            padding: 2px 7px;
            border-radius: 6px;
            text-transform: uppercase;
        }

        .nano-menu-badge-new {
            font-size: 10px;
            font-weight: 800;
            background: #0284c7;
            color: #ffffff;
            padding: 2px 7px;
            border-radius: 6px;
            text-transform: uppercase;
        }

        /* DRAWER FOOTER */
        .nano-drawer-footer {
            padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
        }

        .nano-drawer-hotline-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 11px;
            border-radius: 8px;
            background: linear-gradient(135deg, #0f4c81 0%, #00a8ff 100%);
            color: #ffffff !important;
            font-weight: 800;
            font-size: 13px;
            text-decoration: none !important;
            box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
            margin-bottom: 8px;
        }

        .nano-drawer-zalo-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            background: #ffffff;
            color: #0284c7 !important;
            border: 1.5px solid #0284c7;
            font-weight: 700;
            font-size: 13px;
            text-decoration: none !important;
        }
    }

    @media (max-width: 576px) {
        .nano-header-container {
            padding: 8px 12px;
        }
        .nano-brand-name {
            font-size: 15px !important;
            letter-spacing: 0.2px;
        }
        .nano-brand-slogan {
            font-size: 10px !important;
        }
        .nano-brand-icon {
            width: 36px !important;
            height: 36px !important;
        }
        .nano-cart-circle-btn,
        .nano-search-trigger-btn,
        .nano-hamburger-btn {
            width: 36px !important;
            height: 36px !important;
            font-size: 16px !important;
        }
    }
/* --- Footer & Floating Actions --- */
    :root {
        --nano-navy-dark: #072542;
        --nano-navy-deep: #04172a;
        --nano-cyan: #00a8ff;
        --nano-cyan-light: #38bdf8;
        --nano-gold: #f59e0b;
        --nano-text-light: #cbd5e1;
    }

    /* FOOTER WRAPPER */
    .nano-footer-wrapper {
        background: linear-gradient(180deg, #092c4f 0%, #04172a 100%);
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        position: relative;
        overflow: hidden;
        border-top: 3px solid #00a8ff;
    }

    .nano-footer-wrapper::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -100px;
        width: 450px;
        height: 450px;
        background: radial-gradient(circle, rgba(0, 168, 255, 0.12) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    /* NEWSLETTER BANNER (TOP) */
    .nano-newsletter-section {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 35px 0;
    }

    .nano-newsletter-title {
        font-family: 'Playfair Display', serif;
        font-size: 22px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .nano-newsletter-sub {
        font-size: 13.5px;
        color: #94a3b8;
        margin: 0;
    }

    .nano-newsletter-form {
        display: flex;
        align-items: center;
        background: #ffffff;
        border-radius: 8px;
        padding: 5px 6px 5px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .nano-newsletter-input {
        border: none;
        outline: none;
        font-size: 13.5px;
        color: #1e293b;
        width: 100%;
        background: transparent;
    }

    .nano-newsletter-btn {
        background: linear-gradient(135deg, #0f4c81 0%, #00a8ff 100%);
        color: #ffffff !important;
        border: none;
        border-radius: 8px;
        padding: 10px 24px;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .nano-newsletter-btn:hover {
        background: linear-gradient(135deg, #092f52 0%, #1565c0 100%);
        box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
    }

    /* MAIN FOOTER COLUMNS */
    .nano-footer-body {
        padding: 60px 0 45px;
    }

    .nano-footer-brand-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none !important;
        margin-bottom: 16px;
    }

    .nano-footer-brand-title {
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 0.8px;
        line-height: 1.1;
    }

    .nano-footer-brand-slogan {
        font-family: 'Great Vibes', cursive;
        font-size: 15px;
        color: #38bdf8;
        letter-spacing: 0.5px;
    }

    .nano-footer-about-text {
        font-size: 13px;
        color: #94a3b8;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .nano-footer-socials {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nano-social-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s ease;
    }

    .nano-social-circle:hover {
        background: #00a8ff;
        color: #ffffff;
        border-color: #00a8ff;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
    }

    /* FOOTER HEADINGS */
    .nano-footer-col-title {
        font-family: 'Playfair Display', serif;
        font-size: 16px;
        font-weight: 800;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 22px;
        position: relative;
        padding-bottom: 10px;
    }

    .nano-footer-col-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 35px;
        height: 2px;
        background: #00a8ff;
        border-radius: 2px;
    }

    .nano-footer-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nano-footer-menu li {
        margin-bottom: 11px;
    }

    .nano-footer-menu a {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 13.5px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.25s ease;
    }

    .nano-footer-menu a:hover {
        color: #38bdf8;
        transform: translateX(4px);
    }

    /* CONTACT INFO IN FOOTER */
    .nano-footer-hotline-box {
        background: rgba(0, 168, 255, 0.1);
        border: 1px solid rgba(0, 168, 255, 0.25);
        border-radius: 8px;
        padding: 14px 18px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nano-hotline-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f59e0b;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    }

    .nano-hotline-label {
        font-size: 11.5px;
        color: #94a3b8;
        text-transform: uppercase;
        font-weight: 700;
    }

    .nano-hotline-number {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        font-weight: 800;
        color: #ffffff;
        text-decoration: none;
    }

    .nano-footer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
        color: #cbd5e1;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .nano-footer-contact-item i {
        color: #38bdf8;
        font-size: 15px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* COPYRIGHT BOTTOM BAR */
    .nano-footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
        font-size: 12.5px;
        color: #94a3b8;
    }

    .nano-trust-pill-list {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .nano-trust-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11.5px;
        color: #38bdf8;
        font-weight: 700;
    }

    /* FLOATING QUICK CONTACT BUTTONS & BACK TO TOP */
    .nano-floating-actions {
        position: fixed;
        right: 20px;
        bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 999;
    }

    .nano-float-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        font-size: 20px;
        border: none;
        cursor: pointer;
    }

    .nano-float-btn:hover {
        transform: scale(1.12);
        color: #ffffff;
    }

    .nano-float-zalo {
        background: #0084ff;
    }

    .nano-float-messenger {
        background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #9000FF 100%);
    }

    .nano-float-phone {
        background: #0f4c81;
    }

    .nano-back-top-btn {
        background: rgba(255, 255, 255, 0.95);
        color: #0f4c81;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin: 0 auto;
        border: 1px solid rgba(15, 76, 129, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        pointer-events: none;
    }

    .nano-back-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nano-back-top-btn.show:hover {
        background: #0f4c81;
        color: #ffffff;
        transform: translateY(-3px);
    }

    @media (max-width: 991px) {
        .nano-floating-actions {
            right: 14px;
            bottom: calc(75px + env(safe-area-inset-bottom, 0px));
            gap: 8px;
            z-index: 1020;
        }
        /* Ẩn các nút chat nổi trên mobile để không che khuất nội dung thẻ; Bottom Nav đã có sẵn nút Zalo Tư Vấn chính giữa */
        .nano-floating-actions .nano-float-btn {
            display: none !important;
        }
        .nano-back-top-btn {
            width: 38px;
            height: 38px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        }
        .nano-footer-body {
            padding: 30px 0 20px !important;
        }
        .nano-newsletter-section {
            padding: 22px 0 !important;
        }
        .nano-newsletter-title {
            font-size: 18px !important;
        }
        .nano-footer-wrapper {
            padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
        }
    }
/* --- Mobile Bottom Navigation --- */
    /* =========================================================
       NANO BEAUTY - MOBILE BOTTOM NAVIGATION BAR (APP-LIKE)
       ========================================================= */
    .nano-bottom-nav {
        display: none;
    }

    @media (max-width: 991px) {
        .nano-bottom-nav {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            height: calc(62px + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-top: 1px solid rgba(15, 76, 129, 0.12);
            box-shadow: 0 -4px 20px rgba(15, 76, 129, 0.08);
            z-index: 1040;
            align-items: center;
            justify-content: space-around;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nano-bottom-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
            color: #64748b;
            padding: 6px 2px;
            position: relative;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
            min-width: 0;
        }

        .nano-bottom-nav-icon-wrap {
            position: relative;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2px;
            transition: transform 0.2s ease;
        }

        .nano-bottom-nav-icon-wrap i {
            font-size: 20px;
            line-height: 1;
            transition: all 0.2s ease;
        }

        .nano-bottom-nav-label {
            font-family: 'Montserrat', sans-serif;
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: 0.2px;
            line-height: 1.2;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            transition: color 0.2s ease;
        }

        /* ACTIVE STATE */
        .nano-bottom-nav-item.active {
            color: var(--nano-navy, #0f4c81);
        }

        .nano-bottom-nav-item.active .nano-bottom-nav-icon-wrap {
            transform: translateY(-2px);
        }

        .nano-bottom-nav-item.active .nano-bottom-nav-icon-wrap i {
            color: #0284c7;
            filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.4));
        }

        .nano-bottom-nav-item.active .nano-bottom-nav-label {
            color: #0f4c81;
            font-weight: 800;
        }

        .nano-bottom-nav-item.active::after {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 3px;
            border-radius: 0 0 4px 4px;
            background: linear-gradient(90deg, #0284c7, #00a8ff);
        }

        /* CART BADGE IN BOTTOM NAV */
        .nano-bottom-cart-badge {
            position: absolute;
            top: -4px;
            right: -8px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            background: #ef4444;
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #ffffff;
            padding: 0 4px;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
            animation: pulseCart 3s infinite;
        }

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

        /* SPECIAL CENTER / HIGHLIGHT ITEM (ZALO / HOTLINE) */
        .nano-bottom-nav-center {
            position: relative;
        }

        .nano-bottom-nav-center .nano-bottom-nav-icon-wrap {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0f4c81 0%, #00a8ff 100%);
            color: #ffffff;
            margin-top: -16px;
            box-shadow: 0 6px 18px rgba(0, 168, 255, 0.45);
            border: 3px solid #ffffff;
        }

        .nano-bottom-nav-center .nano-bottom-nav-icon-wrap i {
            color: #ffffff !important;
            font-size: 21px;
        }

        .nano-bottom-nav-center .nano-bottom-nav-label {
            color: #0f4c81;
            font-weight: 800;
            margin-top: 2px;
        }
    }
