/*============ Main =============*/
#background-image-commerce{

    background: linear-gradient(45deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3)), url('../img/slide-home/1.jpg');
    backdrop-filter: blur(5px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 3s;
    padding: 0 20px;
    background-repeat: no-repeat;
    overflow: hidden;  
    position: relative; 
    
}

@keyframes zoom {

    0%{
        background-size: 102% auto;
    }

    100%{
        background-size: 130% auto;
    }

}


/* Adicione uma classe com a animação de zoom-in */
.zoom-in-animation {

    transition: transform 1s;
    animation: zoom-in 2s ease-in-out;
}

/* Defina a animação de zoom-in */
@keyframes zoom-in {

    from {

        transform: scale(0.5);
    }

    to {

        transform: scale(1);

    }

}



/*============ Whatsapp =========*/
#whatsapp-icon{

    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 20;

}

#whatsapp-icon i{

    font-size: 40px;
    color: #25D366;
    border-radius: 50%;

}

/*============ Home ==============*/
#home{

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

#home-text, #home-image{
    width: 40%;
    color: white;
    
}

#home-text h1{

    color: #260101;
    font-weight: bolder;
    text-shadow: 0 0 5px white;
   font-size: 30px;
   font-weight: bolder;
   margin-bottom: 20px;
   font-family: "Poppins";
   transition: 3s;
   
}


#home-text p{
   
    color: white;
    font-family: 'Poppins';
    font-size: 18px;
   transition: 3s;

}

#home-image{

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
    animation: elevator 3s ease-in-out infinite;

}

#cicle {

    position: relative;
    top: 0;
    height: 250px;
    width: 250px;
    border-radius: 50%;
    border: 1px solid #bf2604;
}

#text{
    position: absolute;
    height: 100%;
    width: 100%;
    animation: anim 10s linear infinite;
}

@keyframes anim {

    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(-360deg);
    }

}

#text span{
    position: absolute;
    top: 0%;
    left: 50%;
    transform-origin: 0 122px;
    color: white;
    font-family: "Dancing Script";
}

.main-image{
    height: 250px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    overflow: hidden;
}

@keyframes elevator{

    0%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-5px);
    }

    100%{
        transform: translateY(0);
    }

}

.main-image::after {

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
    transform: skewX(-0.08turn) translateX(-180%);

}
  
.applyStyles::after {

    transform: skewX(-0.08turn) translateX(275%);
    transition: 2000ms ease;
    
}

#box-image{

   display: flex;
   justify-content: center;
   align-items: center;
   height: 200px;
   width: 200px;
   border-radius: 50%;
   border: 1px solid white;
    
}

#box-image img{
    
    height: 100%; 
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
/*============ Navegação manual ============*/
#manual-nav{

    position: absolute;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center; 
    height: 15px;
    

}

.option-manual-nav{

    height: 11px;
    width: 11px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: 1s;

}

.option-manual-nav:hover{
    
    background-color: white;

}
/*============ Nossos produtos =============*/
#our-products{

    padding: 20px 0;
}

#our-products h1{

    text-align: center;
    color: white;
    margin-bottom: 20px;
}

#container-types-of-products{
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 84%;
    margin: 0 auto;

}
#option-types-of-products{
    
    width: 88.4%;
    position: relative;
    height: 286px;
    overflow-x: hidden;
    margin: 0 auto;

}

#slide-box-option-of-product{

    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 1s;

}

.box-option-of-product{
 
    height: 280px;
    width: 230px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid black;
}

.box-option-of-product::after{
    
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
    transform: skewX(-0.08turn) translateX(-180%);

}

.box-option-of-product:hover::after {

    transform: skewX(-0.08turn) translateX(275%);
    transition: 2000ms ease;
}

.box-option-of-product:hover .div-image-option-of-product img{

    transform: scale(1.05);
    transition: 2s;
}

.div-image-option-of-product{
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;

}

.div-image-option-of-product img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;

}

