/* Adiciona estilo para todo projeto */

/* Importa a fonte Roboto Mono do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

body {
    font-family: "roboto mono", sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Adiciona estilo para o header */

header {
    text-align: justify;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background-color: #940000;
    color: #fff;
}

#imgheader {
    width: 5%;
    margin: 1%;
    margin-right: 1%;
}

#txtheader {
    font-size: 200%;
    font-weight: bold;
    display: inline-block;
}

#carrinho {
    margin-left: auto; 
    font-size: 10%; 
    margin-right: 2%; 
}

#carrinho a {
    font-size: 2000%; 
    color: #ffffff;
    text-decoration: none;
}

#carrinho a:hover{
    cursor: pointer;
    color: #000000;
}  

/* Adiciona estilo para o conteúdo principal */
main {
    flex: 1;
    margin: 5%;
    text-align: justify;
}

.section {
  margin-bottom: 5%;
}
  
.section h2 {
    font-size: 200%;
    margin-bottom: 2%;
}
  
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
  
.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
    border-radius: 8px;
    margin-bottom: 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    padding: 15px;
    cursor: pointer;
}
  
.product-card img {
    width: 20%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
  
.product-info {
    flex: 1;
    margin-right: 5%;
}
  
.product-info h3 {
    font-size: 100%;
    margin: 0 0 5px;
}
  
.product-info p {
    font-size: 90%;
    color: #555;
    margin: 0 0 5px;
}
  
.product-info strong {
    color: #000000;
    font-size: 80%;
}

/* Adiciona estilo para o modal de lanches*/
.modal {
    display: none; 
    position: fixed;
    overflow-y: hidden;
    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-color: #fff;
    border-radius: 8px;
    max-width: 60%;
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden; 
}

.modal-body {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 465px; 
}

.modal-body img {
    width: 100%;
    height: 97%;
    border-radius: 8px;
    margin: 1%;
    object-fit: cover; 
    position: sticky;
    top: 0; 
}

.modal-info {
    flex: 1;
    overflow-y: auto;
    padding-right: 1%;
}

.modal-info h2 {
    margin-top: 1%;
}

.modal-options {
    margin-bottom: 20px;
}

.modal-options label {
    margin: 10px 0;
    font-size: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.5%;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.modal-options input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.modal-options input[type="radio"]:checked + .radio-custom {
    background-color: #969696;
    border-color: #969696;
    box-shadow: inset 0 0 0 4px white;
}

.modal-options label:hover {
    background-color: #f9f9f9;
    border-color: #bbb;
}

.modal-options h3 {
    font-weight: normal;
    background: #e9e9e9;
    padding: 1%;
    border-radius: 8px;
}

body.modal-open {
    overflow: hidden;
}

button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 2%;
    margin-bottom: 3%;
    cursor: pointer;
    border-radius: 5px;
    display: block;
    margin-left: auto;
}

button:hover {
    background-color: #e63946;
}

.description-container {
    margin-top: 1%;
    margin-bottom: 2%;
}

.desc {
    display: block;
    width: 90%;
    padding: 5%;
    margin-top: 2%;
    border-radius: 8px;
    border: 2px solid #ddd;
    text-align: justify;
    font-size: 80%;
}

.desc:focus {
    border-color: #969696;
    outline: none;
}

.error-border {
    border: 2px solid red;
    border-radius: 5px;
}

.close {
    font-size: 180%;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 2%;
}

/* Adiciona estilo para o modal de pedidos*/
.modal1 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content1 {
    background-color: #fff;
    border-radius: 8px;
    max-width: 30%;
    width: 90%;
    padding: 1%;
    position: relative;
}

.close {
    font-size: 150%;
    font-weight: bold;
    position: absolute;
    top: 2%;
    right: 3%;
    cursor: pointer;
}

.modal-body1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-info1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#cart-items1 {
    display: flex;
    flex-direction: column;
    max-height: 200px; 
    overflow-y: auto;  
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 100%;
}

input, select {
    padding: 2%;
    font-size: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}



