.wi-header {
    --blue: #6f0b0b;
    --cream: #f7edda;
    --ink: #0a0a0a;
    --orange: #c89b3c;
    position: relative;
    z-index: 100;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    isolation: isolate;
}

    .wi-header * {
        box-sizing: border-box;
    }

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

    .wi-header button,
    .wi-header a {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .wi-header button,
    .wi-header input {
        font: inherit;
    }

    .wi-header button,
    .wi-header a {
        touch-action: manipulation;
    }

    .wi-header button {
        cursor: pointer;
    }

    .wi-header button,
    .wi-header a {
        color: inherit;
    }

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

    .wi-header button {
        border: 0;
        background: none;
    }

    .wi-header :focus-visible {
        outline: 2px solid #6f0b0b;
        outline-offset: 4px;
    }

.wi-bar {
    height: 104px;
    padding: 0 40px;
    max-width: 1432px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    align-items: center;
    gap: 22px;
}

.wi-header:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 104px;
    z-index: -1;
    background: linear-gradient( 100deg, rgba(10, 10, 10, 0.09), white 34%, white 66%, rgba(200, 155, 60, 0.07) );
    border-bottom: 1px solid #0a0a0a1f;
}

.wi-buy,
.wi-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wi-tools {
    justify-content: flex-end;
    gap: 7px;
}

.wi-buy > a,
.wi-buy > button,
.wi-story-link {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 600;
    padding: 15px 8px;
    position: relative;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.wi-buy > :nth-child(2) {
    --hover: var(--orange);
}

.wi-buy > * {
    --hover: var(--blue);
}

.wi-buy > a:after,
.wi-buy > button:after,
.wi-story-link:after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 7px;
    height: 3px;
    background: var(--hover, var(--orange));
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 50% 20% 35% 10%;
    transition: transform 0.2s;
}

.wi-buy > :hover:after,
.wi-buy > :focus-visible:after,
.wi-story-link:hover:after,
.wi-story-link:focus-visible:after {
    transform: scaleX(1);
}

.wi-buy > :hover,
.wi-story-link:hover {
    background: #6f0b0b0b;
    transform: translateY(-1px);
}

.wi-logo {
    display: block;
    width: 300px;
    aspect-ratio: 5/1;
    position: relative;
    overflow: hidden;
    background: white;
}

    .wi-logo img {
        position: absolute;
        width: 100%;
        height: auto;
        top: 50%;
        transform: translateY(-50%);
        display: block;
    }

.wi-divider {
    height: 26px;
    width: 1px;
    background: #0a0a0a29;
    margin: 0 8px;
}

.wi-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px !important;
    transition: background 0.2s, transform 0.2s;
}

    .wi-icon:hover,
    .wi-icon:focus-visible,
    .wi-icon[aria-expanded="true"] {
        background: #6f0b0b1f;
        transform: translateY(-2px);
    }

    .wi-icon[data-action="cart"]:hover {
        background: #c89b3c20;
    }

    .wi-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.wi-cart-button {
    width: 62px;
    gap: 8px;
}

    .wi-cart-button span {
        font-size: 12px;
    }

.wi-dropdown {
    position: absolute;
    top: 90px;
    background: white;
    border: 1px solid #0a0a0a1c;
    box-shadow: 0 18px 50px #0a0a0a14;
    border-radius: 12px;
    padding: 20px;
    width: 290px;
    z-index: 5;
    border-top: 3px solid var(--blue);
}

.wi-collections {
    left: max(28px, calc((100% - 1320px) / 2));
}

.wi-profile {
    right: max(28px, calc((100% - 1320px) / 2));
    border-top-color: var(--orange);
}

.wi-eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700;
}

.wi-dropdown .wi-eyebrow {
    margin: 0 0 15px;
    color: #57514b;
}

.wi-dropdown a,
.wi-dropdown > button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    text-align: left;
}

    .wi-dropdown a:hover,
    .wi-dropdown > button:hover {
        background: #6f0b0b15;
    }

    .wi-dropdown a span {
        color: #70685d;
        font-size: 11px;
    }

.wi-dialog {
    color: var(--ink);
    border: 1px solid #0a0a0a1c;
    border-radius: 18px;
    padding: 30px;
    width: min(720px, calc(100% - 32px));
    max-height: 85dvh;
    overflow: auto;
    box-shadow: 0 24px 90px #0003;
    background: linear-gradient(135deg, #6f0b0b16, transparent 45%), linear-gradient(315deg, #c89b3c13, transparent 40%), white;
}

    .wi-dialog::backdrop {
        background: #0a0a0a66;
    }

.wi-dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wi-dialog h2 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 18px 0 24px;
    line-height: 1.15;
}

    .wi-dialog h2 > span {
        color: var(--orange);
    }

