/* =========================
   MENU GLOBAL
========================= */

body.menu-open {
    overflow: hidden;
}


/* =========================
   SITE HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

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

    border-bottom:
        1px solid
        rgba(16, 40, 44, 0.07);

    backdrop-filter: blur(20px);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.985);

    box-shadow:
        0 14px 45px
        rgba(21, 58, 62, 0.08);
}


/* =========================
   MAIN NAVIGATION
========================= */

.main-navigation {
    min-height: 78px;

    display: grid;

    grid-template-columns:
        180px
        1fr
        auto;

    align-items: center;

    gap: 30px;
}


/* =========================
   LOGO
========================= */

.site-logo {
    width: 154px;

    display: inline-flex;
    align-items: center;
}

.site-logo img {
    display: block;

    width: 100%;
    height: 44px;

    object-fit: contain;
    object-position: left center;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.primary-navigation {
    height: 78px;

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

    gap: 3px;
}

.nav-item,
.nav-dropdown-trigger {
    position: relative;

    min-height: 42px;

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

    gap: 8px;

    padding: 0 15px;

    border: 0;
    border-radius: 999px;

    background: transparent;

    color: #617276;

    font:
        700
        13px
        'DM Sans',
        sans-serif;

    cursor: pointer;

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

.nav-item:hover,
.nav-dropdown-trigger:hover,
.nav-item.is-active,
.nav-dropdown.is-active .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: #10282c;
    background: #eff8f6;
}


/* Active dot */
.nav-item.is-active::after,
.nav-dropdown.is-active .nav-dropdown-trigger::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #50bba7;

    transform: translateX(-50%);
}


/* =========================
   PRODUCTS DROPDOWN
========================= */

.nav-dropdown {
    position: static;

    height: 78px;

    display: flex;
    align-items: center;
}


/* Invisible hover bridge */
.nav-dropdown::after {
    content: "";

    position: absolute;

    top: 58px;

    width: 115px;
    height: 28px;
}


