/* =========================================================
   PERFUMESIA — NAVBAR
   Version: 1.0
   Scope: .pf-navbar
   ========================================================= */
/* =========================================================
   PERFUMESIA NAVBAR
   ========================================================= */

.pf-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(14, 14, 14, 0.98),
            rgba(18, 18, 18, 0.96)
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pf-navbar [hidden] {
    display: none !important;
}


.pf-navbar__inner {
    width: min(100%, 1440px);

    min-height: 72px;

    margin: 0 auto;

    padding:
        0
        clamp(18px, 4vw, 52px);

    display: flex;
    align-items: center;

    gap: 28px;
}


/* =========================================================
   BRAND
   ========================================================= */

.pf-navbar__brand {
    flex: 0 0 auto;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


.pf-navbar__brand:hover {
    color: #00c896;
}


.pf-navbar__brand:focus-visible {
    outline: 2px solid #00c896;
    outline-offset: 5px;

    border-radius: 4px;
}


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

.pf-navbar__desktop {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.pf-navbar__link,
.pf-navbar__account-button {
    min-height: 42px;

    padding: 0 15px;

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

    gap: 7px;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: rgba(255, 255, 255, 0.78);

    font: inherit;
    font-size: 0.94rem;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

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


.pf-navbar__link:hover,
.pf-navbar__account-button:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.055);
}


.pf-navbar__link:active,
.pf-navbar__account-button:active {
    transform: translateY(1px);
}


.pf-navbar__link:focus-visible,
.pf-navbar__account-button:focus-visible {
    outline: 2px solid #00c896;
    outline-offset: 2px;
}


/* =========================================================
   ACTIVE
   ========================================================= */

.pf-navbar__link--active {
    color: #ffffff;

    background: rgba(0, 200, 150, 0.10);
}


.pf-navbar__link--active::after {
    content: "";

    position: absolute;
}


/* =========================================================
   CART
   ========================================================= */

.pf-navbar__cart {
    gap: 8px;
}


.pf-navbar__cart-icon {
    font-size: 1rem;
}


/* =========================================================
   ACCOUNT DESKTOP
   ========================================================= */

.pf-navbar__account {
    position: relative;
}


.pf-navbar__account-button {
    padding-right: 12px;
}


.pf-navbar__account-arrow {
    font-size: 0.78rem;

    opacity: 0.7;

    transition: transform 0.2s ease;
}


.pf-navbar__account.is-open .pf-navbar__account-arrow {
    transform: rotate(180deg);
}


.pf-navbar__dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    padding: 8px;

    background: #181818;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42);

    overflow: hidden;
}


.pf-navbar__dropdown-link {
    width: 100%;

    min-height: 44px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: rgba(255, 255, 255, 0.82);

    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;

    text-decoration: none;

    text-align: left;

    cursor: pointer;

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


.pf-navbar__dropdown-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);
}


.pf-navbar__logout {
    margin-top: 6px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: #ff8f8f;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.pf-navbar__toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: transparent;

    cursor: pointer;
}


.pf-navbar__toggle span {
    width: 22px;
    height: 2px;

    margin: 5px auto;

    display: block;

    background: #ffffff;

    border-radius: 999px;

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


.pf-navbar.is-open .pf-navbar__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.pf-navbar.is-open .pf-navbar__toggle span:nth-child(2) {
    opacity: 0;
}


.pf-navbar.is-open .pf-navbar__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


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

.pf-navbar__mobile {
    display: none;
}


.pf-navbar__mobile-account {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.pf-navbar__mobile-account-title {
    padding: 15px 14px 7px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}


.pf-navbar__mobile-link {
    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    display: flex;
    align-items: center;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: rgba(255, 255, 255, 0.84);

    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

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


.pf-navbar__mobile-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.055);
}


.pf-navbar__mobile-link--active {
    color: #ffffff;

    background: rgba(0, 200, 150, 0.10);
}


.pf-navbar__mobile-link--sub {
    padding-left: 24px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 0.92rem;
}


.pf-navbar__mobile-logout {
    color: #ff8f8f;
}


/* =========================================================
   BODY LOCK MOBILE
   ========================================================= */

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


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

@media (max-width: 700px) {

    .pf-navbar__inner {
        min-height: 66px;

        padding:
            env(safe-area-inset-top)
            18px
            0;
    }


    .pf-navbar__brand {
        font-size: 0.98rem;

        letter-spacing: 0.14em;
    }


    .pf-navbar__desktop {
        display: none;
    }


    .pf-navbar__toggle {
        display: block;
    }


    .pf-navbar__mobile {
        position: fixed;

        top: 66px;
        left: 0;
        right: 0;

        height: calc(100dvh - 66px);

        padding:
            12px
            16px
            calc(
                18px +
                env(safe-area-inset-bottom)
            );

        display: flex;
        flex-direction: column;

        gap: 5px;

        background: rgba(14, 14, 14, 0.995);

        border-top: 1px solid rgba(255, 255, 255, 0.06);

        transform: translateX(100%);

        visibility: hidden;
        pointer-events: none;

        overflow-y: auto;

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


    .pf-navbar.is-open .pf-navbar__mobile {
        transform: translateX(0);

        visibility: visible;
        pointer-events: auto;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .pf-navbar__inner {
        padding-left: 14px;
        padding-right: 14px;
    }


    .pf-navbar__brand {
        font-size: 0.90rem;

        letter-spacing: 0.11em;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

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

    .pf-navbar *,
    .pf-navbar *::before,
    .pf-navbar *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }

}