:root {
    --cream: #F7F2E7;
    --forest: #1F3D2E;
    --terracotta: #C65A3A;
    --sage: #A8B79A;
    --charcoal: #3B3B3B;
    --white: #FFFFFF;
    --border: #DED6C8;
    --muted: #6A6A63;
    --shadow: 0 16px 45px rgba(31, 61, 46, .10);
    --radius: 18px;
    --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
button, input, textarea { font: inherit; }
button, .button { min-height: 48px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 14px;
    background: var(--forest);
    color: var(--white);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-soft { background: rgba(168, 183, 154, .20); border-block: 1px solid rgba(31, 61, 46, .08); }

.site-header {
    background: rgba(247, 242, 231, .96);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; flex-direction: column; gap: 14px; padding-block: 14px; }
.brand { display: inline-flex; width: min(100%, 300px); }
.brand img { width: 100%; height: auto; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-header nav a, .site-footer nav a { font-weight: 650; text-decoration: none; }

.hero { padding: 56px 0 44px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1, h1, h2, h3 { color: var(--forest); font-family: Georgia, "Times New Roman", serif; line-height: 1.1; margin-top: 0; }
.hero h1 { font-size: clamp(2.45rem, 10vw, 5.2rem); max-width: 12ch; margin-bottom: 22px; }
h1 { font-size: clamp(2.15rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
h3 { font-size: 1.45rem; }
.hero-copy { font-size: 1.12rem; max-width: 62ch; color: #505049; }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { width: min(72vw, 340px); filter: drop-shadow(0 20px 30px rgba(31, 61, 46, .12)); }
.eyebrow { color: var(--terracotta); font-weight: 800; text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    background: var(--forest);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31, 61, 46, .15);
}
.button:hover { background: #152d21; text-decoration: none; }
.button-block { width: 100%; }
.button-large { padding: 16px 22px; font-size: 1.05rem; }

.section-heading { margin-bottom: 28px; }
.section-heading h1, .section-heading h2 { margin-bottom: 12px; }
.product-grid { display: grid; gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-image-link { background: #fff; display: block; aspect-ratio: 1; overflow: hidden; }
.product-image-link img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body { padding: 22px; }
.product-card h3 { margin-bottom: 10px; }
.product-card h3 a { text-decoration: none; }
.product-code { color: var(--terracotta); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.rating { color: #67571f; font-weight: 700; }
.price { color: var(--forest); font-size: 1.8rem; font-weight: 900; margin-block: 10px; }
.price-large { font-size: clamp(2.25rem, 9vw, 3.6rem); line-height: 1; }
.original-price { margin-bottom: 0; color: var(--muted); }
.discount { margin-left: 8px; color: var(--forest); font-weight: 850; }
.small, .form-note, .image-note, .affiliate-note, .updated { color: var(--muted); font-size: .9rem; }
.price-stale { color: var(--terracotta); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.empty-state, .message-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }

.steps { display: grid; gap: 16px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.step-list li { counter-increment: step; background: var(--white); padding: 20px; border-radius: 14px; border: 1px solid var(--border); display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.step-list li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: var(--white); font-weight: 900; grid-row: span 2; }
.step-list span { color: var(--muted); }

.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--sage); }
.product-layout, .alert-layout { display: grid; gap: 30px; }
/* Item de grid tem min-width:auto e não encolhe abaixo do conteúdo.
   Sem isto, a galeria em flex estoura a coluna e a página ganha rolagem lateral. */
.product-layout > *, .alert-layout > * { min-width: 0; }
.product-gallery { align-self: start; min-width: 0; }
.gallery-viewport { display: flex; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); border: 1px solid var(--border); scrollbar-width: none; -ms-overflow-style: none; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.gallery-item { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
/* cover preenche o quadro inteiro: sem tarjas brancas em foto que não é quadrada. */
.gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.gallery-item video { display: block; margin: 0 auto; height: min(70vh, 560px); width: auto; max-width: 100%; background: #000; }
.gallery-thumbs { display: flex; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs a { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--cream); }
.gallery-thumbs a:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { font-size: 1.2rem; color: var(--forest); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-details h1 { margin-bottom: 14px; }
.price-box { padding: 18px 0; border-block: 1px solid var(--border); margin-block: 20px; }
.product-description { font-size: 1.07rem; }
.feature-list { padding-left: 22px; }
.feature-list li { margin-bottom: 8px; }
.affiliate-note { margin-top: 14px; }
.unavailable { padding: 16px; border-radius: 12px; background: #fff2ed; color: #7a2f1f; font-weight: 800; }

.alert-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, fieldset legend { display: block; font-weight: 800; color: var(--forest); margin-bottom: 8px; }
input[type="email"], input[type="text"], textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #b9b1a5;
    border-radius: 10px;
    padding: 11px 13px;
    background: #fff;
    color: var(--charcoal);
}
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.choice, .consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.choice input, .consent input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
/* Grid em vez de flex: o campo ganha uma linha própria, alinhado com o texto,
   em vez de disputar espaço com ele e encolher. */
.choice-target { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; }
.choice-target > input[type="radio"] { grid-column: 1; margin-top: 0; }
.choice-target > span { grid-column: 2; }
.currency-field { grid-column: 2; display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; }
.currency-field input { flex: 1 1 auto; min-width: 0; max-width: 220px; margin: 0; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }
.optional { font-weight: 400; color: var(--muted); }

.flash-stack { padding-top: 18px; }
.flash { border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.flash-success { background: #e5f2e9; color: #174c2d; border: 1px solid #9ec9ab; }
.flash-error { background: #fff0eb; color: #7b2d20; border: 1px solid #e3ac9e; }
.message-card img { margin: 0 auto 18px; }
.prose h2 { margin-top: 38px; margin-bottom: 10px; }
.prose a { overflow-wrap: anywhere; }

.site-footer { background: var(--forest); color: #eff5f1; padding: 42px 0 20px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 26px; }
.footer-grid > div { display: flex; gap: 14px; align-items: flex-start; }
.footer-grid p { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 18px; font-size: .88rem; }

@media (min-width: 720px) {
    .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .hero { padding: 80px 0 64px; }
    .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
    .alert-layout { grid-template-columns: minmax(0, .8fr) minmax(340px, 1fr); align-items: start; }
    .footer-grid { grid-template-columns: 1fr auto; justify-content: space-between; }
    .currency-field input { max-width: 200px; }
}

@media (min-width: 1020px) {
    .section { padding: 82px 0; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
