/*
   ==========================================================================
   ARQUIVO CSS COMPLETO E CORRIGIDO
   ==========================================================================
*/

/* ------------------------- */
/* 1. RESET GERAL E BODY     */
/* ------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #343a40;
}

/* ------------------------- */
/* 2. LAYOUT E TIPOGRAFIA    */
/* ------------------------- */
main {
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
}

section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212529;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #c5a47e;
    margin: 0.5rem auto 0;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #c5a47e;
    text-decoration: none;
}

/* ------------------------- */
/* 3. CABEÇALHO E NAVEGAÇÃO  */
/* ------------------------- */
header {
    background: #1c1c1c;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    /* Para posicionar o menu dropdown */
}

nav .logo img {
    height: 50px;
    margin-right: 8px;
    vertical-align: middle;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1001;
    /* Garante que o logo fique acima do menu aberto */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #c5a47e;
    color: #1c1c1c;
}

/* --- ESTILOS DO MENU HAMBÚRGUER (NOVO) --- */
.hamburger {
    display: none;
    /* Escondido em telas grandes */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

/* ------------------------- */
/* 4. FORMULÁRIOS            */
/* ------------------------- */
.form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #343a40;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c5a47e;
    box-shadow: 0 0 0 2px rgba(197, 164, 126, 0.25);
}

.btn-submit {
    background-color: #28a745;
    /* Verde para confirmação */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #218838;
}

.btn-submit svg {
    margin-right: 8px;
}

/* ------------------------- */
/* 5. COMPONENTES ESPECÍFICOS  */
/* ------------------------- */

/* --- Carrossel de Produtos (Swiper) --- */
.product-carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.product-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Garante que os cards tenham a mesma altura */
}

.product-carousel .product-card {
    width: 100%;
    max-width: 320px;
    /* Limita a largura do card no slide */
    margin: 0 auto;
}

/* Estilo dos botões de navegação */
.swiper-button-next,
.swiper-button-prev {
    color: #c0392b;
    /* Cor primária do tema */
    transform: scale(0.8);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 2rem;
    /* Tamanho dos ícones */
    font-weight: bold;
}

/* Estilo da paginação */
.swiper-pagination-bullet {
    background: #ccc;
}

.swiper-pagination-bullet-active {
    background: #c0392b;
    /* Cor primária do tema */
}


/* --- Contêiner de Conteúdo Padrão --- */
.content-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

/* --- Página de Contato --- */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form .label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form .input,
.form .textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form .input:focus,
.form .textarea:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.contact-page-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.map-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    max-width: 500px;
    width: 90%;
}

.map-section h2 {
    text-align: center;
    color: #c0392b;
    margin-bottom: 1rem;
}

.map-section h2::after {
    background: #c0392b;
}

.map-section iframe {
    border: 0;
    border-radius: 8px;
    width: 100%;
    height: 350px;
}

/* --- Cards de Produto (ESTILIZAÇÃO MELHORADA) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    /* Para conter o zoom da imagem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card .product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Proporção quadrada para a imagem */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdfdfd;
    /* Um fundo suave caso a imagem não preencha tudo */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Garante que a imagem inteira apareça, sem cortar */
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
    /* Zoom um pouco mais pronunciado, mas ainda sutil */
}

.product-card .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Faz o conteúdo ocupar o espaço restante */
}

.product-card h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1;
    /* Empurra o preço e o botão para baixo */
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1.2rem;
}

/* --- Estilo Base para Botões --- */
.btn {
    display: inline-block;
    background-color: #c5a47e;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #b3936a;
    transform: translateY(-2px);
}

.btn-add-cart {
    width: 100%;
}

/* --- Carrinho Flutuante --- */
#cart-icon-container {
    position: fixed;
    top: 125px;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

#cart-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.9rem;
    font-weight: bold;
}

#mini-cart {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    min-width: 300px;
    padding: 1rem;
}

#mini-cart h4 {
    margin-top: 0;
    color: #27ae60;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#finalizar-compra {
    margin-top: 1rem;
    width: 100%;
}

/* --- Cards de Serviço (Página Serviços) --- */
.card-servico .icon-servico {
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-servico .icon-servico img {
    max-width: 100%;
    height: auto;
}

/* --- Alerta de Cookies --- */
#cookie-alert {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #232526;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 1.5rem 2rem;
    z-index: 9999;
    max-width: 420px;
    display: none;
    align-items: center;
    gap: 1rem;
}

#accept-cookies {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* O resto do CSS continua igual... */

/* ------------------------- */
/* 6. PÁGINA DO CARRINHO     */
/* ------------------------- */

.cart-page-main {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    min-height: 80vh;
    padding: 32px 0;
}

.cart-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    padding: 40px 32px;
    max-width: 900px;
    margin: auto;
}

.cart-title {
    text-align: center;
    color: #c0392b;
    font-size: 2rem;
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #0002;
}

.cart-empty-message {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: 2rem;
}

.cart-empty-actions {
    text-align: center;
    margin-top: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.cart-table thead th {
    color: #c0392b;
    font-size: 1.1rem;
    background-color: #f2f2f2;
}

.cart-table tbody img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
    box-shadow: 0 2px 8px #0001;
}

.cart-table .product-name {
    font-weight: 500;
    font-size: 1.08rem;
    color: #232526;
}

.cart-table .product-price {
    color: #c0392b;
    font-weight: bold;
}

