:root {
    --primary: #b87333; /* castanho-dourado aceso (marca) */
    --secondary: #8c4a20; /* tom mais escuro para contrastes */
    --accent: #d9a85d; /* dourado claro para destaques */
    --dark: #2c3e50;
    --light: #fbf7f2;
}

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

header {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}
.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}
nav ul li a:hover {
    color: var(--primary);
}

/* Esconder elementos mobile por padrão */
.menu-toggle,
.social-icons-mobile {
    display: none;
}

/* ESTILIZAÇÃO DOS ÍCONES NO HEADER (DESKTOP) */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaçamento entre os ícones */
}

.social-icons a {
    text-decoration: none;
    color: var(--dark); /* Cor padrão (cinza escuro) */
    font-size: 1.3rem; /* Tamanho do ícone */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f4f4f4; /* Fundo circular suave */
}

/* Efeito individual ao passar o mouse */
.social-icons a:hover {
    transform: translateY(-3px); /* Pequeno salto para cima */
    color: #fff;
}

/* Cores específicas no hover para cada rede */
.social-icons a:has(.fa-instagram):hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icons a:has(.fa-facebook):hover,
.social-icons a:has(.fa-facebook-f):hover {
    background-color: #3b5998;
}

.social-icons a:has(.fa-whatsapp):hover {
    background-color: #25d366;
}

.social-icons a:has(.fa-tiktok):hover {
    background-color: #000;
}

.social-icons a:has(.fa-linkedin):hover {
    background-color: #0077b5;
}

/* Garante que o menu mobile não interfira se a tela for grande */
@media (max-width: 800px) {
    .social-icons {
        display: none; /* Esconde o grupo desktop no mobile como planejado */
    }
}

/* MEDIA QUERY PARA 800PX */
@media (max-width: 800px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--secondary);
    }

    .social-icons {
        display: none; /* Esconde os icones da direita no desktop */
    }

    nav {
        position: absolute;
        top: 70px; /* Altura do header */
        left: -100%; /* Começa fora da tela */
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: 0.4s;
        flex-direction: column;
        display: flex;
        align-items: center;
        padding-top: 50px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0; /* Desliza para dentro */
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .social-icons-mobile {
        display: flex;
        gap: 20px;
        margin-top: 30px;
        font-size: 1.5rem;
    }

    .social-icons-mobile a {
        color: var(--primary);
    }
}

/* AJUSTES PARA 360PX (Telas muito pequenas) */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .order-form {
        padding: 10px;
    }
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("./hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;

    h1 {
        color: var(--accent);
    }
}

.btn {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-block;
    margin-top: 20px;
    &:hover {
        filter: brightness(0.6);
    }
}

/* SEÇÃO SOBRE */
.about-section {
    padding: 100px 5%;
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    /* height: 600px; */
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--primary); /* Detalhe estético moderno */
}

.experience-badge {
    position: absolute;
    bottom: -34px;
    right: -20px;
    background: var(--secondary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
@media (width < 800px) {
    .experience-badge {
        bottom: -55px;
    }
}

.experience-badge span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.about-text {
    flex: 1;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary);
}

/* Responsividade para o Sobre */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        box-shadow: 10px 10px 0px var(--primary);
    }

    .about-features li {
        justify-content: center;
    }
}

.container {
    padding: 50px 5%;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark);
}

/* caedapio */

/* CARDS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 20px;
}
.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 5px;
    color: white;
    margin-bottom: 10px;
    display: inline-block;
}
.tag-hot {
    background: #e74c3c;
}
.tag-new {
    background: #27ae60;
}
.price {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ENCOMENDA */
.order-section {
    background: #fdf2e9;
    padding: 60px 5%;
}
.order-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.order-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-form input,
.order-form select,
.order-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.store-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.store-btn {
    padding: 10px;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.store-btn.active {
    background: var(--primary);
    color: white;
}

.btn-submit {
    background: #25d366;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

/* Estilo da Tabela de Entrega */
.delivery-table {
    margin-top: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--primary);
    font-size: 0.85rem;
}

.table-header {
    background: var(--primary);
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: bold;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
}

.table-row:last-child {
    border-bottom: none;
}
.table-row span:last-child {
    font-weight: bold;
    color: var(--secondary);
}

/* Melhoria nos Selects */
.order-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,..."); /* Pode adicionar ícone de seta */
}

.payment-method,
.delivery-option {
    margin-top: 10px;
}

/* GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-item img {
    width: 100%;
    border-radius: 10px;
    transition: 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* GRID DA GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* CONTAINER DAS TAGS NA IMAGEM */
.gallery-tags {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.g-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    width: fit-content;
    backdrop-filter: blur(5px); /* Efeito de vidro moderno */
}

.store-name {
    background: rgba(230, 126, 34, 0.9); /* Cor Laranja Primária */
}

.has-space {
    background: rgba(39, 174, 96, 0.9); /* Verde para indicar que tem espaço */
}

.delivery-only {
    background: rgba(44, 62, 80, 0.9); /* Escuro para retirada */
}

