main {
    margin-top: calc(var(--HeaderHeight) + 2.8rem);
}

.Header {
    height: 14.4rem;
    box-shadow: none;
}

.Header::after {
    content: '';
    position:absolute;
    width: 100%;
    height: 11px;
    background-color: var(--Secondary400);
    top: 100%;
}

.HeaderMenu {
    display: none;
}

.PagesBackground {
    height: calc(16.1rem + 12vw);
}


#_MainProducts {
    justify-content: space-between;
    gap: 2.4rem;
    display: none;
}

.ProductsBag {
    width: 60vw;
}

.ProductsBag h1 {
    margin-bottom: 2.3rem;
}

#_PurchaseDescription {
    display: flex;
    flex-direction: column;
    background-color: var(--NeutralWhite);
    border: 1px solid var(--NeutralBorder);
    border-radius: var(--BorderRadius);
    padding: 18px;
    width: 20vw;
    height: max-content;
    min-width: 27rem;
    margin-top: 7rem;
}

#_PurchaseDescription h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

#_PurchaseDescription .Total {
    padding-top: 2rem;
    display: flex;
    font-size: 1.8rem;
    justify-content: space-between;
}

#_PurchaseDescription .PaymentsMethods {
    display: flex;
    flex-direction: column;
    text-align: end;
    font-size: 1.4rem;
    font-family: var(--LegendFamily);
    margin-top: .8rem;
}

#_PurchaseDescription .PaymentsMethods > legend {
    color: var(--Success600);
}

.DescriptionFormated {
    font-family: var(--LegendFamily);
}

.DescriptionWeight{
    font-weight: 700;
}

.ProductsBag .HeaderProduct {
    width: 100%;
    display: flex;
    font-family: var(--ParagraphFamily);
    font-weight: 700;
    background-color: var(--Secondary400);
    box-sizing: border-box;
    border-radius: var(--BorderRadius);
    padding: 8px 16px;
}

.Itens .Product {
    display: flex;
    height: 14.6rem;
    border-bottom: 1px solid var(--NeutralBorder);
    padding: 1.6rem;
}

.ProductTitle h2 {
    font-size: clamp(1.1rem, .1rem + 1vw, 2rem);
    margin-left: 1.6rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.ProductsBag .HeaderProduct #_Item {
    width: 50%;
}

.ProductsBag .HeaderProduct #_Qty {
    width: 35%;
}

.ProductsBag .HeaderProduct #_Price {
    width: 15%;
}

.TitlesFormated {
    font-family: var(--TitleFamily);
    font-size: 3.2rem;
    font-weight: var(--TitleWeight);
    text-transform: uppercase;
    color: var(--NeutralBlack);
}

.Itens .Product .ProductImage {
    width: 13rem;
    min-width: 13rem;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 8px;
}

.Itens .Product .ProductImage img {
    width: 110%;
    margin: -5% 0 0 -5%;
}

.ProductCheckoutQuantity {
    width: 30%;
}

.ProductTitle {
    display: flex;
    width: 50%;
    padding-right: 2rem;
}

.ProductCheckoutQuantity button {
    width: 4.8rem;
    height: 4.8rem;
    background-color: var(--NeutralGray);
    border: none;
    color: var(--NeutralWhite);
    font-family: var(--LegendFamily);
    font-size: 3rem;
    font-weight: 300;
    transition: all 0.25s ease-in-out;
}

.ProductCheckoutQuantity button:hover {
    background-color: var(--NeutralBlack);
}

.ProductCheckoutQuantity input {
    width: 8.7rem;
    height: 4.8rem;
    border: 1px solid var(--NeutralShadow);
    padding-left: 1.6rem;
    font-family: var(--ParagraphFamily);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 2.4rem;
    color: var(--NeutralShadow);
    margin: 0 0.8rem;
}

.ProductCheckoutQuantity input::-webkit-outer-spin-button,
.ProductCheckoutQuantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ProductPrice {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ProductPrice h3 {
    font-size: clamp(2rem, 2rem + 1vw, 8rem);
}

.ProductPrice s {
   font-family: var(--LegendFamily);
   font-weight: var(--TitleWeight);
   font-size: 1.4rem;
   color: var(--NeutralShadow);
}

.SubmitOptions{
    text-align: center;
}

.SubmitOptions button[type='submit']{
    width: 100%;
    height: 4.8rem;
    border-radius: var(--BorderRadius);
    border: none;

    font-size: 1.8rem;
    font-family: var(--ParagraphFamily);
    font-weight: 400;

    background-color: var(--Secondary500);
    cursor: pointer;
    margin-top: 30px;
}

.SubmitOptions a{
    text-decoration: none;
    font-family: var(--LegendFamily);
    font-size: 1.8rem;
    color: var(--NeutralShadow);

}

.ProductSuggestGrid {
    flex-direction: column;
    padding: 5.5rem 0;
}

.SuggestSlide {
    display: none;
}

.ProductSuggestGrid .CardContainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-gap: 0 auto;
    grid-auto-flow: column;
    max-width: 135rem;
    overflow: visible;
    padding: 1.5rem 0rem 1.5rem 0rem;
}

