/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🎨 Variáveis de cores acessíveis */
:root {
    --cor-texto: #333333; /* Cinza Escuro */
    --cor-secundaria: #637FB2; /* Azul Royal */
    --cor-destaque: #8B0000; /* Vermelho Escuro */
    --cor-titulo: #1CA0B7; /* Azul Claro */
    --cor-link: #006400; /* Verde Escuro */
    --cor-card-texto: #637FB2; /* Azul Royal */
    
}

@media (prefers-color-scheme: dark) {
    :root {
        --cor-texto: #BDBDBD; /* Cinza Neutro */
        --cor-rodape:#000000; /* Preto */
        --cor-secundaria: #aabbee; /* Azul Pastel */
        --cor-destaque: #ff6666; /* Vermelho Vibrante */
        --cor-titulo: #4fd1d9; /* Azul Azedo */
        --cor-link: #000000; /* Preto */
        --cor-card-texto: #ffffff; /* Branco */
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cabeçalho (Header) */
header {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: var(--cor-destaque);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right h1 {
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header-right h3 {
    font-size: 1.1em;
    font-weight: 500;
}

.header-right a {
    color: var(--cor-link);
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.header-right a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-right a i {
    margin-right: 8px;
    font-size: 1.3em;
}

/* Menu de navegação */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255,248,225,0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.menu a {
    background: linear-gradient(135deg, #A52A2A 0%, #CD5C5C 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    margin: 5px 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(165,42,42,0.3);
    position: relative;
    overflow: hidden;
}

.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.menu a:hover::before {
    left: 100%;
}

.menu a:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: var(--cor-destaque);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(165,42,42,0.4);
}

.menu a i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Conteúdo principal */
.content {
    padding: 40px 20px;
    max-width: 1400px;
    margin: auto;
}

/* Seções */
.section {
    margin-bottom: 60px;
}

.section h2 {
    color: var(--cor-titulo);
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1CA0B7 0%, #20B2AA 100%);
    border-radius: 2px;
}

/* Grid de produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Cards de produtos */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 25px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,204,0,0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: rgba(255,204,0,0.4);
}

.card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    /* color: var(--cor-destaque);*/
    color: var(--cor-titulo);
    font-size: 1.4em;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.card p {
    color: var(--cor-card-texto);
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Links de contato/social */
.contact, .social {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact a, .social a {
    color: var(--cor-destaque);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255,204,0,0.1);
}

.contact a:hover, .social a:hover {
    background: rgba(255,204,0,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact a i, .social a i {
    margin-right: 8px;
    font-size: 1.3em;
}

/* Rodapé */
.footer {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: var(--cor-destaque);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    font-weight: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* Botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #A52A2A 0%, #CD5C5C 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(165,28,28,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(165,28,28,0.4);
}

.back-to-top.show {
    display: flex;
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .content { padding: 30px 15px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; }
    .header-right { flex-direction: column; gap: 10px; margin-top: 15px; }
    .menu { flex-direction: column; padding: 15px 0; }
    .menu a { margin: 8px 20px; justify-content: center; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
    .section h2 { font-size: 2em; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 15px; }
    .card { margin: 0 10px; padding: 15px; }
    .card img { max-width: 180px; }
    .section h2 { font-size: 1.8em; }
    .menu a { padding: 10px 20px; font-size: 0.95em; }
    .contact a, .social a { display: block; margin: 10px auto; }
}

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

/* Ajustes extras para modo escuro */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .card { background: #2d2d2d; border-color: rgba(255,204,0,0.3); }
    .contact, .social { background: rgba(45,45,45,0.7); }
}