.div-text-option-of-product{
    position: absolute;
    bottom: 0;
    height: 15%;
    width: 100%;
    border-radius: 10px;
    
}
.div-text-option-of-product p{

    text-align: center;
    padding: 5px 0;
    color: #000;
    font-weight: bolder;
    font-size: 19px;
    text-shadow: 0 0 10px white;
}

#loadProducts{

    display: flex;
    justify-content: center;
    height: 318px;
    width: 100%;
    margin-top: 20px;
    
}

h2{
    color: white;
}

.box_list{
    opacity: 0;
    position: relative;
    height: 290px;
    width: 100%;

}

/*========= Setas direita e esquerda =========*/
.slides-ball{

    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .35);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: box-shadow 2s;
    animation: pulsate 1s ease-in-out infinite;
}

@keyframes pulsate {

    0%{
        box-shadow: 0 0 4px white;
    }
    50%{
        box-shadow: 0 0 6px white;
    }
    100%{
        box-shadow: 0 0 6px white;
    }
    
}

.left-ball{
    position: absolute;
    left: 0;
    top: 43%;
}
.right-ball{
    position: absolute;
    right: 0;
    top: 43%;
}

.arrowNavigation{

    height: 20px;
    width: 20px;
    position: absolute;
    top: 10px;
    border-radius: 4px;
    
}
.leftArrowNavigation{

    transform: rotate(-45deg);
    box-shadow: inset 3px 3px gray;
    left: 14px;
}
.rightArrowNavigation{

    transform: rotate(-45deg);
    box-shadow: inset -3px -3px black;
    right: 14px;
}

.div_list{

    position: relative;
    height: 317px;
    width: 94%;
    overflow-x: hidden;
    margin: 0 auto;
}

#list_foods, #list_drinks, #list_fruits, #list_frozen_foods, #personal_hygiene, #list_cleanliness, #list_sweets{
    
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 1s;

}
/* Seletor para o elemento input */
input{
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px ;
    border-radius: 3px;
}
input::placeholder {
    color: white;
}

/*css da caixa de cada produto*/
.box-product{

    position: relative;
    height: 240px;
    width: 190px;
    border-radius: 8px;
    perspective: 1000px;
    cursor: pointer;
    margin: 10px 0;

}

.card-inner {

    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;

}
    
.card:hover .card-inner {

    transform: rotateY(180deg);

}
    
.card-front,
.card-back {

    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
}

.box-alter-product{

    position: absolute;
    top: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 6px;
    gap: 3px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .85);
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.box-button-confirm-cancel{

    display: flex;
    gap: 10px;
    position: absolute;
    bottom: -33px;
}
.btn-confirm-alter-product, .btn-cancel-alter-product{

    padding: 5px 12px;
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm{

    border: 1px solid blue;
}

.btn-cancel{
    
    border: 1px solid red;
}

.field-open-alter-product{

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: absolute;
    z-index: 1;
    top: 5px;
    right: 5px;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(0, 0, 0, .45);

}
.field-open-alter-product:hover{

    background-color: rgba(0, 0, 0, .30);
}
.box-option-button-alter{

    position: absolute;
    top: 5px;
    left: 5px;
    display: none;
    gap: 5px;
    z-index: 2;
    cursor: pointer;

}
.option-button-alter{ 

    padding: 2px 10px;
    background-color: rgba(0, 0, 0, .45);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: white;
    font-size: 14px;

}

/*Botão de atualizar.*/
.btn-update{

    border: 1px solid blue;
}
/*Botão de excluir.*/
.btn-delete{

    border: 1px solid red;
}

.litle-ball-alter-product{

    height: 2px;
    width: 2px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .35);
}

.field-open-alter-product:hover .litle-ball-alter-product {

    background-color: white;
}