.ProductSuggestGrid .CardContainer:hover{
    overflow-x: auto;
}

.HeaderCart {
    position: relative;
    z-index: 2;
}

.ProductsNotFound {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    font-family: var(--TitleFamily);
    text-transform: uppercase;
    height: 50rem;
    font-size: 1.8rem;
    display: none;
    margin-bottom: 3rem;
}

.ProductsNotFound img {
    width: 33rem;
    height: 35rem;
    align-self: center;
    pointer-events: none;
}

.ProductsNotFound a {
    font-family: var(--ParagraphFamily);
    color: var(--NeutralShadow);
}

/*Loading API*/

.Loading {
    height: 30rem;
    display: flex;
    align-items: center;
    display: none;
}

.Loading .LoadingApi {
    position: relative;
    height: 3.8rem;
    width: 3.8rem;
    background: linear-gradient(to bottom, rgb(254, 0, 1) 50%, white 50% );
    border-radius: 50%;
    border: 2px solid black;
    animation: spin 1s ease-out infinite;
    margin: 2rem auto;
}

.Loading .LoadingApi::before {
    content: '';
    position: absolute;
    height: 0.2rem;
    width: 3.8rem;
    background: black;
    top: 1.5rem;
    right: -2.1rem;
    transform: translate(-50%);
}

.Loading .LoadingApi::after {
    content: '';
    position: absolute;
    height: 0.8rem;
    width: 0.8rem;
    border-radius: 50%;
    border: 2px solid black;
    background: white;
    top: 1.7rem;
    left: 1.7rem;
    transform: translate(-50%, -50%);
}

/*SkeletonLoading*/

.LoadingColor {
    background-color: #e5e5e5;
    position: relative;
}

.LoadingColor::after {
    content: '';
    position: absolute;
    overflow: hidden;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background-image: linear-gradient(to left, transparent, rgba(255,255,255,.5), transparent);
    animation: loading 1s infinite;
}

.SkeletonLoading {
    padding: 5.5rem 0;
    width: 90vw;
    max-width: 135rem;
    margin: auto;
    display: flex;
    display: none;
}

.SkeletonLoading .CardSkeletonContainer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-gap: 1.6rem 2.4rem;
    grid-auto-flow: column;
    max-width: 135rem;
    overflow: visible;
    padding: 1.5rem 0rem 1.5rem 0rem
}

.SkeletonLoading .CardSkeleton {
    width: 41.5rem;
    height: 26rem;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    background-color: #FFFFFF;
    border: 1px solid var(--NeutralBorder);
    gap: 0.8rem;
    transition: all 0.2s ease-in-out;
}

.CardSkeleton .CardImgSkeleton {
    min-width: 13rem;
    height: 23.6rem;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
}

.CardImgSkeleton label {
    display: block;
    left: 0.4rem;
    top: 0.4rem;
    width: 5.3rem;
    height: 2.2rem;
    background-color: #cecbcb;
    border-radius: 1.1rem;
}

.CardSkeleton .CardInfoSkeleton {
    width: 67%;
    height: 100%;
    padding-top: 0.5rem;
    margin-left: 0.5rem;
}

.CardInfoSkeleton .CardLiveSkeleton{
    display: block;
    width: 15rem;
    height: 2rem;
    border-radius: 8px;
}

.CardInfoSkeleton .CardTitleSkeleton{
    margin-top: 1.3rem;
    display: block;
    width: 20rem;
    height: 3rem;
    border-radius: 8px;
}

.CardInfoSkeleton .CardPaymenteSkeleton {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    line-height: 2.3rem;
    bottom: 0;
    width: 100%;
}

.CardPaymenteSkeleton .CardStrikePriceSkeleton {
    display: block;
    border-radius: 8px;
    width: 10rem;
    height: 2rem;
}

.CardPaymenteSkeleton .CardPriceSkeleton {
    display: block;
    border-radius: 8px;
    width: 15rem;
    height: 3rem;
}

.CardPaymenteSkeleton .CardButtonSkeleton {
    display: block;
    border-radius: 8px;
    width: 100%;
    height: 4rem;
}

.ProductCheckoutQuantity .DeleteCustom {
    background-color: #FE4329;
    background-repeat: no-repeat;
    background-size: 3rem;
    background-position: center;
}

.ProductCheckoutQuantity i {
    display: flex;
    justify-content: center;
    transition: all 0.25s ease-in-out;
}

.ProductCheckoutQuantity .DeleteCustom:hover{
    background-color: #C50000;
}

