/* Reset Básico e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Fonte clean e legível */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Fundo levemente acinzentado */
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Para conter floats */
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 0.75em;
    color: #333;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #5e35b1; /* Um tom de roxo elegante */
}

a:hover {
    color: #4527a0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Ajuste conforme seu logo */
    margin-right: 10px;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5e35b1;
}

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

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #5e35b1;
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
}

.cart-icon-container img {
    height: 28px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e91e63; /* Cor de destaque para o contador */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

.menu-toggle {
    display: none; /* Escondido em telas maiores */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
}

/* Seções */
section {
    padding: 60px 0;
    text-align: center;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #5e35b1;
    margin: 8px auto 0;
}

/* Hero Section */
.hero {
    background: #e1bee7 url('img/banner-hero.jpg') no-repeat center center/cover; /* Cor de fallback e imagem */
    color: #fff; /* Texto branco para contraste com fundo escuro */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero::before { /* Overlay escuro para melhor legibilidade do texto */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1; /* Fica abaixo do conteúdo do hero */
}
.hero .container {
    position: relative; /* Para que o conteúdo fique acima do overlay */
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    color: #eee;
}

.btn {
    display: inline-block;
    background: #5e35b1;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.btn:hover {
    background: #4527a0;
}

/* Product Section */
.product-section {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    max-height: 250px; /* Ajuste conforme necessário */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e91e63; /* Cor de destaque para o preço */
    margin-bottom: 15px;
}

.product-card .add-to-cart-btn {
    background: #26a69a; /* Verde para adicionar ao carrinho */
    color: white;
}
.product-card .add-to-cart-btn:hover {
    background: #00796b;
}

/* About & Contact Sections */
.about-section, .contact-section {
    background-color: #f4f4f4;
}
.about-section p, .contact-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #555;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Modal do Carrinho */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fundo semi-transparente */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #5e35b1;
}

#cart-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex-grow: 1;
}
.cart-item-info p { margin-bottom: 0.2em; }
.cart-item-info .item-name { font-weight: bold; }
.cart-item-info .item-price { font-size: 0.9em; color: #777; }

.cart-item-quantity input {
    width: 50px;
    padding: 5px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item .remove-item-btn {
    background: #ef5350;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}
.cart-item .remove-item-btn:hover {
    background: #d32f2f;
}


.cart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}


/* Responsividade */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 15px;
        width: 100%;
        display: none; /* Escondido por padrão, mostrado com JS */
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    header nav ul li a {
        display: block;
        padding: 10px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}




/* =================================================================== */
/* CSS PARA A SEÇÃO STORIES (Tela Cheia, Rolagem Horizontal, Snap)
/* =================================================================== */

.stories-section {
  padding: 0; /* Remove qualquer padding da seção */
  background-color: #000; /* Fundo preto para preencher espacos, se houver */
  /* Se esta seção ocupar toda a tela e você quiser garantir
     que a página não role para cima/baixo enquanto se navega nos stories,
     pode ser necessário JS para controlar o overflow do <body>,
     ou ajustar a altura aqui. Comece sem isso. */
}

.stories-container {
  display: flex;           /* 1. Coloca itens lado a lado */
  flex-wrap: nowrap;       /* 2. Impede quebra de linha */
  overflow-x: auto;        /* 3. Habilita rolagem horizontal */
  width: 100%;             /* 4. Ocupa a largura disponível */
 
  /* 5. ALTURA: Faz o container ter a altura da tela */
  height: 100vh; 
  /* 
    ALTERNATIVA MODERNA (Melhor para Mobile, lida com barras do Navegador): 
    Use 100dvh se quiser que a altura se ajuste dinamicamente.
    Verifique a compatibilidade nos navegadores que você precisa suportar.
     height: 100dvh;  
  */

  /* 6. SNAP: Faz a rolagem "parar" em cada item */
   scroll-snap-type: x mandatory; 
   
  /* 7. ESCONDE A BARRA DE ROLAGEM (Visual) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.stories-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


/*
 * O CARD INDIVIDUAL (CADA STORY)
*/
.story-card {
  width: 100vw; /* LARGURA total da tela */
  height: 100%;   /* ALTURA total do container pai (100vh ou 100dvh) */
  
  flex: 0 0 auto; /* IMPORTANTE: Para o Flexbox não redimensionar o item */
  scroll-snap-align: start; /* Ponto onde o Snap deve ocorrer */
  
  position: relative; /* Necessário para posicionar imagem/conteúdo */
  overflow: hidden;   /* Garante que nada vaze do card */
  
  /* Usa flex para alinhar o conteúdo interno (o .story-content) */
   display: flex;
   flex-direction: column;
   align-items: center; /* Centraliza horizontalmente */
   justify-content: flex-end; /* <<< Alinha o conteúdo na BASE do card */
   /* Troque para 'center' se quiser o conteúdo no MEIO do card: */
   /* justify-content: center; */
}

/* Imagem de Fundo do Story */
.story-card .story-background {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover; /* Faz a imagem cobrir toda a área, cortando se necessário */
   z-index: 1; /* Fica embaixo */
   background-color: #333; /* Cor caso a imagem não carregue */
}

 /* Opcional: Overlay escuro para melhorar a legibilidade do texto
    Um gradiente que escurece a parte de baixo do card */
.story-card::after {
   content: '';
   display: block;
   position: absolute;
   left: 0;
   bottom: 0;
   width: 100%;
   height: 70%; /* Altura do gradiente, ajuste se precisar */
   background: linear-gradient(to top, rgba(0,0,0, 0.75) 0%, rgba(0,0,0, 0) 100%);
   z-index: 2; /* Fica entre o Fundo e o Conteúdo */
   pointer-events: none; /* Permite que os cliques "atravessem" o overlay e cheguem no botão */
}

/* Bloco com Textos e Botões */
.story-card .story-content {
   position: relative; 
   z-index: 3; /* Fica ACIMA do fundo e do overlay */
   
   color: #fff; /* Cor do texto */
   text-align: center;
   padding: 50px 30px; /* Espaçamento interno */
   
   display: flex; /* Organiza o H3, P, BUTTON */
   flex-direction: column;
   align-items: center;
}

.story-card .story-content h3 {
   font-size: 2.2rem; /* Ajuste o tamanho */
   color: #fff;
   margin-bottom: 0.5em;
   text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Sombra para legibilidade */
}
 .story-card .story-content p {
   font-size: 1.1rem;
   margin-bottom: 1.5em;
   max-width: 550px; /* Limita largura da descrição */
   line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Sombra para legibilidade */
 }
 
 /* Estilo específico para o botão dentro do Story, 
    se quiser que seja diferente do .btn padrão */
.story-card .story-btn {
   /* Exemplo: Botão branco com texto roxo */
    background-color: #fff;
    color: #5e35b1; 
    padding: 15px 30px;
}
.story-card .story-btn:hover {
     background-color: #f0eaff;
     color: #4527a0;
}
/* =================================================================== */
/* FIM DO CSS DOS STORIES
/* =================================================================== */