@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

:root {
    --azul: rgb(19, 19, 131);
    --main-color: #fd4646;
    --text-color: #171427;
    --bg-color: #fff;
    --poppins-font: "Poppins", sans-serif;
}
.cart-icon-container {
    position: relative;
    cursor: pointer;
}

.menu-container {
    margin-left: 20px; /* Adiciona espaço entre o menu e o carrinho */
}

img {
    width: 100%;
}

body {
    color: var(--text-color);
}

.container {
    max-width: 1068px;
    margin: auto;
    width: 100%;
}

section {
    padding: 4rem 0 3rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--text-color);
    box-shadow: 0 1px 4px hsl(0 4% 15% / 10%);
    z-index: 100;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: #fff;
}

.logo {
    font-size: 1.1rem;
    color: var(--bg-color);
    margin-left: 10px;
}

/* Carrinho */
.cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    min-height: 100vh;
    padding: 20px;
    background: var(--text-color);
    box-shadow: none;
    transition: 0.3s;
    z-index: 1000;
    color: #fff; /* Cor do texto branca */
}

.cart.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.cart-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    color: #fff; /* Cor do título branca */
}

.cart-content {
    margin-top: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.cart-box {
    display: grid;
    grid-template-columns: 32% 50% 18%;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
}

.detail-box {
    display: grid;
    row-gap: 0.5rem;
}

.cart-product-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #fff; /* Cor do título do produto branca */
}

.cart-quantity {
    border: 1px solid #fff;
    outline-color: #fff;
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;
    color: #fff; /* Cor do texto da quantidade branca */
    background: transparent;
}

.cart-remove {
    font-size: 24px;
    color: var(--main-color);
    cursor: pointer;
}

.btn-buy {
    display: flex;
    margin: 1.5rem auto 0 auto;
    padding: 12px 20px;
    border: none;
    background: #fff;
    color: var(--text-color); /* Cor do texto do botão escura */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--main-color);
    color: #fff;
}

#close-cart {
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    font-size: 2rem;
    color: #fff; /* Cor do ícone de fechar branca */
    cursor: pointer;
}

#cart-icon {
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 10px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

.cart-count.visible {
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4.5rem;
}

.shop {
    margin-top: 2rem;
}

/* Conteúdo Menu */
.product-box {
    position: relative;
    height: 300px; /* Altura fixa */
}

.product-img {
    width: 100%;  /* Garante que todas tenham a mesma largura */
    height: 200px; /* Define uma altura fixa */
    object-fit: contain; /* Mantém a imagem inteira sem cortes */
}

.shop-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* Todos os itens terão a mesma altura */
}

.product-box:hover {
    padding: 10px;
    border: 1px solid var(--text-color);
    transition: 0.4s;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.add-cart {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 10px;
    cursor: pointer;
}

.add-cart:hover {
    background: hsl(249, 32%, 17%);
}

/* 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.6); /* Escurece o fundo */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--bg-color); /* Cor de fundo do modal */
    margin: 5% auto; 
    padding: 25px;
    border: 1px solid #888;
    width: 90%; /* Largura responsiva */
    max-width: 450px; /* Largura máxima do modal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px; /* Bordas arredondadas */
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-body {
    padding: 10px 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
}

.close-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-icon:hover {
    color: var(--main-color);
}

.modal-product-img {
    width: 100%;
    height: 250px; /* Altura fixa para todas as imagens */
    object-fit: contain; /* Mantém a proporção da imagem */
    margin: 15px 0;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 10px;
}

/* Ajustes de layout no modal */
.modal-content label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
    color: var(--text-color);
}

.modal-content select,
.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-content select:focus,
.modal-content input:focus {
    border-color: var(--azul);
    outline: none;
}

#confirm-add, #confirm-order {
    background: var(--azul);
    color: var(--bg-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

#confirm-add:hover, #confirm-order:hover {
    background: var(--text-color);
}

/* Ajustes específicos para o modal de finalização de pedido */
#finalization-modal .modal-content {
    max-height: 85vh;
}

#finalization-modal .modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#finalization-modal .address-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#finalization-modal .address-container .full-width {
    grid-column: 1 / -1;
}

#finalization-modal .phone-input-container {
    margin-bottom: 10px;
}

#finalization-modal .phone-input-group {
    margin-bottom: 5px;
}

#finalization-modal .phone-hint {
    margin-top: 2px;
}

#finalization-modal .error-message {
    margin-top: 10px;
}

