/* CSS geral */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #32b2cd;
    padding: 10px;
    text-align: center;
    position: relative;
}

header img {
    max-width: 100%;
    height: auto;
}

nav {
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: center;
    transition: top 0.3s;
    width: 100%;
    z-index: 1000;
    margin-bottom: 50px; /* Ajuste a margem para garantir espaço para o contador do carrinho */
}

nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}
nav.open {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

.cart-icon {
    background-color: #ddd;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    margin-top: 10px; /* Adiciona espaçamento entre o menu e o contador */
}

@media (max-width: 600px) {
    .hamburger-menu {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    nav.fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 14px 16px;
        border-top: 1px solid #ccc;
        text-align: left;
        margin-left: 20px;
    }
}

main {
    flex: 1;
    padding: 20px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* classe de exibição para o container dos cards de produtos */
.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Ajuste o espaçamento entre os cards conforme necessário */
}

/* Estilos gerais exibição das páginas administrativas */
.orders-wrapper, .admin-dashboard-container, .cart-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.orders-wrapper h1, .admin-dashboard-container h1, .cart-wrapper h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.orders-container, .cart-container {
    overflow-x: auto;
}

/* ESTILS  PARA MENSAGEM E EEMENTOS CUPOM NO  CHECKOUT */
.success-message-cupom {
    color: green;
    font-weight: bold;
}

.error-message-cupom {
    color: red;
    font-weight: bold;
}

.mensagem-cupom {
    margin-top: 10px;
}

/* Estilos específicos para quantity-controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls form {
    display: flex;
    align-items: center;
}

.quantity-controls input[type="number"] {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 16px;
}

.quantity-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.quantity-controls button:hover {
    background-color: #0056b3;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
    .quantity-controls input[type="number"] {
        width: 40px;
        font-size: 14px;
    }

    .quantity-controls button {
        padding: 5px 8px;
        font-size: 14px;
    }

}

/* Estilo para as tabelas dentro das páginas administrativas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #48b5ce;
    color: white;
}

/* Estilo para os botoes de links dentro das paginas administrativas */

.links-container {
    margin-top: 20px;
}

.links-container a {
    display: inline-block;
    width: calc(23% - 20px);
    margin: 4px 4px 4px 0;
    padding: 10px;
    background-color: #48b5ce;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.links-container a:hover {
    background-color: #008cba;
}

/* Media query para telas menores que 768px páginas adminstrativas, tabelas e links dessas páginas */
@media (max-width: 768px) {
    .links-container a {
        align-items: center;
        width: 93%; /* Cada link ocupará 100% da largura do container */
        margin: 10px 0; /* Adiciona espaçamento vertical entre os links */
    }

    table {
        border: none; /* Remove a borda da tabela */
    }

    thead {
        display: none; /* Esconde o cabeçalho da tabela */
    }

    tr {
        display: block;
        margin-bottom: 10px; /* Adiciona espaçamento entre as linhas */
        border-bottom: 1px solid #ccc; /* Linha de separação entre pedidos */
    }

    td {
        display: block;
        text-align: right; /* Alinha o texto à direita */
        font-size: 0.9em;
        position: relative;
        padding-left: 50%; /* Espaço para o rótulo */
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
        color: #333;
    }
}

/* Estilos Gerais de exibição para as páginas de adção e edição de produtos*/
.admin-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-container {
    padding: 20px;
}

.admin-container h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.form-container {
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input, .form-container textarea, .form-container select {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container .radio-group {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 20px;
    }

.form-container .radio-group label {
        margin-left: 5px;
        font-size:17px;
    }

.form-container .button {
    padding: 10px 20px;
    background-color: #48b5ce;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-container .apply-cupom {
    padding: 10px 20px;
    background-color: #48b5ce;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-container .button:hover {
    background-color: #008cba;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #48b5ce;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #008cba;
}

/* Media queries para dispositivos móveis para as páginas de adção e edição de produtos */
@media (max-width: 768px) {
    .admin-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .form-container input, .form-container textarea, .form-container select {
        width: 100%;
    }

    .form-container .button {
        width: 100%;
    }

    .btn-back {
        width: 87%;
        text-align: center;
    }
}

/* Estilo para os detalhes dos pedidos */
.order-details-wrapper {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.order-details-wrapper h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.order-details-wrapper p {
    margin-bottom: 10px;
}

.cart-container {
    text-align: center;
}

.cart-table {
    margin: 0 auto;
}

/* Cards de produtos */
.product-card {
    background: #E8FAFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.333% - 20px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s;
    position: relative; /* Necessário para o posicionamento da etiqueta */
}

.product-card.promocao-ativa {
    background: #ffd2cb; /* Cor diferenciada para produtos com promoção ativa */
}

.product-card:hover {
    transform: translateY(-5px);
}

.preco-promocional {
    color: #008000; /* Texto verde para preço promocional */
    font-weight: bold; /* texto negrito */
}

.preco-original {
    text-decoration: line-through; /* Texto riscado */
    color: #FF0000; /* Texto vermelho para o preço original */
    font-weight: bold;
}

.launch-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF5733; /* Cor de fundo da etiqueta */
    color: #fff; /* Cor do texto */
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

.product-image {
    max-width: 120px;
    width:120px;
    height: auto;
    margin: 0 auto; /* Centraliza horizontalmente */
    cursor: pointer;
}

.product-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-card p {
    font-size: 1.5em;
    font-weight:bold;
    color: #33a9c4;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-to-cart-form input[type="number"] {
    width: 50px;
    margin: 10px 0;
}

.add-to-cart-form button {
    background-color: #48b5ce;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-to-cart-form button:hover {
    background-color: #33a9c4;
}

@media (max-width: 600px) {
    .product-card {
        width: 100%; /* Ajusta a largura dos cards para 1 coluna em dispositivos móveis */
        padding: 15px;
    }
    .product-image {
        max-width: 120px;
        height: auto;
        margin: 0 auto; /* Centraliza horizontalmente */
        cursor: pointer;
    }
}


/* Estilo para o formulÃ¡rio de pesquisa */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form select, 
.search-form input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 200px;
}

.search-form input[type="text"] {
    flex: 1;
    max-width: 300px;
}

.search-form input[type="text"]:hover {
    border: 1px solid #48b5ce;
}

.search-form input[type="text"]:focus {
    border: 2px solid #48b5ce;
}

/* Estilo do select */
.search-form select {
    background-color: #FFFFFF;
    color: #333333;
    border: 1px solid #ccc #48b5ce;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.search-form select:hover {
     border: 1px solid #48b5ce;
}

/* Estilo das opÃ§Ãµes no select */
.search-form select option {
    background-color: #FFFFFF; /* Cor de fundo das opÃ§Ãµes */
    color: #333333; /* Cor do texto das opÃ§Ãµes */
}

/* Estilo ao passar o mouse ou quando a opÃ§Ã£o estÃ¡ selecionada */
.search-form select option:hover,
.search-form select option:checked,
.search-form select option:active {
    background-color: #48b5ce; /* Cor de fundo ao passar o mouse ou quando selecionado */
    color: #FFFFFF; /* Cor do texto ao passar o mouse ou quando selecionado */
}

.search-form button[type="submit"] {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #48b5ce;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button[type="submit"]:hover {
    background-color: #008cba;
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form select, 
    .search-form button[type="submit"] {
        max-width: 100%;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .search-form input[type="text"]
     {
        max-width: 93%;
        width: 93%;
        margin-bottom: 5px;
    }

    .search-form button[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-content img {
    max-width: 100%;
    height: auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert.show {
    display: block;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #48b5ce;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin: 5px;
    color: #333;
}

.login-form input {
    width: 90%;
    margin: 2.5%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #48b5ce;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-form button:hover {
    background-color: #33a9c4;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Estilização para dispositivos móveis */
@media (max-width: 600px) {
    .login-container {
        padding: 15px;
    }
    .login-form button {
        font-size: 14px;
    }
}

/* ESTILIZAÇÃO DO PAINEL DE GRÁFICOS */
.chart-container {
    margin: 20px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #8E24AA;
}

h2 {
    text-align: center;
    color: #333;
}

canvas {
    width: 100% !important;
    height: auto !important;
}


/* ESTRUTURA DE ESTILIZAÇÃO DAS PÁGINAS DE TABELA DE PREÇO */
.container-tabela-preco {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .produto-card {
            display: flex;
            flex-direction: column;
            align-items: center;
	     justify-content: space-between; /* Para que os itens se distribuam uniformemente */
            background-color: #E8FAFF;
            border: 1px solid #ddd;
            padding: 15px;
            margin: 5px;
            border-radius: 8px;
            text-align: center;
	    min-height: 300px; /* Define uma altura mínima para os cards */
        }
        .produto-card img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 10px;
        }
        .produto-card h3 {
            font-size: 18px;
            margin: 10px 0;
	    flex-grow: 1; /* Permite que o nome do produto cresça se necessário */
        }
        .produto-card p {
            font-size: 16px;
            color: #8E24AA;
            font-weight:bold;
        }
	.produto-card a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #48b5ce;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            margin-top: auto; /* Move o botão para o final do card */
        }
	.produto-card a:hover {
            background-color: #33a9c4;
        }
        .produto-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        @media (max-width: 768px) {
            .produto-grid {
                grid-template-columns: repeat(1, 1fr);
            }
        }
        
/* Estilo do Botão Flutuante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float i {
    margin-top: 0px;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    text-decoration: none;
}

/* Estilo da Tooltip */
.tooltip-whatsapp {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    position: absolute;
    bottom: 70px;
    right: 50px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.whatsapp-float:hover .tooltip-whatsapp {
    visibility: visible;
    opacity: 1;
}

/* Estilo da setinha na tooltip */
.tooltip-whatsapp::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Estilo da pagina Sobbre App */
.sobre-app-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.sobre-app-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.sobre-app-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.sobre-app-item p {
    font-size: 1em;
    line-height: 1.5em;
    color: #555;
    text-align: justify;
    margin: 0;
}

.sobre-app-item ul {
    list-style-type: disc;
    padding-left: 20px;
}

.sobre-app-item li {
    margin-bottom: 5px;
    font-size: 1em;
    line-height: 1.5em;
    color: #555;
    text-align: justify;
}


.sobre-app-item:last-child {
    border-bottom: none;
}

/* ESTILO PARA AS PÁGINAS DE CUPONS */
.container {
        width: 60%;
        margin: 0 auto;
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .page-title {
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #333;
    }

    .form-coupon {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group label {
        font-weight: bold;
        color: #555;
    }

    .input-field {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .input-field:focus {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
        outline: none;
    }

    .btn-submit {
        padding: 12px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        text-transform: uppercase;
        transition: background-color 0.3s ease;
    }

    .btn-submit:hover {
        background-color: #0056b3;
    }

    .link-container {
        margin-top: 20px;
        text-align: center;
    }

    .btn-back {
        display: inline-block;
        padding: 10px 20px;
        background-color: #6c757d;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .btn-back:hover {
        background-color: #5a6268;
    }

    .success-message {
        color: #28a745;
        font-weight: bold;
        text-align: center;
    }

    .error-message {
        color: #dc3545;
        font-weight: bold;
        text-align: center;
    }

    /* Estilização responsiva */
    @media (max-width: 768px) {
        .container {
            width: 90%;
            padding: 15px;
        }

        .page-title {
            font-size: 20px;
        }

        .input-field {
            font-size: 14px;
            padding: 8px;
        }

        .btn-submit, .btn-back {
            font-size: 14px;
            padding: 10px;
        }
    }

    @media (max-width: 480px) {
        .container {
            width: 100%;
            padding: 10px;
        }

        .page-title {
            font-size: 18px;
        }

        .input-field {
            font-size: 12px;
            padding: 6px;
        }

        .btn-submit, .btn-back {
            font-size: 12px;
            padding: 8px;
        }
    }
    
.btn-action {
        display: inline-block;
        padding: 10px 15px;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        margin-right: 5px;
        margin-bottom:10px;
        transition: background-color 0.3s ease;
    }
    
    .btn-action:hover {
        background-color: #0056b3;
    }
    
    .btn-action-back {
        display: inline-block;
        padding: 10px 15px;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        margin-right: 10px;
        transition: background-color 0.3s ease;
    }
    
    .btn-action-back i {
        margin-right: 8px; /* Espaço entre o ícone e o texto */
    }
    
    .btn-action-back:hover {
        background-color: #0056b3;
    }
    
    .create-coupon-btn-container {
        margin-top: 20px;
    }

    .btn-create {
        display: inline-block;
        padding: 10px 15px;
        background-color: #28a745;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .btn-create:hover {
        background-color: #218838;
    }
    
.promotion-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF0000; /* Cor de fundo vermelha */
    color: #fff; /* Cor do texto branca */
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}
