/*
 * Shop page (/the-coolguy-shop/): the opening picture, the three main
 * categories, the row of categories to swipe.
 *
 * Read off the earlier page as it was shown, at every width; the
 * breakpoints are that page's own (800px and 1024px).
 */

/* what shows past the page's ends when a phone overscrolls (the theme's own colour is a pale yellow) */
html body.tcg-sl-page {
    background-color: #ddd9d1;
}

.tcg-sl {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ddd9d1;
    color: #111;
}


/* ---------------------------------------------------------
   OPENING PICTURE
--------------------------------------------------------- */

.tcg-sl .tcg-sl-hero {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    max-height: none;
    margin-top: 0;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f5f2eb;
    text-decoration: none;
    box-shadow: none;
    transition: all .1s ease;
}

.tcg-sl .tcg-sl-hero:hover,
.tcg-sl .tcg-sl-hero:focus {
    color: #f5f2eb;
}

.tcg-sl .tcg-sl-hero__shade {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .03) 42%, rgba(0, 0, 0, .48) 100%);
}

.tcg-sl .tcg-sl-hero__meta {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .18em;
}

.tcg-sl .tcg-sl-hero__copy {
    position: absolute;
    z-index: 2;
    left: 32px;
    bottom: 36px;
    will-change: transform, opacity;
}

.tcg-sl .tcg-sl-hero__title {
    margin: 0 0 25px;
    padding: 0;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(72px, 9vw, 145px);
    font-weight: 500;
    line-height: .84;
    letter-spacing: -.055em;
    color: #f5f2eb;
    will-change: transform, opacity;
}

.tcg-sl .tcg-sl-hero__explore {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: .13em;
}


/* ---------------------------------------------------------
   MAIN CATEGORIES
--------------------------------------------------------- */

.tcg-sl .tcg-sl-main {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background-color: rgba(17, 17, 17, .12);
}

.tcg-sl .tcg-sl-main__item {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 21px 23px 24px;
    overflow: hidden;
    background-color: #e8e4dc;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #111;
    text-decoration: none;
    box-shadow: none;
    transform: translateY(0);
    transition: transform .38s cubic-bezier(.16, .8, .24, 1);
}

.tcg-sl .tcg-sl-main__item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(17, 17, 17, .03) 20%, rgba(17, 17, 17, .16) 65%, rgba(17, 17, 17, .48) 100%);
    pointer-events: none;
}

.tcg-sl .tcg-sl-main__item:hover,
.tcg-sl .tcg-sl-main__item:focus {
    background-color: #cec9bf;
    color: #111;
    transform: translateY(-10px);
}

.tcg-sl .tcg-sl-main__number {
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .14em;
    color: #fff;
    opacity: .4;
}

.tcg-sl .tcg-sl-main__copy {
    color: #fff;
}

.tcg-sl .tcg-sl-main strong {
    display: block;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(26px, 2.45vw, 46px);
    font-weight: 700;
    line-height: .86;
    letter-spacing: -.045em;
    color: #fff;
}

.tcg-sl .tcg-sl-main small {
    display: block;
    margin-top: 10px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .14em;
    color: #fff;
    opacity: .48;
}

.tcg-sl .tcg-sl-main i {
    position: absolute;
    top: 20px;
    right: 22px;
    font-style: normal;
    color: #fff;
    opacity: .4;
}


/* ---------------------------------------------------------
   CATEGORIES TO SWIPE
--------------------------------------------------------- */

.tcg-sl .tcg-sl-cats {
    position: relative;
    z-index: 5;
    display: block;
    padding: 72px 24px 82px;
    overflow: hidden;
}

.tcg-sl .tcg-sl-cats__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.tcg-sl .tcg-sl-cats__kicker {
    display: block;
    margin-bottom: 8px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .16em;
    opacity: .45;
}

.tcg-sl .tcg-sl-cats__title {
    margin: 0;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(38px, 4vw, 65px);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.05em;
    color: #000;
}