button {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    background-color: #e63946;
}

.remove-item {
    color: red;
    font-size: 18px;
    cursor: pointer;
}

.remove-item:hover {
    color: darkred;
}

#cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Adiciona estilo para o rodapé do projeto */

footer {
    background-color: #940000;
    color: #fff;
    margin-top: auto;
    text-align: center;
}
  
.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 30px 20px;
    flex-wrap: wrap;
}
  
.footer-content h4 {
    margin-bottom: 5%;
    font-size: 100%;
}

.footer-content p {
    font-size: 80%;
}
  
.footer-content .about,
.footer-content .contact {
    margin-bottom: 1%;
    max-width: 20%;
    text-align: justify;
}
  
.footer-content ul {
    list-style: none;
    padding: 0;
}
  
.footer-content .social-media a {
    color: #fff;
    margin-right: 2%;
    font-size: 110%;
}

.footer-content .social-media a :hover {
    color: #000000;
    cursor: pointer;
}
  
.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #fff;
    font-size: 80%;
}

.payment-methods {
    font-size: 110%;
}

.payment-methods:hover{
    cursor: pointer;
    color: #000000;
}  

#clique-footer:hover{
    cursor: pointer;
    color: #000000;
}  
  


/* ----- MEDIA QUERIES ----- */

/* Dispositivos (até 767px) */
@media only screen and (min-width: 481px) and (max-width: 767px){ 

        /* Adiciona estilo para o header */

        #imgheader {
            width: 5%;
            margin: 1%;
            margin-right: 1%;
        }
    
        #txtheader {
            font-size: 100%;
            font-weight: bold;
            display: inline-block;
        }
    
        #carrinho {
            margin-left: auto; 
            font-size: 5%; 
            margin-right: 2%; 
        }
    
        /* Adiciona estilo para o conteúdo principal */
    
        .product-info h3 {
            font-size: 90%;
            margin: 0 0 5px;
        }
    
        /* Adiciona estilo para o modal de lanches*/
        
        .modal {
            width: 100%;
            height: 100%;
            position: fixed;
        }
    
        .modal-content {
            max-width: 80%;
            width: 100%;
            height: 80%; 
        }
    
        .modal-body {
            flex-direction: column; 
            margin: 2%;
            width: 100%;
            height: 100%; 
        }
    
        .modal-body img {
            width: 98%;
            border-radius: 8px;
        }
    
        .modal-options h3 {
            font-size: 90%;
        }
    
        .modal-options label {
            margin: 10px 0;
            font-size: 60%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 1.5%;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
        }
    
        .modal-info h2 {
            font-size: 100%;
        }
    
        .modal-info p {
            font-size: 70%;
        }

        .description-container input {
            width: 100%;
        }    
    
        .close {
            color: #ffffff;
            z-index: 1010; 
        }
    
        /* Adiciona estilo para o modal de pedidos*/
        .modal1 {
            width: 100%;
            height: 100%;
            position: fixed;
            overflow-y: scroll;
        }
    
        .modal-content1 {
            max-width: 80%;
            width: 100%;
            height: 80%; 
            overflow-y: auto;
        }
    
        .close {
            color: #000000;
            z-index: 1010; 
        }
    
        .modal-body1 {
            flex-direction: column; 
            margin: 2%;
            width: 100%;
            height: 100%; 
            font-size: 100%;
            overflow-y: auto;
        }
    
        #cart-items1 {
            max-height: 100%; 
            overflow-y: auto;
        }
    
        .customer-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    
        label {
            font-size: 80%;
        }
    
        input {
            padding: 2%;
            width: 90%;
            font-size: 80%;
            box-sizing: border-box;
        }
    
        select {
            width: 90%;
            box-sizing: border-box;
        }
    
        #cart-total {
            font-size: 90%;
            font-weight: bold;
            margin-top: 10px;
        }
    
        button {
            font-size: 80%;
            display: block;
            margin: 10% auto;
        }
    
        /* Adiciona estilo para o rodapé do projeto */
        
        footer {
            margin-top: auto;
            text-align: center;
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: center; 
            margin: 0 auto; 
            max-width: 100%;
            width: 80%; 
        }
        
        .footer-content h4 {
            font-size: 100%; 
        }
        
        .footer-content p {
            font-size: 50%; 
            margin-bottom: 5%;
        }
        
        .footer-content .about,
        .footer-content .contact {
            max-width: 100%;
            text-align: center; 
        }
    
        .footer-content .contact {
            display: none;
        }
        
        .footer-content .social-media a {
            color: #fff;
            font-size: 100%;
        }
    
        .footer-content .social-media h4 {
            display: none;
        }
    
        .footer-bottom {
            text-align: center;
            font-size: 10%;
        }
        
        .payment-methods {
            display: none;
        }

}

