/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #eaf4e3; /* Fundo verde suave */
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px; /* Aumentar o limite de largura para desktop */
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

header .logo {
    width: 120px; /* Aumentar um pouco o tamanho da logo */
    height: auto;
    margin-right: 20px;
}

h1, h2 {
    text-align: center;
    color: #3b6e2d; /* Verde escuro para títulos */
}

#horario-promocao {
    text-align: center;
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Fundo suave para destaque */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#statusPromocao {
    font-size: 28px; /* Ajuste do tamanho do texto */
    font-weight: bold;
    color: #3b6e2d; /* Verde escuro */
}

#produtos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Aumentar o espaço entre os produtos */
    justify-content: center; /* Centralizar os produtos */
}

.produto {
    width: 220px; /* Ligeiramente maior para desktop */
    padding: 20px;
    background-color: #fff;
    border: 2px solid #7dbd5b; /* Verde claro do logo */
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.produto:hover {
    transform: scale(1.05); /* Aumentar ligeiramente no hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.produto img {
    width: 100%;
    height: auto;
}

.produto h3 {
    font-size: 20px; /* Aumentar o tamanho da fonte */
    color: #3b6e2d; /* Verde escuro */
    margin-bottom: 10px;
}

.produto p {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

/* Classe para destacar o preço */
.produto .preco-destaque {
    font-size: 20px; /* Aumenta o tamanho da fonte */
    font-weight: bold;
    color: #ff0000; /* Vermelho */
    margin-top: 10px; /* Espaçamento superior */
}

.quantity-input {
    width: 60px;
    padding: 5px;
    margin-left: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-adicionar {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #28a745; /* Verde */
    color: white;
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease-in-out;
}

.btn-adicionar:hover {
    background-color: #218838; /* Verde escuro */
}

.btn-adicionar:active {
    transform: scale(0.95);
}

.total-container {
    text-align: center;
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
}

#valorTotal {
    color: #ff0000; /* Vermelho */
}

.btn-enviar {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3b6e2d; /* Verde escuro */
    color: white;
    text-align: center;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #7dbd5b; /* Verde claro */
}

.btn-enviar:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilo para notificações personalizadas */
.notification {
    position: fixed;
    top: 50%; /* Posiciona verticalmente no meio */
    left: 50%; /* Posiciona horizontalmente no meio */
    transform: translate(-50%, -50%) scale(0.8); /* Centraliza completamente e reduz o tamanho inicialmente */
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 80%; /* Garantir que a notificação não ultrapasse a largura da tela em dispositivos menores */
    text-align: center;
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Aumenta para o tamanho original quando exibida */
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 400px) {
    .notification {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Modificações para dispositivos móveis */
@media (max-width: 600px) {
    .container {
        max-width: 100%; /* Largura total no celular */
        padding: 10px;
    }

    header {
        flex-direction: column;
    }

    header .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .produto {
        width: 100%; /* Produto ocupa largura total no celular */
        padding: 15px;
    }

    .btn-enviar {
        font-size: 16px; /* Tamanho menor no celular */
    }
}

/* Responsividade adicional para tablets */
@media (max-width: 768px) and (min-width: 601px) {
    .produto {
        width: 45%; /* Ajustar a largura dos produtos em tablets */
    }
}
