/* Hero Section */
.hero.collections{
    position: relative;
    display: block;
    height: 50svh;
}

.hero.collections>.carousel{
    gap: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    padding: 0;
}

.hero.collections>.carousel>.cart{
    flex: 0 0 100%;
    display: flex;
    border-radius: 0;
}

.hero.collections>.carousel>.cart:first-child,
.hero.collections>.carousel>.cart:last-child{
    margin: 0;
}

.hero.collections>.carousel>.cart>article{
    display: none;
}

.hero.collections>.carousel>.cart>a{
    position: absolute;
    bottom: 15%;
    left: 1rem;
    right: 1rem;
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    margin: 0;
    padding-top: 50%;
    filter: drop-shadow(1px 1px 0 var(--black));
}

.hero.collections>.carousel>.cart>a:hover,
.hero.collections>.carousel>.cart>a:active{
    color: var(--white);
    filter: drop-shadow(3px 3px 0 var(--black));
}

.hero.collections>.carousel>.cart>picture{
    flex: 0 0 100%;
}

.hero.collections>.carousel>.cart>picture>img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.hero.collections>.collection-buttons{
    display: none;
}

.hero.collections>.marker{
    list-style: none;
    position: absolute;
    bottom: 3%;
    left: 2%;
    display: flex;
    justify-content: center;
    align-items: end;
    width: 95%;
    padding: 0;
    margin: 0;
}

.hero.collections>.marker li{
    position: relative;
    width: 100%;
    color: var(--white);
    padding-block: 0.5em;
    filter: drop-shadow(1px 1px var(--black));
    opacity: 0.7;
    cursor: pointer;
    transition: 300ms;
}

.hero.collections>.marker li:hover,
.hero.collections>.marker li.active{
    opacity: 1;
}

.hero.collections>.marker li::after{
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--white);
}

.hero.collections>.marker li.active::after{
    top: 0;
    height: 6px;
    cursor: default;
}

/* Products Section */
.products{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3em;
    border-radius: 1em;
    margin-inline: 5%;
    overflow: hidden;
}

.products>article{
    align-content: center;
    text-align: center;
    background-color: var(--grey);
}

.products>article>h1{
    text-wrap: wrap;
    font-size: 1.5rem;
}

.products>a{
    position: relative;
    aspect-ratio: 1/1;
    color: var(--white);
    text-shadow: 1px 1px var(--shadow);
    overflow: hidden;
}

