/* 8648 Platform Header v2 */
:root {
    --pfh-bg: rgba(10, 15, 29, .94);
    --pfh-line: rgba(255,255,255,.10);
    --pfh-text: #f8fafc;
    --pfh-muted: #aeb7c6;
    --pfh-purple: #8b5cf6;
}

.pf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--pfh-text);
    background:
        linear-gradient(90deg, rgba(17,24,39,.96), rgba(30,27,75,.96)),
        var(--pfh-bg);
    border-bottom: 1px solid var(--pfh-line);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(2,6,23,.16);
}

.pf-header-shell {
    width: min(1440px, calc(100% - 28px));
    min-height: 74px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr minmax(210px, 285px);
    align-items: center;
    gap: 24px;
}

.pf-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.pf-header-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(139,92,246,.28), rgba(59,130,246,.14));
    border: 1px solid rgba(255,255,255,.14);
}

.pf-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pf-header-logo-fallback {
    display: none;
    align-items: center;
    font-weight: 900;
    letter-spacing: -.06em;
}

.pf-header-logo-fallback b {
    color: #a78bfa;
}

.pf-header-brand-copy strong,
.pf-header-brand-copy small {
    display: block;
}

.pf-header-brand-copy strong {
    font-size: 18px;
    line-height: 1;
}

.pf-header-brand-copy small {
    margin-top: 4px;
    color: var(--pfh-muted);
    font-size: 11px;
    white-space: nowrap;
}

.pf-platform-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 74px;
}

.pf-home-link,
.pf-nav-trigger {
    min-height: 74px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    border: 0;
    color: #d8deea;
    background: transparent;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.pf-home-link:hover,
.pf-nav-trigger:hover,
.pf-home-link.is-current,
.pf-nav-group.is-current > .pf-nav-trigger {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.pf-nav-group {
    position: relative;
}

.pf-nav-group.is-current::after,
.pf-home-link.is-current::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.pf-home-link {
    position: relative;
}

.pf-nav-trigger svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .18s ease;
}

.pf-mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 1px);
    width: min(860px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.20);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(2,6,23,.28);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.pf-nav-group:hover .pf-mega-menu,
.pf-nav-group:focus-within .pf-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.pf-nav-group:hover .pf-nav-trigger svg,
.pf-nav-group:focus-within .pf-nav-trigger svg {
    transform: rotate(180deg);
}

.pf-mega-intro {
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.15), transparent 28%),
        linear-gradient(145deg, #312e81, #5b21b6);
}

.pf-mega-cosmetic .pf-mega-intro {
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(145deg, #9d174d, #7e22ce);
}

.pf-mega-food .pf-mega-intro {
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(145deg, #065f46, #0f766e);
}

.pf-mega-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    font-size: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.10);
}

.pf-mega-intro small,
.pf-mega-intro strong {
    display: block;
}

.pf-mega-intro small {
    color: rgba(255,255,255,.68);
    letter-spacing: .12em;
    font-weight: 900;
}

.pf-mega-intro strong {
    margin-top: 9px;
    font-size: 22px;
    line-height: 1.15;
}

.pf-mega-intro p {
    margin: 12px 0 20px;
    color: rgba(255,255,255,.76);
    line-height: 1.55;
    font-size: 13px;
}

.pf-mega-intro a {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.pf-mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    color: #111827;
}

.pf-mega-links b {
    display: block;
    margin-bottom: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 11px;
}

.pf-mega-links a {
    display: block;
    padding: 8px 0;
    color: #344054;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.pf-mega-links a:hover {
    color: #6d28d9;
}

.pf-header-search {
    display: grid;
    grid-template-columns: 1fr 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.07);
}

.pf-header-search input {
    min-width: 0;
    padding: 0 13px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.pf-header-search input::placeholder {
    color: #99a3b3;
}

.pf-header-search button {
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.pf-header-search svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.pf-mobile-toggle {
    display: none;
}

@media (max-width: 1180px) {
    .pf-header-shell {
        grid-template-columns: auto 1fr;
    }

    .pf-header-search {
        display: none;
    }
}

@media (max-width: 1080px) {
    .pf-header-shell {
        min-height: 68px;
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .pf-mobile-toggle {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 9px 11px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 11px;
        color: #fff;
        background: rgba(255,255,255,.06);
    }

    .pf-mobile-toggle span {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: currentColor;
    }

    .pf-mobile-toggle em {
        margin-left: 4px;
        font-style: normal;
        font-weight: 800;
    }

    .pf-platform-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        height: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        overflow: auto;
        max-height: calc(100vh - 92px);
        border: 1px solid rgba(148,163,184,.18);
        border-radius: 18px;
        background: #111827;
        box-shadow: 0 25px 70px rgba(2,6,23,.36);
    }

    .pf-platform-nav.is-open {
        display: flex;
    }

    .pf-home-link,
    .pf-nav-trigger {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 0 14px;
        border-radius: 10px;
    }

    .pf-nav-group.is-current::after,
    .pf-home-link.is-current::after {
        display: none;
    }

    .pf-mega-menu {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 0 10px;
        border-radius: 14px;
        box-shadow: none;
    }

    .pf-nav-group:hover .pf-mega-menu,
    .pf-nav-group:focus-within .pf-mega-menu {
        transform: none;
    }

    .pf-nav-group.is-open .pf-mega-menu {
        display: grid;
    }

    .pf-nav-group.is-open .pf-nav-trigger svg {
        transform: rotate(180deg);
    }

    .pf-mega-intro {
        padding: 22px;
    }

    .pf-mega-links {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 22px;
    }

    body.pf-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .pf-header-shell {
        width: min(100% - 18px, 1440px);
    }

    .pf-header-brand-copy {
        display: none;
    }

    .pf-mega-intro strong {
        font-size: 19px;
    }
}