/* Sombra na parte inferior para facilitar leitura das tags */
.gallery-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

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

/* Estilo para as tags dentro dos cards */
.tags-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.tag-small {
    font-size: 0.65rem;
    background: #eee;
    padding: 2px 8px;
    border-radius: 20px;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

.tag-hot {
    background: #ffedea;
    color: #e74c3c;
}

.tag-cold {
    background: #ebf5ff;
    color: #2980b9;
}

.tag-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f1c40f;
    color: #000;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.8rem;
}

.tag-event {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.8rem;
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================= */
.store-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.map-container iframe {
    transition: opacity 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.store-btn {
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.store-btn.active {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* FOOTER ESTILIZADO */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 70px 5% 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-logo {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ÍCONES SOCIAIS */
.social-icons-grid {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.icon {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Cores das Redes Sociais no Hover */
.facebook:hover {
    background: #3b5998;
    transform: translateY(-3px);
}
.instagram:hover {
    background: #e1306c;
    transform: translateY(-3px);
}
.tiktok:hover {
    background: #000000;
    border: 1px solid #ff0050;
    transform: translateY(-3px);
}
.linkedin:hover {
    background: #0077b5;
    transform: translateY(-3px);
}
.whatsapp:hover {
    background: #25d366;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
}

/* RESPONSIVIDADE FOOTER */
@media (max-width: 850px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons-grid {
        justify-content: center;
    }
}

.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

.product-select {
    flex: 2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.qty-select {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-remove {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-add {
    background: transparent;
    color: var(--primary);
    border: 2px dashed var(--primary);
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-add:hover {
    background: rgba(184, 134, 11, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carrinho com Scroll */
#items-container {
    max-height: 280px; /* Altura fixa para ativar o scroll */
    overflow-y: auto;
    padding: 10px;
    background: rgba(184, 134, 11, 0.05); /* Fundo castanho muito leve */
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

/* Personalização da barra de scroll (para ficar dourada) */
#items-container::-webkit-scrollbar {
    width: 6px;
}
#items-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.total-display {
    background: var(--dark);
    color: var(--primary); /* Texto dourado no fundo escuro */
    padding: 15px;
    border-radius: 8px;
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 5px solid var(--primary);
}

.item-row select {
    border: 1px solid var(--primary);
    background: white;
    color: var(--dark);
}

/* Estilo do Botão de Info */

.carousel-wrapper {
    position: relative;

    .carousel-btn {
        padding: 5px 14px;
        font-size: 2rem;
        background: #161123;
        color: var(--accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translate(-50%);
        z-index: 6;
    }
    .carousel-btn.next {
        right: 0;
        transform: translate(50%);
    }

    @media (width < 670px) {
        .carousel-btn {
            top: 30%;
            transform: translate(-20%);
        }
        .carousel-btn.next {
            right: 0;
            transform: translate(20%);
        }
    }
    .carousel-container {
        display: flex;
        height: 320px;
        width: 100%;
        overflow: auto;
        scrollbar-width: none;
        gap: 20px;
        /* border: 2px solid red; */
    }
    .cardC {
        max-width: 360px;
        min-width: 300px;
        /* border: 3px solid blue; */

        img {
            width: 100%;
            height: 100%;
        }
    }

    .info-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--primary); /* Seu Castanho Dourado */
        color: white;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 5;
        transition: 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .info-btn:hover {
        background: var(--dark);
        transform: rotate(90deg);
    }

    /* Overlay de Detalhes (Escondido por padrão) */
    .card-overlay {
        position: absolute;
        bottom: -100%; /* Começa lá em baixo, fora da visão */
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(62, 39, 35, 0.95); /* Castanho escuro da marca com opacidade */
        color: var(--primary); /* Texto em Dourado */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        text-align: center;
        transition: bottom 0.4s ease-in-out;
        z-index: 10;
    }

    /* Classe que será ativada via JS */
    .card-overlay.active {
        bottom: 0; /* Sobe para cobrir a imagem */
    }

    .card-overlay h4 {
        margin-bottom: 10px;
        color: #fff;
        text-transform: uppercase;
    }
    .card-overlay p {
        font-size: 0.9rem;
        color: #ddd;
        line-height: 1.4;
    }

    .close-overlay {
        margin-top: 15px;
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--light);
        padding: 5px 15px;
        cursor: pointer;
        border-radius: 5px;
    }
}

/* about */
.floating-stats {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.stat-n {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}
.stat-t {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.link-about {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    margin-top: 20px;

    a {
        color: white;
        text-decoration: none;
    }
    &:hover {
        filter: brightness(0.7);
    }
}
@media (max-width: 900px) {
    .link-about {
        margin: 0 auto;
        width: fit-content;
        margin-top: 10px;
        display: inline-block;
    }
    .floating-stats {
        /* position: static; */
        flex-direction: row;
        /* justify-content: center; */
        /* margin-top: 20px; */
        left: 40%;
        transform: translateX(-50%);
        top: -45px;
    }
}
