.pet-site {
    --luna-ink: rgb(48, 56, 64);
    --luna-ink-muted: rgba(48, 56, 64, 0.52);
    --luna-gold: rgb(240, 184, 88);
    --luna-teal: rgb(104, 168, 168);
    --luna-mint: rgb(202, 226, 218);
    --luna-cream: rgb(249, 247, 241);
    --pet-nav-height: 6rem;
    padding-top: var(--pet-nav-height);
}

.pet-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
}

@media (min-width: 1024px) {
    .pet-nav-shell {
        position: relative;
    }

    .pet-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .pet-nav-actions {
        justify-self: end;
    }

    .pet-nav-logout {
        flex: 0 0 2.9rem;
        padding: 0;
    }
}

.pet-nav-search {
    align-items: center;
    display: flex;
    position: relative;
}

.pet-nav-search-input {
    width: 0;
    min-width: 0;
    height: 2.9rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--pet-forest);
    font-size: 0.86rem;
    opacity: 0;
    padding: 0;
    transition:
        width 180ms ease,
        opacity 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        padding 180ms ease;
}

.pet-nav-search[data-search-state='open'] .pet-nav-search-input,
.pet-nav-search:focus-within .pet-nav-search-input {
    width: min(17rem, 24vw);
    border-color: rgba(18, 37, 31, 0.14);
    box-shadow: 0 18px 42px -28px rgba(12, 19, 16, 0.34);
    opacity: 1;
    padding-inline: 1rem 3.1rem;
}

.pet-nav-search-toggle {
    flex: 0 0 2.9rem;
}

.pet-nav-search[data-search-state='open'] .pet-nav-search-toggle,
.pet-nav-search:focus-within .pet-nav-search-toggle {
    position: absolute;
    right: 0;
}

@media (max-width: 767px) {
    .pet-nav-search[data-search-state='open'] .pet-nav-search-input,
    .pet-nav-search:focus-within .pet-nav-search-input {
        position: fixed;
        top: calc(var(--pet-nav-height) - 0.75rem);
        left: 1rem;
        right: 1rem;
        z-index: 80;
        width: auto;
        padding-inline: 1rem;
    }
}

.pet-site[data-nav-mode='overlay'] {
    padding-top: 0;
}

.pet-nav-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.pet-nav-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    color: rgba(19, 32, 27, 0.54);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pet-nav-promo-label {
    color: rgba(19, 32, 27, 0.48);
}

