:root {
    --cor-fundo: #2c2c2c;
    --cinza-padrao: #7C7C7C;
    --roxo-padrao: #8400FF;
}
::-webkit-scrollbar {
    width: 0px;
    background: transparent; 
}
*{
    font-family: 'Manrope', sans-serif;
}

body{
    background-color: var(--cor-fundo);
    scrollbar-width: none;
    margin-right: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1800px;
}
header nav button{
    display: none;
}
header nav .logo{
    margin-top: 40px;
    margin-bottom: 40px;
}
header nav .logo img{
    width: 150px;
}
header .tagsMobile{
    display: none;
}
header .tags{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 8px;
}
header .tags .tagButton, header .tagsMobile .tagButton{
    cursor: pointer;
    border: 2px solid var(--cinza-padrao);
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 100%;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: white;
    transition: all 0.3s;
}
header .tags .botaoTag:hover, header .tagsMobile .botaoTag:hover {
    background-color: var(--roxo-padrao);
    border-color: var(--roxo-padrao);
}
header .tags .tagButton.ativo, header .tagsMobile .tagButton.ativo {
    background-color: var(--roxo-padrao);
    border-color: var(--roxo-padrao);
}

main{
    max-width: 1800px;
}
main .cardsContainer{
    flex-direction: column;
    display: grid;
    gap: 16px;
}
.cardsContainerPortrait {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}
.cardsContainerLandscape {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
}
main .cardsContainer .cardContent {
    background-color: white;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: flex;
    max-height: 512px;
}
main .cardsContainer .cardContent.col-span-3 {
    flex-direction: row;
}
main .cardsContainer .cardContent.col-span-2, main .cardsContainer .cardContent.col-span-1 {
  flex-direction: column;
}
main .cardsContainer .cardContent .tagBase {
    margin: 10px;
    border-radius: 8px;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
main .cardsContainer .cardContent .tagBase .tagText {
    white-space: nowrap;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3%;
    text-transform: uppercase;
    padding: 8px 16px;
}
main .cardsContainer .cardContent.cardContent.col-span-3 .cardImageContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}
main .cardsContainer .cardContent.cardContent.col-span-3 .cardImageContainer img{
    max-height: 450px;
}
main .cardsContainer .cardContent .cardImageContainer img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 332px;
}
main .cardsContainer .cardContent .descricaoContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    height: 100%;
}
main .cardsContainer .cardContent .descricaoContainer .nomeProduto{
    font-weight: 800;
    font-size: 18px;
    text-align: start;
    letter-spacing: 0.03em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}
main .cardsContainer .cardContent .descricaoContainer .sku{
    color: var(--cinza-padrao);
    text-align: start;
    font-weight: 800;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
main .cardsContainer .cardContent .descricaoContainer .divider{
    width: 100%;
    background-color: var(--cinza-padrao);
    height: 1px;
    margin-bottom: 0.5rem;
}
main .cardsContainer .cardContent .descricaoContainer .descricaoProduto{
    color: var(--cinza-padrao);
    font-weight: 800;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.modal{
    position: fixed;
    inset: 0;
    background-color: rgb(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal.active{
    opacity: 1;
    pointer-events: auto;
}
.modal .fullRelativeTransition {
    width: 100%;
    position: relative;
    transition: all 0.3s ease-out;
    opacity: 1;
    transform: scale(0.95);
}
.modal .fullRelativeTransition.active {
  opacity: 1;
  transform: scale(1);
}
.modal .fullRelativeTransition .descriptionContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    text-align: center;
}
.modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize{
    width: 50%;
    margin-top: 30px;
}
.modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionNome{
    color: white;
    font-size: 24px;
}
.modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionSku{
    color: var(--cinza-padrao);
    font-size: 22px;
}
.modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionProduto{
    color: var(--cinza-padrao);
    font-size: 18px;
}
.modal .fullRelativeTransition .imageContainer{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    overflow: hidden;
}
.modal .fullRelativeTransition .imageContainer img{
    object-fit: contain;
    background-color: white;
    border-radius: 36px;
    max-height: 45rem;
}

footer{
    color: white;
}
footer .backToTopButton{
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}
footer .backToTopButton button{
    border-radius: 9999px;
    border: 2px solid #FFF;
    padding: 0.75rem;
    background-color: #2c2c2c;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
footer .backToTopButton button svg{
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile */
@media (max-width: 600px) {
    body{
        margin-right: 10px;
        margin-left: 10px;
    }
    header{
        margin-bottom: 90px;
    }
    header nav{
        background-color: var(--cor-fundo);
        height: 80px;
        width: 100%;
        z-index: 50;
        position: fixed;
        top: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    header nav button{
        display: block;
        color: white;
        margin-right: 10px;
    }
    header nav button svg{
        width: 35px;
        height: 35px;
    }
    header nav .logo{
        margin-left: 10px;
    }
    header .tagsMobile{
        padding-top: 5rem;
        padding-bottom: 5rem;
        position: fixed;
        inset: 0;
        background-color: var(--cor-fundo);
        height: 100vh;
        z-index: 20 !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        gap: 0.75rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        overflow: auto;
    }
    header .tagsMobile.open {
        transform: translateY(0);
    }
    header .tags{
        display: none;
    }
    header .tags .tagButton, header .tagsMobile .tagButton {
        padding: 16px 24px;
        font-size: 16px;
    }
    main .cardsContainer{
        display: flex;
    }
    main .cardsContainer .cardContent{
        max-height: 100%;
        padding-bottom: 20px;
    }
    main .cardsContainer .cardContent img{
        max-height: 100%;
    }

    .modal{
        background-color: white;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize{
        width: 70%;
        margin-top: 0px;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionNome{
        color: black;
        font-size: 20px;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionSku{
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 18px;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionProduto{
        font-size: 14px;
    }
    .modal .fullRelativeTransition .imageContainer img{
        border-radius: 0px;
    }
}
/* 100-3000px x 1000-50px */
@media (min-width: 100px) and (max-width: 3000px) and (min-height: 50px) and (max-height: 1000px) {

    .modal .fullRelativeTransition .imageContainer img{
        max-height: 30rem;
        max-width: 30rem;
    }
}
/* 100-3000px x 700-50px */
@media (min-width: 100px) and (max-width: 3000px) and (min-height: 50px) and (max-height: 700px) {

    .modal{
        background-color: white;
    }
    .modal .fullRelativeTransition .imageContainer img{
        max-height: 15rem;
        max-width: 15rem;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionNome{
        color: black;
        font-size: 20px;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionSku{
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 18px;
    }
    .modal .fullRelativeTransition .descriptionContainer .descriptionContainerSize .descriptionProduto{
        font-size: 14px;
    }
}
/* 100-3000px x 400-50px */
@media (min-width: 100px) and (max-width: 3000px) and (min-height: 50px) and (max-height: 400px) {

    .modal .fullRelativeTransition .imageContainer img{
        max-height: 10rem;
        max-width: 10rem;
    }
}
/* 1100-1400px x 600-800px */
@media (min-width: 1100px) and (max-width: 1400px) and (min-height: 200px) and (max-height: 999px) {
    main .cardsContainer .cardContent{
        max-height: 452px;
    }
    main .cardsContainer .cardContent img{
        max-height: 200px;
    }
}


/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0.8;
        transform: translateY(65px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fadeInUp {
    animation: fadeInUp 1.6s ease forwards;
}
@keyframes slideIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}
.slide-anim {
    animation-name: slideIn;
    animation-duration: 0.6s;
    animation-timing-function: ease-in-out; 
    animation-fill-mode: both;
}