.ErrorCustom {
    width: 100%;
    max-width: 20rem;
    font-size: 1.4rem;
    color: var(--Primary400);
    font-family: var(--ParagraphFamily);
    border: 1px solid var(--Primary400);;
    height: max-content;
    border-radius: var(--BorderRadius);
    text-align: center;
    padding: 0.6rem;
    position: absolute;
    top: -1rem;
    align-items: center;
    justify-content: center;
    display: none;
}

.LoadingContinue {
    height: 100%;
    width: 100%;
    display: flex;
    display: none;
}

.Toast {
    z-index: 7;
    display: none;
    position: absolute;
    right: 3rem;
    top: 3rem;
    height: 60px;
    box-sizing: border-box;
    width: 37rem;
    background: var(--Primary200);
    border-radius: var(--BorderRadius);
    padding: 1.2rem;
    font-family: var(--ParagraphFamily);
    font-size: 1.5rem;
    color: var(--Primary600);
    box-shadow: 0 0 8px rgba(56, 56, 56, 0.8);
    transform: translateX(445px);
    transition: transform .8s ease-in-out;
}

/*Skeleton animation*/
@keyframes loading {
    100%{
        transform: translateX(100%);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
}

@media screen and (max-width: 1024px){
    .ProductBag {
        width: 100%;
    }

    #_MainProducts {
        flex-direction: column;
    }

    #_PurchaseDescription {
        width: 100%;
    }
    .SubmitOptions button[type='submit'] {
        max-width: 60rem;
    }

    .ProductsBag {
        width: 100%;
    }
    .Itens .Product .ProductTitle h2 {
        font-size: clamp(1.1rem, 1rem + 1vw, 2rem);
    }
}

@media screen and (max-width: 768px) {

    .PagesBackground {
        height: calc(17.7rem + 12vw);
    }

    .ErrorCustom {
        width: 9rem;
        height: 6.5rem;
        top: -7.2rem;
        left: 10.7rem;
    }

    .ProductSuggestGrid {
        padding: 4rem 0;
        position: relative;
        width: 100vw;
    }

    .SuggestSlide {
        display: block;
        position: absolute;
        width: 4rem;
        opacity: 0.5;
        top: calc(50% - 1.5rem);
        right: 25px;
        z-index: 1;

        animation: SuggestSlide 1.2s ease-out infinite;
    }

    @keyframes SuggestSlide {
        from {
            transform: translateX(0px);
        }
        to {
            transform: translateX(20px);
        }
    }

    .ProductSuggestGrid .CardContainer {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-gap: 0 1rem;
        overflow-x: auto;
        width: 100vw;
        padding: 1.5rem 1.5vw 1.5rem 1.5vw;
    }

    .ProductSuggestGrid .CardContainer::-webkit-scrollbar {
        height: 0;
    }

    .ProductSuggestGrid .Card {
        width: 90vw;
        max-width: 38rem;
    }

    .HeaderMenu .BurguerOpen {
        display: block;
    }

    #_MainProducts {
        flex-direction: column;
        width: 100vw;
        justify-content: center;
    }

    .ProductsBag {
        width: 100%;
    }

    .Product {
        flex-direction: column-reverse;
        position: relative;
        height: 100% !important;
        width: 100%;
    }

    .Product .ProductTitle {
        width: 100%;
        height: 18rem;
    }

    #_MainProducts .HeaderProduct {
        display: none;
    }

    .Itens .Product .ProductImage {
        width: 15%;
    }

    .ProductTitle h2 {
        height: 25%;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-transform: uppercase;
        font-size: 1.5rem;
        margin-left: 2.5rem;
    }

    .ProductCheckoutQuantity {
        width: 80%;
        position: absolute;
        right: calc(20% + -14rem);
    }

    .ProductPrice {
        width: 30%;
        display: flex;
        justify-content: center;
        align-items: start;
        flex-direction: column;
        position: absolute;
        height: max-content;
        margin-top: 5rem;
        right: calc(70% + -14rem);
        top: 10%;
        bottom: 0;
    }

    .ProductPrice h3 {
        font-size: 2.4rem;
    }

    .ProductPrice s {
        margin-bottom: 2rem;
    }

    #_MainProducts .Itens .Product:first-child{
        border-top: 1px solid var(--NeutralBorder);
    }

    #_PurchaseDescription {
        margin: 0;
        width: 100%;
    }

    .Header::after {
        content: none;
    }

    main {
        margin-top: calc(var(--HeaderHeight) + -3.2rem);
    }

    .ProductsBag h1 {
        margin-left: 1.7rem;
        margin: 0 0 1rem 1.7rem;
    }
    .Itens .Product .ProductImage img {
        height: 80%;
    }
}

@media screen and (max-width: 500px) {

    .ProductsNotFound {
        font-size: 1.6rem;
        width: 80%;
    }

}
