/* RAÇÕES LOMURIMEL - style.css */

/* 1. Variáveis e Estilos Globais */
:root {
  --primary-color: #ff9645; /* Amarelo Lomurimel */
  --dark-color: #212529;    /* Cinza Escuro/Preto */
  --light-color: #f8f9fa;   /* Fundo Claro */
  --white-color: #ffffff;
  --gray-color: #6c757d;
  --success-color: #28a745; /* Verde WhatsApp */
  --font-family: 'Poppins', sans-serif;
}

/* Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;

}

h1, h2 {
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 2. Header e Navegação */
.main-header {
  background-color: var(--white-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-header .logo {
  max-width: 300px;
}


.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 25px;
}

.main-nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary-color);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}


/* 3. Seções da Home (index.html) */

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/heros/lomurimel-2.jpg') no-repeat center center/cover;
    background-position: center, top;
    min-height: 100vh;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}


.hero .award-badge {
    display: flex;
    align-items: center;
    background: #ff964538;
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.award-badge img {
    max-width: 50px;
    margin-right: 15px;
}


/* Estilos para a funcionalidade do Tour 360 (CORRIGIDO) */
.hero-content.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.4s ease;
}

.hero-tour-container {
    position: fixed; /* MUDANÇA: Fixo na tela, não mais absoluto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;   /* Z-index alto para cobrir tudo */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hero-tour-container.active {
    opacity: 1;
    pointer-events: all;
}

.hero-tour-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-back {
    position: fixed; /* MUDANÇA: Fixo na tela também */
    top: 25px;       /* Ajuste de posição */
    left: 25px;      /* Ajuste de posição */
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;   /* Z-index MÁXIMO para ficar sobre o tour */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back.visible {
    opacity: 1;
    pointer-events: all;
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}




/* Categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.category-card {
    background: var(--white-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.category-card img {
    max-height: 80px;
    margin: 0 auto 15px auto;
}

.category-card h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Marcas */
.brands-section {
    background-color: var(--white-color);
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
}

.brand-logo {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Instagram Feed */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.instagram-grid img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 4. Página de Produtos (produtos.html) */
.product-filters {
    text-align: center;
    margin-bottom: 40px;
}

.product-filters .btn {
    margin: 5px;
    background-color: var(--white-color);
    border: 1px solid #ddd;
}

.product-filters .btn.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

/* Código corrigido */
#product-grid {
    display: grid;
    /* MUDANÇA: Define um tamanho fixo para as colunas, sem deixar esticar */
    grid-template-columns: repeat(auto-fit, 280px); 
    
    /* NOVO: Centraliza o conjunto de cards na horizontal */
    justify-content: center; 
    
    gap: 25px;
}

.product-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card-content .category-tag {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card-content p {
    font-size: 0.9rem;
    color: var(--gray-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.product-card-content .btn {
    width: 100%;
    text-align: center;
}

/* 5. Página Sobre (sobre.html) e Contato (contato.html) */
.about-content, .contact-content {
    display: grid;
    
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}


.about-image {
    min-width: 0;
}

.about-content img, .contact-map {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: auto;
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border:0;
    border-radius: 10px;
}


.about-buttons {
    display: flex;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha em telas menores */
    gap: 15px;       /* Espaçamento entre os botões */
    margin-top: 30px;
}

.about-buttons .btn {
    display: inline-flex; /* Permite alinhar o ícone com o texto */
    align-items: center;
    gap: 8px;
}

/* Estilo para o botão secundário (Tour Virtual) */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* 6. Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-grid h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-grid p, .footer-grid ul li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-grid a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* 7. Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--success-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 8. Responsividade */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-header .logo {
        max-width: 250px;
    }

    .main-nav {
        width: 100%;
        margin-top: 15px;
        display: none; /* Escondido por padrão */
    }

    .main-nav.active {
        display: block; /* Mostrado via JS */
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/heros/lomurimel-2.jpg') no-repeat center center/cover;
        min-height: 70vh;
        background-position: center 60%;
    }
    
    

    .about-content, .contact-content {
        grid-template-columns: 1fr;
        
    }
    
    .about-content .about-image {
        order: -1; /* Faz a imagem vir primeiro na ordem visual */
    }

    .about-text {
        /* Opcional, mas recomendado: Adiciona um espaço entre a imagem e o texto abaixo dela */
        margin-top: 30px; 
    }
    
    .hero-content {
        margin-top: 38px;
    }
    
    .hero-content h1 {
        order: 1; /* Título vem primeiro */
        margin-top: -25px;
    }
    .hero-content p {
        order: 2; /* Parágrafo vem em segundo */
    }
    .hero-content .btn {
        order: 3; /* Botão vem em terceiro */
    }
    .award-badge {
        order: 4; /* Selo é movido para o final */
        margin-top: 30px; /* Adiciona um espaço acima do selo */
        margin-bottom: 0;
        font-size: 0.9rem;
    }
    
    .empty-category {
        display: none;
    }
    
    
    .about-buttons {
        flex-direction: column; /* Empilha os botões na vertical */
    }
    
    .about-buttons .btn {
        width: 100%;             /* Faz cada botão ocupar a largura total */
        justify-content: center; /* Centraliza o conteúdo do botão (ícone e texto) */
    }
    
    .whatsapp-float {

        width: 45px;
        height: 45px;

    }
    
    .whatsapp-float i {
        font-size: 24px; 
    }

    
    
}

@media(max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

/* CSS/style.css - Adicione este bloco no final do arquivo */

/* 9. Seção de Avaliações (Reviews) */
.reviews-section {
    background-color: var(--light-color); /* Garante o fundo cinza claro */
    padding: 60px 0;
}

.rating-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.rating-highlight .stars {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-highlight p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

.rating-highlight p span {
    font-weight: 700;
}

/* Estrutura do Carrossel */
.carousel-container {
    position: relative;
    max-width: 450px; /* AJUSTADO DE 800px PARA 450px */
    margin: 0 auto;
    overflow: hidden; 
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    flex: 0 0 100%; /* Cada card ocupa 100% da largura do container */
    box-sizing: border-box;
}

.review-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Botões de Navegação do Carrossel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Indicadores (Pontos) de Navegação do Carrossel */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: var(--primary-color);
}
/* Adicione no final do seu CSS */
.is-hidden {
    display: none !important;
}


/* Adicione este bloco no final da seção de estilos do Tour 360 */

/* Estilos para o Indicador de Carregamento */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Fica acima do fundo da hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente para focar no loading */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3); /* Cor do círculo do spinner */
    border-top-color: var(--primary-color); /* Cor da parte que gira */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    color: var(--white-color);
    font-size: 1.2rem;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Adicione este bloco inteiro no final do seu arquivo style.css */

/* 10. Correção para Celular na Horizontal (Modo Paisagem) */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* --- AJUSTES NA HERO --- */
    .hero {
        /* Sua linha com as duas camadas de fundo está correta */
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/heros/lomurimel-2.jpg');
        
        height: auto;
        min-height: 100vh;
        padding: 40px 20px;
    
        /* A CORREÇÃO: Fornecemos dois valores para cada propriedade de fundo, 
          um para o gradiente e outro para a imagem.
        */
        background-repeat: no-repeat, no-repeat;
        background-position: center, top;
        /* O primeiro 'cover' aplica-se ao gradiente, o segundo '100% auto' à imagem */
        background-size: cover, 100% auto;
    }

    .hero-content {
        margin-top: 0; /* Remove os ajustes de margem do modo retrato e desktop */
    }


    /* --- AJUSTES NO TAMANHO DOS TEXTOS --- */
    .hero-content h1 {
        font-size: 2rem;   /* Reduz um pouco o título principal */
        margin-top: 0;     /* Remove o ajuste de margem do modo retrato */
    }

    .hero-content p {
        font-size: 1rem;   /* Reduz o subtítulo */
    }

    .award-badge {
        font-size: 0.8rem; /* Reduz o texto do selo */
        padding: 8px 15px;
        margin-top: 20px;
    }

    .award-badge img {
        max-width: 35px; /* Diminui o ícone do troféu */
    }


    /* --- REVERSÃO DA ORDEM DOS ELEMENTOS --- */
    /* Fazemos a ordem voltar a ser a mesma do desktop (selo no topo) */
    .award-badge {
        order: 4;
    }
    .hero-content h1 {
        order: 1;
    }
    .hero-content p {
        order: 2;
    }
    .hero-content .btn {
        order: 3;
    }

}

/* Adicione este bloco no final do seu style.css */

/* 11. Estilos do Carrossel Customizado */
.custom-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden; /* Garante que as imagens não vazem */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Todas as imagens começam invisíveis */
    transition: opacity 0.6s ease-in-out; /* Efeito de FADE */
}

.carousel-image.active {
    opacity: 1; /* A imagem ativa fica visível */
}

/* Estilos dos botões de navegação (setas) */
.custom-carousel .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.custom-carousel .carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.custom-carousel .carousel-button.prev {
    left: 15px;
}

.custom-carousel .carousel-button.next {
    right: 15px;
}

/* Estilos da navegação por pontos */
.custom-carousel .carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.custom-carousel .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-carousel .nav-dot.active {
    background-color: var(--primary-color);
}
