/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
height: 100%;
  margin: 0;

  footer{
    text-align: center; 
    color: orange;
    font-size: 3.0em;
  }
}
/* Fonte e cores gerais */
body {
   
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 100vh;
width: 100%;
background-repeat: no-repeat;
overflow-y: scroll;
    background-image: url('/background.jpg')
}

header {
    
    color: purple;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 5em ;
}

nav a {
    color: purple;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 2.5em;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem;
}

h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: orange;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 3.0em;
}
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center; 
  align-items: center;   
  max-width: 1200px;
  margin: 0 auto 0 10%;
}


.produto {
    background: transparent;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.produto img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.produto button {
    background: #4b0082;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.produto button:hover {
    background: #36005a;
}

/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-conteudo {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-image: url(imagens/MODAL.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.fechar-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.fechar-modal:hover,
.fechar-modal:focus {
    color: #000;
    text-decoration: none;
}

#itens-do-carrinho .item-carrinho {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

#itens-do-carrinho .item-carrinho:last-child {
    border-bottom: none;
}

.item-carrinho img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.item-carrinho-info {
    flex-grow: 1;
}

.item-carrinho-info h4 {
    margin: 0;
}

.remover-item {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.remover-item:hover {
    background: #cc0000;
}

.carrinho-rodape {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.carrinho-rodape strong {
    color: #4b0082;
    font-size: 1.2em;
}

.finalizar-compra {
    background: #4b0082;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.finalizar-compra:hover {
    background: #36005a;
}

.carrinho-vazio-msg {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
}

.item-carrinho h4 {
    color: cadetblue;
}

.item-carrinho p {
    color: cadetblue;
     text-shadow: 1px 1px 2px black;
}


.item-carrinho .quantidade-item {
    color: cadetblue;
     text-shadow: 1px 1px 2px black;
}
.modal-conteudo {
    background-image: url('/MODAL.jpg');
    background-size: cover;
    background-position: center;

}

@media (max-width: 600px) {
    header {
        flex-direction: column; 
        text-align: center;
        padding: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    nav a {
        display: block; 
        margin: 0.5rem 0; 
    }

    h1 {
        font-size: 2em; 
    }

   
    #produtos h2 {
        font-size: 1.5em;
    }

  
    .menu-item-nao-essencial {
        display: none;
    }
}

@media (max-width: 600px) {
   
    .modal-conteudo {
        margin: 10% auto;
    }

    .item-carrinho img {
        width: 40px; 
        height: 40px;
    }

    
    .btn-quantidade {
        padding: 0.1em 0.3em;
        font-size: 0.9em;
    }
}
.produto h3 {
  font-size: 1.2rem;
  margin-top: 0;
  color:orange;
}

.produto p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: orange;                                              
}

@media (max-width: 600px) {
   

    .grid-produtos {
        grid-template-columns: 2fr; 
}