/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f7f8fa; color: #222; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header { background: #111; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-flex { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 2rem; font-weight: bold; color: #2196f3; letter-spacing: 1px; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a.active { color: #2196f3; }

.banner { background: linear-gradient(120deg, #111 60%, #2196f3 100%); color: #fff; padding: 64px 0 32px 0; position: relative; }
.banner-content { max-width: 600px; margin-bottom: 32px; }
.banner h1 { font-size: 2.5rem; margin-bottom: 12px; }
.banner p { font-size: 1.2rem; margin-bottom: 24px; }
.btn { padding: 12px 32px; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background 0.2s, color 0.2s; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: #2196f3; color: #fff; }
.btn-primary:hover { background: #1769aa; }

.carousel { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.carousel-img { display: none; width: 100%; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.carousel-img.active { display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 2rem; padding: 8px 16px; border-radius: 50%; cursor: pointer; z-index: 2; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.categorias { background: #fff; padding: 48px 0; }
.categorias h2 { text-align: center; margin-bottom: 32px; color: #111; }
.categorias-lista { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.categoria { text-align: center; cursor: pointer; transition: transform 0.2s; }
.categoria img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; border: 3px solid #2196f3; }
.categoria span { font-size: 1.1rem; color: #222; }
.categoria:hover { transform: translateY(-8px) scale(1.05); }

.produtos { background: #f7f8fa; padding: 48px 0; }
.produtos h1, .produtos h2 { text-align: center; margin-bottom: 32px; color: #111; }
.filtros { display: flex; justify-content: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.filtro-btn { background: #fff; border: 1px solid #2196f3; color: #2196f3; padding: 8px 24px; border-radius: 20px; cursor: pointer; font-weight: 500; transition: background 0.2s, color 0.2s; text-decoration: none; }
.filtro-btn.active, .filtro-btn:hover { background: #2196f3; color: #fff; }
.produtos-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.produto-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); padding: 20px; display: flex; flex-direction: column; align-items: center; transition: box-shadow 0.2s, transform 0.2s; }
.produto-card:hover { box-shadow: 0 6px 24px rgba(33,150,243,0.12); transform: translateY(-6px) scale(1.03); }
.produto-card img { width: 100%; max-width: 180px; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.produto-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #111; text-align: center; }
.produto-card p { font-size: 0.98rem; color: #444; margin-bottom: 12px; text-align: center; }
.produto-card .preco { font-size: 1.1rem; color: #e53935; font-weight: bold; margin-bottom: 12px; }
.produto-card .btn { width: 100%; }

.detalhe-produto { background: #fff; padding: 48px 0; }
.detalhe-flex { display: flex; flex-wrap: wrap; gap: 40px; max-width: 1000px; margin: 0 auto; }
.galeria-imagens { flex: 1; min-width: 280px; }
.galeria-imagens img { width: 100%; max-width: 340px; border-radius: 10px; margin-bottom: 12px; }
.galeria-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.galeria-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid #eee; cursor: pointer; transition: border 0.2s; }
.galeria-thumbs img.active, .galeria-thumbs img:hover { border: 2px solid #2196f3; }
.detalhe-info { flex: 2; min-width: 280px; }
.detalhe-info h1, .detalhe-info h3 { font-size: 1.5rem; margin-bottom: 12px; color: #111; }
.detalhe-info h3 { font-size: 1.2rem; margin-top: 24px; }
.detalhe-info .preco { font-size: 1.3rem; color: #e53935; font-weight: bold; margin-bottom: 16px; }
.detalhe-info .especificacoes { margin-bottom: 16px; }
.detalhe-info .especificacoes ul { margin-left: 20px; }
.detalhe-info .avaliacoes { margin-top: 24px; }
.detalhe-info .avaliacao { background: #f1f1f1; border-radius: 8px; padding: 10px 16px; margin-bottom: 8px; }
.fechar-detalhe { background: none; border: none; color: #2196f3; font-size: 1rem; cursor: pointer; margin-bottom: 16px; text-decoration: none; }

.sobre, .contato { background: #fff; padding: 48px 0; }
.sobre h1, .sobre h2, .contato h1, .contato h2 { text-align: center; margin-bottom: 24px; color: #111; }
.sobre h2 { text-align: left; margin-top: 32px; margin-bottom: 16px; }
.sobre p { max-width: 700px; margin: 0 auto 16px auto; color: #444; line-height: 1.6; }
.contato form { max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.contato input, .contato textarea { padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.contato button { align-self: flex-end; }

.mensagem-sucesso { background: #e8f5e8; border: 1px solid #4caf50; color: #2e7d32; padding: 24px; border-radius: 8px; margin-bottom: 24px; text-align: center; }
.mensagem-sucesso h2 { color: #2e7d32; margin-bottom: 12px; }

footer { background: #111; color: #fff; padding: 24px 0; }
.footer-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-social a { margin-right: 16px; }
.footer-social img { width: 28px; height: 28px; filter: grayscale(1) brightness(2); transition: filter 0.2s; }
.footer-social img:hover { filter: none; }
.footer-info { font-size: 0.98rem; color: #bbb; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 900px) {
    .header-flex, .footer-flex { flex-direction: column; gap: 16px; height: auto; }
    .categorias-lista { gap: 24px; }
    .detalhe-flex { flex-direction: column; gap: 24px; }
    .contato > div { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .banner { padding: 32px 0 16px 0; }
    .produtos-lista { grid-template-columns: 1fr; }
    .categorias-lista { flex-direction: column; align-items: center; }
    .galeria-imagens img { max-width: 100%; }
    .filtros { gap: 8px; }
    .filtro-btn { padding: 6px 16px; font-size: 0.9rem; }
}
