/* ============================================= */
/* 1. DECLARAÇÕES FIXAS (ATUALIZADO)             */
/* ============================================= */

@font-face {
    font-family: '--font-corpo';
    src: url('../fonts/JosefinSans-ExtraLight.ttf') format('opentype');
}

@font-face {
    font-family: '--font-logo';
    src: url('../fonts/Vanitas-Bold.otf') format('opentype');
}

@font-face {
    font-family: '--font-valor';
    src: url('../fonts/Chivo-Light.ttf') format('opentype');
}

:root {
    /* -- Tipografia -- */
    --font-family-corpo: --font-corpo, sans-serif;
    --font-family-logo: --font-logo, sans-serif;
    --font-family-valor: --font-valor, sans-serif;

    --font-size-logo: 2.5rem;
    --font-size-biggest: 1.6rem;
    --font-size-big: 1.2rem;
    --font-size-normal: 1rem;
    --font-size-small: 0.8rem;

    /* -- Cores -- */
    --color-background-light: #ffffff;
    --color-background-secondary: #f4f4f4;
    --color-text-primary: #1c1c1c;
    /* Um preto um pouco mais suave */
    --color-text-secondary: #555555;
    --color-border: #eeeeee;

    /* -- Outros -- */
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* ============================================= */
/* 2. DECLARAÇÕES VARIÁVEIS (NOVOS ESTILOS)      */
/* ============================================= */

/* -- Corpo da página precisa de um espaço no topo por causa da navbar fixa -- */
body {
    margin: 0;
    padding-top: 100px;
    font-family: var(--font-family-corpo);
    /* Ajuste este valor se a altura da sua navbar for diferente */
}

h1, h2, h3, h4, h5, h6, p {
    font-family: var(--font-family-corpo);
}

/* -- Estrutura da Navbar Fixa -- */
header {
    position: fixed;
    /* Fixa a barra no topo */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background-light);
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1000;
    /* Garante que a navbar fique sobre todo o conteúdo */
    padding: 0;
}

/* ============================================= */
/* ESTILOS DO BANNER DA PÁGINA INICIAL           */
/* ============================================= */

/* O container do banner */
.homepage-banner {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
}

.homepage-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 colunas de tamanho igual */
    align-items: center;
    height: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* -- Coluna 1: Links da Esquerda -- */
.nav-left .nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Alinha os itens à esquerda */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    /* Espaço entre "Comprar", "Cardápios", "Contato" */
}

.nav-left a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-normal);
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    /* Escondido em telas grandes por padrão */
    background: none;
    border: none;
    font-size: var(--font-size-biggest);
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 1002;
    /* Garante que ele fique sobre o menu que vai abrir */
}


/* -- Coluna 2: Logo Central -- */
.nav-center {
    text-align: center;
}

.logo-text {
    font-family: var(--font-family-logo);
    font-size: var(--font-size-logo);
    font-weight: 400;
    letter-spacing: 5px;
    text-decoration: none;
    color: var(--color-text-primary);
}

/* -- Coluna 3: Ícone da Direita -- */
.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-right a {
    color: var(--color-text-primary);
    font-size: var(--font-size-biggest);
}

/* -- Estilo do Menu Dropdown (Desktop) -- */
.dropdown {
    position: relative;
}

.dropdown .fa-chevron-down {
    font-size: var(--font-size-small);
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background-light);
    list-style: none;
    padding: 1rem;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--shadow-color);
    width: 220px;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    padding: 0.5rem 0;
}

.nav-left .nav-menu a,
.nav-right a {
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.cart-container {
    position: relative;
    display: inline-block;
    color: var(--color-text-primary);
    transition: transform 0.2s ease-in-out;
}

.cart-item-count {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-primary);
    font-size: var(--font-size-small);
    font-weight: bold;
    user-select: none;
}

.cart-item-count:empty {
    display: none;
}