.products>a:first-of-type{
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.products>a:active,
.products>a:hover{
    color: var(--white);
}

.products>a:active img,
.products>a:hover img{
    filter: blur(3px) brightness(80%);
}

.products img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.products h3{
    position:absolute;
    bottom: 0;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.products>a p{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    transition: all 300ms;
}

.products>a.pending{
    pointer-events: none;
}

.products>a.pending>h3{
    color: var(--shadow-2);
}

.products>a.pending>img{
    filter: brightness(30%);
}

.products>a.pending p{
    display: block;
    transform: translate(-50%, -100%);
    text-align: center;
    font-size: 2em;
}

/* Services Section */
.services{
    width: min(1100px, 90%);
    text-align: center;
    text-wrap: balance;
}

.services>p{
    font-size: 1.3em;
    font-weight: 300;
    font-style: italic;
}

/* Brands Section */
.collections{
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
}

.collections>article{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.5em;
    padding: 5%;
    overflow-y: auto
}

.collections>article>h2{
    margin-top: 0;
}

.collections>article>ul{
    flex: 1 1 50%;
    color: var(--shadow-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.collections>article>ul>li{
    position: relative;
    display: inline;
    cursor: pointer;
}

.collections>article>ul>li{
    white-space: nowrap;
}

.collections>article>ul>li:not(:last-child):after{
    content: " | ";
}

.collections>article>ul>li:hover,
.collections>article>ul>li.active{
    color: var(--black);
}

.collections>article>ul>li>span{
    position: relative;
}

.collections>article>ul>li>span::before{
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    height: 1px;
    width: 0;
    background: var(--black);
    transition: all 150ms;
}

.collections>article>ul>li.active>span::before{
    left: 0;
    width: 100%;
}

.collection-buttons{
    display: none;
}

.collections div.carousel{
    display: flex;
    gap: 3em;
    max-height: 60svh;
    cursor: grab;
    overflow: hidden;
    padding-inline: 5%;
}

.collections>div.carousel.dragging{
    cursor: grabbing;
    scroll-behavior: auto;
}

.collections>div.carousel.dragging>.cart{
    pointer-events: none;
    cursor: grabbing;
}

div.carousel>.cart{
    flex: 0 0 70%;
    position: relative;
    border-radius: 1em;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

div.carousel>.cart>img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(80%);
    transition: all 300ms;
}

div.carousel>.cart:hover>img{
    filter: brightness(80%) blur(2px);
}

div.carousel>.cart>div{
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    height: 25%;
    width: min(80%, 500px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5em;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    text-shadow: 1px 1px 0 var(--black);
    transition: all 300ms;
}

div.carousel>.cart>div>img{
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
    margin: auto;
}

div.carousel>.cart>div>img.logo{
    height: 100%;
    max-height: 4em;
    width: auto;
    margin: auto 0 auto 1em;
}

/* News */
.news{
    margin-inline: 5%;
}

.news>article{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5em;
    border-radius: 1em;
    overflow: hidden;
}

.news>article>div{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    text-wrap: balance;
    background-color: var(--grey);
    padding-bottom: 1em;
    margin: 0;
}

.news>article>div>img{
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.news>article>div>h3,
.news>article>div>p,
.news>article>div>a{
    margin: 0.5em 1.5rem;
}

.news>article>div>p{
    grid-column: 1/3;
}

.news>article>div>a{
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--black);
    fill: var(--black);
    text-decoration: none;
    margin: auto 7% 1em 7%;
    transition: all 100ms;
}

.news>article>div>a:hover{
    color: var(--blue-accent);
    fill: var(--blue-accent);
}

.news>article>div>a>p{
    max-width: 15ch;
    text-wrap: balance;
    font-weight: 600;
    margin: 0;
}

.news>article>div>a>svg{
    height: 1.3em;
    border: solid 0.2em;
    border-radius: 50%;
    padding: 0.4em;
}

@media (min-width: 761px){
    .hero.collections{
        height: 70svh;
    }

    .hero.collections>.carousel>.cart>a{
        left: 2%;
    }

    /* Products Section */
    .products{
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5em;
    }

    .products>article{
        text-align: left;
        grid-column: span 2;
        padding-inline: 1em;
    }

    .products>article>h1{
        font-size: 2rem;
    }

    .products>a:first-of-type{
        grid-column: span 1;
        aspect-ratio: 1/1;
    }

    .products>a p{
        transform: translate(-50%, -60%);
    }

    .products>a:hover p,
    .products>a:active p{
        display: block;
    }

    /* Brands Section */
    .collections>article{
        gap: 0 2.5em;
    }

    .collections>article>ul{
        flex: 1 1 70%;
        font-size: 0.9em;
    }

    .collection-buttons{
        display: revert;
        flex: 1 1;
        display: flex;
        justify-content: center;
        gap: 2em;
    }

    .collection-buttons>button{
        height: 3em;
        aspect-ratio: 1/1;
        background-color: var(--black);
        border-radius: 50%;
    }

    .collection-buttons>button:hover{
        background-color: var(--shadow-2);
    }

    .collection-buttons>button>img{
        height: 100%;
        width: 60%;
    }

    div.carousel>.cart>div{
        font-size: 2em;
    }

    .news>h2{
        text-align: center;
    }

    .news>article{
        grid-template-columns: repeat(3, 1fr);
    }

    .news>article>div>img{
        aspect-ratio: 1/1;
    }
}

@media (min-width: 1166px){
    /* Hero Section */
    .hero.collections{
        height: 80svh;
    }

    .hero.collections>.carousel>.cart>article{
        flex: 0 0 40%;
        display: revert;
        box-sizing: border-box;
        align-content: center;
        background: var(--grey);
        padding: 0 2em 0 8%;
    }

    @media (max-height: 550px), (max-width: 1350px){
        .hero.collections>.carousel>.cart>article>p{
            display: none;
        }
    }

    .hero.collections>.carousel>.cart>picture{
        flex: 0 0 60%;
    }

    .hero.collections>.collection-buttons{
        position: absolute;
        top: 45%;
        left: 2.5%;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        width: 95%;
        pointer-events: none;
    }

    .hero.collections>.collection-buttons button{
        width: 5vw;
        aspect-ratio: 1/1;
        color: var(--white);
        filter: drop-shadow(1px 1px var(--black));
        background: none;
        opacity: 0.7;
        pointer-events: all;
        transition: 300ms;
    }

    .hero.collections>.collection-buttons button:hover{
        opacity: 1;
    }

    .hero.collections>.marker{
        bottom: 1%;
        align-items: stretch;
    }

    .hero.collections>.marker li{
        padding-top: 10px;
    }

    .hero.collections>.marker li::after{
        top: 0;
    }

    .hero.collections>.marker li.active::after{
        top: -3px;
    }

    /* Products Section */
    .products{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1em;
        max-width: min(1250px, calc(100% - 2em));
        margin-inline: auto;
    }

    .products>article{
        align-content: center;
        grid-column: span 2;
        background-color: var(--grey);
        padding: 0 2em;
    }

    .products>article>h2{
        margin-top: 0;
    }

    .products>a{
        text-shadow: 1px 1px var(--shadow);
        overflow: hidden;
    }

    .products>a h3{
        white-space: nowrap;
    }

    .products>a.pending p{
        transform: translate(-50%, -80%);
        font-size: 3em;
    }

    /* Services Section */
    .services>p{
        font-size: 1.5em;
    }

    /* Brands Section */
    .collections{
        grid-template-columns: 2fr 3fr;
    }

    .collections>article>ul{
        flex: 1 1 100%;
    }

    .collection-buttons{
        margin-top: 1.5em;
    }

    .collection-buttons>button{
        height: 3.5em;
    }

    .collections div.carousel{
        gap: 5em;
        min-height: 400px;
        max-height: min(100%, 65svh);
        padding-left: 0;
    }

    div.carousel>.cart{
        flex: 0 0 65%;
        position: relative;
    }

    /* News */
    .news{
        max-width: 1250px;
        padding-inline: 1em;
        margin-inline: auto;
    }

    .news>article{
        gap: 1em;
    }

    .news>article>div>img{
        aspect-ratio: 3/2;
    }

    .news>article>div>h3,
    .news>article>div>p{
        margin: 0.5em 1.5rem;
    }
}

@media (min-width: 1600px) {
    .hero.collections>.carousel>.cart>article>a{
        width: auto;
    }    
}