.wi-search-form {
    display: flex;
    gap: 10px;
}

.wi-header input {
    min-width: 0;
    border: 1px solid #0a0a0a33;
    border-radius: 8px;
    padding: 14px;
    background: white;
    color: var(--ink);
    user-select: text;
}

.wi-search-form input {
    flex: 1;
}

.wi-header .wi-primary {
    background: var(--ink);
    color: white;
    padding: 14px 20px;
    border-radius: 7px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

    .wi-header .wi-primary:hover {
        background: #6f0b0b;
        transform: translateY(-1px);
    }

    .wi-header .wi-primary:disabled {
        opacity: 0.45;
        cursor: default;
        transform: none;
    }

.wi-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

    .wi-tags button {
        padding: 7px 12px;
        border-radius: 30px;
        background: var(--cream);
        font-size: 12px;
    }

        .wi-tags button:hover {
            background: #6f0b0b33;
        }

.wi-result-status{
    font-size: 13px;
    color: #57514b;
}

.wi-results {
    display: grid;
    gap: 8px;
}

.wi-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #0a0a0a17;
    border-radius: 8px;
    background: white;
}

.wi-result-info {
    flex: 1;
}

    .wi-result-info strong,
    .wi-result-info small {
        display: block;
    }

    .wi-result-info small {
        color: #57514b;
    }

.wi-result button {
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 6px;
}

    .wi-result button:hover {
        background: #6f0b0b33;
    }

.wi-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    max-width: calc(100vw - 32px);
    width: max-content;
    box-shadow: 0 8px 30px #0002;
    z-index: 10;
    font-size: 13px;
}

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

.wi-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1440px) {
    .wi-bar {
        padding-inline: 56px;
    }
}

@media (max-width: 1150px) {
    .wi-bar {
        grid-template-columns: 1fr 230px 1fr;
        padding-inline: 24px;
        gap: 12px;
    }

    .wi-logo {
        width: 230px;
    }

    .wi-buy {
        gap: 2px;
    }

        .wi-buy > a,
        .wi-buy > button,
        .wi-story-link {
            font-size: 10px;
            letter-spacing: 0.6px;
            padding-inline: 6px;
        }

    .wi-tools {
        gap: 0;
    }

    .wi-divider {
        margin: 0 5px;
    }
}

@media (max-width: 850px) {
    .wi-bar {
        height: 80px;
        display: flex;
        gap: 12px;
        padding-inline: 20px;
    }

    .wi-header:before {
        height: 80px;
    }

    .wi-mobile-toggle {
        display: inline-flex;
    }

    .wi-buy,
    .wi-story-link,
    .wi-divider {
        display: none;
    }

    .wi-logo {
        width: 210px;
        margin-right: auto;
    }

    .wi-tools {
        gap: 2px;
    }

    .wi-dropdown {
        top: 72px;
        left: auto;
        right: 20px;
    }

    .wi-mobile {
        left: 20px;
        right: auto;
    }

    .wi-collections {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .wi-bar {
        height: 72px;
        padding-inline: 10px;
        gap: 2px;
    }

    .wi-header:before {
        height: 72px;
    }

    .wi-logo {
        width: clamp(112px, 35vw, 168px);
    }

    .wi-icon {
        width: 40px;
        height: 44px;
    }

        .wi-icon svg {
            width: 21px;
            height: 21px;
        }

    .wi-cart-button {
        width: 43px;
        gap: 3px;
    }

    .wi-tools {
        gap: 0;
    }

    .wi-dialog {
        padding: 20px;
    }

        .wi-dialog h2 {
            font-size: 27px;
        }

    .wi-dialog-top .wi-eyebrow {
        font-size: 9px;
    }

    .wi-search-form {
        flex-wrap: wrap;
    }

        .wi-search-form input {
            flex-basis: 100%;
        }

        .wi-search-form .wi-primary {
            width: 100%;
        }

    .wi-dropdown {
        top: 66px;
        max-width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wi-header *,
    .wi-header *:after {
        transition: none !important;
        animation: none !important;
    }
}

.wi-logo {
    transition: opacity 0.2s;
}

    .wi-logo:hover {
        opacity: 0.82;
    }

.wi-header button:disabled {
    cursor: default;
    opacity: 0.5;
}
