/* Importar fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--preto);
    background-color: var(--branco-primario);
}

/* Container - NÃO AFETA O HEADER */
.container:not(.main-header .container) {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* REMOVER ESTILOS DO HEADER - Deixar para 12-navigation.css controlar */
/* .main-header - REMOVIDO */
/* .header-content - REMOVIDO */

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.auth-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Links e Navegação */
a {
    color: var(--azul-primario);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--azul-secundario);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--azul-primario);
    color: var(--branco-secundario);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-inter);
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--azul-fonte);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--branco-secundario);
}

.btn-primary {
    background-color: var(--azul-primario);
    color: var(--branco-secundario);
}

.btn-outline {
    background-color: transparent;
    color: var(--azul-primario);
    border: 2px solid var(--azul-primario);
}

.btn-outline:hover {
    background-color: var(--azul-primario);
    color: var(--branco-secundario);
}

.btn-full {
    width: 100%;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-lora);
    color: var(--branco-primario);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Seções */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-lora);
    font-size: 42px;
    font-weight: 500;
    color: var(--azul-fonte);
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--font-inter);
    font-size: 18px;
    color: var(--cinza-escuro);
    font-weight: 400;
}

.section-divider {
    width: 100%;
    max-width: 30rem;
    height: 2px;
    background-color: var(--azul-primario);
    margin: 20px auto;
}

/* Cards */
.card {
    background: var(--branco-secundario);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--azul-fonte);
    font-weight: 500;
    font-family: var(--font-inter);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-inter);
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: var(--branco-secundario);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-primario);
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: var(--font-inter);
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Grid de produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--branco-secundario);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: var(--font-lora);
    font-size: 20px;
    color: var(--azul-fonte);
    margin-bottom: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--azul-primario);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--azul-fonte);
    color: var(--branco-secundario);
    padding: 3rem 0 2rem;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--branco-secundario);
    margin-bottom: 20px;
    font-family: var(--font-lora);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--branco-secundario);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utilitários */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsividade - NÃO AFETA O HEADER */
@media (max-width: 1200px) {
    .container:not(.main-header .container) {
        max-width: 992px;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .container:not(.main-header .container) {
        max-width: 768px;
        padding: 0 25px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container:not(.main-header .container) {
        max-width: 576px;
        padding: 0 20px;
    }
    
    /* REMOVIDO: .header-content - deixar 12-navigation.css controlar */
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container:not(.main-header .container) {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--azul-primario);
    outline-offset: 2px;
}