/*
WRYEDGE DIRECT StoreFront
Header / Navigation Visual Runtime
Version 1.0.0-alpha4A
*/

body.drawer-open {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    z-index: 1000000;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    background: white;
    border: 2px solid var(--red);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.utility-bar {
    background: var(--dark);
    color: #d9e0e5;
    font-size: 11px;
}

.utility-inner {
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-messages {
    display: flex;
    align-items: center;
    height: 100%;
}

.utility-messages span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-right: 22px;
    margin-right: 22px;
    border-right: 1px solid rgba(255,255,255,.14);
    white-space: nowrap;
}

.utility-messages span:last-child {
    border: 0;
}

.utility-messages svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #b6c0c7;
    stroke-width: 1.7;
}

.utility-region {
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d9e0e5;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.utility-region svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: rotate(90deg);
}

.site-header {
    position: relative;
    z-index: 100;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}

.site-header.is-stuck {
    position: sticky;
    top: 0;
    box-shadow: 0 9px 30px rgba(18,26,33,.1);
}

.header-main {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
}

.official-logo {
    min-width: 172px;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    line-height: 1;
    white-space: nowrap;
}

.official-logo > span {
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.official-logo > strong {
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .28em;
}

.desktop-navigation {
    display: flex;
    align-items: stretch;
    height: 78px;
    gap: 31px;
}

.desktop-navigation > a,
.nav-trigger {
    position: relative;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2f3a43;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.desktop-navigation > a::after,
.nav-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.desktop-navigation > a:hover::after,
.nav-trigger:hover::after,
.nav-trigger[aria-expanded="true"]::after {
    transform: scaleX(1);
}

.nav-trigger svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: rotate(90deg);
    transition: transform .2s;
}

.nav-trigger[aria-expanded="true"] svg {
    transform: rotate(-90deg);
}

.header-actions {
    display: flex;
    gap: 18px;
}

.header-action {
    position: relative;
    min-width: 52px;
    min-height: 48px;
    padding: 4px;
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 10px;
    color: #4e5b65;
    cursor: pointer;
}

.header-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.7;
}

.cart-icon-wrap {
    position: relative;
}

.cart-icon-wrap b {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid white;
    border-radius: 10px;
    background: var(--red);
    color: white;
    font-size: 9px;
}

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