/* ============================================= */
/* SEÇÃO CARROSSEL DE PRODUTOS                   */
/* ============================================= */
.product-carousel-section {
    background-color: #fdfdfd;
}

.section-header {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.section-header h2 {
    font-size: var(--font-size-logo);
    font-weight: 700;
    margin: 0;
    padding-bottom: 0rem;
}

.link-loja {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    display: inline-block;
    margin-top: 0.5rem;
}

.link-loja:hover {
    color: var(--color-accent);
}

.container {
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-name {
    font-size: var(--font-size-big);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.product-price {
    font-size: var(--font-size-big);
    color: var(--color-text-secondary);
    margin: 0;
    font-family: var(--font-family-valor);
    display: none;
}

.product-swiper {
    padding-bottom: 3rem !important;
}

.swiper-pagination-bullet {
    background-color: #ccc;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-accent);
}

/* ============================================= */
/* SEÇÃO DE DESTAQUE (FEATURE SECTION)           */
/* ============================================= */

.feature-section {
    padding: 4rem 0 2rem 0;
    background-color: #ffffff;
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: var(--font-size-logo);
    margin: 0 0 1rem 0;
}

.feature-content p {
    font-size: var(--font-size-big);
    color: var(--color-text-secondary);
    margin: 0 0 2rem 0;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-text-primary);
    background-color: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-normal);
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background-light);
}

/* ============================================= */
/* SEÇÃO SOBRE (FAMÍLIA ARTESANAL)               */
/* ============================================= */
.about-section {
    background-color: #f7f7f7;
    padding: 2rem 0;
}

/* ============================================= */
/* SEÇÃO DE ÍCONES DE DIFERENCIAIS               */
/* ============================================= */

.icon-features-section {
    padding: 2rem 0;
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-item img {
    height: 60px;
    margin-bottom: 1rem;
}

.feature-item p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    font-weight: 600;
}

/* ============================================= */
/* ESTILOS DO NOVO RODAPÉ (FOOTER)               */
/* ============================================= */

footer {
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
    color: var(--color-text-secondary);
}

.container-footer {
    width: 90%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr 1fr;
    gap: 2rem;
    padding: 0;
    margin: 2rem 0 2rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 120px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.footer-col h4 {
    font-weight: 700;
    font-size: var(--font-size-small);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 1rem 0;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-col p {
    margin: 0.25rem auto 0.25rem auto;
}

.newsletter-form {
    display: flex;
    align-items: center;
}

.newsletter-form input {
    border: none;
    border-bottom: 1px solid var(--color-text-primary);
    background-color: transparent;
    padding: 0.5rem 0;
    width: 70%;
}

.newsletter-form input:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

.newsletter-form button {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    margin-left: 1rem;
    color: var(--color-text-primary);
    transition: color 0.2s;
}

.newsletter-form button:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: var(--font-size-biggest);
    color: var(--color-text-primary);
}

.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    font-size: var(--font-size-small);
}

.copyright-symbol {
    font-size: var(--font-size-biggest);
    vertical-align: middle;
}

/* ============================================= */
/* PÁGINA DE CARDÁPIOS                           */
/* ============================================= */

.cardapio-section {
    padding: 4rem 0;
    background-color: #fdfdfd;
}

.cardapio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    padding-top: 1rem;
}

.cardapio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    height: 350px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}

.cardapio-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cardapio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cardapio-item:hover img {
    transform: scale(1.05);
}

.cardapio-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: left;
}

.cardapio-item-title h3 {
    margin: 0;
    font-size: var(--font-size-biggest);
    font-weight: 700;
    color: #ffffff;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.cardapio-item:hover .cardapio-item-title h3 {
    transform: translateY(0);
}

/* ============================================= */
/* NAVEGAÇÃO INTERNA DOS CARDÁPIOS               */
/* ============================================= */

.menu-nav-section {
    padding: 3rem 0;
    background-color: var(--color-background-light);
}

.menu-category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
}

