/* style.css */
/* =======================
   ALTURA TOTAL DO DOCUMENTO
   ======================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* =======================
   RESET E TIPOGRAFIA
   ======================= */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f2ee;
    color: #333;
    line-height: 1.6;
}

/* =======================
   DIMMING QUANDO COOKIE NÃO ACEITO
   ======================= */
/* aplica 50% de opacidade em header, main e footer */
body.dimmed header,
body.dimmed main,
body.dimmed footer {
    opacity: 0.5;
}

/* garante que overlay e popup fiquem 100% opacos */
body.dimmed .cookie-overlay.active,
body.dimmed .cookie-popup-center.active {
    opacity: 1 !important;
}

/* =======================
   HEADER
   ======================= */
header {
    background-color: #5a3d2b;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin: 0;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
}

/* =======================
   MAIN
   ======================= */
main {
    padding: 2rem;
}

/* =======================
   FOOTER
   ======================= */
footer {
    background-color: #fff;
    color: #5a3d2b;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: #5a3d2b;
    text-decoration: none;
    margin: 0 0.3rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =======================
   GRIDS E CARDS DE PRODUTOS
   ======================= */
.content-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

article {
    background: #fff;
    border: 1px solid #e8d3b8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

article img {
    width: 100%;
    height: auto;
}

article h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    margin: 0.75rem;
    color: #5a3d2b;
}

article p {
    flex-grow: 1;
    padding: 0 0.75rem 0.75rem;
    color: #666;
}

/* =======================
   OVERLAY E POPUP DE COOKIE
   ======================= */
.cookie-overlay {
    display: none;
    position: fixed;
    z-index: 9998;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* película preta 50% */
    opacity: 0;
    transition: opacity 0.3s;
}

.cookie-overlay.active {
    display: block;
    opacity: 1;
}

.cookie-popup-center {
    display: none;
    position: fixed;
    z-index: 9999; /* acima da película */
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff6e5;
    color: #5a3d2b;
    border: 1px solid #e8d3b8;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(90,61,43,0.10);
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 340px;
    max-width: 94vw;
    text-align: center;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.cookie-popup-center.active {
    display: flex;
    opacity: 1;
}

.cookie-popup-center p {
    margin: 0;
}

.cookie-popup-center a {
    color: #5a3d2b;
    text-decoration: underline;
}

.cookie-popup-center a:hover {
    text-decoration: none;
}

.cookie-popup-center button {
    background: #e8d3b8;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-popup-center button:hover {
    background: #5a3d2b;
    color: #fff;
}

/* =======================
   OUTRAS SEÇÕES DO SITE
   ======================= */
/* ... demais regras que você já tinha ... */
