/* =========================================================
   DENTOT.VN - FLOATING GLASS HEADER
   ========================================================= */

:root {
    --dt-primary: #ff7300;
    --dt-primary-light: #ff9d00;
    --dt-accent: #ffc342;

    --dt-text: #202020;
    --dt-dark: #161616;

    --dt-header-font-size: 15px;

    --dt-glass: rgba(255, 255, 255, 0.9);
    --dt-glass-sticky: rgba(255, 255, 255, 0.95);

    --dt-radius: 24px;
    --dt-radius-sticky: 19px;

    --dt-shadow:
        0 16px 50px rgba(20, 20, 20, 0.075),
        0 4px 15px rgba(20, 20, 20, 0.035);

    --dt-shadow-sticky:
        0 14px 40px rgba(20, 20, 20, 0.11),
        0 4px 16px rgba(255, 115, 0, 0.06);

    --mx: 50%;
    --my: 50%;
}


/* =========================================================
   1. RESET FLATSOME HEADER
   ========================================================= */

#header,
#header .header-wrapper {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#header {
    overflow: visible;
}

#header .header-wrapper {
    padding-top: 16px;
    overflow: visible;

    transition:
        padding-top 0.35s cubic-bezier(.2, .8, .2, 1);
}


/* Xóa line mặc định của Flatsome */

#header .top-divider {
    display: none !important;
}

#header #masthead>.header-inner+.container {
    display: none !important;
}

#header .header-bg-container,
#header .header-bg-image,
#header .header-bg-color {
    display: none !important;
}


/* =========================================================
   2. FLOATING GLASS CONTAINER
   ========================================================= */

#header #masthead {
    position: relative;
    isolation: isolate;

    width: min(1320px, calc(100% - 36px));
    min-height: 86px;

    margin-inline: auto;

    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: var(--dt-radius);

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.84) 55%,
            rgba(255, 249, 242, 0.88) 100%) !important;

    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);

    box-shadow: var(--dt-shadow) !important;

    overflow: visible;

    transition:
        width 0.35s cubic-bezier(.2, .8, .2, 1),
        min-height 0.35s cubic-bezier(.2, .8, .2, 1),
        border-radius 0.35s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s ease,
        background 0.35s ease;
}


/* =========================================================
   3. SPOTLIGHT
   ========================================================= */

#header #masthead::before {
    content: "";

    position: absolute;
    z-index: 0;

    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    background:
        radial-gradient(520px circle at var(--mx) var(--my),
            rgba(255, 166, 35, 0.15),
            transparent 43%);
}


/* =========================================================
   4. PREMIUM LIGHT LINE
   Chỉ nằm trong floating header
   ========================================================= */

#header #masthead::after {
    content: "";

    position: absolute;
    z-index: 3;

    left: 18%;
    right: 18%;
    bottom: 0;

    height: 2px;

    pointer-events: none;

    border-radius: 999px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 115, 0, 0.15),
            rgba(255, 157, 0, 0.55),
            rgba(255, 195, 66, 0.95),
            rgba(255, 157, 0, 0.55),
            rgba(255, 115, 0, 0.15),
            transparent);

    box-shadow:
        0 0 10px rgba(255, 145, 0, 0.18);
}


/* =========================================================
   5. HEADER INNER
   ========================================================= */

#header .header-inner {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: none;

    min-height: 84px;

    padding-inline: 26px;

    background: transparent;

    transition:
        min-height 0.35s cubic-bezier(.2, .8, .2, 1),
        padding 0.35s cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   6. LOGO
   ========================================================= */

#header #logo {
    position: relative;
    z-index: 10;

    margin-right: 20px;
}

#header #logo>a {
    display: flex;
    align-items: center;
}

#header #logo img {
    display: block;

    width: clamp(175px, 12vw, 210px) !important;
    height: auto !important;

    max-height: 56px !important;

    object-fit: contain;

    transition:
        width 0.35s cubic-bezier(.2, .8, .2, 1),
        transform 0.3s ease,
        filter 0.3s ease;
}

@media (hover: hover) {

    #header #logo>a:hover img {
        transform: translateY(-1px) scale(1.025);

        filter:
            drop-shadow(0 6px 9px rgba(255, 115, 0, 0.12));
    }

}


/* =========================================================
   7. DESKTOP NAV
   ========================================================= */

#header .hide-for-medium.flex-left.flex-grow {
    display: flex;
    align-items: center;
}

#header .header-nav-main {
    align-items: center;
}

#header .header-nav-main.nav-left {
    display: flex;
    align-items: center;

    gap: 3px;
}

#header .header-nav-main>li {
    position: relative;

    margin: 0;
}


/* =========================================================
   8. MENU TEXT
   >>> FONT SIZE 15PX <<<
   ========================================================= */

#header .header-nav-main>li>a.nav-top-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding-inline: 15px;

    border-radius: 13px;

    color: var(--dt-text);

    font-size: var(--dt-header-font-size);
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.01em;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


