/* Hero Section */
.hero{
    position: relative;
    height: 50svh;
    width: 100%;
}

.hero img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero h1{
    position: absolute;
    left: 0.5em;
    bottom: 1em;
    color: var(--white);
    margin: 0;
    filter: drop-shadow(1px 1px 0 var(--black));
}

.header{
    width: min(1100px, 90%);
    text-align: center;
    text-wrap: balance;
}

.header>p{
    font-size: 1.2em;
    font-weight: 300;
    font-style: italic;
}

/* Bento layout gallery */
.bento{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3em;
    border-radius: 1em;
    margin-inline: 5%;
    overflow: hidden;
}

.bento>img{
    height: 100%;
    width: 100%;
    max-height: 600px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.bento>img.big{
    grid-column: span 2;
    aspect-ratio: 3/2;
}

section.usp{
    max-width: 1250px;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    font-size: 1.2em;
    text-align: center;
    color: var(--black);
    fill: var(--black);
    margin-top: 1em;
}

section.usp>div{
    flex: 1 1 30%;
}

section.usp>div>svg{
    height: 5em;
    width: auto;
}

/* 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;
    object-position: top;
    pointer-events: none;
    transition: all 300ms;
}

div.carousel>.cart>h3{
    position: absolute;
    bottom: 1em;
    left: 0;
    width: 90%;
    color: var(--white);
    text-shadow: 1px 1px 0 var(--black);
    padding-inline: 5%;
    margin: 0;
    filter: drop-shadow(1px 1px 0 var(--shadow));
}

/* Collection Section */
.collection{
    padding-inline: 5%;
}

.collection>div{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.5em;
    justify-items: center;
    margin-block: 2em;
}

.collection>div>a{
    position: relative;
    max-width: 600px;
    color: var(--white);
    text-decoration: none;
    background-color: var(--color);
    border: 1em solid var(--color);
    border-radius: 1.5em;
    transition: all 150ms;
    transition-delay: 0ms;
}

.collection>div>a:active{
    border-radius: 0;
    transition-delay: 0ms;
}

.collection>div>a>h3{
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 65%;
    text-wrap: balance;
    filter: drop-shadow(1px 1px 0 var(--black));
    margin: 0;
}

.collection>div>a>h3>svg{
    height: 1em;
    vertical-align: middle;
    fill: var(--white);
    padding-left: 0.2em;
    transition: all 150ms;
}

.collection>div>a>img{
    height: 100%;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 0.5em;
    transition: all 150ms;
    transition-delay: 0ms;
}

.collection>div>a:active,
.collection>div>a:hover,
.collection>div>a:active>img,
.collection>div>a:hover>img{
    border-radius: 0;
    transition-delay: 0ms;
}

.collection>div>a>img.logo{
    position: absolute;
    bottom: 0;
    right: 0;
    height: auto;
    width: 30%;
    border-radius: 0;
    aspect-ratio: auto;
}

/* Bar with img */
.bar{
    min-height: 60svh;
    position: relative;
    color: var(--white);
    margin-bottom: calc(12svh + 5em);
}

.bar img{
    min-height: 60svh;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.bar article{
    position: absolute;
    bottom: -20%;
    left: 10%;
    box-sizing: border-box;
    align-content: center;
    width: 80%;
    background-color: var(--range, var(--grey));
    border-radius: 1em;
    padding: 3em 2em;
    box-shadow: 0 0.5em 1em var(--shadow-2);
}

.bar article>h2{
    margin-top: 0;
}

.bar article>p{
    display: none;
}

.bar article>a{
    width: auto;
}

.contact{
    padding-inline: 5%;
}

@media (min-width: 761px){
    /* Hero Section */
    .hero{
        height: 70svh;
    }

    .hero h1{
        left: 1em;
    }

    /* Bento layout gallery */
    .bento{
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: 1fr;
        gap: 0.5em;
    }

    .bento>img{
        grid-column: span 2;
    }

    .bento>img.big{
        grid-column: span 3;
    }

    /* 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: 1em;
    }

    .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%;
    }

    .collection>div>a>h3>svg{
        fill: transparent;
        padding-left: 0;
        padding-right: 0.2em;
    }

    .collection>div>a:hover>h3>svg{
        fill: var(--white);
        padding-right: 0;
        padding-left: 0.2em;
    }

    /* Bar with img */
    .bar{
        margin-bottom: 7em;
    }

    .bar article{
        bottom: -3em;
        left: 5%;
        right: 45%;
        min-width: 350px;
    }

    .bar article>p{
        display: block;
    }

    .bar article div{
        display: flex;
    }
}

@media (min-width: 1166px){
    /* Hero Section */
    .hero{
        height: 80svh;
    }

    .hero h1{
        left: 2em;
    }

    /* Bento layout gallery */
    .bento{
        max-width: min(90%, 1500px);
        gap: 1em;
        margin-inline: auto;
    }

    .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: 500px;
        max-height: min(100%, 65svh);
        padding-left: 0;
    }

    div.carousel>.cart{
        flex: 0 0 65%;
        position: relative;
    }

    /* Collection Section */
    .collection{
        max-width: 1500px;
        padding-inline: 1em;
    }

    .collection>h2{
        max-width: 1250px;
        margin-inline: auto;
    }

    .collection>div{
        gap: 1em;
    }

    .collection>div>a{
        max-width: 625px;
    }

    /* Bar with img */
    .bar{
        display: flex;
        width: 100%;
        margin-block: 5em;
    }

    .bar>picture{
        flex: 1 1 60%;
    }

    .bar img{
        aspect-ratio: 4/2;
    }

    .bar article{
        position: static;
        flex: 1 1 40%;
        border-radius: 0;
        padding: 5em 3em;
        box-shadow: none;
    }
    
    .contact{
        max-width: 1250px;
        padding-inline: 1em;
    }
}