
body a {
}

.shirts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.shirts-item {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, .5);
    border: 1px solid black;
    /* font-family: JetBrains Mono, monospace; */

}

.shirts-item:nth-child(3n+1) {
    /* background: url("../shirts/color_bars.gif") */
    /*     center / cover no-repeat fixed; */
    background: url("../shirts/blue_noise.gif") fixed;
}

.shirts-item:nth-child(3n + 2) {
    background: url("../shirts/black_snow.gif") fixed;
}

.shirts-item:nth-child(3n+3) {
    background: url("../shirts/color_bars.gif") fixed;
}

.shirts-mockup {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(1.2);
}

.shirts-design {
    position: absolute;
    z-index: 3;
    width: auto;
    left: 50%;
    top: 55%;
    transform:
        translate(
            calc(-50% + 0px),
            calc(-50% - 20px)
        );

    cursor: crosshair;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}


.shirts-zoom {
    position: absolute;
    z-index: 100;
    left: 10px;
    top: 10px;
    width: 40%;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.65);
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid black;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.shirts-zoom.visible {
    opacity: 1;
}


.shirts-price {
    position: absolute;
    z-index: 100;
    right: 10px;
    bottom: 10px;
    width: fit-content;
    padding: .5rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid black;
    font-size: 2rem;
    color: black;
    line-height: 1;
}



.shirts-price a {
    color: black;
}

.shirts-price:hover {
    background: var(--spacedvd-button);
    color: var(--bw-text);
    animation:
        bw-text 9s linear infinite,
        spacedvd-button 9s linear infinite;
}

/* .shirts-item:hover .shirts-price { */
/*     background: var(--spacedvd-button); */
/*     color: var(--bw-text); */
/*     animation: */
/*         bw-text 9s linear infinite, */
/*         spacedvd-button 9s linear infinite; */
/* } */


.shirts-new-badge {
    position: absolute;
    z-index: 100;
    top: 10px;
    right: 10px;
    width: fit-content;
    font-size: 3rem;
    line-height: 1;
}

.free-shipping-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    animation: toggleCase 1.5s ease-in-out infinite;
    font-family: JetBrains Mono, monospace;
    z-index: 200;
}

.shirt-buy {
    position: absolute;
    z-index: 100;
    bottom: 0;
}

.shirts-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);;
    gap: 10px;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.shirts-nav::-webkit-scrollbar {
    display: none;
}


.shirts-nav-item {
    position: relative;
    flex: 0 0 100px;
    aspect-ratio: 1/1;
    display: block;
    overflow: hidden;
    border: 1px solid black;
    box-sizing: border-box;
    image-rendering: pixelated;
    background: white;
}


.shirts-nav-item img {
    position: absolute;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


.shirts-nav-item:hover {
    border: 1px solid white;
    filter: invert(5);
}


#nav-001 img {
    transform: translate(-40%, -50%);
}

#nav-002 img {
    transform: translate(-110px, -120px);
}

#nav-003 img {
    transform: translate(-20px, -80px);
}

#nav-004 img {
    transform: translate(-120px, -180px);
}

#nav-005 img {
    transform: translate(-200px, -200px);
}

#nav-006 img {
    transform: translate(-70px, -100px);
}


/* =========================
   INDIVIDUAL SHIRTS
   ========================= */

#shirt-001 .shirts-mockup {
}

#shirt-001 .shirts-design {
    position: absolute;
    top: 50%;
}

#shirt-002 .shirts-mockup {
}

#shirt-002 .shirts-design {
}


#shirt-004 .shirts-mockup {
}


#shirt-005 .shirts-design {
    position: absolute;
    top: 50%;
}

#shirt-005 .shirts-mockup {
    transform: scale(1.5);
}

#shirt-006 .shirts-mockup {
}


@media (orientation: portrait) and (max-width: 600px) {
    .shirts-item {
        height: 60dvh;
    }
    .shirts-mockup {
        transform: scale(1.6);
    }
    .shirts-design {
        position: absolute;
        top: 60%;
    }
    #shirt-005 .shirts-mockup {
        transform: scale(1.8);
    }
}





/* Effects */

.signal-noise {
    animation: signal-noise 10s steps(1) infinite;
}

@keyframes signal-noise {
    0%, 92% {
        opacity: 1;
    }

    /* noise begins */
    93% {
        opacity: 0.55;
    }

    93.5% {
        opacity: 0.8;
    }

    94% {
        opacity: 0.4;
    }

    94.5% {
        opacity: 0.7;
    }

    95% {
        opacity: 0.3;
    }

    95.5% {
        opacity: 0.65;
    }

    96% {
        opacity: 0.45;
    }

    97% {
        opacity: 0.75;
    }

    /* signal restored */
    98%, 100% {
        opacity: 1;
    }
}

