/* Estilo público (site) */
* { box-sizing: border-box; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* fundo slideshow */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* atrás dos cards */
    overflow: hidden;
}

#bg div {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;  /* um pouco maior para permitir o "movimento" */
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 2s ease, transform 20s linear;
}

#bg div.visible {
    opacity: 1;
    transform: translateX(-5%); /* move lentamente p/ esquerda */
}

#bg div.top {
    z-index: 1;
}

#bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* 0.4 = 40% de escuro, pode ajustar */
    z-index: 2;
    pointer-events: none; /* não atrapalha clique */
}


body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
main.container_home {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    background: #333;
    color: white;
    padding: 0.5rem 0;  /* menor altura */
    text-align: center;
}

header h1 {
    font-size: 1.5rem; /* menor que o padrão */
    margin: 0;         /* tira espaçamento extra */
}


main {
    flex: 1;
    padding: 2rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;        /* fundo sólido branco */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* opcional, dá destaque sobre o fundo */
}


.card:hover {
    transform: translateY(-5px);
}

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

.card h2 {
    padding: 1rem;
    font-size: 1.2rem;
}

.actions {
    padding: 1rem;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0056b3;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

.article {
    background: #fff;        /* fundo branco no detalhe do post */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.article img {
    max-width: 100%;   /* ocupa toda a largura do container */
    height: auto;      /* mantém proporção da imagem */
    display: block;
    margin: 0 auto 1rem auto; /* centraliza e dá espaço embaixo */
    border-radius: 8px;
    object-fit: contain; /* garante proporção, sem cortar */
}


.article .btn-buy {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    margin-bottom: 2rem; /* Espaço abaixo do botão */
}

.article .btn-buy:hover {
    background: #0056b3;
}

