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

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


/* Estilo geral para o modal */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1000;
}

.modal-position{
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
  
/* Conteúdo do modal */

.modal-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-content {
    padding: 20px;
    width: 80%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.158);
}

.modal-orders-hub{
    height: 50vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-box-shadow: 0px -1px 0px 0px rgba(177,164,164,1);
    -moz-box-shadow: 0px -1px 0px 0px rgba(177,164,164,1);
    box-shadow: 0px -1px 0px 0px rgba(177,164,164,1);
}

.modal-orders{
    padding: 20px 10px 20px 10px;
    display: flex;
    justify-content: space-between;
    -webkit-box-shadow: 0px 1px 0px 0px rgba(177,164,164,1);
    -moz-box-shadow: 0px 1px 0px 0px rgba(177,164,164,1);
    box-shadow: 0px 1px 0px 0px rgba(177,164,164,1);
    margin-top: 15px;
}

.orders-text{
    justify-content: space-between;
    display: flex;
    width: 57%;
    flex-direction: column;
}

.orders-image{
    background-color: rgb(85, 82, 82);
    width: 25%;
    aspect-ratio: 1/1;
    -webkit-box-shadow: 0px 0px 14.7px 0px rgba(0, 0, 0, 0.253);
    -moz-box-shadow: 0px 0px 14.7px 0px rgba(0, 0, 0, 0.253);
    box-shadow: 0px 0px 14.7px 0px rgba(0, 0, 0, 0.253);
}
  
/* Botão de fechar (X) */
.close {
    font-size: 19px;
    font-weight: bold;
    color: #726d6d;
    cursor: pointer;
    background-color: #C1C0C0;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
  
.close:hover {
    color: #000;
}

@media (max-width: 593px) {
    
    .modal-position{
        display: flex;
        flex-direction: row;
        justify-content:first baseline;
        align-items: center;
    }

    .modal-content{
        width: 100%;
        height: 95vh;
        border-radius: 25px 25px 0px 0px;
        margin-top: 45px;

        /* Animação */
        transform: translateY(100%);
        animation: slideUp 0.4s ease-out forwards;
    }

    .orders-image{
        width: 39%;
    }

    .modal-orders-hub{
        height: 87vh;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.placeholder {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    
    animation: pulse 1.5s infinite;
}

.placeholder-text {
    background-color: #ddd;
    height: 20px;
    width: 80%;
    border-radius: 5px;
    margin-bottom: 5px;
}

.price-placeholder {
    background-color: #ddd;
    height: 25px;
    width: 100px;
    border-radius: 5px;
}

.placeholder-image {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    border-radius: 5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