.icon-button {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.icon-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.search-row {
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.catalog-search {
    width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfd7dc;
    border-radius: 7px;
    background: #f7f8f9;
    transition: border-color .2s, box-shadow .2s;
}

.catalog-search:focus-within {
    background: white;
    border-color: var(--ink-2);
    box-shadow: 0 0 0 3px rgba(38,50,59,.08);
}

.catalog-search > svg {
    width: 19px;
    height: 19px;
    margin-left: 16px;
    fill: none;
    stroke: #5c6972;
    stroke-width: 1.7;
}

.catalog-search input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.catalog-search input::placeholder {
    color: #78858e;
}

.catalog-search button {
    height: 32px;
    margin-right: 6px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    background: var(--ink);
    color: white;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.catalog-search button:hover {
    background: var(--red);
}

.mega-menu {
    position: absolute;
    z-index: 90;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 24px 38px rgba(18,26,33,.13);
}

.mega-grid {
    min-height: 300px;
    padding-block: 34px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr .9fr;
    gap: 48px;
}

.compact-mega {
    min-height: 245px;
    grid-template-columns: 1.3fr 1fr 1fr;
}

.mega-intro {
    padding-right: 40px;
    border-right: 1px solid var(--line);
}

.mega-intro h2 {
    max-width: 390px;
    margin: 13px 0 10px;
    font-size: 25px;
    line-height: 1.2;
}

.mega-intro p {
    color: var(--muted);
    font-size: 13px;
}

.mega-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mega-group h3 {
    margin: 0 0 7px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mega-group a {
    color: #5a6872;
    font-size: 13px;
}

.mega-group a:hover {
    color: var(--red);
}

.mega-feature {
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mega-feature span {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mega-feature strong {
    margin: 11px 0 auto;
    font-size: 18px;
    line-height: 1.35;
}

.mega-feature a {
    margin-top: 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.drawer-backdrop,
.mobile-drawer {
    display: none;
}

@media (max-width: 1199px) {

    .utility-messages span:nth-child(3) {
        display: none;
    }

    .desktop-navigation {
        gap: 19px;
    }

    .header-main {
        gap: 28px;
    }

    .official-logo {
        min-width: 158px;
    }
}

@media (max-width: 920px) {

    .desktop-navigation {
        display: none;
    }

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

    .header-main {
        grid-template-columns: auto 1fr auto;
    }

    .official-logo {
        justify-self: start;
    }

    .drawer-backdrop {
        display: block;
        position: fixed;
        z-index: 199;
        inset: 0;
        background: rgba(7,12,16,.56);
        opacity: 0;
        transition: opacity .25s;
    }

    .drawer-backdrop[hidden] {
        display: none;
    }

    .drawer-backdrop.is-visible {
        opacity: 1;
    }

    .mobile-drawer {
        display: flex;
        position: fixed;
        z-index: 200;
        inset: 0 auto 0 0;
        width: min(88vw, 390px);
        padding: 22px;
        flex-direction: column;
        background: white;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,.18);
    }

    .mobile-drawer.is-open {
        transform: none;
    }

    .drawer-head {
        padding-bottom: 21px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--line);
    }

    .drawer-logo {
        display: inline-flex;
    }

    .drawer-close {
        border: 0;
    }

    .mobile-navigation {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-navigation > a,
    .mobile-navigation summary {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
        font-weight: 750;
        cursor: pointer;
        list-style: none;
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation summary svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        transform: rotate(90deg);
    }

    .mobile-navigation details[open] summary svg {
        transform: rotate(-90deg);
    }

    .mobile-navigation details a {
        min-height: 42px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        color: var(--muted);
        font-size: 12px;
        border-bottom: 1px solid #edf0f2;
    }

    .drawer-note {
        margin-top: auto;
        padding: 17px;
        background: var(--surface-soft);
        border-radius: 8px;
    }

    .drawer-note span {
        color: var(--red);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .drawer-note p {
        margin: 7px 0 0;
        color: var(--muted);
        font-size: 11px;
    }
}

@media (max-width: 767px) {

    .utility-inner {
        height: 31px;
        justify-content: center;
    }

    .utility-messages span {
        display: none;
    }

    .utility-messages span:first-child {
        display: flex;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .utility-region {
        display: none;
    }

    .site-header.is-stuck {
        position: relative;
        box-shadow: none;
    }

    .header-main {
        min-height: 67px;
        gap: 12px;
    }

    .official-logo {
        min-width: 0;
    }

    .official-logo > span {
        font-size: 17px;
    }

    .official-logo > strong {
        font-size: 8px;
        letter-spacing: .2em;
    }

    .header-actions {
        gap: 4px;
    }

    .header-action {
        min-width: 42px;
    }

    .header-action > span:last-child {
        display: none;
    }

    .account-action {
        display: none;
    }

    .search-row {
        min-height: 59px;
    }

    .catalog-search {
        height: 43px;
    }

    .catalog-search button {
        height: 31px;
        padding-inline: 14px;
    }

    .catalog-search input {
        font-size: 12px;
    }
}

@media (max-width: 430px) {

    .header-main > .official-logo > strong {
        display: none;
    }

    .drawer-logo > strong {
        display: inline;
    }
}


/* ==================================================
   WRYEDGE DIRECT HEADER 1.0
   Phase 1
   ================================================== */


/*
Real WRYEDGE DIRECT brand asset.
*/

.header-brand {
    min-width: 172px;
    height: 38px;

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


.header-brand img {
    display: block;

    width: auto;
    height: 30px;

    max-width: 170px;

    object-fit: contain;
}


/*
Header Account is now a real link.
Keep identical presentation to the previous button.
*/

a.header-action {
    text-decoration: none;
}


/*
Mobile-only utility controls.
*/

.drawer-tools {
    display: none;
}


@media (max-width: 1199px) {

    .header-brand {
        min-width: 158px;
    }
}


@media (max-width: 920px) {

    .drawer-tools {
        margin-top: 22px;

        display: grid;

        gap: 8px;
    }


    .drawer-tool {
        width: 100%;
        min-height: 58px;

        padding:
            10px 12px;

        display: flex;
        align-items: center;

        gap: 12px;

        border:
            1px solid var(--line);

        border-radius: 8px;

        background: white;

        color: var(--ink);

        text-align: left;

        cursor: pointer;
    }


    .drawer-tool:hover {
        border-color:
            #b9c3c9;

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


    .drawer-tool > svg {
        width: 21px;
        height: 21px;

        flex: none;

        fill: none;

        stroke: var(--ink);

        stroke-width: 1.7;
    }


    .drawer-tool > span {
        min-width: 0;

        display: grid;

        gap: 2px;
    }


    .drawer-tool strong {
        font-size: 12px;
        font-weight: 800;
    }


    .drawer-tool small {
        color: var(--muted);

        font-size: 10px;
    }


    .drawer-region {
        justify-content:
            space-between;
    }


    .drawer-region
    .drawer-tool-chevron {
        margin-left: auto;

        width: 15px;
        height: 15px;

        stroke: var(--muted);

        transform:
            rotate(90deg);
    }


    .drawer-logo.header-brand {
        min-width: 0;
        height: 34px;
    }


    .drawer-logo.header-brand img {
        height: 27px;
        max-width: 155px;
    }
}


@media (max-width: 767px) {

    .header-brand {
        min-width: 0;
        height: 32px;
    }


    .header-brand img {
        height: 25px;
        max-width: 145px;
    }
}


@media (max-width: 430px) {

    .header-brand img {
        height: 24px;
        max-width: 138px;
    }
}


/* ==================================================
   HEADER 1.0 alpha6.2
   Brand sizing + mobile containment
   ================================================== */

.header-brand {
    height: 44px;
    min-width: 190px;
}

.header-brand img {
    height: 36px;
    max-width: 190px;
}

@media (max-width: 1199px) {

    .header-brand {
        min-width: 176px;
    }

    .header-brand img {
        height: 34px;
        max-width: 176px;
    }
}

@media (max-width: 920px) {

    .drawer-logo.header-brand {
        height: 40px;
    }

    .drawer-logo.header-brand img {
        height: 31px;
        max-width: 165px;
    }

    /*
    Desktop Mega Menu must never remain visible
    after entering the mobile navigation mode.
    */
    .mega-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {

    .header-brand {
        height: 37px;
    }

    .header-brand img {
        height: 30px;
        max-width: 160px;
    }
}

@media (max-width: 430px) {

    .header-brand img {
        height: 29px;
        max-width: 154px;
    }
}


/* ==================================================
   HEADER alpha7B1
   Desktop inline Search grid fix
   ================================================== */

@media (min-width: 1200px) {

    .header-main {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            minmax(260px, 320px)
            auto;

        gap: 26px;
    }


    .desktop-navigation {
        gap: 25px;
    }


    .header-actions {
        flex: none;
        gap: 12px;
        white-space: nowrap;
    }


    .header-search-inline {
        width: 100%;
        min-width: 0;
    }
}


/* ==================================================
   HEADER alpha7B2
   Logo larger + Search closer to Resources
   ================================================== */

@media (min-width: 1200px) {

    .header-main {
        display: flex;
        align-items: center;
        gap: 22px;
    }


    .site-logo,
    .header-logo,
    .brand-mark {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }


    .site-logo img,
    .header-logo img,
    .brand-mark img {
        height: 40px;
        width: auto;
        display: block;
    }


    .desktop-navigation {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 24px;
    }


    .header-search-inline {
        flex: 0 0 clamp(340px, 26vw, 400px);
        width: clamp(340px, 26vw, 400px);
        min-width: 340px;
        align-self: center;
    }


    .header-search-inline .search-row {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }


    .header-search-inline .catalog-search {
        width: 100%;
        min-height: 44px;
        display: grid;
        align-items: center;
    }


    .header-actions {
        margin-left: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        white-space: nowrap;
    }
}


/* ==================================================
   HEADER alpha7B3
   Micro polish:
   - slightly larger logo
   - Search closer to Resources
   - better vertical centering
   ================================================== */

@media (min-width: 1200px) {

    .header-main {
        align-items: center;
        gap: 14px;
        min-height: 72px;
    }


    .header-main > * {
        align-self: center;
    }


    .site-logo,
    .header-logo,
    .brand-mark {
        display: flex;
        align-items: center;
    }


    .site-logo img,
    .header-logo img,
    .brand-mark img {
        height: 44px;
        width: auto;
        display: block;
    }


    .desktop-navigation {
        display: flex;
        align-items: center;
        gap: 22px;
        margin-right: 6px;
    }


    .header-search-inline {
        flex: 0 0 clamp(370px, 27vw, 430px);
        width: clamp(370px, 27vw, 430px);
        min-width: 370px;
        align-self: center;
        margin: 0;
    }


    .header-search-inline .search-row {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }


    .header-search-inline .catalog-search {
        width: 100%;
        min-height: 46px;
        display: grid;
        align-items: center;
        margin: 0;
    }


    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 16px;
        white-space: nowrap;
    }
}


/* ==================================================
   HEADER alpha7B4
   Real WRYEDGE DIRECT logo sizing fix
   ================================================== */

@media (min-width: 1200px) {

    .header-brand {
        flex: 0 0 auto;

        min-width: 0;
        height: 52px;

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


    .header-brand img {
        width: auto;
        height: 48px;

        max-width: none;

        display: block;
        object-fit: contain;
    }


    .header-main {
        min-height: 76px;
        align-items: center;
    }


    .header-search-inline {
        align-self: center;
    }


    .header-search-inline .search-row,
    .header-search-inline .catalog-search {
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
    }
}


/* ==================================================
   HEADER alpha7B5
   Desktop Search optical vertical centering
   ================================================== */

@media (min-width: 1200px) {

    .header-search-inline {
        display: flex;
        align-items: center;

        transform: translateY(5px);
    }

}


/* ==================================================
   HEADER alpha7B8
   Account + Cart visual polish
   ================================================== */

@media (min-width: 1200px) {

    .header-actions {
        margin-left: auto;

        display: flex;
        align-items: center;

        gap: 8px;
    }


    .header-actions .header-action {
        width: 62px;
        min-width: 62px;
        height: 58px;

        padding: 6px 5px;

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

        gap: 4px;

        border:
            1px solid transparent;

        border-radius:
            10px;

        background:
            transparent;

        color:
            var(--ink);

        text-decoration:
            none;

        cursor:
            pointer;

        transition:
            background-color 140ms ease,
            border-color 140ms ease,
            transform 140ms ease;
    }


    .header-actions .header-action:hover {
        background:
            #f4f6f7;

        border-color:
            var(--line);
    }


    .header-actions .header-action:active {
        transform:
            translateY(1px);
    }


    .header-actions .header-action:focus-visible {
        outline:
            2px solid var(--red);

        outline-offset:
            2px;
    }


    /*
    Account icon
    */

    .header-actions
    .header-action > svg {
        width:
            22px;

        height:
            22px;

        flex:
            0 0 auto;

        fill:
            none;

        stroke:
            currentColor;

        stroke-width:
            1.8;

        stroke-linecap:
            round;

        stroke-linejoin:
            round;
    }


    /*
    Cart icon shell
    */

    .header-actions
    .cart-icon-wrap {
        position:
            relative;

        width:
            24px;

        height:
            22px;

        display:
            grid;

        place-items:
            center;

        flex:
            0 0 auto;
    }


    .header-actions
    .cart-icon-wrap svg {
        width:
            22px;

        height:
            22px;

        fill:
            none;

        stroke:
            currentColor;

        stroke-width:
            1.8;

        stroke-linecap:
            round;

        stroke-linejoin:
            round;
    }


    /*
    Cart quantity badge
    */

    .header-actions
    .cart-icon-wrap b {
        position:
            absolute;

        top:
            -7px;

        right:
            -9px;

        min-width:
            16px;

        height:
            16px;

        padding:
            0 4px;

        display:
            grid;

        place-items:
            center;

        border:
            2px solid #ffffff;

        border-radius:
            999px;

        background:
            var(--red);

        color:
            #ffffff;

        font-size:
            9px;

        font-weight:
            800;

        line-height:
            1;
    }


    /*
    Labels
    */

    .header-actions
    .header-action > span:last-child {
        color:
            var(--ink);

        font-size:
            10px;

        font-weight:
            600;

        line-height:
            1;

        white-space:
            nowrap;
    }


    .header-actions
    .header-action:hover > span:last-child {
        color:
            var(--ink);
    }

}


/* ==================================================
   HEADER — Production Request
   v0.1.0
   ================================================== */

.utility-actions {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 18px;
}


.utility-production-request {
    height: 100%;

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

    gap: 7px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 140ms ease;
}


.utility-production-request svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: var(--red);

    stroke-width: 1.8;
}


.utility-production-request:hover {
    color: #ffffff;
}


.utility-production-request:hover span {
    text-decoration: underline;

    text-underline-offset: 3px;
}


.drawer-production-request {
    border-color:
        rgba(210, 31, 43, 0.24);
}


.drawer-production-request > svg {
    stroke: var(--red);
}


@media (max-width: 767px) {

    .utility-actions {
        display: none;
    }
}


/* ==================================================
   HEADER alpha8B
   Utility bar icon + fixed currency polish
   ================================================== */

.utility-messages .utility-icon {
    width: 14px;
    height: 14px;

    flex: 0 0 auto;

    fill: none;

    stroke: #aebbc4;

    stroke-width: 1.65;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.utility-production-icon {
    width: 14px;
    height: 14px;

    flex: 0 0 auto;

    fill: none;

    stroke: var(--red);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.utility-actions {
    gap: 17px;
}


.utility-currency {
    min-height: 100%;

    padding-left: 17px;

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

    gap: 5px;

    border-left:
        1px solid rgba(255,255,255,.14);

    color: #d9e0e5;

    font-size: 11px;

    white-space: nowrap;
}


.utility-currency strong {
    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


.utility-currency span {
    font-weight: 650;

    letter-spacing: .02em;
}


.drawer-currency-static {
    cursor: default;
}


.drawer-currency-static:hover {
    background: #ffffff;
    border-color: var(--line);
}


@media (max-width: 767px) {

    /*
    Desktop utility controls remain hidden on mobile.
    Production Request + static EUR are available
    through the mobile drawer.
    */

    .utility-actions {
        display: none;
    }
}


/* ==================================================
   HEADER alpha8C
   Desktop navigation rhythm
   ================================================== */

@media (min-width: 1200px) {

    /*
    Give the brand its own breathing room.
    */

    .header-brand {
        margin-right: 12px;
    }


    /*
    Consistent rhythm between primary menu items.
    */

    .desktop-navigation {
        gap: 26px;

        margin-right: 8px;
    }


    /*
    Keep links / triggers optically consistent.
    */

    .desktop-navigation > a,
    .desktop-navigation > .nav-trigger {
        margin: 0;
    }

}


/* ==================================================
   HEADER alpha8D
   LT / EN language selector
   ================================================== */

.utility-language {
    position:
        relative;

    height:
        100%;

    padding-left:
        17px;

    display:
        flex;

    align-items:
        center;

    border-left:
        1px solid rgba(255,255,255,.14);
}


.utility-language-trigger {
    height:
        100%;

    padding:
        0;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    border:
        0;

    background:
        transparent;

    color:
        #ffffff;

    font:
        inherit;

    cursor:
        pointer;
}


.utility-language-flag {
    font-size:
        14px;

    line-height:
        1;
}


.utility-language-code {
    font-size:
        11px;

    font-weight:
        750;

    letter-spacing:
        .03em;
}


.utility-language-chevron {
    width:
        11px;

    height:
        11px;

    fill:
        none;

    stroke:
        #aeb9bf;

    stroke-width:
        1.5;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    transition:
        transform 140ms ease;
}


.utility-language-trigger[
    aria-expanded="true"
]
.utility-language-chevron {
    transform:
        rotate(180deg);
}


/* ------------------------------
   Dropdown
   ------------------------------ */

.utility-language-menu {
    position:
        absolute;

    z-index:
        1000;

    top:
        calc(100% + 8px);

    right:
        0;

    width:
        168px;

    padding:
        6px;

    border:
        1px solid #d9dfe2;

    border-radius:
        8px;

    background:
        #ffffff;

    box-shadow:
        0 14px 38px
        rgba(15, 24, 30, .14);
}


.utility-language-menu[hidden] {
    display:
        none !important;
}


.utility-language-menu button {
    width:
        100%;

    min-height:
        42px;

    padding:
        7px 9px;

    display:
        grid;

    grid-template-columns:
        24px
        28px
        minmax(0, 1fr);

    align-items:
        center;

    gap:
        7px;

    border:
        0;

    border-radius:
        6px;

    background:
        transparent;

    color:
        var(--ink);

    font:
        inherit;

    text-align:
        left;

    cursor:
        pointer;
}


.utility-language-menu button:hover {
    background:
        #f3f5f6;
}


.utility-language-menu button[
    aria-selected="true"
] {
    background:
        #eef2f3;
}


.utility-language-menu strong {
    font-size:
        11px;

    font-weight:
        800;
}


.utility-language-menu small {
    color:
        var(--muted);

    font-size:
        11px;
}


/* Mobile:
   desktop utility language selector stays hidden
   together with utility-actions.
*/

@media (max-width: 767px) {

    .utility-language {
        display:
            none;
    }

}


/* ==================================================
   HEADER alpha8D1
   Real LT / US flag assets
   ================================================== */

.utility-language-flag,
.utility-language-option-flag {
    width:
        20px;

    height:
        13px;

    display:
        block;

    flex:
        0 0 auto;

    object-fit:
        cover;

    border:
        1px solid rgba(0, 0, 0, .12);

    border-radius:
        2px;
}


.utility-language-trigger
.utility-language-flag {
    border-color:
        rgba(255, 255, 255, .28);
}


.utility-language-menu button {
    grid-template-columns:
        22px
        28px
        minmax(0, 1fr);
}


/* ==========================================================
   WRYEDGE DIRECT
   STOREFRONT CUSTOMER ACCOUNT MENU
   v0.1.0-alpha1
   ========================================================== */

.header-account-shell {
    position: relative;

    display: flex;
    align-items: center;
}


/* Logged-in Account can be slightly wider */

@media (min-width: 1200px) {

    .header-account-shell
    .account-action.is-authenticated {
        width: auto;
        min-width: 74px;
        max-width: 116px;

        padding-left: 8px;
        padding-right: 12px;
    }


    .header-account-shell
    .account-action.is-authenticated > span {
        max-width: 84px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

}


/* Small chevron next to authenticated account */

.header-account-chevron {
    position: absolute;

    right: 4px;
    bottom: 10px;

    width: 9px !important;
    height: 9px !important;

    opacity: 0.58;

    pointer-events: none;

    transition:
        transform 160ms ease;
}


.header-account-shell.is-open
.header-account-chevron {
    transform:
        rotate(180deg);
}


/* Dropdown */

.header-account-dropdown {
    position: absolute;

    z-index: 1500;

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

    width: 224px;

    padding: 8px;

    border:
        1px solid #dde3e8;

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 18px 48px rgba(13, 27, 42, 0.16),
        0 3px 12px rgba(13, 27, 42, 0.06);
}


.header-account-dropdown[hidden] {
    display: none !important;
}


/* Identity */

.header-account-dropdown-identity {
    display: grid;

    gap: 3px;

    padding:
        10px 11px 9px;
}


.header-account-dropdown-identity strong {
    min-width: 0;

    overflow: hidden;

    color: var(--ink);

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

    text-overflow: ellipsis;
    white-space: nowrap;
}


.header-account-dropdown-identity small {
    color: #7b8893;

    font-size: 10px;
}


.header-account-dropdown-divider {
    height: 1px;

    margin:
        3px 4px 5px;

    background:
        #edf0f2;
}


/* Menu rows */

.header-account-dropdown-item {
    width: 100%;
    min-height: 39px;

    padding:
        8px 10px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 0;
    border-radius: 7px;

    background:
        transparent;

    color:
        var(--ink);

    font: inherit;
    font-size: 12px;
    font-weight: 650;

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

    cursor: pointer;

    transition:
        background-color 150ms ease,
        color 150ms ease;
}


.header-account-dropdown-item:hover {
    background:
        #f4f6f8;
}


.header-account-dropdown-item svg {
    width: 17px;
    height: 17px;

    flex: none;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.header-account-dropdown-signout {
    color:
        #b42318;
}


.header-account-dropdown-signout:hover {
    background:
        #fff3f2;

    color:
        #a61b13;
}


/* Mobile drawer sign-out */

.drawer-account-signout {
    font-family: inherit;
}


.drawer-account-signout > svg {
    stroke:
        #b42318;
}


.drawer-account-signout strong {
    color:
        #b42318;
}


/* Desktop dropdown is irrelevant once desktop Account disappears */

@media (max-width: 920px) {

    .header-account-dropdown {
        display: none !important;
    }

}


/* ==========================================================
   ACCOUNT CHEVRON — VERTICAL DIRECTION
   ========================================================== */

.header-account-chevron {
    transform:
        rotate(90deg);
}


.header-account-shell.is-open
.header-account-chevron {
    transform:
        rotate(-90deg);
}


/* Separate account actions from Sign out */

.header-account-dropdown-action-divider {
    margin-top: 5px;
}


/* ==========================================================
   CUSTOMER ACCOUNT — AUTH STATE REVEAL
   Prevent unauthenticated "Account" flash
   ========================================================== */

.account-action
[data-customer-account-label]:empty {
    opacity: 0;
}


.account-action
[data-customer-account-label] {
    opacity: 1;

    transition:
        opacity 140ms ease;
}


/* ==========================================================
   WRYEDGE HEADER PROFESSIONAL SURFACE alpha9
   ========================================================== */

/*
A firmer desktop visual hierarchy without changing
the existing Header layout, dimensions or utility bar.
*/

@media (min-width: 1024px) {

    .site-header {
        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fbfcfd 100%
            );

        border-bottom:
            1px solid #cbd4da;

        box-shadow:
            0 3px 14px
            rgba(18, 26, 33, .055);
    }


    .site-header.is-stuck {
        border-bottom-color:
            #c3ccd3;

        box-shadow:
            0 8px 28px
            rgba(18, 26, 33, .11);
    }


    .desktop-navigation > a,
    .desktop-navigation > .nav-trigger {
        color:
            #202a32;

        font-weight:
            700;

        letter-spacing:
            -.005em;
    }


    .header-search-inline
    .catalog-search {
        border-color:
            #bcc7ce;

        background:
            #f5f7f8;

        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, .75);
    }


    .header-search-inline
    .catalog-search:hover {
        border-color:
            #aeb9c1;

        background:
            #f7f9fa;
    }


    .header-search-inline
    .catalog-search:focus-within {
        border-color:
            #8f9da6;

        background:
            #ffffff;

        box-shadow:
            0 0 0 3px
            rgba(38, 50, 59, .07);
    }


    .header-actions
    .header-action {
        color:
            #303c45;
    }
}


/* Solutions v1.0.0: additional mobile entries. */
.wd-sol-menu-lt { display:none; }
html[lang="lt"] .wd-sol-menu-lt { display:inline; }
html[lang="lt"] .wd-sol-menu-en { display:none; }