.home {
    margin-top: 50px;
    min-height: 650px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.home-text h1 {
    font-family: var(--poppins-font);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.home-text p {
    max-width: 300px;
    font-size: 0.94rem;
    font-family: var(--poppins-font);
    margin: 1rem 0 1.5rem;
}

.btn {
    max-width: 160px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    border-radius: 2rem;
    background: var(--text-color);
    transition: background 0.3s ease, transform 0.3s ease; /* Adicionando transições */
}

.btn:hover {
    background: var(--main-color); /* Mudança de cor ao passar o mouse */
    transform: scale(1.05); /* Efeito de aumento ao passar o mouse */
}

.btn span {
    font-family: var(--poppins-font);
    color: var(--bg-color);
    text-transform: uppercase;
}

.btn .bx {
    font-size: 20px;
    background: var(--azul);
    color: var(--bg-color);
    padding: 5px;
    border-radius: 50%;
    transform: rotate(60deg);
}

.home-img {
    max-width: 350px;
    width: 100%;
}

/* Adaptação de navegação */
@media (max-width: 1080px) {
    .nav {
        padding: 15px;
    }
    section {
        padding: 3rem 0 2rem; 
    }
    .container {
        margin: 0 auto;
        width: 90%;
    }
    .shop {
        margin-top: 2rem !important;
    }
    .home-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 770px) {
    .home {
        min-height: 500px;
        grid-template-columns: 1fr;
        margin-top: 4.5rem !important;
    }
    .home-text h1 {
        order: 1;
        font-size: 2.5rem;
    }
}

@media (max-width: 400px) {
    .nav {
        padding: 11px;
    }
    .logo {
        font-size: 1rem;
    }
    .cart {
        width: 320px;
    }
}

@media (max-width: 360px) {
    .shop {
        margin-top: 2rem !important;
    }
    .cart {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column; /* Coloca os itens em coluna em telas menores */
        align-items: flex-start; /* Alinha itens à esquerda */
    }

    .cart {
        width: 90%; /* Largura do carrinho em telas menores */
        max-width: 350px; /* Largura máxima do carrinho */
    }

    .cart-title {
        font-size: 1.2rem; /* Tamanho da fonte do título do carrinho */
    }

    .section-title {
        font-size: 1.4rem; /* Tamanho da fonte da seção */
    }

    .shop-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajusta para colunas menores */
    }

    .product-box {
        padding: 10px; /* Espaçamento interno para produtos */
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px; /* Menos padding em telas muito pequenas */
    }

    .btn-buy {
        font-size: 0.9rem; /* Tamanho da fonte do botão */
    }

    .cart-remove {
        font-size: 20px; /* Tamanho do ícone de remoção */
    }
}

.carousel {
    position: relative;
    width: 800px; /* Largura fixa */
    height: 500px; /* Altura fixa */
    margin: auto; /* Centraliza o carrossel */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.carousel-item.active {
    opacity: 1;
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* Estilo do menu dropdown */
.menu-container {
    position: relative;
}

.dropdown-content {
    display: none; /* Inicialmente escondido */
    position: absolute;
    background-color: var(--bg-color);
    min-width: 240px; /* Largura mínima */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); /* Sombra suave */
    z-index: 1;
    border-radius: 12px; /* Bordas arredondadas */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transição suave */
    opacity: 0; /* Inicialmente invisível */
    transform: translateY(-10px); /* Leve deslocamento para cima */
}

.menu-container:hover .dropdown-content {
    display: block; /* Mostra o dropdown ao passar o mouse */
    opacity: 1; /* Torna visível */
    transform: translateY(0); /* Retorna para a posição original */
}

.dropdown-content p {
    padding: 12px 20px;
    color: var(--text-color);
    margin: 0; /* Remove margens */
    font-weight: 500; /* Peso da fonte */
    transition: background 0.3s, color 0.3s; /* Transição ao passar o mouse */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Linha de separação entre itens */
}

.dropdown-content p:last-child {
    border-bottom: none; /* Remove a linha do último item */
}

#user-status {
    color: var(--text-color); /* Define a cor padrão */
}

.dropdown-content p:hover {
    background: none; /* Remove a mudança de cor de fundo ao passar o mouse */
    color: var(--text-color); /* Mantém a cor do texto */
}

.dropdown-content button {
    width: 100%;
    padding: 12px;
    background: var(--azul);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    border-radius: 8px; /* Bordas arredondadas */
    font-weight: 600; /* Peso da fonte */
    transition: background 0.3s, transform 0.2s; /* Transições suaves */
    margin: 8px 0; /* Margem entre botões */
    font-size: 1rem; /* Tamanho da fonte */
    letter-spacing: 1px; /* Espaçamento entre letras */
}

.dropdown-content button:hover {
    background: var(--main-color); /* Cor ao passar o mouse */
    transform: scale(1.05); /* Efeito de aumento ao passar o mouse */
}

/* Estilo do botão do menu */
.menu-button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50px; /* Bordas arredondadas */
    padding: 10px 20px; /* Padding interno */
    font-size: 1rem; /* Tamanho da fonte */
    font-weight: bold; /* Peso da fonte */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s; /* Transições suaves */
}

.menu-button:hover {
    background: var(--main-color); /* Cor ao passar o mouse */
    transform: scale(1.05); /* Efeito de aumento ao passar o mouse */
}

.menu-button:focus {
    outline: none; /* Remove o contorno padrão */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Adiciona sombra ao focar */
}
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinha itens à direita */
    padding: 20px 0;
    color: #fff;
}

.logo {
    margin-right: auto; /* Mantém o logo à esquerda */
}

footer {
    background-color: rgb(0, 0, 0);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  .footer-content h3 {
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
  }
  
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.close-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-icon:hover {
    color: var(--main-color);
}

.close-icon i {
    font-size: 24px;
}

.phone-input-container {
    margin-bottom: 15px;
    width: 100%;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.phone-input-group:focus-within {
    border-color: var(--azul);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.phone-prefix {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-right: 1px solid #ddd;
    color: #495057;
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#customer-phone {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.phone-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Estilos para a Notificação */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification-modal.show {
    display: flex;
    opacity: 1;
}

.notification-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.notification-modal.show .notification-content {
    transform: translateY(0);
    opacity: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notification-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-notification:hover {
    color: #333;
}

.notification-body {
    text-align: center;
    margin-bottom: 20px;
}

.notification-icon {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 15px;
    display: block;
    animation: bounce 1s ease infinite;
}

.notification-body p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.notification-footer {
    text-align: center;
}

.btn-confirm {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.btn-confirm:hover {
    background-color: #45a049;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

