@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;900&display=swap');

body {
  overflow: hidden;
  font-family: Arial, sans-serif;
  background-color: #F8ECD4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-y: auto;
}

body::-webkit-scrollbar {
    display: none;
}

*{
  border: 0;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-family: "Poppins", serif;
  font-weight: 400;
  font-style: normal;
}

header{
    background-color: #4CAF50;
    padding: 20px 0px 20px 0px;
    color: white;
    border-radius: 0px 0px 27px 27px;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-nameInfo{
    display: flex;
    margin-left: 25px;
    gap: 15px;    
}

.cart-shopping-buttom > a{
    background-color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main{
    width: 98%;
}

.select-category{
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}

.select-category > a{
    display: flex;
    text-decoration: none;
    color: black;
    width: 32%;
    height: 40vh;
    background-color: white;
    text-align: center;
    flex-direction: column;
    border-radius: 0px 0px 27px 27px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.247);
}

.category-profile{
    width: 100%;
    height: 75%;
    background-position: center;
    background-size: cover;
}

.category1 > .category-profile{
    background-image: url(../assets/image/tapioca_cover.avif);
}

.category2 > .category-profile{
    background-image: url(../assets/image/cuscuz_cover.jpg);
}

.category3 > .category-profile{
    background-image: url(../assets/image/sanduiche_cover.jpg); 
}

.category-text{
    height: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.best-sellers-history{
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.best-sellers-history > div{
    height: 45.4vh;
    flex-grow: 1;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.247);
    border-radius: 25px;
}

.best-sellers{
    background-image: url(../assets/image/banner-best.png);
    background-size: cover;
    background-position: center;
    flex-basis: 56.5%;
    max-width: 100%;
    min-width: 582px;
}

.best-sellers a{
  display: flex; 
  width: 100%; 
  height: 100%; 
  text-align: center; 
  line-height: 100px; 
  text-decoration: none;
  color: black; 
}

.history{
    background-color: #D9D9D9;
    flex-basis: 41%;
    max-width: 100%;
}

.history > p{
    padding: 15px 17px 10px 17px;
}

.space-container{
    height: 83%;
    overflow-y: auto;
    --sb-track-color: #bdb7b7;
    --sb-thumb-color: #797a76;
    --sb-size: 8px;
}

/* Scrollbar personalizada do space-container */
  
  .space-container::-webkit-scrollbar {
    width: var(--sb-size);
  }
  
  .space-container::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 8px;
  }
  
  .space-container::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 8px;
  }
  
  @supports not selector(::-webkit-scrollbar) {
    .space-container {
        scrollbar-color: var(--sb-thumb-color)
                       var(--sb-track-color);
    }
  }

/* ---------- */

.container-info-history{
    background-color: white;
    margin: 0px 17px 10px 17px;
    padding: 15px;
    border-radius: 10px;
}


@media (max-width: 593px) {

    .logo-nameInfo > img{
        width: 54px;
        height: 43px;
    }

    .profile-name > p{
        font-size: 13px;
    }

    .cart-shopping-buttom > a{
        width: 40px;
        height: 40px;
    }

    .cart-shopping-buttom > a > img{
        width: 19px;
        height: 19px;
    }

    main{
        width: 94%;
    }

    .select-category > a{
        height: 28vh;
        box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.404);
    }

    .category-profile{
        height: 50%;
    }

    .category-text{
        height: 50%;
    }

    .best-sellers-history > div{
        height: auto;
        flex-grow: 1;
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.308);
    }

    .best-sellers{
        min-width: 0;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .history{
        width: 100%;
        aspect-ratio: 1/1;
        margin-bottom: 25px;
    }
}