.pet-nav-promo-market {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(18, 37, 31, 0.14);
    border-radius: 9999px;
    background: transparent;
    color: rgba(19, 32, 27, 0.68);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.pet-nav-promo-market:focus {
    outline: none;
    border-color: rgba(19, 32, 27, 0.3);
}

.pet-nav-brand {
    text-decoration: none;
}

.pet-nav-brand-mark {
    display: inline-flex;
    width: 3.45rem;
    height: 3.45rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.45rem;
    border: 1px solid rgba(18, 37, 31, 0.12);
    border-radius: 9999px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 44%),
        linear-gradient(145deg, #ffffff, var(--luna-cream));
    box-shadow:
        inset 0 0 0 0.45rem rgba(202, 226, 218, 0.22),
        0 14px 32px -24px rgba(18, 37, 31, 0.45);
}

.pet-nav-brand-symbol {
    width: 2.72rem;
    height: 2.72rem;
    display: block;
    overflow: visible;
}

.pet-logo-orbit {
    fill: none;
    stroke: rgba(104, 168, 168, 0.28);
    stroke-width: 1.4;
}

.pet-logo-bone {
    fill: var(--luna-gold);
    stroke: var(--luna-ink);
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.pet-logo-bone-shine {
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-linecap: round;
    stroke-width: 3.2;
}

.pet-logo-dot {
    fill: var(--luna-teal);
}

.pet-nav-brand-kicker {
    color: var(--luna-ink-muted);
    line-height: 1.2;
}

.pet-nav-brand-wordmark {
    display: block;
    margin-top: 0.05rem;
    color: var(--luna-ink);
    font-family: "Fredoka", "Arial Rounded MT Bold", "Nunito", "Manrope", system-ui, sans-serif;
    font-size: 2.34rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.94;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
}

.pet-wordmark-luna,
.pet-wordmark-petia {
    display: inline-block;
}

.pet-wordmark-luna {
    color: var(--luna-ink);
}

.pet-wordmark-petia {
    color: var(--luna-teal);
    margin-left: -0.02em;
}

.pet-nav-brand-wordmark::selection,
.pet-nav-brand-wordmark *::selection {
    background: rgba(104, 168, 168, 0.18);
}

.pet-site[data-nav-mode='overlay'] .pet-nav-brand-mark {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 0.45rem rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.pet-site[data-nav-mode='overlay'] .pet-logo-orbit {
    stroke: rgba(255, 255, 255, 0.32);
}

.pet-site[data-nav-mode='overlay'] .pet-logo-bone {
    fill: var(--luna-gold);
    stroke: #ffffff;
}

.pet-site[data-nav-mode='overlay'] .pet-logo-dot {
    fill: #ffffff;
}

.pet-site[data-nav-mode='overlay'] .pet-wordmark-luna,
.pet-site[data-nav-mode='overlay'] .pet-wordmark-petia {
    color: #ffffff;
}

.pet-site[data-nav-mode='overlay'] .pet-nav-promo,
.pet-site[data-nav-mode='overlay'] .pet-nav-promo-market {
    color: #ffffff;
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-nav-promo,
.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-nav-promo-market {
    color: var(--pet-forest);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-nav-brand-mark,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-nav-brand-mark {
    border-color: rgba(18, 37, 31, 0.12);
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 44%),
        linear-gradient(145deg, #ffffff, var(--luna-cream));
    box-shadow:
        inset 0 0 0 0.45rem rgba(202, 226, 218, 0.22),
        0 14px 32px -24px rgba(18, 37, 31, 0.45);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-logo-orbit,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-logo-orbit {
    stroke: rgba(104, 168, 168, 0.28);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-logo-bone,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-logo-bone {
    fill: var(--luna-gold);
    stroke: var(--luna-ink);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-logo-dot,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-logo-dot {
    fill: var(--luna-teal);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-wordmark-luna,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-wordmark-luna {
    color: var(--luna-ink);
}

.pet-site[data-nav-mode='overlay'].is-nav-fixed .pet-wordmark-petia,
.pet-site[data-nav-mode='overlay'] .pet-nav.is-scrolled .pet-wordmark-petia {
    color: var(--luna-teal);
}

@media (max-width: 768px) {
    .pet-nav-brand-stack {
        gap: 0.55rem;
    }

    .pet-nav-promo {
        justify-content: flex-start;
        gap: 0.45rem;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    .pet-nav-promo-market {
        min-height: 1.85rem;
        padding-inline: 0.7rem;
    }

    .pet-nav-brand-mark {
        width: 2.85rem;
        height: 2.85rem;
        flex-basis: 2.85rem;
        box-shadow:
            inset 0 0 0 0.34rem rgba(202, 226, 218, 0.2),
            0 12px 28px -24px rgba(18, 37, 31, 0.45);
    }

    .pet-nav-brand-symbol {
        width: 2.24rem;
        height: 2.24rem;
    }

    .pet-nav-brand-wordmark {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pet-nav-shell {
        gap: 0.45rem;
    }

    .pet-nav-brand {
        gap: 0.48rem;
    }

    .pet-nav-brand-mark {
        width: 2.35rem;
        height: 2.35rem;
        flex-basis: 2.35rem;
        box-shadow:
            inset 0 0 0 0.28rem rgba(202, 226, 218, 0.2),
            0 10px 24px -22px rgba(18, 37, 31, 0.45);
    }

    .pet-nav-brand-symbol {
        width: 1.86rem;
        height: 1.86rem;
    }

    .pet-nav-brand-wordmark {
        font-size: clamp(1.36rem, 6.2vw, 1.55rem);
        line-height: 0.96;
    }

    .pet-nav-actions {
        gap: 0.3rem;
    }

    .pet-nav-icon,
    .pet-nav-cart,
    .pet-nav-search-input {
        width: 2.3rem;
        height: 2.3rem;
        min-height: 2.3rem;
    }

    .pet-nav-icon svg {
        width: 1.02rem;
        height: 1.02rem;
    }

    .pet-nav-cart-count {
        top: -0.08rem;
        right: -0.08rem;
        min-width: 1rem;
        height: 1rem;
        font-size: 0.58rem;
    }
}

@media (max-width: 768px) {
    .pet-nav-actions > .pet-nav-account {
        display: none;
    }

    .pet-nav-drawer-actions .pet-nav-account,
    .pet-nav-auth-form-mobile,
    .pet-nav-auth-form-mobile .pet-nav-account {
        display: inline-flex;
        width: 100%;
        min-height: 2.9rem;
        height: auto;
    }

    .pet-nav-drawer-panel {
        width: 100vw;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        background: #f8f5ef;
    }
}

@media (max-width: 374px) {
    .pet-nav-brand-mark {
        width: 2.15rem;
        height: 2.15rem;
        flex-basis: 2.15rem;
    }

    .pet-nav-brand-symbol {
        width: 1.7rem;
        height: 1.7rem;
    }

    .pet-nav-brand-wordmark {
        font-size: 1.26rem;
    }

    .pet-nav-icon,
    .pet-nav-cart,
    .pet-nav-search-input {
        width: 2.16rem;
        height: 2.16rem;
        min-height: 2.16rem;
    }
}
