/* Base Styles */
:root {
    --primary-color: #FF007F; /* Rosa do logo */
    --secondary-color: #e00072; /* Um tom mais escuro de rosa */
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #f8f8f8;
    --white: #fff;
    --border-color: #ddd;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Permite que os itens quebrem linha em telas pequenas */
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    height: 50px; /* Ajuste o tamanho do logo */
    width: auto;
    border-radius: 5px; /* Se o logo tiver fundo, pode arredondar */
}

header .logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--text-color);
}

header .logo p {
    margin: 0;
    font-size: 0.9em;
    color: var(--light-text-color);
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Permite que os itens de navegação quebrem linha */
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Main Content Styling */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; /* CORRIGIDO: Adicionado para conter o conteúdo dentro das bordas */
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1em;
    color: var(--light-text-color);
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

.button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.button-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.button-small:hover {
    background-color: var(--secondary-color);
}

/* Home Page Specifics */
.home-main {
    /* CORRIGIDO: Removidas sobreposições que quebravam as bordas e sombras do main */
    /* O main padrão já tem padding, box-shadow e border-radius. */
    /* Não precisamos resetá-los aqui se queremos que o hero se ajuste dentro. */
}

.hero {
    position: relative;
    width: 100%; /* Ajustado para 100% da largura do seu contêiner (o main) */
    height: 450px; /* Ajuste a altura conforme necessário */
    overflow: hidden; /* Mantém o overflow para garantir que nada vaze */
    margin: -20px -20px 40px -20px; /* CORRIGIDO: Margens negativas para compensar o padding do 'main' */
    /* Ajuste os 40px se a margem inferior para a próxima seção for diferente */
    border-radius: 8px; /* CORRIGIDO: Aplicar o mesmo border-radius do main */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Escurece a imagem para o texto sobressair */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 1;
    width: 80%; /* Limita a largura do conteúdo */
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--white); /* Título em branco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.highlights {
    text-align: center;
    padding: 40px 20px;
}

.highlights h3 {
    font-size: 2em;
    margin-bottom: 30px;
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* **CORREÇÃO PARA ALINHAR AS LINHAS INFERIORES DOS CARDS** */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribui o espaço entre os itens */
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 1.5em;
    margin-top: 0;
    color: var(--primary-color);
}

.card p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 20px;
    
    flex-grow: 1; /* Permite que o parágrafo ocupe o espaço restante */
    display: flex; /* Transforma o p em flex container para alinhar o texto */
    align-items: center; /* Alinha verticalmente o texto no centro do parágrafo */
    justify-content: center; /* Alinha horizontalmente o texto no centro do parágrafo */
}

.card .button-small {
    margin-bottom: 15px;
}

.about-us-short, .latest-news {
    text-align: center;
    padding: 30px 20px;
}

.latest-news ul {
    list-style: disc inside;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    font-size: 1.1em;
}

.latest-news ul li {
    margin-bottom: 10px;
    color: var(--light-text-color);
}

/* Collections Page Specifics */
.category-section {
    padding-top: 30px;
}

.category-section h3 {
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    color: var(--secondary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-card h4 {
    font-size: 1.3em;
    margin: 15px 10px 5px;
    color: var(--text-color);
}

.product-card p {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.product-card .button-small {
    margin-bottom: 15px;
}

.category-section ul {
    list-style: disc inside;
    margin-top: 20px;
    padding-left: 20px;
    color: var(--light-text-color);
}

.size-guide table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

.size-guide th, .size-guide td {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}

.size-guide th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.size-guide tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-note {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 10px;
    text-align: center;
}

.how-to-buy ol {
    list-style: decimal inside;
    padding-left: 0;
    max-width: 600px;
    margin: 20px auto;
    font-size: 1.1em;
}

.how-to-buy ol li {
    margin-bottom: 10px;
    color: var(--light-text-color);
}

/* About Us Page Specifics */
.our-story, .mission-vision-values, .milestones, .team {
    padding: 20px;
    text-align: center;
}

.our-story h3, .mission-vision-values h3, .milestones h3, .team h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-image {
    max-width: 80%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.our-story p, .team p {
    max-width: 800px;
    margin: 15px auto;
    text-align: justify;
    color: var(--light-text-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.pillar-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.pillar-card h4 {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.pillar-card p, .pillar-card ul {
    color: var(--light-text-color);
    font-size: 1em;
}

.pillar-card ul {
    list-style: none; /* Remove bullets */
    padding-left: 0;
}

.pillar-card ul li {
    margin-bottom: 8px;
}

.milestones ol {
    list-style: decimal inside;
    padding-left: 0;
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
    font-size: 1.1em;
    color: var(--light-text-color);
}

.milestones ol li {
    margin-bottom: 10px;
}

.milestones ol li strong {
    color: var(--primary-color);
}

/* Contact Page Specifics */
.contact-form-section {
    max-width: 700px;
    margin: 0 auto 40px auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 22px); /* Ajusta a largura para padding e borda */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    color: var(--text-color);
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto; /* Anula o width: 100% de input */
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 20px;
    cursor: pointer;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.info-item h4 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.info-item p,
.info-item a { /* Aplique a ambos para maior segurança */
    word-wrap: break-word; /* Suporte legado */
    overflow-wrap: break-word; /* Propriedade moderna preferida */
    hyphens: auto; /* Opcional: para hifenizar palavras em quebras */
}

.social-media-contact {
    text-align: center;
    margin-top: 40px;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-links-large a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-links-large a:hover {
    color: var(--primary-color);
}

.social-links-large img {
    width: 60px; /* Tamanho dos ícones maiores */
    height: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.social-links-large a:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer .social-links {
    display: flex;
    gap: 15px;
}

footer .social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

footer .social-links img:hover {
    transform: translateY(-3px);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Para telas pequenas */
    justify-content: center;
}

footer ul li a {
    color: var(--white);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

/* Estilos para o Menu Responsivo */
.nav-toggle {
    display: none; /* Esconde o botão por padrão em telas grandes */
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px 10px;
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Impede que o header quebre linha */
    }

    header nav {
        display: none; /* Esconde o menu por padrão em mobile */
        width: 100%;
        order: 3; /* Coloca a navegação abaixo do logo/toggle */
    }

    header nav.nav-open {
        display: block; /* Mostra o menu quando 'nav-open' está ativo */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        background-color: var(--white);
        padding: 15px 0;
        border-top: 1px solid var(--border-color);
    }

    header nav ul li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: block; /* Mostra o botão em telas pequenas */
    }
}

/* Estilos para a Galeria de Imagens (Coleções) */
.gallery-product {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-display {
    width: 100%;
    height: 350px; /* Altura fixa para a imagem principal */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem caiba sem cortar */
    /* object-fit: cover; se preferir que preencha, mas pode cortar */
    transition: transform 0.3s ease;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.thumbnail {
    width: 80px; /* Tamanho das miniaturas */
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color); /* Borda rosa na miniatura ativa */
    box-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
}

/* Estilos para Validação de Formulário */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #e74c3c; /* Vermelho para erro */
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.contact-form input.error:focus,
.contact-form textarea.error:focus {
    border-color: #c0392b;
}

/* Adicione um pouco de espaçamento extra para o botão de toggle no header em mobile */
@media (max-width: 768px) {
    header .logo {
        margin-right: auto; /* Empurra o logo para a esquerda, e o toggle para a direita */
    }
}