.menu-category-button {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-size: var(--font-size-normal);
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-category-button:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background-light);
    border-color: var(--color-text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.menu-category-button.active {
    background-color: var(--color-text-primary);
    color: var(--color-background-light);
    border-color: var(--color-text-primary);
    font-weight: bold;
}

/* ============================================= */
/* LISTA DE ITENS DO CARDÁPIO                  */
/* ============================================= */

.div-line {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  margin: 3rem 15%;
}

.menu-category-section {
    padding: 6rem 0 3rem 0;
}

.menu-category-title {
    text-align: center;
    font-size: var(--font-size-logo);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.menu-category-subtitle {
    text-align: center;
    font-size: var(--font-size-big);
    color: var(--color-text-secondary);
}

.menu-category-section .posdiv {
    text-align: center;
    font-size: var(--font-size-biggest);
    color: var(--color-text-secondary);
    margin: 0 0 3rem 0;
}

.menu-category-section .notposdiv {
    text-align: center;
    font-size: var(--font-size-biggest);
    color: var(--color-text-secondary);
    margin: 3rem 0 3rem 0;
}

.menu-category-section .latatitle {
    margin: 3rem 0rem 1rem 0rem !important;
}

.menu-category-section .latasub {
    margin: 0rem 0rem 3rem 0rem !important;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.menu-item-details {
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: var(--font-size-big);
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.25rem 0;
    color: var(--color-text-primary);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.menu-item-price {
    font-size: var(--font-size-normal);
    font-family: var(--font-family-valor);
    color: var(--color-text-primary);
    margin: 0;
}

.menu-item-description {
    font-size: var(--font-size-normal);
    color: var(--color-text-secondary);
    margin: 0.25rem 0 0 0;
    line-height: 1.5;
}

.menu-item-image.is-fallback {
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.linear {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.5rem !important;
}

.menu-item-name span {
    font-weight: 400;
    min-width: 80px;
    text-align: right;
}

.contato-grid1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0;
    margin: 2rem 0 2rem 0;
}

.contato-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0;
    margin: 2rem 0 2rem 0;
}

/* ============================================= */
/* AJUSTE RESPONSIVOS                            */
/* ============================================= */

@media (min-width: 1180px) {
    .nav-left .nav-menu a:hover,
    .nav-right a:hover {
        transform: scale(1.1);
        font-weight: bold;
    }
}

@media (max-width: 1180px) {
    body.menu-aberto {
        overflow: hidden;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-left {
        justify-content: flex-start;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 270px;
        height: calc(100vh - 80px);
        background-color: var(--color-background-light);
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        padding: 2rem;
        gap: 0.5rem !important;
        max-height: none;
        box-shadow: none;
    }

    body.menu-aberto .nav-menu {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.7rem 0rem 0.7rem 2rem;
        border-bottom: 1px solid var(--color-background-secondary);
        width: 100%;
        box-sizing: border-box;
        font-size: var(--font-size-normal);
    }

    .nav-left .nav-menu li a:hover,
    .nav-left .nav-menu li a:focus {
        transform: none;
        background-color: #f5f5f5;
    }

    .nav-left .nav-menu a:hover,
    .nav-left .nav-menu a:focus {
        font-size: var(--font-size-big);
        font-weight: bold;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        width: 220px;
        padding: 0;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 2rem;
        border-bottom: none;
    }

    .dropdown-menu li:last-child a {
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 890px) {
    .cardapio-grid {
        grid-template-columns: 1fr;
    }

    .cardapio-item {
        height: 300px;
    }

    .cardapio-item-title h3 {
        font-size: var(--font-size-biggest);
    }
}

@media (max-width: 768px) {
    .feature-layout {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .feature-content h2 {
        font-size: var(--font-size-logo);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form,
    .social-icons {
        justify-content: center;
    }

    .contato-grid1 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contato-grid2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 579px) {
    .menu-category-grid {
        grid-template-columns: 1fr;
    }
}