/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h4 {
    text-align: center;
    margin: 20px 0;
    color: #333;
}

h2 {
    color: #007bff;
    margin-bottom: 20px;
}

/* Carrossel de Banners */
.carrossel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
}

.carrossel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrossel-item {
    flex: 0 0 100%; /* Exibe apenas um banner por vez */
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center; /* Centraliza o conteúdo do banner */
}

.carrossel-item img {
    width: 100%;
    max-width: 100%; /* Garante que a imagem não ultrapasse o contêiner */
    border-radius: 10px;
    object-fit: cover; /* Mantém a proporção da imagem */
}

.carrossel-controle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1000; /* Garante que os controles fiquem acima do carrossel */
}

.carrossel-controle.anterior {
    left: 10px;
}

.carrossel-controle.proximo {
    right: 10px;
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .carrossel-item img {
        max-height: 150px; /* Altura máxima para a imagem no mobile */
    }
}

/* Lista de Produtos */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.product-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.product-details {
    flex: 1;
}

.product-details h6 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.product-price {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: bold;
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .product-item {
        flex-direction: row; /* Mantém a imagem à esquerda e a descrição à direita */
        align-items: center;
    }

    .product-image img {
        width: 60px; /* Imagem menor no mobile */
        height: 60px;
        margin-right: 10px;
    }

    .product-details h6 {
        font-size: 0.9rem; /* Fonte menor para mobile */
    }

    .product-price {
        font-size: 0.8rem;
    }
}

/* Estilos para o modal */
.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.modal-content {
    padding: 0; /* Removemos o padding padrão para a tarja preta ocupar todo o topo */
    border-radius: 10px;
    width: 100%;
    max-width: 500px; /* Largura máxima do modal */
    margin: 0 auto;
}

.modal-header {
    background-color: #000; /* Cor preta para a tarja */
    color: white; /* Texto branco */
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    font-size: 1rem; /* Tamanho menor para o nome do produto */
    margin: 0;
}

.modal-header .btn-fechar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-header .btn-fechar:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 20px;
}

.modal-product-image {
    text-align: center; /* Centraliza a imagem */
}

.modal-product-image img {
    max-width: 100%; /* Garante que a imagem não ultrapasse o modal */
    max-height: 300px; /* Altura máxima para a imagem */
    border-radius: 10px;
    object-fit: contain; /* Mantém a proporção da imagem sem cortes */
    margin-bottom: 15px;
}

.modal-product-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.modal-product-comments textarea {
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    resize: vertical; /* Permite redimensionar verticalmente */
}

.modal-product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-product-quantity label {
    font-weight: bold;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-content {
        padding: 0;
    }

    .modal-product-image img {
        max-height: 200px; /* Altura máxima para a imagem no mobile */
    }

    .modal-product-description {
        font-size: 0.8rem; /* Fonte menor para mobile */
    }

    .modal-product-quantity {
        flex-direction: column;
        align-items: flex-start;
    }

    .quantity-control {
        width: 100%;
        justify-content: space-between;
    }
}

/* Ícone do carrinho */
.carrinho-icon {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carrinho-icon span {
    background-color: red;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Botão "Finalizar Pedido" */
.finalizar-pedido {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.finalizar-pedido:hover {
    background-color: #218838;
}

#installButton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#iosInstallPrompt {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.status-pronto {
    color: green;
    font-weight: bold;
    text-transform: uppercase;
}

/* area do cliente css */

/* Estilos para os status */
.status-pendente {
    color: red;
    font-weight: bold;
    text-transform: uppercase;
}

.status-em-preparo {
    color: orange;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pronto-entrega {
    color: green;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estilo para o botão "PEDIDO PRONTO PARA ENTREGA" */
.btn-pronto-entrega {
    background-color: yellow;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}

.btn-pronto-entrega:hover {
    background-color: #e6b800;
}

/* Botão de instalação do PWA */
#installButton {
    display: none; /* Oculto por padrão */
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Mensagem para iOS */
#iosInstallPrompt {
    display: none; /* Oculto por padrão */
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Estilo para o fundo dos produtos */
.product-list {
    position: relative;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Fundo branco semi-transparente */
    border-radius: 10px;
    overflow: hidden;
}

.product-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/icon-192x192.png');
    background-repeat: repeat; /* Repetir a imagem para cobrir toda a área */
    background-size: 192px 192px; /* Tamanho da imagem */
    opacity: 0.2; /* Opacidade da marca d'água */
    z-index: -1; /* Colocar atrás do conteúdo */
}