/* The shop's look. These are the sport look's values (dark); ShopTheme.cs sets the chosen look's colours, fonts and
   rounding on the layout as the same variables, and themes.css adds what the light looks change beyond them. The brand's
   accent and action colours are set on the layout from the Brand settings. */
.nj {
    --nj-ink: #111316;
    --nj-ink2: #1a1d22;
    --nj-text: #f1f2f4;
    --nj-dim: #9aa0a8;
    --nj-teal: #3fb8a6;
    --nj-signal: #f2b84b;
    --nj-signal-text: #14161a;
    --nj-edge: #2b3038;
    /* Soft light from above, as on the Palette Lab stage. */
    --nj-lit: linear-gradient(#24282e 0%, #1a1d21 55%, #121417 100%);
    --nj-seam: #262a31;
    --nj-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --fr-accent: var(--nj-teal);
    --fr-line: var(--nj-edge);
    background: var(--nj-ink);
    color: var(--nj-text);
    font-family: var(--nj-body, "Barlow", Helvetica, Arial, sans-serif);
    font-size: 15px;
}

.nj h1, .nj h2, .nj h3, .nj h4,
.nj .mud-typography-h1, .nj .mud-typography-h2, .nj .mud-typography-h3 {
    font-family: var(--nj-display);
    text-transform: var(--nj-display-case, uppercase);
}

.nj a {
    color: var(--nj-teal);
}

.nj .mud-button-root {
    border-radius: var(--nj-radius, 4px);
}

/* Main actions in the brand's action colour. */
.nj .mud-button-filled {
    border-radius: var(--nj-radius, 4px);
    padding-inline: 22px;
    box-shadow: none;
}

.nj .mud-card, .nj .mud-paper-outlined {
    border-color: var(--nj-edge);
}

.nj-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    /* Nearly opaque and no backdrop blur: blurring what scrolls under the header on every frame stutters on phones. */
    background: color-mix(in srgb, var(--nj-ink, #111316) 97%, transparent);
    border-bottom: 1px solid var(--nj-seam);
}

.nj-nav-inner {
    display: flex !important;
    align-items: center;
    gap: 18px;
    height: 60px;
    font-family: var(--nj-display);
    text-transform: var(--nj-display-case, uppercase);
    font-weight: 600;
    letter-spacing: .08em;
    font-size: 14px;
}

/* The currency and language pickers are MudSelects, which are inputs underneath: no text caret or text cursor. */
.nj-nav .mud-select input {
    caret-color: transparent;
    cursor: pointer;
}

.nj-nav-inner > a:first-child {
    display: flex;
}

.nj .nj-design {
    color: var(--nj-signal-text);
    background: var(--nj-signal);
    padding: 6px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    border-radius: var(--nj-radius, 4px);
}

.nj-design small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    background: var(--nj-signal-text);
    color: var(--nj-signal);
    padding: 0 4px;
    border-radius: var(--nj-radius-s, 2px);
}

.nj-sp {
    flex: 1;
}

.nj .nj-cart {
    color: var(--nj-text);
    border: 1px solid var(--nj-swatch-edge, rgba(255, 255, 255, .4));
    padding: 6px 12px;
    white-space: nowrap;
    text-decoration: none;
}

.nj-footer {
    border-top: 1px solid var(--nj-seam);
    color: var(--nj-dim);
    margin-top: 24px;
}

.nj-footer .mud-typography-h6 {
    font-size: 16px;
    color: var(--nj-text);
}

/* Section headings, steps band and product cards on the home page. */
.nj-eyebrow {
    font-family: var(--nj-display);
    text-transform: var(--nj-display-case, uppercase);
    letter-spacing: .14em;
    font-size: 13px;
    color: var(--nj-dim);
}

.nj-sec-h {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 44px 0 18px;
}

.nj-sec-h h2 {
    font-family: var(--nj-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    margin: 0;
}

.nj-claim {
    font-family: var(--nj-display);
    font-weight: 800;
    text-transform: var(--nj-display-case, uppercase);
    font-size: clamp(40px, 6vw, 72px);
    line-height: .9;
    margin: 40px 0 0;
}

.nj-claim em {
    color: var(--nj-signal);
}

/* Claim over a muted, darkened clip of flying. */
.nj-reel {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: clamp(240px, 30vw, 400px);
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid var(--nj-edge);
    background: var(--nj-ink2);
}

.nj-reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nj-reel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--nj-ink, #111316) 88%, transparent) 0%, color-mix(in srgb, var(--nj-ink, #111316) 55%, transparent) 55%, color-mix(in srgb, var(--nj-ink, #111316) 20%, transparent) 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--nj-ink, #111316) 70%, transparent) 0%, color-mix(in srgb, var(--nj-ink, #111316) 0%, transparent) 60%);
}

.nj-reel .nj-claim {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 clamp(18px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.nj-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--nj-rule, #1f2a38);
    margin-top: 28px;
}

.nj-steps > div {
    padding: 18px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-right: 1px solid var(--nj-rule, #1f2a38);
}

.nj-steps > div:last-child {
    border-right: 0;
}

.nj-steps .n {
    font-family: var(--nj-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    color: var(--nj-signal);
}

.nj-steps b {
    display: block;
    font-family: var(--nj-display);
    text-transform: var(--nj-display-case, uppercase);
    font-size: 19px;
    letter-spacing: .04em;
}

.nj-steps small {
    color: var(--nj-dim);
    font-size: 13.5px;
}

.nj-steps .ph {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--nj-radius-s, 2px);
}

.nj-steps .ph.suit {
    object-fit: contain;
    padding: 4px;
    background: var(--nj-lit);
}

/* Sideways strip of flying photos, with arrows for mice. */
.nj-air {
    position: relative;
}

.nj-air-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.nj-air-strip::-webkit-scrollbar {
    display: none;
}

.nj-air-strip img {
    flex: none;
    height: 320px;
    width: auto;
    object-fit: cover;
    border-radius: var(--nj-radius-s, 2px);
    scroll-snap-align: start;
}

.nj-air-arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid var(--nj-edge);
    border-radius: 50%;
    background: color-mix(in srgb, var(--nj-ink, #111316) 78%, transparent);
    color: var(--nj-text);
    cursor: pointer;
    transition: opacity .2s;
}

.nj-air-arrow:first-child {
    left: 10px;
}

.nj-air-arrow:last-child {
    right: 10px;
}

.nj-air-arrow:hover:not(:disabled) {
    border-color: var(--nj-teal);
    color: var(--nj-teal);
}

.nj-air-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.nj-apparel-photo {
    display: block;
    width: 100%;
    height: clamp(180px, 26vw, 340px);
    object-fit: cover;
    object-position: center 30%;
    margin-bottom: 14px;
    border-radius: var(--nj-radius-s, 2px);
}

@media (max-width: 600px) {
    .nj-air-strip img {
        height: 240px;
    }

    .nj-air-arrow {
        display: none;
    }
}

.nj-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nj .nj-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 18px 16px 16px;
    background: var(--nj-lit);
    color: var(--nj-text);
    text-decoration: none;
    min-width: 0;
}

.nj-card:hover {
    box-shadow: inset 0 0 0 1px var(--nj-edge);
}

.nj-card .img {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nj-card img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    /* The same shadow the 3D suit casts on its stage: down and to the right, soft. */
    filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, .7));
}

.nj-card .t3d {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--nj-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    border: 1px solid var(--nj-signal);
    color: var(--nj-signal);
    padding: 1px 6px;
}

.nj-card h3 {
    margin: 6px 0 0;
    font-family: var(--nj-display);
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.nj-card .row {
    display: flex;
    justify-content: space-between;
    color: var(--nj-dim);
    font-size: 14px;
}

.nj-card .row b {
    color: var(--nj-text);
    font-weight: 600;
}

.nj-card .design {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--nj-rule, #1f2a38);
    font-family: var(--nj-display);
    text-transform: var(--nj-display-case, uppercase);
    letter-spacing: .1em;
    font-weight: 700;
    font-size: 14px;
    color: var(--nj-signal);
}

/* Cart: one row per item. */
.nj-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 8px 12px 12px;
    background: linear-gradient(180deg, var(--nj-ink2), var(--nj-ink3, #15171b));
}

.nj-cart-img {
    width: 88px;
    height: 88px;
    flex: none;
}

.nj-cart-info {
    flex: 1;
    min-width: 0;
}

.nj-cart-info h3 {
    margin: 0;
    font-family: var(--nj-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .02em;
    line-height: 1.15;
}

.nj-cart-for {
    color: var(--nj-dim);
    font-size: 13px;
    margin-top: 2px;
}

.nj-cart-price {
    white-space: nowrap;
    font-weight: 600;
}

@media (max-width: 960px) {
    .nj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nj-steps {
        grid-template-columns: 1fr;
    }

    .nj-steps > div {
        border-right: 0;
        border-bottom: 1px solid var(--nj-rule, #1f2a38);
    }
}

.nj-short {
    display: none;
}

/* Narrow phones, or a phone with the page zoomed in: the header keeps the cart in view by shortening "Design 3D" to
   "3D", and then dropping it (the logo leads to the same page). */
@media (max-width: 380px) {
    .nj .nj-design .nj-short {
        display: none;
    }
}

@media (max-width: 340px) {
    .nj .nj-design {
        display: none;
    }

    .nj .nj-nav-inner > a:first-child img {
        height: 18px;
    }
}

@media (max-width: 600px) {
    .nj-nav-inner {
        gap: 6px;
        padding-inline: 12px !important;
    }

    .nj-nav-inner > a:first-child img {
        height: 22px;
    }

    .nj .nj-design {
        font-size: 13px;
        padding: 5px 10px;
    }

    .nj-long {
        display: none;
    }

    .nj-short {
        display: inline;
    }

    .nj .nj-cart {
        padding: 4px 8px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nj-nav-inner > div {
        flex: none;
    }

    .nj-nav-inner .mr-2 {
        margin-right: 0 !important;
    }

    .nj-grid {
        gap: 8px;
    }

    .nj-card .img {
        height: 170px;
    }

    /* Two cards side by side leave ~170px each: smaller names, price under "Made to measure". */
    .nj .nj-card {
        padding: 14px 12px 12px;
    }

    .nj-card h3 {
        font-size: 19px;
        line-height: 1.15;
    }

    .nj-card .row {
        flex-direction: column;
        gap: 2px;
        font-size: 13px;
    }

    .nj-card .row b {
        white-space: nowrap;
    }

    .nj-card .design {
        font-size: 12.5px;
        letter-spacing: .06em;
    }

    .nj-cart-img {
        width: 64px;
        height: 64px;
    }

    .nj-cart-info h3 {
        font-size: 17px;
    }
}

/* claim banner without a video behind it */
.nj-reel-plain {
    height: auto;
    min-height: 160px;
    background: linear-gradient(120deg, var(--nj-ink2) 0%, var(--nj-hero-tint, #18263a) 100%);
}

.nj-reel-plain::after {
    display: none;
}

.nj-reel-plain .nj-claim {
    padding-top: clamp(28px, 4vw, 48px);
}

/* Shown on every shop page when the brand is a demo. */
.nj-demo-banner {
    background: var(--nj-teal);
    color: var(--nj-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    padding: 6px 16px;
}

.nj-demo-short {
    display: none;
}

.nj-demo-banner a {
    color: inherit;
    text-decoration: underline;
    margin-left: 8px;
    white-space: nowrap;
}