.div-image-product{
    overflow: hidden;
    height: 100%;
    width: 100%;
}
.image-product{

    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.text-product{

    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 10px;
    transform: rotateY(180deg);
    background-color: #eaeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}


.attributes-product{
    
    font-family: sans-serif;
    font-weight: lighter;
    margin-bottom: 2px;
}
.insert-new-attribute{
    padding: 6px 9px;
    color: white;
}
.div-add-new-image{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 90px;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 1px solid white;
}
.add-new-image{
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
}
/*Campo pra postar um produto*/
#field-post-products{

    position: fixed;
    top: 0;
    z-index: 5;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, .35);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;

}
/*Caixa de fechamento*/
#box-close-arrow{
    position: absolute;
    top: 8px;
    right: 8px;
    height: 25px;
    width: 25px;
    box-shadow: 0 0 3px white;
    cursor: pointer;
}
.close-arrow{
    height: 1px;
    width: 25px;
    background-color: white;
    position: absolute;
    top: 12px;
}
#left-arrow{
    transform: rotate(45deg);
}
#right-arrow{
    transform: rotate(-45deg);
}

#box-post-products{

    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
    padding: 60px 10px 20px 10px;
    border-radius: 4px;
    box-shadow: 0 0 4px white;

}

#div-add-images{

    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 70px;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    position: relative;

}

#image-product{
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
}
#btn-send-product, #btn-create-user{
    padding: 5px;
    border: 1px solid white;
    background-color: rgba(0, 0, 0, .35);
    backdrop-filter: blur(5px);
    color: white;
    cursor: pointer;
    transition: .6s;
    border-radius: 3px;
}
#btn-send-product:hover{
    
    box-shadow: 0 0 3px white;

}
#btn-create-user:hover{
    
    box-shadow: 0 0 3px white;

}


/*======== localization ===========*/
#localization{
    height: 85vh;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#localization h1{
    color: white;
    text-align: center;
}

#localization iframe{
    height: 90%;
    width: 98%;
    border-radius: 12px;
}


@media (max-width: 1007px){

    #container-types-of-products{
        
        width: 100%;
    }
    #option-types-of-products{
    
        width: 74.3%;
    
    }

}


@media (max-width: 950px) {

    @keyframes zoom {
      0% {
        background-size: 110% auto;
      }
      100% {
        background-size: 140% auto;
      }
    }
}

  
@media (max-width: 860px) {

    @keyframes zoom {
      0% {
        background-size: 160% auto;
      }
      100% {
        background-size: 180% auto;
      }
    }
}

@media (max-width: 687px){
    

    #home{

        padding-top: 60px;
        width: 100%;
        flex-direction: column-reverse;
        gap: 30px;
    }

    #home-text, #home-image{
        width: 100%;
        
    }

    #home-text h1{

        font-size: 24px;
    }
     
    #home-text p{
        
         font-size: 14px;
    }

    .main-image{
        height: 215px;
        width: 215px;
    }

    
    #cicle {
    
        height: 215px;
        width: 215px;
    }

    #box-image{

        height: 160px;
        width: 160px;    
    }

    #text span{
        transform-origin: 0 106px;
    }
    #heading{
        font-size: 20px;
    }

    
}

@media (max-width: 590px) {

    @keyframes zoom {

      0% {

        background-size: 210% auto;

      }
      100% {

        background-size: 240% auto;

      }

    }

}

@media (max-width: 450px) {

    @keyframes zoom {
      0% {
        background-size: 260% auto;
      }
      100% {
        background-size: 290% auto;
      }
    }
}

@media (max-width: 370px) {

    @keyframes zoom {
      0% {
        background-size: 290% auto;
      }
      100% {
        background-size: 320% auto;
      }
    }
}
@media (max-width: 320px){

    #home{
    
        gap: 10px;
    }
    
    #home-image{

        animation: none;
    }

    #home-text h1{

        font-size: 20px;
        margin-bottom: 10px;
    }

    .text-product{

        display: block;
    }

    #list_foods, #list_drinks, #list_fruits, #list_frozen_foods, #personal_hygiene, #list_cleanliness, #list_sweets{
     
        padding-left: 52px;
       
    }
    #heading{
        font-size: 18px;
    }
    
}