/* Folheto virtual — linguagem de catalogo/supermercado, paleta propria */

:root {
  --green-900: #0b3d2e;
  --green-700: #147a54;
  --green-500: #1f9d68;
  --green-100: #e8f6ef;
  --green-50: #f3faf6;
  --white: #ffffff;
  --ink: #15241e;
  --muted: #5a6b63;
  --line: #d7e5dc;
  --yellow: #ffe14a;
  --yellow-deep: #f5c400;
  --red: #e1251b;
  --red-deep: #b81610;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-price: "Archivo Black", "Arial Black", sans-serif;
  --max: 68rem;
  --radius: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
}

.flyer {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  padding-block: 1rem 3rem;
}

/* —— topo tipo folheto —— */
.flyer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.1rem;
  background: var(--green-700);
  color: var(--white);
  flex: 1 1 14rem;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-home:hover strong {
  text-decoration: underline;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--yellow);
  color: var(--green-900);
  font-family: var(--font-price);
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-text strong {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.byline {
  margin-left: 3.15rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, white 88%, transparent);
  text-decoration: none;
}

.byline:hover {
  color: var(--white);
  text-decoration: underline;
}

.byline-name {
  font-weight: 750;
  color: var(--white);
}

.validity {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  background: var(--green-100);
  color: var(--green-900);
  flex: 1 1 12rem;
  font-size: 0.92rem;
}

.validity strong {
  font-size: 1.05rem;
}

.hero-banner {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.15rem;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(115deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-500) 100%);
  color: var(--white);
}

.hero-banner p {
  margin: 0;
  max-width: 40rem;
  color: color-mix(in srgb, white 82%, transparent);
}

.hero-banner h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, white 75%, transparent);
}

/* —— secções (destaques / categorias futuras) —— */
.section {
  margin-bottom: 1.35rem;
}

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  background: var(--green-700);
  color: var(--white);
}

.section-bar h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-bar .hint {
  font-size: 0.85rem;
  opacity: 0.9;
}

.section-bar--soft {
  background: var(--green-100);
  color: var(--green-900);
}

/* —— grelha de “produtos” —— */
.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--destaques {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--catalogo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .grid--catalogo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid--destaques,
  .grid--catalogo {
    grid-template-columns: 1fr;
  }
}

/* cartão tipo folheto */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card:focus-within,
.card:hover {
  border-color: color-mix(in srgb, var(--green-700) 45%, var(--line));
}

.card-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.badge--destaque {
  background: var(--yellow);
  color: var(--ink);
}

.badge--promo {
  background: var(--red);
  color: var(--white);
}

.badge--gratis {
  background: var(--green-700);
  color: var(--white);
}

.badge--novo {
  background: var(--green-100);
  color: var(--green-900);
}

.card-visual {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: 1.75rem 1rem 1rem;
  background:
    radial-gradient(circle at 30% 20%, var(--green-50), transparent 55%),
    var(--green-50);
  border-bottom: 1px solid var(--line);
}

.card--destaque .card-visual {
  min-height: 9rem;
}

.card-initials {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-700);
  color: var(--green-900);
  font-family: var(--font-price);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.card-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  background: var(--white);
  padding: 0.55rem;
  border: 1px solid var(--line);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 0.85rem 0.9rem 0.65rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-body h3 a {
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

.card-use {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-verdict {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--green-900);
}

.card-verdict span {
  display: inline-block;
  padding: 0.1rem 0;
  border-bottom: 2px solid var(--yellow);
}

/* bloco de preço — atenção tipo supermercado */
.price-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px dashed var(--line);
  background: var(--white);
}

.price-tag {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.price-tag .was {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-tag .now {
  font-family: var(--font-price);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-tag .unit {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* amarelo = oferta / preço a olhar */
.price-tag--deal .now {
  color: var(--ink);
  background: var(--yellow);
  padding: 0.15rem 0.35rem;
  box-decoration-break: clone;
}

/* vermelho = urgência / destaque forte */
.price-tag--hot .now {
  color: var(--red);
}

/* verde = grátis / bom para experimentar sem risco */
.price-tag--free .now {
  color: var(--green-700);
}

.price-tag--soft .now {
  color: var(--green-900);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.price-note {
  max-width: 7.5rem;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-note--hot {
  color: var(--red-deep);
}

.price-note--deal {
  color: #8a6a00;
}

/* —— rodapé editorial —— */
.disclaimer {
  margin: 1.25rem 0;
  padding: 0.8rem 0.95rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
}

.cta {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 1.1rem;
  background: var(--green-900);
  color: var(--white);
}

.cta h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0;
  max-width: 36rem;
  color: color-mix(in srgb, white 78%, transparent);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  color: var(--ink);
}

.button:hover {
  background: var(--yellow-deep);
}

.button-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid color-mix(in srgb, white 45%, transparent);
}

.button-ghost:hover {
  border-color: var(--white);
}

.cta .note {
  font-size: 0.82rem;
  color: color-mix(in srgb, white 55%, transparent);
}

footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p {
  margin: 0 0 0.35rem;
}

footer a {
  color: var(--green-700);
  text-decoration: none;
}

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

footer strong {
  color: var(--ink);
  font-weight: 750;
}

/* utilitário: secção de categoria futura (desligada no template v1) */
.section--future {
  display: none;
}