/* Chevron */
.nav-chevron {
    width: 7px;
    height: 7px;

    margin-top: -3px;

    border-right:
        1.5px solid
        currentColor;

    border-bottom:
        1.5px solid
        currentColor;

    transform: rotate(45deg);

    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.is-open .nav-chevron {
    transform:
        translateY(3px)
        rotate(225deg);
}


/* =========================
   MEGA MENU
========================= */

.nav-mega-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 18px 0 25px;

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

    border-top:
        1px solid
        rgba(16, 40, 44, 0.04);

    border-bottom:
        1px solid
        rgba(16, 40, 44, 0.08);

    box-shadow:
        0 35px 70px
        rgba(22, 58, 62, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown.is-open .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* Mega menu wrapper */
.mega-menu-shell {
    width:
        min(
            1240px,
            calc(100% - 48px)
        );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        0.64fr
        1.7fr;

    gap: 18px;
}


/* =========================
   MEGA INTRO
========================= */

.mega-menu-intro {
    position: relative;

    min-height: 310px;

    overflow: hidden;

    padding: 34px;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(93, 202, 180, 0.2),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #eff9f6,
            #f9fcfb
        );
}

.mega-menu-intro::before {
    content: "";

    position: absolute;

    right: -45px;
    bottom: -70px;

    width: 190px;
    height: 190px;

    border:
        1px solid
        rgba(16, 40, 44, 0.07);

    border-radius: 50%;
}

.mega-eyebrow {
    position: relative;
    z-index: 1;

    display: block;

    margin-bottom: 18px;

    color: #389f94;

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

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.mega-menu-intro h3 {
    position: relative;
    z-index: 1;

    max-width: 300px;

    margin: 0 0 14px;

    color: #10282c;

    font:
        800
        31px / 1.08
        'Manrope',
        sans-serif;

    letter-spacing: -0.045em;
}

.mega-menu-intro h3 em {
    color: #50bba7;
    font-style: normal;
}

.mega-menu-intro p {
    position: relative;
    z-index: 1;

    max-width: 295px;

    margin: 0;

    color: #6a7c80;

    font-size: 13px;
    line-height: 1.7;
}

.mega-view-all {
    position: absolute;

    left: 34px;
    bottom: 31px;

    z-index: 1;

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

    gap: 10px;

    color: #10282c;

    font-size: 13px;
    font-weight: 800;
}

.mega-view-all span {
    transition: transform 0.22s ease;
}

.mega-view-all:hover span {
    transform: translateX(4px);
}


/* =========================
   MEGA PRODUCT GRID
========================= */

.mega-product-links {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


/* =========================
   PRODUCT CARD
========================= */

.mega-product-card {
    --menu-accent: #62c88d;
    --menu-soft: #edf9f1;

    position: relative;

    min-width: 0;

    overflow: hidden;

    padding: 18px;

    border:
        1px solid
        rgba(16, 40, 44, 0.075);

    border-radius: 25px;

    background: #ffffff;

    transition:
        transform 0.26s ease,
        border-color 0.26s ease,
        box-shadow 0.26s ease;
}

.mega-product-card:hover {
    z-index: 2;

    border-color:
        color-mix(
            in srgb,
            var(--menu-accent) 42%,
            transparent
        );

    box-shadow:
        0 24px 48px
        rgba(25, 74, 78, 0.11);

    transform: translateY(-5px);
}


/* Product colours */
.digestion-menu-card {
    --menu-accent: #62c88d;
    --menu-soft: #edf9f1;
}

.skin-menu-card {
    --menu-accent: #6fc7e8;
    --menu-soft: #edf9fe;
}

.women-menu-card {
    --menu-accent: #ca3a83;
    --menu-soft: #fcecf4;
}


/* =========================
   PRODUCT CARD TOP
========================= */

.mega-product-top {
    position: relative;
    z-index: 3;

    min-height: 24px;

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

    gap: 12px;
}

.mega-product-category {
    color: var(--menu-accent);

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

    letter-spacing: 0.13em;

    text-transform: uppercase;
}

.mega-product-arrow {
    width: 28px;
    height: 28px;

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

    border-radius: 50%;

    color: #10282c;
    background: var(--menu-soft);

    font-size: 12px;

    opacity: 0;

    transform: translate(-4px, 4px);

    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}

.mega-product-card:hover .mega-product-arrow {
    opacity: 1;

    transform: translate(0, 0);
}


/* =========================
   PRODUCT IMAGE
========================= */

.mega-product-image {
    position: relative;

    height: 160px;

    display: grid;
    place-items: center;

    margin: 9px 0 15px;

    overflow: hidden;

    border-radius: 19px;

    background: var(--menu-soft);
}

.mega-product-glow {
    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--menu-accent) 22%,
                transparent
            ),
            transparent 68%
        );
}

.mega-product-image img {
    position: relative;
    z-index: 1;

    width: 88%;
    height: 145px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 17px 15px
            rgba(16, 40, 44, 0.14)
        );

    transition: transform 0.3s ease;
}

.mega-product-card:hover .mega-product-image img {
    transform:
        translateY(-4px)
        scale(1.035);
}


/* =========================
   PRODUCT COPY
========================= */

.mega-product-copy strong,
.mega-product-copy span {
    display: block;
}

.mega-product-copy strong {
    margin-bottom: 7px;

    color: #10282c;

    font:
        700
        15px
        'Manrope',
        sans-serif;
}

.mega-product-copy span {
    min-height: 35px;

    color: #76888b;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}

.header-shop-link {
    min-height: 43px;

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

    gap: 8px;

    padding: 0 18px;

    border-radius: 999px;

    color: #ffffff;
    background: #10282c;

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

    transition:
        transform 0.22s ease,
        background 0.22s ease;
}

.header-shop-link:hover {
    background: #1a3b40;

    transform: translateY(-1px);
}

.header-shop-link span {
    transition: transform 0.22s ease;
}

.header-shop-link:hover span {
    transform: translateX(3px);
}


/* =========================
   MOBILE BUTTON
========================= */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #10282c;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 18px;
    height: 1.5px;

    margin: 5px auto;

    background: #ffffff;
}


/* =========================
   MOBILE NAVIGATION
========================= */

.mobile-navigation {
    position: fixed;

    inset: 0;

    z-index: 120;

    display: flex;
    flex-direction: column;

    padding: 25px 28px 30px;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(98, 200, 141, 0.12),
            transparent 28%
        ),
        #f8fcfb;

    opacity: 0;
    visibility: hidden;

    transform: translateX(100%);

    transition:
        opacity 0.32s ease,
        visibility 0.32s ease,
        transform 0.32s ease;
}

