@font-face { font-family: Disp; src: url(/assets/fonts/STIXTwoText-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Disp; src: url(/assets/fonts/STIXTwoText-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Disp; src: url(/assets/fonts/STIXTwoText-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Sans; src: url(/assets/fonts/DejaVuSans.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Sans; src: url(/assets/fonts/DejaVuSans-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #f5f3e3;
  --dark: #1c2625;
  --sand: #d6c9a5;
  --olive: #b0ab7e;
  --terra: #c35d4d;
  --gold: #ba9663;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--dark); font-family: Sans, Verdana, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; font: inherit; }
button { font: inherit; }

main { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px; }

.disp { font-family: Disp, Georgia, serif; font-weight: 400; }
.sans { font-family: Sans, Verdana, sans-serif; font-weight: 400; }
.it { font-style: italic; }
.bold { font-weight: 700; }
.dark { color: var(--dark); }
.cream { color: var(--cream); }
.sand { color: var(--sand); }
.gold { color: var(--gold); }
.terra { color: var(--terra); }

.estado { font: italic 18px/1.4 Disp, Georgia, serif; text-align: center; margin: 48px 16px; }
.tentar { background: var(--dark); color: var(--cream); border: 0; min-height: 44px; padding: 12px 18px; cursor: pointer; }

/* Telefone: cartão vertical */
.slide {
  position: relative; width: 100%; overflow: hidden; background: var(--cream);
  box-shadow: 0 8px 28px rgba(28, 38, 37, .18);
}
.slide-contracapa { background: var(--dark); }
.slide-capa, .slide-contracapa { min-height: calc((100vw - 24px) * 4 / 3); }

.col { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 20px; min-height: inherit; }
.t { display: block; line-height: 1.2; font-size: max(11px, calc(var(--fs) * 1.15px)); letter-spacing: calc(var(--tr, 0) * .4px); }
.titulo { font-size: clamp(42px, 16vw, 68px); line-height: .95; }
.frase, .nome .t { font-size: max(15px, calc(var(--fs) * 1.25px)); line-height: 1.15; }
.nome { display: flex; flex-direction: column; margin-top: 8px; }
.foto-capa { width: 68%; height: auto; aspect-ratio: 1; object-fit: cover; background: transparent; }

.rule { display: block; width: 56px; height: 1px; }
.contato-wa, .contato-ig { display: inline-flex; align-items: center; min-height: 32px; }
.contato-wa .ico { width: 1.04em; height: 1.04em; margin-right: .8em; flex: none; }

.media { position: relative; background: var(--sand); aspect-ratio: 1; }
.media .hero, .media .ph {
  position: absolute; width: 78%; left: 11%; top: 50%; transform: translateY(-50%);
  aspect-ratio: 1; height: auto; object-fit: cover; background: transparent;
}
.media .apoio {
  position: absolute; width: 36%; right: 3%; bottom: -4%; left: auto; top: auto;
  aspect-ratio: 1; object-fit: cover; background: transparent; z-index: 1;
  clip-path: polygon(99.18% 53.03%, 86.11% 11.57%, 42.07% 0.82%, 4.72% 33.65%, 6.18% 77.54%, 39.30% 99.50%, 80.53% 86.70%);
}
.ph { background: rgba(245, 243, 227, .55); display: flex; align-items: center; justify-content: center; }
.ph span { font: italic 11px/1.3 Disp, Georgia, serif; color: var(--dark); opacity: .7; text-align: center; padding: 8px; }

.tag {
  position: absolute; z-index: 2; left: 4%; top: 16px;
  background: var(--dark); color: var(--cream);
  font: italic max(11px, 13px)/1 Disp, Georgia, serif;
  padding: 5px 8px; transform: rotate(2.2deg); transform-origin: left bottom;
  clip-path: polygon(0 100%, 100% calc(100% - 2px), 100% 0, 0 2.5px); white-space: nowrap;
}

.info { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 18px 18px; }
.logo { display: block; height: auto; }
.logo-produto { width: 76px; margin-left: auto; }
.logo-capa { width: min(58%, 210px); }
.logo-contracapa { width: min(62%, 230px); }
.rule-nome { margin: 8px 0; }
.estoque { margin-top: 4px; }

.oferta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.preco { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; }
s.preco-de { text-decoration: none; position: relative; }
s.preco-de::after { content: ""; position: absolute; left: -.15em; right: -.15em; top: 46%; height: 1.5px; background: var(--terra); }

.selo { container-type: inline-size; position: relative; width: 104px; height: 104px; flex: none; }
.selo .blob { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
.selo .t {
  position: absolute; white-space: nowrap; line-height: 1;
  left: calc(var(--x) * 100cqw / 40);
  bottom: calc(var(--y) * 100cqw / 40 - .14 * var(--fs) * 100cqw / 40 * .35278);
  transform: translateX(-50%);
  font-size: max(11px, calc(var(--fs) * 100cqw / 40 * .35278));
}

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; margin-top: 16px; gap: 6px; }
.rule-rodape { flex-basis: 100%; width: 100%; }

.blob {
  position: absolute; width: 46%; aspect-ratio: 1; height: auto; pointer-events: none; overflow: visible;
  left: calc(var(--fx) * 100%); bottom: calc(var(--fy) * 100%); transform: translate(-50%, 50%);
}

/* Tablet: produto em duas colunas */
@media (min-width: 600px) {
  main { gap: 20px; padding: 20px; }
  .slide { width: min(100%, 980px); }
  .slide-capa, .slide-contracapa { min-height: 0; }
  .slide-capa .col {
    display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; justify-items: start;
    text-align: left; min-height: 520px; padding: 40px 36px; gap: 8px 24px;
  }
  .slide-capa .foto-capa { grid-column: 2; grid-row: 1 / span 12; width: 82%; justify-self: center; }
  .slide-capa .col > :not(.foto-capa) { grid-column: 1; }
  .slide-produto { display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, .54fr); }
  .slide-produto .media { aspect-ratio: auto; min-height: 100%; }
  .info { padding: 28px 26px; justify-content: center; }
  .titulo { font-size: clamp(48px, 6vw, 72px); }
}

/* Laptop e desktop: slide A5 aprovado */
@media (min-width: 1024px) {
  main { gap: 24px; padding: 24px 16px; }
  .slide {
    display: block; width: min(100%, 1100px); aspect-ratio: 210 / 148;
    container-type: inline-size; --smm: calc(100cqw / 210); --spt: calc(var(--smm) * 0.35278);
  }
  .slide-capa, .slide-contracapa { min-height: 0; }
  .col, .info, .nome, .oferta, .preco, .rodape {
    position: absolute; inset: 0; display: block; padding: 0; margin: 0; gap: 0;
    min-height: 0; text-align: left; pointer-events: none;
  }
  .col a, .info a { pointer-events: auto; }
  .slide-capa .foto-capa, .slide-capa .col > :not(.foto-capa) { grid-column: auto; grid-row: auto; }

  .t {
    position: absolute; display: block; white-space: nowrap; line-height: 1;
    font-size: calc(var(--fs) * var(--spt));
    letter-spacing: calc(var(--tr, 0) * var(--spt));
    left: calc(var(--x) * var(--smm));
    bottom: calc(var(--y) * var(--smm) - .14 * var(--fs) * var(--spt));
    transform: none;
  }
  .titulo, .frase, .nome .t { font-size: calc(var(--fs) * var(--spt)); line-height: 1; }
  .a-c { transform: translateX(-50%); }
  .a-r { left: auto; right: calc((210 - var(--x)) * var(--smm)); }

  .logo { position: absolute; width: calc(var(--w) * var(--smm)); margin: 0; left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm)); }
  .logo.a-r { left: auto; right: calc((210 - var(--x)) * var(--smm)); }
  .logo.a-c { left: calc(var(--x) * var(--smm)); transform: translateX(-50%); }
  .slide-capa .foto-capa {
    position: absolute; width: calc(var(--w) * var(--smm)); height: auto; margin: 0;
    left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm)); top: auto; transform: none;
  }
  .rule {
    position: absolute; width: calc(var(--w) * var(--smm));
    height: calc(var(--esp) * var(--spt));
    left: calc(var(--x) * var(--smm));
    bottom: calc(var(--y) * var(--smm) - var(--esp) * var(--spt) / 2);
    margin: 0;
  }

  .slide-produto { display: block; }
  .slide-produto .media { position: absolute; left: 0; bottom: 0; width: calc(109.2 * var(--smm)); height: 100%; aspect-ratio: auto; min-height: 0; }
  .media .hero, .media .ph {
    left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm)); top: auto;
    width: calc(var(--w) * var(--smm)); transform: none;
  }
  .media .apoio {
    left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm)); right: auto;
    width: calc(var(--w) * var(--smm));
  }
  .tag {
    left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm)); top: auto;
    font-size: calc(9 * var(--spt));
    padding: calc(5 * var(--spt)) calc(8 * var(--spt));
    clip-path: polygon(0 100%, 100% calc(100% - 2 * var(--spt)), 100% 0, 0 calc(2.5 * var(--spt)));
  }
  .ph span { font-size: calc(11 * var(--spt)); }

  s.preco-de { position: absolute; }
  s.preco-de::after {
    top: auto; height: var(--spt);
    left: calc(-2 * var(--spt)); right: calc(-2 * var(--spt));
    bottom: calc(4.1 * var(--spt));
  }
  .selo {
    position: absolute; width: calc(var(--d) * var(--smm)); height: calc(var(--d) * var(--smm));
    left: calc(var(--px) * var(--smm)); bottom: calc(var(--py) * var(--smm));
  }
  .blob {
    left: calc(var(--x) * var(--smm)); bottom: calc(var(--y) * var(--smm));
    width: calc(var(--d) * var(--smm)); height: calc(var(--d) * var(--smm)); transform: none;
  }
  .selo .blob { left: 0; bottom: 0; width: 100%; height: 100%; }
}