/* Menu underline */

#header .header-nav-main>li>a.nav-top-link::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;
    bottom: 5px;

    height: 2px;

    border-radius: 99px;

    background:
        linear-gradient(90deg,
            var(--dt-primary),
            var(--dt-accent));

    box-shadow:
        0 0 8px rgba(255, 133, 0, 0.25);

    opacity: 0;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   9. MENU HOVER
   ========================================================= */

@media (hover: hover) {

    #header .header-nav-main>li:hover>a.nav-top-link {
        color: var(--dt-primary);

        background:
            linear-gradient(135deg,
                rgba(255, 115, 0, 0.075),
                rgba(255, 195, 66, 0.035));
    }

    #header .header-nav-main>li:hover>a.nav-top-link::after {
        opacity: 1;
        transform: scaleX(1);
    }

}


/* =========================================================
   10. ACTIVE MENU
   ========================================================= */

#header .header-nav-main>li.active>a.nav-top-link,
#header .header-nav-main>li.current-menu-item>a.nav-top-link {
    color: var(--dt-primary);

    background:
        linear-gradient(135deg,
            rgba(255, 115, 0, 0.09),
            rgba(255, 195, 66, 0.045));
}

#header .header-nav-main>li.active>a.nav-top-link::after,
#header .header-nav-main>li.current-menu-item>a.nav-top-link::after {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   11. RIGHT AREA
   ========================================================= */

#header .hide-for-medium.flex-right {
    margin-left: 15px;
}

#header .header-nav-main.nav-right {
    display: flex;
    align-items: center;
}


/* =========================================================
   12. CTA
   >>> FONT SIZE 15PX <<<
   ========================================================= */

#header .html.header-button-1,
#header .html.header-button-1 .header-button {
    margin: 0;
}

#header .html.header-button-1 .button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin: 0;

    padding-inline: 23px;

    overflow: hidden;

    border: 0 !important;
    border-radius: 15px !important;

    color: #fff !important;

    background:
        linear-gradient(135deg,
            #ff7100,
            #ff8d00 55%,
            #ffa817) !important;

    box-shadow:
        0 9px 24px rgba(255, 115, 0, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);

    font-size: var(--dt-header-font-size);
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.01em;

    text-transform: uppercase;

    transition:
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

#header .html.header-button-1 .button span {
    position: relative;
    z-index: 2;

    white-space: nowrap;
}


/* Shine */

#header .html.header-button-1 .button::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: -70%;
    left: -60%;

    width: 35%;
    height: 240%;

    transform: rotate(22deg);

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.62),
            transparent);

    transition:
        left 0.65s cubic-bezier(.2, .8, .2, 1);
}

@media (hover: hover) {

    #header .html.header-button-1 .button:hover {
        color: #fff !important;

        box-shadow:
            0 13px 30px rgba(255, 115, 0, 0.31),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

    #header .html.header-button-1 .button:hover::before {
        left: 135%;
    }

}


/* =========================================================
   13. CTA / CART DIVIDER
   ========================================================= */

#header .header-divider {
    width: 1px !important;
    height: 29px !important;

    margin-inline: 15px !important;

    border: 0 !important;

    background: rgba(20, 20, 20, 0.09) !important;

    opacity: 1 !important;
}


/* =========================================================
   14. CART
   ========================================================= */

#header .cart-item .header-button {
    margin: 0;
}

#header .cart-item .header-cart-link {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    min-width: 48px;

    margin: 0;
    padding: 0 !important;

    border: 1px solid rgba(255, 115, 0, 0.13) !important;
    border-radius: 15px !important;

    color: var(--dt-primary) !important;

    background:
        linear-gradient(145deg,
            rgba(255, 115, 0, 0.09),
            rgba(255, 195, 66, 0.035)) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 5px 16px rgba(0, 0, 0, 0.04);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

#header .cart-item .header-cart-link i {
    font-size: 20px;
}

@media (hover: hover) {

    #header .cart-item .header-cart-link:hover {
        color: #fff !important;

        background:
            linear-gradient(135deg,
                var(--dt-primary),
                var(--dt-primary-light)) !important;

        box-shadow:
            0 10px 25px rgba(255, 115, 0, 0.25);
    }

}


/* Cart badge */

#header .cart-item i[data-icon-label]::after {
    min-width: 17px;
    height: 17px;

    padding-inline: 3px;

    line-height: 13px;

    font-size: 9px;
    font-weight: 800;

    color: #fff;

    background:
        linear-gradient(135deg,
            var(--dt-primary),
            var(--dt-primary-light));

    border: 2px solid #fff;

    box-shadow:
        0 3px 8px rgba(255, 115, 0, 0.3);
}


/* =========================================================
   15. DROPDOWN
   ========================================================= */

#header .nav-dropdown {
    margin-top: 10px;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    box-shadow:
        0 20px 50px rgba(20, 20, 20, 0.13);
}