.mobile-navigation.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* Mobile top */
.mobile-navigation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    width: 145px;
}

.mobile-logo img {
    display: block;

    width: 100%;
    height: auto;
}


/* Close button */
.mobile-navigation-close {
    position: relative;

    width: 45px;
    height: 45px;

    border: 0;
    border-radius: 50%;

    background: #10282c;

    cursor: pointer;
}

.mobile-navigation-close span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 18px;
    height: 1.5px;

    background: #ffffff;
}

.mobile-navigation-close span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.mobile-navigation-close span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* Mobile links */
.mobile-navigation-links {
    display: flex;
    flex-direction: column;

    margin-top: 45px;

    overflow-y: auto;
}

.mobile-navigation-links > a,
.mobile-products-toggle {
    min-height: 58px;

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

    padding: 0;

    border: 0;
    border-bottom:
        1px solid
        rgba(16, 40, 44, 0.1);

    background: transparent;

    color: #10282c;

    font:
        700
        23px
        'Manrope',
        sans-serif;

    text-align: left;

    cursor: pointer;
}

.mobile-products-toggle span {
    font-size: 23px;
    font-weight: 400;

    transition: transform 0.3s ease;
}

.mobile-products-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
}


/* Mobile product submenu */
.mobile-product-submenu {
    max-height: 0;

    display: grid;

    gap: 8px;

    overflow: hidden;

    padding-left: 18px;

    opacity: 0;

    transition:
        max-height 0.3s ease,
        padding 0.3s ease,
        opacity 0.3s ease;
}

.mobile-product-submenu.is-open {
    max-height: 260px;

    padding-top: 13px;
    padding-bottom: 16px;

    opacity: 1;
}

.mobile-product-submenu a {
    min-height: 38px;

    display: flex;
    align-items: center;

    color: #62777a;

    font-size: 14px;
    font-weight: 700;
}

.mobile-product-submenu a:first-child {
    color: #50a994;
}


/* Mobile footer */
.mobile-navigation-footer {
    margin-top: auto;
    padding-top: 20px;
}

.mobile-navigation-footer a {
    min-height: 52px;

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

    padding: 0 18px;

    border-radius: 999px;

    background: #10282c;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1040px) {

    .main-navigation {
        grid-template-columns:
            155px
            1fr
            auto;

        gap: 18px;
    }

    .primary-navigation {
        gap: 0;
    }

    .nav-item,
    .nav-dropdown-trigger {
        padding: 0 10px;

        font-size: 12px;
    }

    .mega-menu-shell {
        width:
            min(
                960px,
                calc(100% - 34px)
            );

        grid-template-columns:
            0.58fr
            1.7fr;
    }

    .mega-menu-intro {
        padding: 27px;
    }

    .mega-menu-intro h3 {
        font-size: 27px;
    }

    .mega-view-all {
        left: 27px;
    }

    .mega-product-card {
        padding: 14px;
    }

    .mega-product-image {
        height: 145px;
    }

    .mega-product-image img {
        height: 130px;
    }

}


/* =========================
   MOBILE BREAKPOINT
========================= */

@media (max-width: 900px) {

    .main-navigation {
        min-height: 70px;

        grid-template-columns:
            1fr
            auto;
    }

    .primary-navigation,
    .header-shop-link {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .site-logo {
        width: 142px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 560px) {

    .main-navigation {
        min-height: 66px;
    }

    .site-logo {
        width: 132px;
    }

    .mobile-navigation {
        padding:
            21px
            20px
            24px;
    }

    .mobile-navigation-links {
        margin-top: 35px;
    }

    .mobile-navigation-links > a,
    .mobile-products-toggle {
        min-height: 55px;

        font-size: 21px;
    }

}

/* =========================
   ANNOUNCEMENT BAR
========================= */

.announcement-bar {
    position: relative;
    z-index: 110;
    background: #10282c;
    color: #ffffff;
}

.announcement-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
}

.announcement-inner > span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.announcement-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.announcement-inner a {
    color: #ffffff;
    font-weight: 700;
}

.announcement-inner a:hover {
    color: #9be0d4;
}