.cart-table .product-quantity {
    font-weight: bold;
    font-size: 1.1rem;
    color: #232526;
    background: #e9ecef;
    border-radius: 8px;
    padding: 6px 18px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.cart-table .product-subtotal {
    font-weight: 500;
    color: #27ae60;
}

.cart-table tfoot td {
    font-weight: bold;
    font-size: 1.15rem;
}

.cart-table .total-label {
    text-align: right;
    color: #232526;
}

.cart-table .total-value {
    color: #c0392b;
}

.checkout-form-container {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.checkout-form-container h3 {
    color: #232526;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.checkout-form-container p {
    color: #888;
    margin-bottom: 24px;
}

.form-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-field label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #232526;
}

.form-field input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

.btn-submit-order {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(90deg, #27ae60 60%, #219150 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.12);
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    padding: 14px 0;
    letter-spacing: 1px;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
}


/* ------------------------- */
/* 6.5 FOOTER                */
/* ------------------------- */

footer {
    background-color: #1c1c1c;
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    /* Garante que o footer fique no final */
}

footer .social-icon-servico {
    margin-bottom: 16px;
    width: 64px;
    /* Definir largura */
    height: 64px;
    /* Definir altura */
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-servico img {
    max-width: 100%;
    height: auto;
}

footer .social-icons {
    margin-bottom: 1rem;
}

footer .social-icons a {
    margin: 0 0.75rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

footer .social-icons a:hover {
    transform: scale(1.1);
}

footer .social-icons svg {
    vertical-align: middle;
    stroke: #fff;
    /* Garante que o ícone seja branco */
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}


/* ------------------------- */
/* 7. RESPONSIVIDADE         */
/* ------------------------- */
@media (max-width: 768px) {

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* --- ESTILOS DO MENU MOBILE (CORRIGIDO) --- */

    /* Mostra o botão hambúrguer */
    .hamburger {
        display: block;
    }

    /* Esconde a navegação de desktop */
    nav ul {
        display: none;
        /* Esconde a lista por padrão */
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #1c1c1c;
        /* Fundo preto igual ao da imagem */
        padding-top: 5rem;
        /* Espaço para não ficar atrás do logo */
        height: 100vh;
        /* Ocupa a tela inteira na vertical */
        text-align: center;
    }

    /* Classe que o JavaScript adiciona para mostrar o menu */
    nav ul.nav-active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 1.5rem 0;
        /* Aumenta a área de clique */
        font-size: 1.2rem;
    }

    /* Demais ajustes responsivos... */
    main {
        width: 95%;
        margin-top: 2rem;
    }

    .servico-item {
        flex-direction: column;
        text-align: center;
    }

    .servico-item span {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {

    .cart-page-main,
    .content-container,
    .cart-container {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cart-table {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        display: block;
    }

    .cart-table th,
    .cart-table td {
        white-space: normal;
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

/* --------------------------------- */
/* 8. ESTILOS DO CARRINHO FLUTUANTE  */
/* --------------------------------- */

.mini-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mini-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mini-cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

.mini-cart-item-details {
    flex-grow: 1;
    margin-right: 12px;
}

.mini-cart-item-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #333;
}

.mini-cart-item-price {
    font-size: 0.9rem;
    color: #666;
}

.mini-cart-item-actions .btn-qty {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 26px;
    border-radius: 4px;
}

.mini-cart-item-actions .btn-qty:hover {
    background-color: #e9e9e9;
}

.mini-cart-item-actions .quantity {
    padding: 0 8px;
    font-weight: bold;
}

.btn-remove {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    padding: 5px;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-remove:hover {
    background-color: #fbeeee;
    color: #c0392b;
}

/* ------------------------- */
/* 9. ESTILOS DO CARRINHO    */
/* ------------------------- */

/* Botão de finalizar compra no mini-carrinho */
#mini-cart #finalizar-compra {
    width: 100%;
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#mini-cart #finalizar-compra:hover {
    background-color: #2ecc71;
    transform: scale(1.03);
}

/* Estilos para os botões de quantidade e remoção no mini-carrinho */
.mini-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-cart-item-actions button {
    background-color: #e74c3c;
    /* Vermelho para remover */
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    padding: 0;
    line-height: 25px;
    /* Centraliza o 'x' */
}

.mini-cart-item-actions button:hover {
    background-color: #c0392b;
}

.mini-cart-item-actions .quantity {
    font-weight: bold;
}

/* Estilo do botão de checkout principal na página do carrinho */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-checkout {
    display: inline-block;
    background-color: #27ae60;
    /* Verde principal */
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-checkout:hover {
    background-color: #2ecc71;
    /* Verde mais claro */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Estilo para links secundários */
.link-secondary {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.link-secondary:hover {
    color: #000;
    text-decoration: underline;
}

.nav-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.nav-home {
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2327ae60" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="9" width="18" height="12" rx="2"/><path d="M3 9.5L12 3l9 6.5"/></svg>') no-repeat center/contain;
}

.nav-services {
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2327ae60" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/></svg>') no-repeat center/contain;
}

.nav-products {
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2327ae60" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M16 3v4M8 3v4"/></svg>') no-repeat center/contain;
}

.nav-calendar {
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2327ae60" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg>') no-repeat center/contain;
}

.nav-contact {
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2327ae60" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polyline points="3 12 8 17 21 4"/></svg>') no-repeat center/contain;
}