/* ============================================================
   VHSM-L1 - VSL MemoMatrix para afiliados
   Modelo: portal de noticias (TNYT)

   1. Base              5. Oferta
   2. Cabecalho         6. Comentarios
   3. Manchete          7. Rodape
   4. VSL               8. Responsivo
   ============================================================ */

/* ---------------- 1. Base ---------------- */

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

body {
  background-color: #fff;
  color: #121212;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

a,
.menu-trigger {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/* A oferta so aparece no pitch da VSL - quem libera e o js/main.js */
.pitch-hidden {
  display: none;
}

/* ---------------- 2. Cabecalho ---------------- */

.nyt-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  font-family: Georgia, serif;
}

.desktop-header {
  display: block;
  padding: 0 24px;
}

.desktop-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e2e2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

.desktop-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-icon-img {
  display: block;
  width: auto;
  height: 16px;
}

.edition-list {
  display: flex;
  gap: 12px;
  color: #666;
}

.edition-list a:hover,
.edition-list .active {
  color: #000;
}

.edition-list .active {
  font-weight: 900;
}

.desktop-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  padding: 6px 12px;
  border-radius: 2px;
  background-color: #567b95;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.desktop-main-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
}

.desktop-date-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
}

.desktop-date-section .todays-paper {
  margin-top: 2px;
  color: #666;
  font-size: 12px;
}

.desktop-logo-container {
  text-align: center;
}

.nyt-logo {
  display: inline-block;
  width: auto;
  height: 48px;
}

.desktop-market-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #333;
  text-align: right;
}

.market-value {
  color: #c00;
  font-weight: 600;
}

.desktop-subnav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 3px double #121212;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.desktop-subnav a {
  color: #121212;
}

.mobile-header {
  display: none;
  padding: 12px 16px;
}

.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}

.mobile-logo {
  width: auto;
  height: 28px;
}

.mobile-login-icon {
  display: block;
  width: auto;
  height: 20px;
}

.mobile-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
}

.mobile-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

/* ---------------- 3. Manchete ---------------- */

.headline {
  padding-top: 10px;
}

