/* RYSA STORE — desktop-only navigation refresh.
   Isolated to min-width: 851px so the existing phone layout is unchanged. */
@media (min-width: 851px) {
    header {
        height: auto;
        min-height: 123px;
        border-bottom: 1px solid rgba(74, 91, 170, .48);
        background: linear-gradient(180deg, rgba(4, 7, 20, .98), rgba(6, 10, 29, .96));
        box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    }

    header .wrap.nav {
        display: grid !important;
        grid-template-columns: minmax(180px, auto) minmax(0, 1fr) 48px;
        grid-template-rows: 66px 50px;
        column-gap: 20px;
        row-gap: 0;
        align-items: center;
        height: auto;
        min-height: 116px;
        padding-top: 3px;
        padding-bottom: 4px;
    }

    header .logo {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        gap: 9px;
    }

    header .logo-mark {
        width: 42px;
        height: 42px;
    }

    header .logo-text {
        font-size: 27px;
        letter-spacing: 1.2px;
    }

    header .logo-text small {
        font-size: 8px;
        letter-spacing: 4px;
    }

    header .mobile-menu-toggle,
    header .mobile-menu-backdrop {
        display: none !important;
    }

    header .search-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: min(100%, 510px);
        min-width: 0;
        margin-left: 0;
        flex: initial;
    }

    header .search {
        width: 100%;
        height: 46px;
        padding: 0 20px;
        border: 1px solid #394583;
        border-radius: 28px;
        background: linear-gradient(110deg, #101a3d 0%, #101631 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
        font-size: 14px;
    }

    header .search:focus {
        border-color: #63c4ff;
        box-shadow: 0 0 0 3px rgba(99, 196, 255, .15), 0 0 20px rgba(72, 106, 255, .10);
    }

    header .profile {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
    }

    header .profile-trigger {
        width: 46px;
        height: 46px;
        border: 1px solid #437ea5;
        background: linear-gradient(145deg, #133247, #101a3d);
        box-shadow: 0 0 18px rgba(64, 178, 255, .16);
    }

    header .profile-trigger:hover,
    header .profile-trigger[aria-expanded="true"] {
        border-color: #7ccaff;
        box-shadow: 0 0 22px rgba(61, 171, 255, .28);
    }

    header .links {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex !important;
        flex: initial;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: clamp(2px, .35vw, 6px);
        width: 100%;
        min-width: 0;
        height: 50px;
        min-height: 50px;
        max-height: none;
        margin: 0;
        padding: 5px 0 0;
        overflow: visible;
        border: 0;
        border-top: 1px solid rgba(55, 68, 135, .58);
        border-radius: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        color: #cdd3ee;
        font-size: 12px;
        white-space: nowrap;
    }

    header .links > a.mobile-store-link {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 39px;
        margin: 0;
        padding: 8px clamp(5px, .65vw, 10px);
        border: 1px solid transparent;
        border-radius: 10px;
        color: #cdd3ee;
        font-size: clamp(10px, .86vw, 12.5px);
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.1;
        white-space: nowrap;
        transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
    }

    header .links > a.mobile-store-link .mobile-nav-icon {
        display: block !important;
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        color: #9ad8ff;
    }

    header .links > a.mobile-store-link .mobile-link-arrow {
        display: none !important;
    }

    header .links > a.mobile-store-link::after {
        left: 10px;
        right: auto;
        bottom: 0;
        width: 0;
        height: 2px;
        border-radius: 2px;
    }

    header .links > a.mobile-store-link:hover::after,
    header .links > a.mobile-store-link:focus-visible::after,
    header .links > a.mobile-store-link.active::after {
        width: calc(100% - 20px);
    }

    header .links > a.mobile-store-link:hover,
    header .links > a.mobile-store-link:focus-visible {
        border-color: rgba(89, 164, 213, .42);
        background: linear-gradient(110deg, rgba(26, 71, 104, .78), rgba(22, 38, 86, .72));
        color: #fff;
        outline: none;
    }

    header .links > a.mobile-store-link.active {
        border-color: rgba(89, 171, 222, .5);
        background: linear-gradient(110deg, rgba(29, 78, 112, .72), rgba(20, 42, 100, .68));
        color: #fff;
        box-shadow: inset 0 0 18px rgba(81, 193, 255, .08);
    }

    header .links > a.mobile-store-link.active .mobile-nav-icon,
    header .links > a.mobile-store-link:hover .mobile-nav-icon,
    header .links > a.mobile-store-link:focus-visible .mobile-nav-icon {
        color: #b0dfff;
    }
}

/* Keep labels comfortably readable on smaller laptop / tablet-sized desktop windows. */
@media (min-width: 851px) and (max-width: 1050px) {
    header .wrap.nav {
        column-gap: 14px;
        grid-template-columns: minmax(155px, auto) minmax(0, 1fr) 44px;
    }

    header .logo-mark {
        width: 37px;
        height: 37px;
    }

    header .logo-text {
        font-size: 24px;
    }

    header .search-wrap {
        width: min(100%, 390px);
    }

    header .links {
        gap: 1px;
    }

    header .links > a.mobile-store-link {
        gap: 4px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 10.5px;
    }

    header .links > a.mobile-store-link .mobile-nav-icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }
}
