/* Teamwear landing page */
.teamwear-page {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    color: #111;
}

.teamwear-page * {
    box-sizing: border-box;
}

.teamwear-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8e8e8;
}

.teamwear-hero--intro {
    height: 668px;
}

.teamwear-hero--collection,
.teamwear-hero--off-field {
    height: 750px;
}

.teamwear-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.teamwear-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.teamwear-hero__content--intro {
    flex-direction: column;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .32);
}

.teamwear-hero__content--intro h1 {
    margin: 0;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(38px, 4.1vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.teamwear-hero__content--intro p {
    margin: 28px 0 16px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 1.55vw, 22px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .01em;
}

.teamwear-section-ribbon {
    display: inline-block;
    min-width: 390px;
    max-width: calc(100% - 40px);
    padding: 4px 28px 5px;
    background: rgba(255, 255, 255, .64);
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 2vw, 29px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.05;
    text-shadow: none;
    white-space: nowrap;
}

.teamwear-grid {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

.teamwear-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teamwear-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teamwear-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ddd;
    color: #fff;
    text-decoration: none;
}

.teamwear-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
    transition: transform 1.5s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
    will-change: transform;
}

.teamwear-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    transition: background-color .45s ease;
    pointer-events: none;
}

.teamwear-tile__label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    min-width: 50%;
    max-width: 84%;
    padding: 2px 14px 3px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .60);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

.teamwear-tile:hover img,
.teamwear-tile:focus-visible img {
    transform: scale(1.075);
}

.teamwear-tile:hover::after,
.teamwear-tile:focus-visible::after {
    background: rgba(0, 0, 0, .06);
}

.teamwear-tile:focus-visible {
    outline: 3px solid #e10206;
    outline-offset: -3px;
}

.teamwear-hero--collection .teamwear-section-ribbon {
    min-width: 420px;
}

.teamwear-offfield-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    text-align: center;
}

.teamwear-offfield-copy__top {
    min-width: 285px;
    padding: 3px 24px 4px;
    background: rgba(255, 255, 255, .70);
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 500;
    line-height: 1;
}

.teamwear-offfield-copy__dark {
    min-width: 285px;
    margin-top: 14px;
    padding: 2px 18px 3px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: clamp(19px, 1.8vw, 28px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .12em;
}

.teamwear-offfield-copy__plus {
    margin: 2px 0 0;
    color: #222;
    font-size: 22px;
    font-style: normal;
    line-height: 1;
}

.teamwear-offfield-copy__dark--wide {
    min-width: 335px;
    margin-top: 2px;
}

.teamwear-accessories {
    display: grid;
    grid-template-columns: 1fr 2fr;
    width: 100%;
    gap: 0;
    background: #fff;
}

.teamwear-accessories__featured {
    aspect-ratio: auto;
    min-height: 900px;
}

.teamwear-accessories__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 8px 0 8px;
}

.teamwear-accessories__grid .teamwear-tile {
    aspect-ratio: auto;
    min-height: 446px;
}

@media (max-width: 1199.98px) {
    .teamwear-hero--intro {
        height: 610px;
    }

    .teamwear-hero--collection,
    .teamwear-hero--off-field {
        height: 680px;
    }

    .teamwear-accessories__featured {
        min-height: 760px;
    }

    .teamwear-accessories__grid .teamwear-tile {
        min-height: 376px;
    }
}

@media (max-width: 991.98px) {
    .teamwear-hero--intro {
        height: 560px;
    }

    .teamwear-hero--collection,
    .teamwear-hero--off-field {
        height: 600px;
    }

    .teamwear-hero__content--intro h1 {
        font-size: clamp(34px, 5.5vw, 46px);
    }

    .teamwear-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teamwear-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .teamwear-tile__label {
        font-size: 16px;
    }

    .teamwear-accessories {
        grid-template-columns: 1fr;
    }

    .teamwear-accessories__featured {
        min-height: 600px;
    }

    .teamwear-accessories__grid {
        padding: 8px 0 0;
        gap: 8px;
    }

    .teamwear-accessories__grid .teamwear-tile {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 767.98px) {
    .teamwear-hero--intro {
        height: 500px;
    }

    .teamwear-hero--collection,
    .teamwear-hero--off-field {
        height: 520px;
    }

    .teamwear-hero__image {
        object-position: center center;
    }

    .teamwear-hero__content--intro {
        padding: 0 20px;
    }

    .teamwear-hero__content--intro h1 {
        font-size: 34px;
    }

    .teamwear-hero__content--intro p {
        margin: 18px 0 14px;
        font-size: 15px;
    }

    .teamwear-section-ribbon,
    .teamwear-hero--collection .teamwear-section-ribbon {
        min-width: 0;
        max-width: calc(100% - 34px);
        padding: 5px 16px 6px;
        font-size: 20px;
        white-space: normal;
    }

    .teamwear-grid--three {
        grid-template-columns: 1fr;
    }

    .teamwear-grid--three .teamwear-tile {
        aspect-ratio: 4 / 3;
    }

    .teamwear-offfield-copy__top,
    .teamwear-offfield-copy__dark {
        min-width: 230px;
    }

    .teamwear-offfield-copy__dark--wide {
        min-width: 280px;
    }

    .teamwear-accessories__featured {
        min-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .teamwear-hero--intro {
        height: 430px;
    }

    .teamwear-hero--collection,
    .teamwear-hero--off-field,
    .teamwear-accessories__featured {
        height: 430px;
        min-height: 430px;
    }

    .teamwear-hero__content--intro h1 {
        font-size: 29px;
    }

    .teamwear-grid--four {
        grid-template-columns: 1fr;
    }

    .teamwear-grid--four .teamwear-tile {
        aspect-ratio: 4 / 3;
    }

    .teamwear-tile__label {
        min-width: 52%;
        padding: 3px 12px 4px;
        font-size: 16px;
    }

    .teamwear-accessories__grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 0;
    }

    .teamwear-accessories__grid .teamwear-tile {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teamwear-tile img,
    .teamwear-tile::after {
        transition: none;
    }
}