.headline-title {
  font-family: Poppins, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.headline-title strong {
  font-weight: 900;
}

.headline-title .headline-alert {
  color: #f00;
}

/* ---------------- 4. VSL ---------------- */

.vsl {
  padding: 40px 0 10px;
}

.vsl-player {
  width: 79%;
  margin: 0 auto;
}

.vsl-player vturb-smartplayer {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------------- 5. Oferta ---------------- */

.offer {
  min-height: 510px;
  font-family: Ubuntu, sans-serif;
}

.offer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  width: 369px;
  padding: 2px;
  border: 2px solid #4b74b2;
  border-radius: 16px;
  background: #fff;
}

.offer-card--basic {
  margin: 29px 17px 0 0;
}

.offer-card--best {
  margin: 0 16px 0 0;
  padding: 3px;
  border-color: #1e58ae;
}

.offer-card--good {
  margin: 39px 0 0;
  border-radius: 8px;
}

.offer-card-inner {
  display: flex;
  flex-direction: column;
}

/* no desktop o cartao e uma coluna so: info e deal nao criam caixa */
.offer-info,
.offer-deal {
  display: contents;
}

/* o interior da melhor oferta fica sobre o degrade */
.offer-card--best .offer-card-inner {
  border-radius: 8px;
  background-image: radial-gradient(#004aad 46%, #cb6ce6 100%);
}

/* --- etiqueta --- */

.offer-tag {
  padding: 5px 0;
  border-radius: 14px 14px 0 0;
  background: #1c1b4c;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.offer-card--good .offer-tag {
  border-radius: 6px 6px 0 0;
}

.offer-card--best .offer-tag {
  padding: 6px 0;
  border-radius: 4.8px 4.8px 0 0;
  background: #070852;
  color: #fed600;
  font-family: Poppins, sans-serif;
  font-size: 23px;
}

.offer-tag .tag-mobile {
  display: none;
}

/* --- produto --- */

.offer-qty {
  padding-top: 20px;
  color: #231f20;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.offer-supply {
  padding-bottom: 16px;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.offer-card--best .offer-qty,
.offer-card--best .offer-supply {
  color: #fff;
}

/* a melhor oferta usa caixa alta e sombra no texto */
.offer-card--best .offer-tag,
.offer-card--best .offer-qty,
.offer-card--best .offer-supply,
.offer-card--best .offer-total,
.offer-card--best .offer-perk h3 {
  text-shadow: 0 .1em .1em rgb(0 0 0);
}

.offer-card--best .offer-qty {
  text-transform: uppercase;
}

.offer-shot-wrap {
  text-align: center;
}

.offer-shot {
  display: block;
  width: 71%;
  height: auto;
  margin: 0 auto;
}

.offer-card--best .offer-shot {
  width: 93%;
}

.offer-card--good .offer-shot {
  width: 65%;
}

/* --- preco --- */

.offer-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.4;
}

.offer-price-currency {
  color: #000;
  font-size: 45px;
  font-weight: 900;
}

.offer-price-value {
  color: #f9ee4b;
  font-size: 80px;
  font-weight: 900;
  text-shadow: .08em .08em .08em rgb(0 0 0);
}

.offer-price-unit {
  color: #000;
  font-size: 20px;
  font-weight: 600;
}

.offer-card--best .offer-price-currency,
.offer-card--best .offer-price-unit {
  color: #fff;
}

.offer-card--best .offer-price-currency,
.offer-card--best .offer-price-unit,
.offer-card--best .offer-price-value {
  text-shadow: 0 .08em 0 rgb(0 0 0);
}

.offer-card--best .offer-price-value {
  color: #0cad60;
}

.offer-card--good .offer-price-value {
  color: #fcdd15;
}

/* --- vantagens --- */

.offer-divider {
  display: block;
  height: 2px;
  margin: 4px 0;
  border: 1px dashed rgba(0, 0, 0, .4);
}

.offer-card--best .offer-divider {
  border-color: rgba(255, 255, 255, .51);
}

.offer-perks {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}

.offer-perk {
  display: flex;
  align-items: center;
}

.offer-perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.offer-perk-icon svg {
  display: block;
}

/* economia do combo */
.offer-perk--save .offer-perk-icon {
  width: 36px;
  padding: 10px;
  color: #2a5ba5;
}

.offer-perk--save .offer-perk-icon svg {
  width: 16px;
  height: 16px;
}

.offer-perk--save h3 {
  color: #2a5ba5;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* garantia e desconto */
.offer-perk--plain .offer-perk-icon {
  width: 37px;
  padding: 0 10px;
  color: #000;
}

.offer-perk--plain .offer-perk-icon svg {
  width: 17px;
  height: 17px;
}

.offer-perk--plain h3 {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 31px;
}

.offer-card--best .offer-perk--save .offer-perk-icon {
  color: #fccd15;
}

.offer-card--best .offer-perk--save h3 {
  color: #fcdd15;
  font-weight: 700;
}

.offer-card--best .offer-perk--plain .offer-perk-icon,
.offer-card--best .offer-perk--plain h3 {
  color: #fff;
}

.offer-card--best .offer-perk--plain h3 {
  font-weight: 700;
}

/* --- botao, bandeiras e total --- */

.offer-button-wrap {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
}

.offer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88%;
  margin: 0 auto;
  padding: 12px;
  border-radius: 7.5px;
  background-image: linear-gradient(360deg, #dadada 50%, #e0e0e0 51%);
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, .2);
  color: #231f20;
  font-family: "Red Hat Display", sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.offer-card--best .offer-button {
  border: 2px solid #a78a19;
  background-image: linear-gradient(360deg, #fccd15 50%, #ffd814 51%);
  box-shadow: none;
  color: #000;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.offer-flags-wrap {
  text-align: center;
}

.offer-flags {
  display: block;
  width: 60%;
  height: auto;
  margin: 0 auto;
}

/* no desktop o total fecha o cartao, depois das bandeiras */
.offer-total {
  order: 1;
  padding: 10px 0 20px;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.offer-total strong {
  font-weight: 700;
}

.offer-card--best .offer-total {
  padding-top: 5px;
  color: #fff;
  font-family: Ubuntu, sans-serif;
}

.offer-total .offer-shipping-free {
  color: #fcdd15;
}

/* ---------------- 6. Comentarios ---------------- */

.fb-comments-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-family: Helvetica, Arial, sans-serif;
}

.fb-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.fb-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.fb-plugin-title {
  color: #1d2129;
  font-size: 16px;
  font-weight: 700;
}

.fb-powered {
  margin-left: 34px;
  color: #606770;
  font-size: 12px;
}

.fb-title {
  margin-bottom: 15px;
  color: #1d2129;
  font-size: 18px;
  font-weight: 700;
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-reply {
  margin-top: 10px;
  margin-left: 50px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.comment-avatar-reply {
  width: 32px;
  height: 32px;
}

.comment-body {
  position: relative;
  flex-grow: 1;
  padding: 10px 14px;
  border-radius: 18px;
  background: #f0f2f5;
}

.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #385898;
  font-size: 13px;
  font-weight: 700;
}

.comment-text {
  color: #1d2129;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  color: #90949c;
  font-size: 12px;
  font-weight: 700;
}

.comment-actions span {
  cursor: pointer;
}

.comment-actions span:hover {
  text-decoration: underline;
}

.comment-actions .action {
  color: #385898;
}

.like-counter {
  display: flex;
  align-items: center;
  gap: 3px;
  position: absolute;
  right: 10px;
  bottom: -8px;
  padding: 2px 6px;
  border: 1px solid #ccd0d5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  color: #606770;
  font-size: 11px;
}

.like-counter img {
  width: 28px;
  height: 14px;
  object-fit: contain;
}

/* ---------------- 7. Rodape ---------------- */

.site-footer {
  padding: 40px 0;
  background: #1f1929;
}

.site-footer p {
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* ---------------- 8. Responsivo ---------------- */

/* Tablet: cabecalho rolavel, manchete menor e cartoes empilhados */
@media (max-width: 1024px) {
  .desktop-subnav {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: auto;
  }

  /* o modelo deixa duas faixas vazias entre o cabecalho e a manchete */
  .headline {
    padding-top: 45px;
  }

  .headline-title {
    font-size: 24px;
    font-weight: 500;
  }

  .headline-title strong {
    font-weight: 700;
  }

  .offer-row {
    flex-direction: column;
  }

  .offer-card {
    width: 100%;
  }

  /* a melhor oferta vem primeiro, depois 3 e 2 potes */
  .offer-card--best  { order: 1; margin: 0 16px 0 0; }
  .offer-card--good  { order: 2; margin: 39px 0 0; }
  .offer-card--basic { order: 3; margin: 29px 17px 20px 0; }

  /* interior em duas colunas: produto a esquerda, oferta a direita */
  .offer-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .offer-info,
  .offer-deal {
    display: block;
  }

  .offer-tag,
  .offer-button-wrap {
    grid-column: 1 / -1;
  }

  /* a coluna da oferta fica centralizada em relacao a do produto */
  .offer-deal {
    align-self: center;
  }

  .offer-qty {
    line-height: 36px;
  }

  .offer-perk--save .offer-perk-icon {
    width: 62px;
  }

  .offer-perk--plain .offer-perk-icon {
    width: 41px;
  }

  .offer-supply {
    line-height: 36px;
  }

  .offer-flags-wrap {
    display: none;
  }

  .offer-total {
    order: 0;
    color: #000;
  }

  .offer-card--best .offer-total {
    color: #fff;
    font-family: Roboto, sans-serif;
    text-shadow: none;
  }

  .offer-total .offer-shipping-free {
    color: #fed600;
  }

  /* abaixo do desktop o modelo separa o frete do preco */
  .offer-total .offer-shipping-free::before {
    content: " ";
  }
}

/* Celular: cabecalho compacto */
@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: block;
  }
}

/* Celular: cartoes compactos */
@media (max-width: 480px) {
  .vsl {
    padding: 20px 8px;
  }

  .vsl-player {
    width: 100%;
  }

  .offer-card--best  { margin: 0; }
  .offer-card--good  { margin: 20px 0; }
  .offer-card--basic { margin: 0; }

  .offer-card {
    padding: 0;
  }

  .offer-card--best {
    padding: 4px;
  }

  /* sem a tarja escura, a etiqueta vira titulo da coluna do produto */
  .offer-card--basic .offer-card-inner {
    padding: 10px 0 30px;
  }

  .offer-card--good .offer-card-inner {
    padding: 10px 0 17px;
  }

  .offer-card--best .offer-card-inner {
    padding-bottom: 8px;
  }

  .offer-card-inner {
    grid-template-rows: auto 1fr auto;
  }

  .offer-tag {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #2a5ba5;
    font-size: 18px;
    font-weight: 600;
  }

  .offer-tag .tag-desktop {
    display: none;
  }

  .offer-tag .tag-mobile {
    display: inline;
  }

  .offer-info {
    grid-column: 1;
    grid-row: 2;
  }

  .offer-deal {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .offer-button-wrap {
    grid-row: 3;
    padding: 0;
  }

  .offer-card--best .offer-tag {
    grid-column: 1 / -1;
    padding: 6px 0;
    border-radius: 4.8px 4.8px 0 0;
    background: #070852;
    color: #fed600;
    font-size: 21px;
    font-weight: 700;
  }

  .offer-card--best .offer-info {
    grid-row: 2;
  }

  .offer-card--best .offer-deal {
    grid-row: 2;
  }

  .offer-qty {
    padding: 2px 0;
    font-size: 20px;
    line-height: 12px;
  }

  .offer-perk--save .offer-perk-icon {
    width: 42px;
  }

  .offer-perk--plain .offer-perk-icon {
    width: 21px;
    padding: 0;
  }

  .offer-supply {
    padding-bottom: 0;
    font-size: 18px;
    line-height: 24px;
  }

  .offer-card--best .offer-info {
    padding-top: 10px;
  }

  .offer-card--best .offer-qty {
    padding: 20px 0 0;
    font-size: 26px;
    line-height: 36px;
  }

  .offer-card--best .offer-supply {
    padding-bottom: 16px;
    font-size: 20px;
    line-height: 12px;
  }

  .offer-shot {
    width: 94%;
  }

  .offer-card--good .offer-shot {
    width: 85%;
  }

  /* o modelo fixa a altura dessa arte no celular */
  .offer-card--best .offer-shot {
    width: 97%;
    height: 143px;
  }

  .offer-price-currency {
    font-size: 27px;
  }

  .offer-price-value {
    font-size: 42px;
  }

  .offer-price-unit {
    font-size: 12px;
  }

  .offer-divider {
    margin: 0;
  }

  .offer-perk--plain h3 {
    font-size: 10px;
  }

  .offer-card--best .offer-perk--discount h3 {
    font-size: 13px;
  }

  .offer-button {
    width: 78%;
  }

  .offer-total {
    padding: 10px 0 20px;
    font-size: 18px;
  }

  .offer-card--best .offer-total {
    font-size: 19px;
  }

  .site-footer {
    padding: 40px 30px 70px;
  }

  .site-footer p {
    line-height: 30px;
  }
}
