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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}


body {
    background-color: #fff;
    color: #333;
    max-width: 100vw;
    width: 100%;
    min-height: 100vh;
}

section {
    padding: 4vh 8vw;
}

h2 {
    color: #E9821B;
    font-size: 2.5vh;
    margin-bottom: 2vh;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    justify-content: center;
    align-content: space-around;
    flex-direction: column;
}

.card {
    position: relative;
    display: flex;
    align-items : center;
    border: 0.3vh solid #E9821B;
    padding: 2vh;
    width: 100%;
    border-radius: 1vh;
    min-width: 30vw;
    transition: all 0.3s;
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 6vw;
    height: 6vw;
    margin-right: 1vw;
    border-radius: 1vh;
    cursor: pointer;

}

section {
    margin-bottom: 6vh; 
}

.info h3 {
    font-size: 2.2vh;
    font-weight: 600;
}

.info span {
    font-weight: normal;
    color: gray;
    font-size: 1.8vh;
}

.info p {
    font-size: 1.8vh;
    color: #666;
    width: 80%;
}

.preco {
    font-size: 2vh;
    font-weight: bold;
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 600px; 
    padding: 4px 15px 10px;
}

.modal-header {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 0 5px 0;
}

.modal-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #E9821B;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.close {
    margin-left: auto; 
    line-height: 0.8;
    font-size: 30px;
    cursor: pointer;
    padding-right: 5px; 
}

.modal-body {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
}

.modal-info {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.modal-info img {
    border-radius: 10px;
    width: 120px; 
    height: 120px;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    flex-grow: 1;
}

.text h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0; 
}

.price-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.preco {
    font-size: 16px;
    font-weight: bold;
    color: black;
    white-space: nowrap; 
}

.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity button {
    background: #E9821B;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    color: white;
}

.add-to-cart {
    background: #E9821B;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    align-self: center;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #E9821B; 
    margin: 5px 0 10px 0;
}

.slider {
    margin: 10vh auto 0; /* Add top margin to avoid overlapping with the header */
    width: 100%;
    height: auto;
    overflow: hidden;
}

.slides {
    width: 400%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 25%;
    position: relative;
}

.slide img {
    width: 100%;
}

.add-to-carts {
    background-color: #E9821B;
    color: white;
    border: none;
    padding: 1vh 2vh;
    border-radius: 0.5vh;
    font-weight: 500;
    font-size: 1.5vh;
    cursor: pointer;
    position: absolute;
    right: 2vh;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.add-to-carts:hover {
    background-color: #ffbb00;
}

.title-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2vh;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    padding: 0;
    border: none;
    outline: none;
    transition: width 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    border-radius: 4px;
}

.search-input.active {
    width: 200px;
    padding: 5px;
    border: 1px solid #E9821B;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #E9821B;
    margin-left: 5px;
}

@media (max-width: 1030px) {
    body{
        padding-top: 0vh;
    }

    .slider {
        margin: 7vh auto 0; /* Add top margin to ensure it clears the navbar */
    }

    #modal-title {
        font-size: 15px;
    }

    .price-quantity{
        width: 130%;
    }

    .modal-body {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
    }
    
    .modal-info {
        display: flex;
        align-items: center;
        width: 80%;
        gap: 10px;
    }
    
    .modal-info img {
        border-radius: 5px;
        width: 80px; 
        height: 80px;
    }

    .info h3 {
        font-size: 2.2vh;
        font-weight: 600;
    }

    .grid {
        display: flex;
        flex-wrap: wrap;
        gap: 3vw;
        justify-content: center;
    }
    
    .info span {
        font-weight: normal;
        color: gray;
        font-size: 1.7vh;
    }
    
    .info p {
        font-size: 1.7vh;
        color: #666;
    }
    
    .preco {
        font-size: 1.2vh;
        font-weight: bold;
        color: #000;
    }

    .card img {
        width: 10vw;
        height: 10vw;
        margin-right: 2vw;
        border-radius: 1vh;
    }

    .card {
        display: flex;
        align-items : center;
        border: 0.3vh solid #E9821B;
        padding: 1vh;
        border-radius: 1vh;
        min-width: 30vw;
    }
}

@media (max-width: 887px) {
    .card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2vh;
        position: relative;
        min-height: 180px; /* Ajuste conforme necessário */
    }
    
    .card img {
        width: 100%;
        height: auto;
        max-height: 120px;
        object-fit: cover;
        margin-right: 0;
        margin-bottom: 1vh;
    }
    
    .info {
        width: 100%;
    }
    
    .add-to-carts {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1vh;
        padding: 1.5vh;
        font-size: 1.8vh;
    }
    
    .info h3 {
        font-size: 2vh;
    }
    
    .info p {
        font-size: 1.7vh;
        margin: 0.5vh 0;
    }
    
    .preco {
        font-size: 2vh;
        margin: 0.5vh 0;
    }
}

@media (max-width: 768px) {
    .add-to-cart {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 607px) {
    .info h3 {
        font-size: 1.9vh;
        font-weight: 600;
    }

    .info span {
        font-weight: normal;
        color: gray;
        font-size: 1.4vh;
    }
    
    .info p {
        font-size: 1.4vh;
        color: #666;
    }
    
    .preco {
        font-size: 1.7vh;
        font-weight: bold;
        color: #000;
    }

    /* .card img {
        width: 17vw;
        height: 17vw;
        margin-right: 2vw;
        border-radius: 1vh;
    } */
}





  
.sem-produtos {
    text-align: center;
    margin-top: 40px;
  }

  .image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    
}

.close-image {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



#imagem-sem-pedidos {
    width: 45vh;
}

#mensagem-sem-pedidos-1 {
    font-weight: bold;
    color: #f57c00; /* Laranja semelhante ao da imagem */
    font-size: 2.3vh;
    margin-bottom: 0.5vh;
    text-align: center;
  }
  
  #mensagem-sem-pedidos-2 {
    color: #9e9e9e; /* Cinza claro */
    font-style: italic;
    font-size: 2vh;
    text-align: center;
  }

.sem-pedidos{
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media screen and (max-width: 467px) {
    #imagem-sem-pedidos {
        width: 35vh;
    }
    
    #mensagem-sem-pedidos-1 {
        font-weight: bold;
        color: #f57c00; 
        font-size: 2vh;
        margin-bottom: 0.5vh;
        text-align: center;
      }
      
      #mensagem-sem-pedidos-2 {
        color: #9e9e9e; 
        font-style: italic;
        font-size: 1.6;
        text-align: center;
      }
    
}