/* Dispositivos (até 480px) */
@media only screen and (max-width: 480px) {

    /* Adiciona estilo para o header */

    #imgheader {
        width: 5%;
        margin: 1%;
        margin-right: 1%;
    }

    #txtheader {
        font-size: 100%;
        font-weight: bold;
        display: inline-block;
    }

    #carrinho {
        margin-left: auto; 
        font-size: 5%; 
        margin-right: 2%; 
    }

    /* Adiciona estilo para o conteúdo principal */

    .product-info h3 {
        font-size: 80%;
        margin: 0 0 5px;
    }

    /* Adiciona estilo para o modal de lanches*/
    
    .modal {
        width: 100%;
        height: 100%;
        position: fixed;
    }

    .modal-content {
        max-width: 80%;
        width: 100%;
        height: 80%; 
    }

    .modal-body {
        flex-direction: column; 
        margin: 2%;
        width: 100%;
        height: 100%; 
    }

    .modal-body img {
        width: 98%;
        border-radius: 8px;
    }

    .modal-options h3 {
        font-size: 90%;
    }

    .modal-options label {
        margin: 10px 0;
        font-size: 60%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 1.5%;
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
    }

    .modal-info h2 {
        font-size: 100%;
    }

    .modal-info p {
        font-size: 70%;
    }

    .description-container input {
        width: 100%;
    }

    .close {
        color: #ffffff;
        z-index: 1010; 
        margin: 1%;
    }

    /* Adiciona estilo para o modal de pedidos*/
    .modal1 {
        width: 100%;
        height: 100%;
        position: fixed;
        overflow-y: scroll;
    }

    .modal-content1 {
        max-width: 80%;
        width: 100%;
        height: 80%; 
        overflow-y: auto;
    }

    .modal-body1 {
        flex-direction: column; 
        margin: 2%;
        width: 100%;
        height: 100%; 
        font-size: 100%;
        overflow-y: auto;
    }

    #cart-items1 {
        max-height: 100%; 
        overflow-y: auto;
    }

    .customer-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    label {
        font-size: 80%;
    }

    input {
        padding: 2%;
        width: 90%;
        font-size: 80%;
        box-sizing: border-box;
    }

    select {
        width: 90%;
        box-sizing: border-box;
    }

    #cart-total {
        font-size: 90%;
        font-weight: bold;
        margin-top: 10px;
    }

    button {
        font-size: 80%;
        display: block;
        margin: 10% auto;
    }

    /* Adiciona estilo para o rodapé do projeto */

    footer {
        margin-top: auto;
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; 
        margin: 0 auto; 
        max-width: 100%;
        width: 80%; 
    }
    
    .footer-content h4 {
        font-size: 100%; 
    }
    
    .footer-content p {
        font-size: 50%; 
        margin-bottom: 5%;
    }
    
    .footer-content .about,
    .footer-content .contact {
        max-width: 100%;
        text-align: center; 
    }

    .footer-content .contact {
        display: none;
    }
    
    .footer-content .social-media a {
        color: #fff;
        font-size: 100%;
    }

    .footer-content .social-media h4 {
        display: none;
    }

    .footer-bottom {
        text-align: center;
        font-size: 10%;
    }
    
    .payment-methods {
        display: none;
    }

}