.tcg-sl .tcg-sl-cats__track {
    display: flex;
    gap: 9px;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.tcg-sl .tcg-sl-cats__track::-webkit-scrollbar {
    display: none;
}

.tcg-sl .tcg-sl-cats__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.tcg-sl .tcg-sl-cat {
    position: relative;
    isolation: isolate;
    flex: 0 0 clamp(205px, 18vw, 290px);
    aspect-ratio: .86 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 8px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #111;
    text-decoration: none;
    box-shadow: none;
    scroll-snap-align: start;
    cursor: pointer;
    -webkit-user-drag: none;
    transform: translateY(0);
    transition: transform .35s cubic-bezier(.16, .8, .24, 1), background .35s ease;
}

.tcg-sl .tcg-sl-cat--plain {
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .56), rgba(188, 181, 169, .22));
}

.tcg-sl .tcg-sl-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 0, 0, .02) 10%, rgba(0, 0, 0, .08) 55%, rgba(0, 0, 0, .38) 100%);
    pointer-events: none;
}

.tcg-sl .tcg-sl-cat:hover,
.tcg-sl .tcg-sl-cat:focus {
    color: #111;
    transform: translateY(-10px);
}

.tcg-sl .tcg-sl-cat--plain:hover,
.tcg-sl .tcg-sl-cat--plain:focus {
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(176, 168, 155, .34));
}

.tcg-sl .tcg-sl-cat__top,
.tcg-sl .tcg-sl-cat__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Lato, Arial, sans-serif;
    font-size: 7px;
    font-weight: 300;
    letter-spacing: .12em;
    color: #fff;
    opacity: .45;
}

.tcg-sl .tcg-sl-cat__top span,
.tcg-sl .tcg-sl-cat__foot span {
    color: #fff;
}

.tcg-sl .tcg-sl-cat__name {
    max-width: 90%;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(26px, 2.2vw, 40px);
    font-weight: 700;
    line-height: .82;
    letter-spacing: -.045em;
    color: #fff;
}


/* ---------------------------------------------------------
   TABLETS AND PHONES
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-sl .tcg-sl-hero__meta span,
    .tcg-sl .tcg-sl-main__number,
    .tcg-sl .tcg-sl-main small,
    .tcg-sl .tcg-sl-cat__top span,
    .tcg-sl .tcg-sl-cat__foot span {
        font-size: 10px;
    }

    .tcg-sl .tcg-sl-hero__explore {
        font-size: 11px;
    }

    .tcg-sl .tcg-sl-cats__kicker {
        font-size: 10.5px;
    }
}

@media (max-width: 800px) {

    .tcg-sl .tcg-sl-hero {
        height: 82vh;
        min-height: 600px;
        background-attachment: scroll;
    }

    .tcg-sl .tcg-sl-hero__meta {
        top: 24px;
        left: 16px;
        right: 16px;
    }

    .tcg-sl .tcg-sl-hero__copy {
        left: 16px;
        bottom: 24px;
    }

    .tcg-sl .tcg-sl-main {
        grid-template-columns: 1fr;
    }

    .tcg-sl .tcg-sl-main__item {
        min-height: 155px;
    }

    .tcg-sl .tcg-sl-main__item:hover,
    .tcg-sl .tcg-sl-main__item:focus,
    .tcg-sl .tcg-sl-cat:hover,
    .tcg-sl .tcg-sl-cat:focus {
        transform: none;
    }

    .tcg-sl .tcg-sl-cats {
        padding: 55px 14px 65px;
    }

    .tcg-sl .tcg-sl-cat {
        flex-basis: 68vw;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tcg-sl .tcg-sl-main__item,
    .tcg-sl .tcg-sl-cat {
        transition: none;
    }

    .tcg-sl .tcg-sl-cats__track {
        scroll-behavior: auto;
    }
}