#header .nav-dropdown>li>a {
    margin-block: 2px;

    padding: 11px 14px;

    border: 0 !important;
    border-radius: 10px;

    font-size: 15px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

#header .nav-dropdown>li>a:hover {
    padding-left: 18px;

    color: var(--dt-primary);

    background: rgba(255, 115, 0, 0.07);
}


/* =========================================================
   16. STICKY
   ========================================================= */

#header .header-wrapper.stuck {
    padding-top: 8px !important;

    background: transparent !important;
    box-shadow: none !important;
}

#header .header-wrapper.stuck #masthead {
    width: min(1260px, calc(100% - 28px));

    min-height: 70px;

    border-radius: var(--dt-radius-sticky);

    background:
        rgba(255, 255, 255, 0.95) !important;

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    box-shadow:
        var(--dt-shadow-sticky) !important;
}

#header .header-wrapper.stuck .header-inner {
    min-height: 68px;

    padding-inline: 23px;
}

#header .header-wrapper.stuck #logo img {
    width: clamp(155px, 11vw, 180px) !important;
}

#header .header-wrapper.stuck .header-nav-main>li>a.nav-top-link {
    min-height: 42px;
}

#header .header-wrapper.stuck .html.header-button-1 .button {
    min-height: 44px;

    padding-inline: 20px;
}

#header .header-wrapper.stuck .cart-item .header-cart-link {
    width: 44px;
    height: 44px;

    min-width: 44px;
}


/* =========================================================
   17. TABLET + MOBILE
   ========================================================= */

@media screen and (max-width: 849px) {

    #header .header-wrapper {
        padding-top: 9px;
    }

    #header #masthead {
        width: calc(100% - 16px);

        min-height: 66px;

        border-radius: 19px;

        background:
            rgba(255, 255, 255, 0.95) !important;

        box-shadow:
            0 9px 28px rgba(20, 20, 20, 0.085) !important;
    }

    #header #masthead::after {
        left: 32%;
        right: 32%;
    }

    #header .header-inner {
        min-height: 64px;

        padding-inline: 10px;
    }


    /* Logo giữa */

    #header .medium-logo-center #logo {
        position: absolute;
        z-index: 5;

        top: 50%;
        left: 50%;

        margin: 0;

        transform: translate(-50%, -50%);
    }

    #header #logo img {
        width: 153px !important;

        max-height: 43px !important;
    }


    /* Left / Right */

    #header .show-for-medium.flex-left,
    #header .show-for-medium.flex-right {
        position: relative;
        z-index: 10;

        min-width: 46px;
    }

    #header .show-for-medium.flex-right {
        margin-left: auto;
    }


    /* Hamburger */

    #header .mobile-nav .nav-icon>a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 43px;
        height: 43px;

        padding: 0 !important;

        border: 1px solid rgba(20, 20, 20, 0.055);
        border-radius: 13px;

        color: var(--dt-dark);

        background:
            rgba(20, 20, 20, 0.035);

        transition:
            color 0.2s ease,
            background 0.2s ease,
            transform 0.2s ease;
    }

    #header .mobile-nav .nav-icon>a:active {
        color: #fff;

        background: var(--dt-primary);

        transform: scale(0.92);
    }

    #header .mobile-nav .icon-menu {
        font-size: 21px;
    }

    #header .mobile-nav,
    #header .mobile-nav>li {
        margin: 0;
    }


    /* Cart */

    #header .mobile-nav .cart-item .header-cart-link {
        width: 43px;
        height: 43px;

        min-width: 43px;

        border-radius: 13px !important;
    }


    /* Sticky mobile */

    #header .header-wrapper.stuck {
        padding-top: 6px !important;
    }

    #header .header-wrapper.stuck #masthead {
        width: calc(100% - 12px);

        min-height: 61px;

        border-radius: 17px;

        box-shadow:
            0 9px 28px rgba(20, 20, 20, 0.12) !important;
    }

    #header .header-wrapper.stuck .header-inner {
        min-height: 59px;
    }

    #header .header-wrapper.stuck #logo img {
        width: 140px !important;
    }

}


/* =========================================================
   18. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 480px) {

    #header #masthead {
        width: calc(100% - 12px);
    }

    #header #logo img {
        width: 138px !important;
    }

    #header .mobile-nav .nav-icon>a,
    #header .mobile-nav .cart-item .header-cart-link {
        width: 40px;
        height: 40px;

        min-width: 40px;
    }

    #header .header-inner {
        padding-inline: 8px;
    }

    #header #masthead::after {
        left: 36%;
        right: 36%;
    }

}


/* =========================================================
   19. VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 360px) {

    #header #logo img {
        width: 125px !important;
    }

}


/* =========================================================
   20. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #header *,
    #header *::before,
    #header *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}

.absolute-footer.dark.medium-text-center.small-text-center {
    display: none !important;
}