/* ============================================================
   MODICAS THEME V2 — CSS CONSOLIDADO
   Mobile-first, leve, premium e SEO friendly
   Duplicatas removidas, otimizado para conversão
   ============================================================ */


/* ----------------------------------------
   RESET & TOKENS
   ---------------------------------------- */

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

html {
    -webkit-tap-highlight-color: transparent;
      scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
      background: #0f1012;
      color: #f5f6f7;
      line-height: 1.4;
}

img {
    max-width: 100%;
      display: block;
}

a {
    color: inherit;
      text-decoration: none;
}

button {
    background: none;
      border: none;
      color: inherit;
      cursor: pointer;
}

ul {
    list-style: none;
}

:root {
    --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 18px;
      --radius-pill: 999px;
    
      --space-4: 4px;
      --space-6: 6px;
      --space-8: 8px;
      --space-12: 12px;
      --space-16: 16px;
      --space-20: 20px;
      --space-24: 24px;
      --space-32: 32px;
    
      --color-bg: #0f1012;
      --color-surface: #17191c;
      --color-surface-2: #20242a;
      --color-text: #ffffff;
      --color-muted: #9ca3af;
      --color-border: rgba(255,255,255,0.08);
      --color-primary: #a855f7;
      --color-success: #2ed573;
      --color-danger: #c026d3;
    
      --shadow-soft: 0 4px 12px rgba(0,0,0,0.15);
      --shadow-card: 0 6px 20px rgba(0,0,0,0.25);
}

.m-header {
    position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(15,16,18,0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--color-border);
}

.m-header-inner {
    display: flex;
      justify-content: space-between;
      align-items: center;
      padding: var(--space-12) var(--space-16);
      max-width: 1280px;
      margin: 0 auto;
}

.m-header-logo-text {
    font-size: 20px;
      font-weight: 800;
}

.m-header-actions {
    display: flex;
      gap: var(--space-8);
}

.m-btn-icon {
    width: 40px;
      height: 40px;
      border-radius: var(--radius-pill);
      background: var(--color-surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
}

.m-app {
    max-width: 1280px;
      margin: 0 auto;
      padding: var(--space-16);
}

.chips {
    display: flex;
      overflow-x: auto;
      gap: var(--space-8);
      padding: var(--space-8) 0;
      scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 14px;
      background: var(--color-surface-2);
      border: 1px solid var(--color-border);
      color: var(--color-text);
      border-radius: var(--radius-pill);
      font-size: 14px;
      white-space: nowrap;
}

.hero {
    margin: var(--space-20) 0 var(--space-32);
}

.hero-link {
    display: block;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: var(--color-surface);
      box-shadow: var(--shadow-card);
}

.hero-media {
    position: relative;
      aspect-ratio: 16/9;
      background: var(--color-surface-2);
}

.hero-media img {
    width: 100%;
      height: 100%;
      object-fit: cover;
}

.hero-badge {
    position: absolute;
      top: var(--space-12);
      right: var(--space-12);
      background: var(--color-danger);
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      font-weight: 700;
      font-size: 14px;
}

.hero-content {
    padding: var(--space-20);
      display: flex;
      flex-direction: column;
      gap: var(--space-12);
}

.hero-category {
    font-size: 13px;
      padding: 4px 10px;
      background: rgba(255,255,255,0.12);
      border-radius: var(--radius-pill);
}

.hero-title {
    font-size: 20px;
      line-height: 1.25;
      font-weight: 800;
}

.hero-pricing {
    display: flex;
      align-items: baseline;
      gap: var(--space-8);
}

.hero-cta {
    margin-top: var(--space-4);
      font-weight: 700;
      font-size: 15px;
      color: var(--color-text);
}

.hero-merchant {
    font-size: 12px;
      color: var(--color-muted);
}

.feed {
    margin-top: var(--space-20);
}

.feed-grid {
    display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-16);
}

@media (min-width: 540px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .feed-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
    background: var(--color-surface);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
}

.card-media {
    position: relative;
      aspect-ratio: 1/1;
      background: var(--color-surface-2);
}

.card-media img {
    width: 100%;
      height: 100%;
      object-fit: cover;
}

.card-badge {
    position: absolute;
      top: var(--space-12);
      right: var(--space-12);
      background: var(--color-danger);
      padding: 4px 8px;
      font-size: 13px;
      font-weight: 700;
      border-radius: var(--radius-pill);
}

.card-header {
    padding: var(--space-12) var(--space-16) 0;
      display: flex;
      gap: var(--space-8);
      flex-wrap: wrap;
      font-size: 12px;
      color: var(--color-muted);
}

.card-category {
    background: rgba(255,255,255,0.10);
      padding: 3px 8px;
      border-radius: var(--radius-pill);
      font-weight: 600;
}

.card-brand {
    opacity: 0.9;
}

.card-title {
    font-size: 16px;
      font-weight: 700;
      padding: var(--space-8) var(--space-16);
      line-height: 1.25;
      flex-grow: 1;
}

.card-pricing {
    display: flex;
      align-items: baseline;
      gap: var(--space-8);
      padding: 0 var(--space-16) var(--space-8);
}

.price {
    font-size: 18px;
      font-weight: 800;
      color: var(--color-primary);
}

.card-footer {
    padding: var(--space-12) var(--space-16) var(--space-16);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      color: var(--color-muted);
}

.cta {
    font-weight: 700;
      color: #fff;
}

.ad-native {
    margin: var(--space-24) 0;
      padding: var(--space-12);
      background: var(--color-surface-2);
      border-radius: var(--radius-lg);
      text-align: center;
}

.m-footer {
    margin-top: var(--space-32);
      padding: var(--space-20);
      text-align: center;
      color: var(--color-muted);
      font-size: 13px;
      border-top: 1px solid var(--color-border);
}

.m-bottom-nav {
    position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(15,16,18,0.92);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--color-border);
      display: flex;
      justify-content: space-around;
      padding: var(--space-8) 0;
      z-index: 40;
}

.m-bottom-item {
    text-align: center;
      color: var(--color-muted);
      font-size: 12px;
      display: flex;
      flex-direction: column;
      gap: 2px;
}

.m-bottom-icon {
    font-size: 18px;
}

.hide {
    display: none !important;
}

.text-muted {
    color: var(--color-muted);
}

.breadcrumb {
    display: flex;
      align-items: center;
      gap: var(--space-8);
      font-size: 13px;
      color: var(--color-muted);
      padding: var(--space-12) 0;
      flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-muted);
      transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.breadcrumb-sep {
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--color-text);
      font-weight: 600;
}

.m-single-hero {
    padding: var(--space-32) 0 var(--space-24);
      text-align: center;
}

.m-single-hero__media {
    aspect-ratio: 16/9;
      border-radius: var(--radius-lg);
      overflow: hidden;
      margin-bottom: var(--space-20);
      background: var(--color-surface);
}

.m-single-hero__media img {
    width: 100%;
      height: 100%;
      object-fit: cover;
}

.m-single-hero__title {
    font-size: 24px;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: var(--space-12);
}

.m-single-hero__excerpt {
    font-size: 15px;
      color: var(--color-muted);
      line-height: 1.5;
      max-width: 600px;
      margin: 0 auto;
}

.m-single-main {
    padding: var(--space-24) 0;
}

.m-single-main__container {
    max-width: 720px;
      margin: 0 auto;
}

.m-single-meta {
    display: flex;
      gap: var(--space-16);
      font-size: 13px;
      color: var(--color-muted);
      margin-bottom: var(--space-20);
      padding-bottom: var(--space-16);
      border-bottom: 1px solid var(--color-border);
}

.m-single-meta__cat {
    background: var(--color-surface-2);
      padding: 2px 10px;
      border-radius: var(--radius-pill);
}

.m-single-content h2,
.m-single-content h3 {
    color: var(--color-text);
      font-weight: 700;
      margin: var(--space-24) 0 var(--space-12);
}

.m-single-content ul,
.m-single-content ol {
    padding-left: var(--space-20);
      margin-bottom: var(--space-16);
}

.m-single-content li {
    margin-bottom: var(--space-8);
      color: var(--color-muted);
}

.m-single-content a {
    color: var(--color-primary);
      text-decoration: underline;
      text-underline-offset: 3px;
}

.m-single-content a:hover {
    opacity: 0.8;
}

.m-sticky-bar {
    position: fixed;
      bottom: 56px; /* acima do bottom nav */
      left: 0;
      right: 0;
      background: var(--color-surface);
      border-top: 1px solid var(--color-border);
      padding: var(--space-12) var(--space-16);
      z-index: 45;
      backdrop-filter: blur(10px);
      transform: translateY(100%);
      transition: transform 0.3s ease;
}

.m-sticky-bar--visible {
    transform: translateY(0);
}

.m-sticky-bar__inner {
    display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1280px;
      margin: 0 auto;
      gap: var(--space-12);
}

.m-sticky-bar__price {
    display: flex;
      flex-direction: column;
      gap: 2px;
}

.m-sticky-bar__current {
    font-size: 18px;
      font-weight: 800;
      color: var(--color-primary);
}

.m-sticky-bar__old {
    font-size: 12px;
      color: var(--color-muted);
      text-decoration: line-through;
}

.m-sticky-bar__cta {
    background: var(--color-primary);
      color: #fff;
      padding: 10px 20px;
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 14px;
      white-space: nowrap;
      transition: transform 0.2s, box-shadow 0.2s;
}

.m-sticky-bar__cta:hover {
    transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(168,85,247,0.3);
}

.m-single-next-section {
    padding: var(--space-32) 0;
      border-top: 1px solid var(--color-border);
}

.m-single-next {
    display: flex;
      flex-direction: column;
      gap: var(--space-4);
      padding: var(--space-20);
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      transition: background 0.2s;
}

.m-single-next:hover {
    background: var(--color-surface-2);
}

.m-single-next__label {
    font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--color-muted);
}

.m-single-next__title {
    font-size: 18px;
      font-weight: 700;
      color: var(--color-text);
}

.m-single-next__arrow {
    font-size: 24px;
      color: var(--color-primary);
      margin-top: var(--space-4);
}

.m-single-native-bottom {
    padding: var(--space-24) 0;
}

@media (min-width: 768px) {
  .m-sticky-bar {
    bottom: 0; /* sem bottom nav no desktop */
  }

  .m-sticky-bar__inner {
    padding: 0 var(--space-16);
  }
}

.product-cta:in-view + .m-sticky-bar {
    display: none;
}

.m-container {
    max-width: 1280px;
      margin: 0 auto;
      padding: 0 var(--space-16);
}

@media (min-width: 768px) {
  .m-container {
    padding: 0 var(--space-24);
  }
}

.m-app-shell {
    padding-top: var(--space-16);
      padding-bottom: calc(var(--space-16) + 56px); /* espaço para bottom nav */
}

@media (min-width: 768px) {
  .m-app-shell {
    padding-bottom: var(--space-16); /* sem bottom nav no desktop */
  }
}

.m-single-article {
    padding: 0;
}

.product-single {
    background: var(--color-surface);
      border-radius: var(--radius-lg);
      overflow: hidden;
      margin: 0 var(--space-16) var(--space-24);
      box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 var(--space-32);
  }

  .product-gallery {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .product-info {
    padding: var(--space-32);
    justify-content: center;
  }

  .product-title {
    font-size: 26px;
  }
}

.m-header-app {
    position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(15,16,18,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--color-border);
}

.m-header-app__inner {
    display: flex;
      justify-content: space-between;
      align-items: center;
      padding: var(--space-12) var(--space-16);
      max-width: 1280px;
      margin: 0 auto;
}

.m-header-app__back {
    font-size: 14px;
      color: var(--color-muted);
      transition: color 0.2s;
}

.m-header-app__back:hover {
    color: var(--color-text);
}

.m-header-app__title {
    font-size: 16px;
      font-weight: 700;
}

.m-reading-progress {
    position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--color-surface-2);
      z-index: 100;
}

.m-reading-progress__bar {
    height: 100%;
      background: var(--color-primary);
      width: 0%;
      transition: width 0.1s;
}

.m-single-trust {
    display: flex;
      flex-wrap: wrap;
      gap: var(--space-12);
      margin: var(--space-16) 0;
      font-size: 12px;
      color: var(--color-muted);
}

.m-single-trust__item {
    display: flex;
      align-items: center;
      gap: var(--space-4);
}

.m-single-faq__question::-webkit-details-marker {
    display: none;
}

.m-native-widget {
    padding: var(--space-20);
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      text-align: center;
}

.m-native-widget__label {
    font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--color-muted);
      margin-bottom: var(--space-12);
      display: block;
}

.m-native-widget__placeholder {
    padding: var(--space-32);
      background: var(--color-surface-2);
      border-radius: var(--radius-md);
      color: var(--color-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 767px) {
  .m-single-content {
    font-size: 15px;
  }

  .m-single-content h2 {
    font-size: 20px;
  }

  .m-single-content h3 {
    font-size: 16px;
  }

  .m-single-cta-block__price {
    font-size: 28px;
  }

  .m-single-cta-block__cta {
    font-size: 16px;
    padding: var(--space-14) var(--space-24);
  }

  .m-guarantee {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-gallery {
    position: relative;
      background: var(--color-surface-2);
      overflow: hidden;
      /* Altura máxima para manter proporção com o conteúdo */
      max-height: 480px;
      min-height: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
}

@media (max-width: 767px) {
  .product-gallery {
    aspect-ratio: 1 / 1;
    max-height: 400px;
  }
}

@media (min-width: 768px) {
  .product-gallery {
    aspect-ratio: auto;
    height: 100%;
    max-height: 520px;
  }

  .product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch; /* Faz as duas colunas terem mesma altura */
    min-height: 400px;
    max-height: 520px;
  }

  .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    padding: var(--space-24) var(--space-32);
    overflow-y: auto; /* Scroll se conteúdo for maior */
  }
}

.product-gallery img {
    width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
}

.product-placeholder {
    width: 100%;
      height: 100%;
      min-height: 320px;
      background: var(--color-surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 48px;
      color: var(--color-muted);
      opacity: 0.3;
}

.product-cta {
    display: inline-flex; /* inline-flex evita quebra */
      flex-direction: row; /* horizontal em vez de vertical */
      align-items: center;
      justify-content: center;
      gap: var(--space-8); /* espaço menor entre ícone e texto */
      background: var(--color-primary);
      color: #fff;
      padding: var(--space-14) var(--space-24);
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 16px;
      text-align: center;
      transition: transform 0.2s, box-shadow 0.2s;
      margin-top: var(--space-12);
      white-space: nowrap; /* Impede quebra de linha */
      width: 100%; /* Ocupa largura total no mobile */
      max-width: 100%;
}

@media (min-width: 768px) {
  .product-cta {
    width: auto; /* Largura natural no desktop */
    min-width: 280px; /* Largura mínima */
    padding: var(--space-16) var(--space-32);
  }
}

.product-cta:hover {
    transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(168,85,247,0.3);
}

.cta-icon {
    font-size: 18px;
      flex-shrink: 0; /* Não encolhe */
      line-height: 1;
}

.cta-text {
    flex-shrink: 0; /* Não encolhe */
      line-height: 1.2;
}

.cta-merchant {
    font-size: 12px;
      opacity: 0.85;
      font-weight: 500;
      margin-left: var(--space-4); /* Espaço antes do merchant */
      flex-shrink: 0;
}

.product-info {
    padding: var(--space-20);
      display: flex;
      flex-direction: column;
      gap: var(--space-8); /* Gap menor para compactar */
}

@media (min-width: 768px) {
  .product-info {
    padding: var(--space-24) var(--space-32);
    gap: var(--space-10);
  }
}

.product-title {
    font-size: 20px;
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .product-title {
    font-size: 24px;
  }
}

.product-category {
    font-size: 12px;
      padding: 3px 10px;
      background: rgba(255,255,255,0.12);
      border-radius: var(--radius-pill);
      align-self: flex-start;
      margin-bottom: var(--space-4);
}

.product-brand {
    font-size: 13px;
      color: var(--color-muted);
      margin-bottom: var(--space-4);
}

.product-pricing {
    display: flex;
      flex-direction: column;
      gap: 2px;
      margin: var(--space-4) 0;
}

.price-old {
    text-decoration: line-through;
      color: var(--color-muted);
      font-size: 13px;
}

.price-discount-tag {
    font-size: 12px;
      color: var(--color-success);
      font-weight: 600;
}

.price-main {
    font-size: 26px;
      font-weight: 800;
      color: var(--color-primary);
      line-height: 1.2;
}

@media (min-width: 768px) {
  .price-main {
    font-size: 32px;
  }
}

.product-trust {
    display: flex;
      flex-wrap: wrap;
      gap: var(--space-10);
      margin-top: var(--space-8);
      font-size: 11px;
      color: var(--color-muted);
}

.trust-item {
    display: flex;
      align-items: center;
      gap: var(--space-4);
      white-space: nowrap;
}

.product-badge {
    position: absolute;
      top: var(--space-12);
      right: var(--space-12);
      background: var(--color-danger);
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      font-weight: 700;
      font-size: 13px;
      z-index: 2;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
  .product-single {
    margin: 0 var(--space-12) var(--space-20);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .product-gallery {
    max-height: 360px;
  }

  .product-info {
    padding: var(--space-16);
  }

  .product-title {
    font-size: 18px;
  }

  .price-main {
    font-size: 24px;
  }

  .product-cta {
    padding: var(--space-12) var(--space-16);
    font-size: 15px;
  }
}

.m-single-content script[type="application/ld+json"],
.m-single-article > script[type="application/ld+json"],
body > script[type="application/ld+json"]:not([src]) {
    display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      width: 0 !important;
      overflow: hidden !important;
      position: absolute !important;
      left: -9999px !important;
}

/* Oculta apenas a imagem duplicada do product box, sem afetar ad slots */
.nfsp-product-box img {
    display: none !important;
}

.m-single-content {
    font-size: 16px;
      line-height: 1.7;
      color: var(--color-muted);
}

.m-single-content h2,
.m-single-content h3,
.m-single-content h4 {
    color: var(--color-text);
      font-weight: 700;
      margin: var(--space-32) 0 var(--space-16);
      line-height: 1.3;
}

.m-single-content h2 {
    font-size: 22px;
      padding-bottom: var(--space-12);
      border-bottom: 2px solid var(--color-primary);
      display: inline-block;
}

.m-single-content h3 {
    font-size: 18px;
}

.m-single-content h4 {
    font-size: 16px;
      color: var(--color-primary);
}

.m-single-content p {
    margin-bottom: var(--space-16);
}

.m-single-content ul {
    list-style: none;
      padding: 0;
      margin: var(--space-20) 0;
}

.m-single-content ul li {
    position: relative;
      padding-left: var(--space-28);
      margin-bottom: var(--space-12);
      font-size: 15px;
      line-height: 1.6;
}

.m-single-content ul li::before {
    content: "✓";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--color-success);
      font-weight: 700;
      font-size: 16px;
}

.m-single-content .benefit-card,
.m-single-content h3 + ul li {
    background: var(--color-surface);
      border-radius: var(--radius-md);
      padding: var(--space-16) var(--space-16) var(--space-16) var(--space-28);
      margin-bottom: var(--space-8);
      border: 1px solid var(--color-border);
}

.m-single-content .benefit-card::before,
.m-single-content h3 + ul li::before {
    left: var(--space-12);
      top: var(--space-16);
}

.m-single-content strong {
    color: var(--color-text);
      font-weight: 700;
}

.m-single-content .price-highlight,
.m-single-content [data-price] {
    background: var(--color-primary);
      color: #fff;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
      font-weight: 700;
}

.m-single-faq {
    margin: var(--space-32) 0;
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--color-border);
}

.m-single-faq__title {
    font-size: 20px;
      font-weight: 700;
      padding: var(--space-20) var(--space-20) 0;
      margin: 0;
}

.m-single-faq__list {
    padding: var(--space-12) 0;
}

.m-single-faq__item {
    border-bottom: 1px solid var(--color-border);
      padding: 0;
}

.m-single-faq__item:last-child {
    border-bottom: none;
}

.m-single-faq__question {
    font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
      padding: var(--space-16) var(--space-20);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 0.2s;
}

.m-single-faq__question:hover {
    background: rgba(255,255,255,0.03);
}

.m-single-faq__question::after {
    content: "+";
      font-size: 20px;
      color: var(--color-primary);
      font-weight: 300;
      transition: transform 0.2s;
}

.m-single-faq__item[open] .m-single-faq__question::after {
    content: "−";
}

.m-single-faq__answer {
    font-size: 14px;
      color: var(--color-muted);
      line-height: 1.6;
      padding: 0 var(--space-20) var(--space-16);
}

.m-single-content .inline-cta,
.m-single-content a[href*="afiliado"],
.m-single-content a[href*="offer"],
.m-single-content a[href*="click"],
.m-single-content a[target="_blank"]:not([href^="#"]) {
    display: inline-flex;
      align-items: center;
      gap: var(--space-8);
      background: var(--color-primary);
      color: #fff;
      padding: var(--space-12) var(--space-20);
      border-radius: var(--radius-md);
      font-weight: 700;
      font-size: 15px;
      margin: var(--space-16) 0;
      transition: transform 0.2s, box-shadow 0.2s;
}

.m-single-content .inline-cta:hover,
.m-single-content a[href*="afiliado"]:hover,
.m-single-content a[href*="offer"]:hover,
.m-single-content a[target="_blank"]:not([href^="#"]):hover {
    transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(168,85,247,0.3);
}

.m-single-cta-block {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
      border: 2px solid var(--color-primary);
      border-radius: var(--radius-lg);
      padding: var(--space-24);
      margin: var(--space-32) 0;
      text-align: center;
}

.m-single-cta-block__price {
    font-size: 32px;
      font-weight: 800;
      color: var(--color-primary);
      margin-bottom: var(--space-8);
}

.m-single-cta-block__old {
    font-size: 16px;
      color: var(--color-muted);
      text-decoration: line-through;
      margin-bottom: var(--space-16);
}

.m-single-cta-block__cta {
    display: inline-block;
      background: var(--color-primary);
      color: #fff;
      padding: var(--space-16) var(--space-32);
      border-radius: var(--radius-pill);
      font-weight: 700;
      font-size: 18px;
      transition: transform 0.2s, box-shadow 0.2s;
}

.m-single-cta-block__cta:hover {
    transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(168,85,247,0.4);
}

.m-urgency-bar {
    background: linear-gradient(90deg, var(--color-danger) 0%, #c084fc 100%);
      color: #fff;
      padding: var(--space-12) var(--space-16);
      border-radius: var(--radius-md);
      text-align: center;
      font-weight: 700;
      font-size: 14px;
      margin: var(--space-16) 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-8);
}

.m-urgency-bar::before {
    content: "⏰";
      font-size: 18px;
}

.m-stock-indicator {
    display: inline-flex;
      align-items: center;
      gap: var(--space-8);
      background: rgba(192,38,211,0.15);
      color: var(--color-danger);
      padding: var(--space-8) var(--space-16);
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 600;
      margin: var(--space-12) 0;
}

.m-stock-indicator::before {
    content: "";
      width: 8px;
      height: 8px;
      background: var(--color-danger);
      border-radius: 50%;
      animation: pulse 2s infinite;
}


  50% { opacity: 0.3; }
}

.m-social-proof {
    background: var(--color-surface);
      border-radius: var(--radius-lg);
      padding: var(--space-20);
      margin: var(--space-24) 0;
      border: 1px solid var(--color-border);
}

.m-social-proof__label {
    font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--color-muted);
      margin-bottom: var(--space-12);
}

.m-social-proof__stars {
    color: #f1c40f;
      font-size: 18px;
      margin-bottom: var(--space-8);
}

.m-social-proof__text {
    font-size: 14px;
      color: var(--color-muted);
      font-style: italic;
      line-height: 1.5;
}

.m-social-proof__author {
    font-size: 13px;
      color: var(--color-text);
      font-weight: 600;
      margin-top: var(--space-8);
}

.m-guarantee {
    display: flex;
      align-items: center;
      gap: var(--space-12);
      background: rgba(46,213,115,0.1);
      border: 1px solid rgba(46,213,115,0.3);
      border-radius: var(--radius-md);
      padding: var(--space-16);
      margin: var(--space-20) 0;
}

.m-guarantee__icon {
    font-size: 32px;
      flex-shrink: 0;
}

.m-guarantee__content {
    flex: 1;
}

.m-guarantee__title {
    font-size: 15px;
      font-weight: 700;
      color: var(--color-success);
      margin-bottom: var(--space-4);
}

.m-guarantee__text {
    font-size: 13px;
      color: var(--color-muted);
      line-height: 1.4;
}

.m-trust-badges {
    display: flex;
      flex-wrap: wrap;
      gap: var(--space-12);
      justify-content: center;
      margin: var(--space-24) 0;
}

.m-trust-badge {
    display: flex;
      align-items: center;
      gap: var(--space-8);
      background: var(--color-surface-2);
      padding: var(--space-8) var(--space-14);
      border-radius: var(--radius-pill);
      font-size: 12px;
      color: var(--color-muted);
}

.m-trust-badge::before {
    content: "✓";
      color: var(--color-success);
      font-weight: 700;
}

@media (max-width: 767px) {
  .m-single-content {
    font-size: 15px;
  }

  .m-single-content h2 {
    font-size: 20px;
  }

  .m-single-content h3 {
    font-size: 16px;
  }

  .m-single-cta-block__price {
    font-size: 28px;
  }

  .m-single-cta-block__cta {
    font-size: 16px;
    padding: var(--space-14) var(--space-24);
  }

  .m-guarantee {
    flex-direction: column;
    text-align: center;
  }
}


  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-single-content h2,
.m-single-content h3,
.m-single-faq,
.m-single-cta-block,
.m-social-proof,
.m-guarantee {
    animation: fadeInUp 0.6s ease-out;
}


/* ============================================================
   FIX: Bullets com ✓ — Corrige sobreposição de texto
   ============================================================ */

/* Remove o ::before de TODOS os li primeiro */
.m-single-content ul li::before {
  content: none !important;
  display: none !important;
}

/* Adiciona ✓ apenas em li com classe específica ou dentro de h3+ul */
.m-single-content .check-item,
.m-single-content h3 + ul li,
.m-single-content h2 + ul li {
  position: relative;
  padding-left: 28px !important;
  margin-bottom: 12px;
  list-style: none !important;
}

.m-single-content .check-item::before,
.m-single-content h3 + ul li::before,
.m-single-content h2 + ul li::before {
  content: "✓" !important;
  display: inline-block !important;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-success);
  font-weight: 700;
  font-size: 14px;
  width: 20px;
  text-align: center;
  line-height: 1.4;
}

/* Cards de benefícios */
.m-single-content .benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 48px;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  position: relative;
}

.m-single-content .benefit-card::before {
  content: "✓";
  display: inline-block;
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--color-success);
  font-weight: 700;
  font-size: 16px;
  width: 24px;
  text-align: center;
}


/* ============================================================
   CTA FINAL — Conversão Premium
   ============================================================ */

.m-cta-final {
    background: linear-gradient(135deg, var(--color-surface) 0%, #1a1d21 100%);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil no fundo */
.m-cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Urgência */
.m-cta-final__urgency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 38, 211, 0.15);
    border: 1px solid rgba(192, 38, 211, 0.3);
    color: var(--color-danger);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: pulse-border 2s infinite;
}

.m-cta-final__pulse {
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(192, 38, 211, 0.3); }
    50% { border-color: rgba(192, 38, 211, 0.8); }
}

/* Caixa de Preço */
.m-cta-final__price-box {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

/* Badge de Desconto */
.m-cta-final__discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-success);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(46, 213, 115, 0.4);
}

.m-cta-final__discount-badge small {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Pricing */
.m-cta-final__pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.m-cta-final__old-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-muted);
}

.m-cta-final__old-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.m-cta-final__old-price {
    text-decoration: line-through;
    opacity: 0.7;
}

.m-cta-final__current-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.m-cta-final__current-label {
    font-size: 14px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.m-cta-final__current-price {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.m-cta-final__current-price small {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.m-cta-final__current-price small:first-child {
    font-size: 20px;
    margin-top: 12px;
    margin-right: 4px;
}

/* Economia */
.m-cta-final__savings {
    font-size: 14px;
    color: var(--color-success);
    font-weight: 600;
    margin-top: 8px;
}

.m-cta-final__savings strong {
    font-size: 16px;
}

/* Botão CTA */
.m-cta-final__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #9333ea 100%);
    color: #fff;
    padding: 20px 48px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.m-cta-final__btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.m-cta-final__btn:hover .m-cta-final__btn-shine {
    left: 100%;
}

.m-cta-final__btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.7);
}

.m-cta-final__btn-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.m-cta-final__btn:hover .m-cta-final__btn-icon {
    transform: translateX(5px);
}

/* Merchant */
.m-cta-final__merchant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-muted);
    position: relative;
    z-index: 1;
}

.m-cta-final__merchant strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Trust Badges */
.m-cta-final__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.m-cta-final__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
}

.m-cta-final__trust-icon {
    font-size: 14px;
}

/* ============================================================
   AD SLOTS v6.0 — Design Otimizado para Conversão
   ============================================================ */

/* Wrapper base */
.m-ad-slot-wrapper {
    width: 100%;
    margin: 32px 0;
    text-align: center;
}

/* Label discreta */
.m-ad-slot__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Inner sem linha/borda */
.m-ad-slot__inner {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

/* Imagem do banner — limpa, sem borda branca */
.m-ad-slot-wrapper img,
.m-ad-slot-wrapper a img,
.m-ad-slot-wrapper .mas-ad-slot img,
.m-ad-slot-wrapper .mas-ad-slot__link img,
.m-single-content .mas-ad-slot img,
.m-single-content .mas-ad-slot__link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove qualquer box do plugin que possa adicionar borda */
.mas-ad-slot__box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Label dupla (plugin injeta label própria — ocultar a interna) */
.m-ad-slot-wrapper .mas-ad-slot__label,
.m-single-content .mas-ad-slot__label {
    display: none !important;
}

/* Efeito hover no banner — feedback de clicabilidade */
.m-ad-slot-wrapper .mas-ad-slot__link,
.m-single-content .mas-ad-slot__link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m-ad-slot-wrapper .mas-ad-slot__link:hover,
.m-single-content .mas-ad-slot__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Slot: Inline no Conteúdo */
.m-ad-slot-wrapper--single_content_inline {
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Slot: Native Bottom */
.m-ad-slot-wrapper--single_bottom_native {
    margin: 0 0 32px;
    padding: 20px 0;
}

/* Slot: After Related */
.m-ad-slot-wrapper--single_after_related {
    margin: 0;
    padding: 20px 0;
}

/* Spacer entre related e native */
.m-ad-slot-spacer {
    margin: 0;
}

/* Desktop */
@media (min-width: 768px) {
    .m-ad-slot-wrapper--single_bottom_native .m-ad-slot__inner,
    .m-ad-slot-wrapper--single_after_related .m-ad-slot__inner,
    .m-ad-slot-wrapper--single_content_inline .m-ad-slot__inner {
        max-width: 600px;
        margin: 0 auto;
        display: block;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .m-ad-slot-wrapper {
        margin: 20px 0;
    }
    .m-ad-slot-wrapper img,
    .m-single-content .mas-ad-slot img {
        width: 100%;
        border-radius: 10px;
    }
}

/* ============================================================
   ESPAÇAMENTO: Banner → CTA Final
   ============================================================ */

/* Adiciona espaço entre o banner e o CTA final */
.m-ad-slot-wrapper--single_content_bottom {
    margin-bottom: 40px;
}

/* Garante que o CTA final não fique colado no banner */
.m-cta-final {
    margin-top: 16px;
}



/* ============================================================
   HEADER LOGO — Tamanho aumentado (40px)
   ============================================================ */

.m-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.m-header-logo-img {
    height: 36px;           /* Aumentado de 32px para 36px */
    width: auto;
    max-width: 180px;       /* Aumentado de 160px para 180px */
    display: block;
    transform: translateZ(0);
}

/* Mobile: mantém proporção */
@media (max-width: 480px) {
    .m-header-logo-img {
        height: 30px;
        max-width: 150px;
    }
}

/* Tablet/desktop: logo maior */
@media (min-width: 768px) {
    .m-header-logo-img {
        height: 40px;
        max-width: 200px;
    }
}

.m-header-logo svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   FIX: Header Unificado — Padding Duplicado
   ============================================================ */

/* Remove padding-top duplicado (header.php .m-app já tem padding) */
.m-app-shell {
    padding-top: 0;
    padding-bottom: calc(var(--space-16) + 56px); /* mantém espaço para bottom nav */
}

/* Desktop: sem bottom nav */
@media (min-width: 768px) {
    .m-app-shell {
        padding-bottom: var(--space-16);
    }
}



/* ============================================================
   HERO: Apenas Mobile — Escondido em Desktop
   ============================================================ */

/* Mobile: hero visível */
.hero-mobile-only {
    display: block;
}

/* Desktop: hero escondido */
@media (min-width: 768px) {
    .hero-mobile-only {
        display: none !important;
    }
}

/* Ajuste do grid em desktop (sem hero, mais espaço) */
@media (min-width: 768px) {
    .feed {
        margin-top: var(--space-16); /* menos espaço sem hero */
    }
}


/* ============================================================
   SCROLL INFINITO — Loading e Animações
   ============================================================ */

/* Loading indicator */
.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    padding: var(--space-24) 0;
    color: var(--color-muted);
    font-size: 14px;
}

.feed-loading[hidden] {
    display: none !important;
}

.feed-loading__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animação de entrada dos cards (app-like) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.4s ease-out;
}

/* Sentinel (invisível) */
.feed-sentinel {
    height: 10px;
    margin-top: var(--space-16);
}

/* Hero mobile-only (já definido anteriormente) */
.hero-mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .hero-mobile-only {
        display: none !important;
    }

    .feed {
        margin-top: var(--space-16);
    }
}

/* ============================================================
   HEADER — Logo Centralizado Perfeitamente
   ============================================================ */

.m-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 16, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    min-height: 72px;
}

.m-header-inner {
    display: flex;
    justify-content: center;  /* CENTRALIZADO */
    align-items: center;
    padding: var(--space-12) var(--space-16);
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    /* Garante que não há pseudo-elementos ou margens fantasmas */
    position: relative;
}

/* Remove qualquer possível pseudo-elemento que possa deslocar */
.m-header-inner::before,
.m-header-inner::after {
    content: none;
    display: none;
}

/* LOGO */
.m-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    min-height: 56px;
    min-width: 56px;
    /* Centralização absoluta */
    margin: 0 auto;
    position: relative;
    left: 0;
    right: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeito hover */
.m-header-logo:hover {
    transform: scale(1.05);
}

.m-header-logo:hover .m-header-logo-img {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}

/* TAMANHO MÁXIMO DO LOGO */
.m-header-logo-img {
    height: 48px;
    width: auto;
    max-width: 240px;
    display: block;
    /* Centralização do SVG */
    margin: 0 auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Tablet */
@media (min-width: 768px) {
    .m-header-logo-img {
        height: 56px;
        max-width: 280px;
    }

    .m-header,
    .m-header-inner {
        min-height: 80px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .m-header-logo-img {
        height: 64px;
        max-width: 320px;
    }

    .m-header,
    .m-header-inner {
        min-height: 88px;
    }
}

.m-header-logo svg {
    display: block;
    max-width: 100%;
    height: auto;
    /* Garante que o SVG não tem margem interna */
    margin: 0;
    padding: 0;
}

/* Efeito de pulse sutil */
@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
    }
}

.m-header-logo-img {
    animation: logoPulse 3s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .m-header-logo-img {
        animation: none;
    }
}

/* ============================================================
   MODICAS UPGRADE PATCH — Conversão + Ad-Ready + Mobile First
   Adicionar ao final do app.css (substitui seções equivalentes)
   ============================================================ */


/* ============================================================
   TOKENS ADICIONAIS
   ============================================================ */
:root {
    --space-10: 10px;
    --space-14: 14px;
    --space-28: 28px;
    --space-40: 40px;
    --space-48: 48px;

    /* Tipografia de conversão */
    --font-display: 'DM Sans', 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-surface: linear-gradient(180deg, #17191c 0%, #13151a 100%);

    /* Sombras de conversão */
    --shadow-cta: 0 8px 32px rgba(168, 85, 247, 0.45);
    --shadow-cta-hover: 0 16px 48px rgba(168, 85, 247, 0.65);
    --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.4);
}


/* ============================================================
   BODY & TIPOGRAFIA BASE
   ============================================================ */
body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}


/* ============================================================
   PRODUCT HERO — v3.0 Mobile First
   ============================================================ */

.product-single {
    background: var(--color-surface);
    border-radius: 0;                    /* mobile: full bleed */
    overflow: hidden;
    margin: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--color-border);
}

/* Mobile: empilhado */
.product-gallery {
    position: relative;
    background: var(--color-surface-2);
    overflow: hidden;
    aspect-ratio: 4/3;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;               /* contain: mostra produto inteiro */
    object-position: center;
    padding: 16px;                     /* respiro na imagem de produto */
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;                        /* esquerda = mais natural no mobile */
    right: auto;
    background: var(--color-danger);
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.product-brand {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
}

.product-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.3px;
    margin: 0;
}

/* Pricing */
.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.product-pricing__old-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-old {
    text-decoration: line-through;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 400;
}

.price-discount-tag {
    font-size: 12px;
    color: var(--color-success);
    font-weight: 700;
    background: rgba(46, 213, 115, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.price-main {
    font-size: 30px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

/* CTA Hero */
.product-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-cta);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.product-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.product-cta:hover::after {
    transform: translateX(100%);
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
}

.cta-icon { font-size: 18px; flex-shrink: 0; }
.cta-text { flex-shrink: 0; }
.cta-merchant {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
    flex-shrink: 0;
}

/* Trust */
.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trust-item {
    font-size: 11px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    white-space: nowrap;
}

/* Desktop: lado a lado */
@media (min-width: 768px) {
    .product-single {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: var(--radius-lg);
        margin: 0 0 var(--space-32);
        min-height: 420px;
        max-height: 520px;
        border-bottom: none;
        box-shadow: var(--shadow-card);
    }

    .product-gallery {
        aspect-ratio: auto;
        height: 100%;
        max-height: 520px;
        padding: 0;
    }

    .product-gallery img {
        padding: 24px;
    }

    .product-info {
        padding: 32px;
        justify-content: center;
        overflow-y: auto;
        gap: 14px;
    }

    .product-title { font-size: 24px; }
    .price-main { font-size: 36px; }

    .product-cta {
        width: auto;
        min-width: 260px;
        padding: 16px 32px;
        font-size: 17px;
    }
}


/* ============================================================
   SINGLE CONTENT — Leitura Otimizada
   ============================================================ */

.m-single-content {
    font-size: 16px;
    line-height: 1.75;
    color: #c4c9d4;                    /* levemente mais claro que muted */
    font-family: var(--font-body);
}

/* Excerpt destaque */
.m-single-content__excerpt {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(168, 85, 247, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
}

.m-single-content h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-text);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    letter-spacing: -0.3px;
}

.m-single-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin: 28px 0 10px;
}

.m-single-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 20px 0 8px;
}

.m-single-content p {
    margin-bottom: 16px;
}

/* Listas com ✓ */
.m-single-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
}

.m-single-content ul li::before {
    content: none !important;
    display: none !important;
}

.m-single-content h2 + ul li,
.m-single-content h3 + ul li,
.m-single-content .check-item {
    position: relative;
    padding: 10px 12px 10px 36px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.55;
    color: #c4c9d4;
    list-style: none !important;
}

.m-single-content h2 + ul li::before,
.m-single-content h3 + ul li::before,
.m-single-content .check-item::before {
    content: "✓" !important;
    display: inline-block !important;
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--color-success);
    font-weight: 800;
    font-size: 13px;
}

.m-single-content strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Links afiliados dentro do conteúdo */
.m-single-content a[target="_blank"]:not([href^="#"]):not(.mas-ad-slot__link) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    margin: 12px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(168,85,247,0.35);
    text-decoration: none;
}

.m-single-content a[target="_blank"]:not([href^="#"]):not(.mas-ad-slot__link):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta);
}

/* Oculta imagem duplicada do product box */
.nfsp-product-box img { display: none !important; }

/* Product box: esconde o card duplicado inteiro no mobile */
@media (max-width: 767px) {
    .nfsp-product-box { display: none !important; }
}


/* ============================================================
   AD SLOTS — Inline no Conteúdo
   Estilo nativo, misturado ao texto, sem competir com CTAs
   ============================================================ */

/* Slot inline dentro do conteúdo (gerado pelo plugin) */
.m-single-content .mas-ad-slot--static {
    margin: 24px -4px;                 /* leve sangramento */
    display: block;
}

.m-single-content .mas-ad-slot__label,
.m-ad-slot-wrapper .mas-ad-slot__label {
    display: none !important;          /* label interna do plugin: ocultar */
}

.mas-ad-slot__box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Separador sutil acima/abaixo do ad inline */
.m-single-content .mas-ad-slot--static {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Label "Publicidade" acima — via pseudo-elemento no wrapper externo */
.m-single-content .mas-ad-slot--static::before {
    content: "Publicidade";
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.18);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Imagens do banner inline */
.m-single-content .mas-ad-slot img,
.m-single-content .mas-ad-slot__link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Hover clicável */
.m-single-content .mas-ad-slot__link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.m-single-content .mas-ad-slot__link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Slots do wrapper (after_related, native_bottom) */
.m-ad-slot-wrapper {
    width: 100%;
    margin: 28px 0;
    text-align: center;
}

.m-ad-slot__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.18);
    margin-bottom: 8px;
    font-weight: 500;
}

.m-ad-slot__inner {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.m-ad-slot-wrapper img,
.m-ad-slot-wrapper a img,
.m-ad-slot-wrapper .mas-ad-slot img,
.m-ad-slot-wrapper .mas-ad-slot__link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.m-ad-slot-wrapper .mas-ad-slot__link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.m-ad-slot-wrapper .mas-ad-slot__link:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Slots específicos */
.m-ad-slot-wrapper--single_after_related { margin: 0; padding: 24px 0; }
.m-ad-slot-wrapper--single_bottom_native { margin: 0 0 24px; padding: 20px 0; }
.m-ad-slot-spacer { margin: 0; }

/* Mobile: full width */
@media (max-width: 767px) {
    .m-ad-slot-wrapper img,
    .m-single-content .mas-ad-slot img {
        width: 100%;
        border-radius: 8px;
    }
    .m-ad-slot-wrapper { margin: 16px 0; }
    .m-single-content .mas-ad-slot--static { margin: 20px -4px; }
}

/* Desktop: largura contida */
@media (min-width: 768px) {
    .m-ad-slot-wrapper--single_after_related .m-ad-slot__inner,
    .m-ad-slot-wrapper--single_bottom_native .m-ad-slot__inner {
        max-width: 600px;
        margin: 0 auto;
        display: block;
    }
}


/* ============================================================
   CTA FINAL — Isolado, Máxima Conversão
   ============================================================ */

.m-cta-final {
    background: linear-gradient(160deg, #1a1d24 0%, #111318 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.5);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    margin: 48px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Halo roxo sutil */
.m-cta-final::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(168,85,247,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.m-cta-final__urgency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 38, 211, 0.12);
    border: 1px solid rgba(192, 38, 211, 0.35);
    color: #e879f9;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.m-cta-final__pulse { animation: pulse-icon 1.5s infinite; }

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.m-cta-final__price-box {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

.m-cta-final__discount-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    background: var(--color-success);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(46,213,115,0.35);
    letter-spacing: -0.5px;
}

.m-cta-final__discount-badge small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.m-cta-final__pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.m-cta-final__old-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.m-cta-final__old-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}

.m-cta-final__old-price {
    text-decoration: line-through;
    opacity: 0.6;
}

.m-cta-final__current-label {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.m-cta-final__current-price {
    font-size: 52px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -2px;
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.m-cta-final__current-price small:first-child {
    font-size: 20px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0;
}

.m-cta-final__current-price small:last-child {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 0;
}

.m-cta-final__savings {
    font-size: 13px;
    color: var(--color-success);
    font-weight: 600;
    margin-top: 6px;
    opacity: 0.9;
}

/* Botão CTA */
.m-cta-final__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 18px 40px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-cta);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    margin-top: 8px;
}

.m-cta-final__btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.55s ease;
}

.m-cta-final__btn:hover .m-cta-final__btn-shine { left: 100%; }

.m-cta-final__btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-cta-hover);
}

.m-cta-final__btn-icon {
    font-size: 22px;
    transition: transform 0.25s;
}

.m-cta-final__btn:hover .m-cta-final__btn-icon { transform: translateX(5px); }

.m-cta-final__merchant {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.m-cta-final__merchant strong { color: var(--color-text); }

.m-cta-final__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.m-cta-final__trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.04);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
}


/* ============================================================
   FAQ — Accordion Limpo
   ============================================================ */

.m-single-faq {
    margin: 32px 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.m-single-faq__title {
    font-size: 18px;
    font-weight: 800;
    padding: 20px 20px 12px;
    margin: 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.m-single-faq__item {
    border-bottom: 1px solid var(--color-border);
}

.m-single-faq__item:last-child { border-bottom: none; }

.m-single-faq__question {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
    transition: background 0.15s;
    line-height: 1.4;
}

.m-single-faq__question::-webkit-details-marker { display: none; }
.m-single-faq__question:hover { background: rgba(255,255,255,0.03); }

.m-single-faq__question::after {
    content: "+";
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 12px;
}

.m-single-faq__item[open] .m-single-faq__question::after { content: "−"; }

.m-single-faq__answer {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    padding: 0 20px 16px;
}


/* ============================================================
   STICKY BAR — Mobile Conversion
   ============================================================ */

.m-sticky-bar {
    position: fixed;
    bottom: 60px;                      /* acima do bottom nav */
    left: 0; right: 0;
    background: rgba(17, 19, 24, 0.97);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    padding: 10px 16px;
    z-index: 45;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.m-sticky-bar--visible { transform: translateY(0); }

.m-sticky-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    gap: 12px;
}

.m-sticky-bar__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.m-sticky-bar__current {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.m-sticky-bar__old {
    font-size: 11px;
    color: var(--color-muted);
    text-decoration: line-through;
}

.m-sticky-bar__cta {
    background: var(--gradient-primary);
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(168,85,247,0.4);
    flex-shrink: 0;
}

.m-sticky-bar__cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta);
}

@media (min-width: 768px) {
    .m-sticky-bar { bottom: 0; }
}


/* ============================================================
   RELACIONADOS — Feed Grid
   ============================================================ */

.m-single-related-section {
    padding: 32px 0 0;
    border-top: 1px solid var(--color-border);
}

.feed-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

/* Cards hover upgrade */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}


/* ============================================================
   PRÓXIMA OFERTA
   ============================================================ */

.m-single-next-section {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.m-single-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: background 0.2s, border-color 0.2s;
}

.m-single-next:hover {
    background: var(--color-surface-2);
    border-color: rgba(168, 85, 247, 0.3);
}

.m-single-next__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
}

.m-single-next__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

.m-single-next__arrow {
    font-size: 20px;
    color: var(--color-primary);
    margin-top: 2px;
}


/* ============================================================
   MOBILE RESPONSIVO
   ============================================================ */

@media (max-width: 767px) {
    .m-single-content { font-size: 15px; }
    .m-single-content h2 { font-size: 19px; }
    .m-single-content h3 { font-size: 16px; }
    .m-cta-final { padding: 28px 16px; }
    .m-cta-final__current-price { font-size: 44px; }
    .m-cta-final__btn { font-size: 16px; padding: 16px 28px; }
    .m-single-meta { font-size: 12px; }
}

/* ============================================================
   HEADER — Patch de Centralização e Tamanho do Logo
   Substituir toda a seção de header no app.css
   ============================================================ */

.m-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
}

/*
   O truque da centralização perfeita:
   - O inner usa `justify-content: center` → logo vai pro centro
   - Sem pseudo-elementos, sem position absolute, sem margin tricks
   - O SVG tem viewBox calibrado ao conteúdo real (212x48)
     então width:auto + height fixo dão a proporção exata
*/
.m-header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--space-16);
    max-width: 1280px;
    margin: 0 auto;
    /* Altura do header: 64px mobile, 72px tablet, 80px desktop */
    height: 64px;
}

.m-header-inner::before,
.m-header-inner::after {
    content: none;
    display: none;
}

/* Link wrapper — sem interferência no layout */
.m-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;                    /* remove espaço fantasma abaixo do SVG */
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.m-header-logo:hover {
    opacity: 0.85;
}

/*
   TAMANHO DO LOGO:
   - viewBox é 212x48 → aspect ratio 4.42:1
   - Mobile: height 40px → width automático = ~177px  ✓ grande o suficiente
   - Tablet: height 44px → width automático = ~195px
   - Desktop: height 48px → width automático = ~212px (tamanho natural do SVG)
   
   Limites de boas práticas:
   - Mínimo recomendado: 32px de altura (legibilidade)
   - Máximo recomendado para header: ~56px (não domina o header)
   - 40-48px é o sweet spot para apps mobile-first
*/
.m-header-logo-img {
    height: 40px;                      /* mobile */
    width: auto;                       /* proporcional ao viewBox */
    display: block;
    /* Glow sutil — identidade da marca */
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.25));
    transition: filter 0.3s ease;
}

.m-header-logo:hover .m-header-logo-img {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

/* Tablet */
@media (min-width: 480px) {
    .m-header-inner { height: 68px; }

    .m-header-logo-img {
        height: 44px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .m-header-inner { height: 72px; }

    .m-header-logo-img {
        height: 48px;                  /* tamanho natural: 1:1 com o viewBox */
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .m-header-inner { height: 76px; }

    .m-header-logo-img {
        height: 50px;                  /* ligeiramente maior no wide */
    }
}

/* Reduzido: sem animação pra quem prefere */
@media (prefers-reduced-motion: reduce) {
    .m-header-logo-img {
        filter: none;
        transition: none;
    }
}

/* ============================================================
   HOME FEED AD CARD — v1.0
   Ad card inline no feed de produtos
   Ocupa 1 célula do grid, mesmo tamanho dos cards
   ============================================================ */

/*
   O .feed-ad-card ocupa exatamente 1 célula do grid.
   O banner 300x250 fica centralizado dentro da célula.
   Sem background, sem borda competindo com os cards.
*/
.feed-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;             /* altura mínima compatível com 300x250 */
    padding: 12px 8px;
}

/* Label "Publicidade" discreta no topo */
.feed-ad-card__label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.18);
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
}

/* Inner: contém o mas-ad-slot */
.feed-ad-card__inner {
    width: 100%;
    display: flex;
    justify-content: center;
    line-height: 0;
}

/* Remove box do plugin */
.feed-ad-card .mas-ad-slot__box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Remove label interna do plugin (duplicada) */
.feed-ad-card .mas-ad-slot__label {
    display: none !important;
}

/* Imagem do banner */
.feed-ad-card .mas-ad-slot img,
.feed-ad-card .mas-ad-slot__link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Link clicável com hover */
.feed-ad-card .mas-ad-slot__link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.feed-ad-card .mas-ad-slot__link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Mobile: largura total */
@media (max-width: 539px) {
    .feed-ad-card {
        min-height: 200px;
    }

    .feed-ad-card .mas-ad-slot img {
        width: 100%;
        border-radius: 8px;
    }
}

/* Grid 2 colunas (540px+): ocupa as 2 colunas para banner 300x250 ficar centralizado */
@media (min-width: 540px) and (max-width: 899px) {
    .feed-ad-card {
        grid-column: 1 / -1;          /* full width na grade de 2 colunas */
        min-height: 280px;
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding: 20px 0;
    }
}

/* Grid 3+ colunas (900px+): ocupa 1 célula normalmente */
@media (min-width: 900px) {
    .feed-ad-card {
        grid-column: auto;
        min-height: 300px;
    }
}

/* ============================================================
   HOME NATIVE BOTTOM — slot abaixo do feed
   ============================================================ */
.m-ad-slot-wrapper--home_native_bottom {
    margin: 32px 0 0;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.m-ad-slot-wrapper--home_feed_inline {
    /* Usado apenas no ad-slot.php fallback, não no feed-ad-card */
    margin: 16px 0;
    text-align: center;
}

/* ============================================================
   AD SLOT WRAPPER — labels para home
   ============================================================ */
.m-ad-slot-wrapper--home_native_bottom .m-ad-slot__label,
.m-ad-slot-wrapper--home_feed_inline .m-ad-slot__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.18);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   PATCH: Feed Ad Card — Desktop 2 colunas + limpeza de duplicações
   Colar ao final do app.css
   ============================================================ */

/* ============================================================
   CARD — Regras definitivas (sobrescreve duplicações anteriores)
   
   No CSS atual existem 3 definições conflitantes de .card:
   1. Bloco original (sem transition/hover)
   2. Patch upgrade (com transition mas sem animation)
   3. Scroll infinito (com animation mas sem hover)
   
   Esta regra unifica tudo com !important onde necessário
   para garantir que a última definição vença.
   ============================================================ */

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* ============================================================
   FEED AD CARD — Opção C: 2 colunas em desktop (900px+)
   
   Lógica de layout por breakpoint:
   
   Mobile (<540px):
     Grid = 1 coluna → ad ocupa 1 coluna (full width)
     Banner 300x250 centralizado com padding
   
   Tablet (540–899px):
     Grid = 2 colunas → ad já ocupa as 2 colunas (full width)
     comportamento anterior mantido
   
   Desktop (900px+):
     Grid = 3 colunas → ad ocupa 2 colunas (2/3 da largura)
     Banner 300x250 centralizado no espaço de 2 células
   
   Desktop wide (1200px+):
     Grid = 4 colunas → ad ocupa 2 colunas (metade da largura)
     Ainda confortável para o banner 300x250
   ============================================================ */

/* Base: reset completo da regra anterior do feed-ad-card */
.feed-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    min-height: auto;                  /* remove min-height fixo — deixa o banner definir */
    grid-column: auto;                 /* reset — cada breakpoint define */
}

.feed-ad-card__label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
}

.feed-ad-card__inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

/* Imagens e links do banner — sem borda, sem fundo */
.feed-ad-card .mas-ad-slot__box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.feed-ad-card .mas-ad-slot__label {
    display: none !important;
}

.feed-ad-card .mas-ad-slot img,
.feed-ad-card .mas-ad-slot__link img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.feed-ad-card .mas-ad-slot__link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.feed-ad-card .mas-ad-slot__link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ------------------------------------------
   Mobile (<540px): 1 coluna, full width
   ------------------------------------------ */
@media (max-width: 539px) {
    .feed-ad-card {
        grid-column: 1 / -1;
        padding: 14px 0;
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .feed-ad-card .mas-ad-slot img {
        width: 100%;
        max-width: 360px;             /* limita em telas largas de mobile */
        border-radius: 8px;
    }
}

/* ------------------------------------------
   Tablet (540–899px): 2 colunas, full width
   Banner centralizado horizontalmente
   ------------------------------------------ */
@media (min-width: 540px) and (max-width: 899px) {
    .feed-ad-card {
        grid-column: 1 / -1;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
}

/* ------------------------------------------
   Desktop (900px+): grid 3 colunas
   Ad ocupa 2 colunas — impactante, não competitivo
   ------------------------------------------ */
@media (min-width: 900px) {
    .feed-ad-card {
        grid-column: span 2;           /* ocupa 2 das 3 colunas */
        padding: 24px 20px;
        border-radius: var(--radius-lg);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        min-height: 290px;             /* alinha visualmente com os cards vizinhos */
        transition: border-color 0.2s ease;
    }

    .feed-ad-card:hover {
        border-color: rgba(255,255,255,0.12);
    }

    .feed-ad-card__label {
        font-size: 10px;
        margin-bottom: 12px;
    }
}

/* ------------------------------------------
   Desktop wide (1200px+): grid 4 colunas
   Ad ocupa 2 colunas — metade da largura total
   ------------------------------------------ */
@media (min-width: 1200px) {
    .feed-ad-card {
        grid-column: span 2;           /* ocupa 2 das 4 colunas */
        min-height: 300px;
    }
}

/* ============================================================
   PATCH: Bottom Nav + Sticky Bar + Footer
   Colar ao final do app.css — sobrescreve todas as regras anteriores
   ============================================================ */

/* ----------------------------------------
   BOTTOM NAV — sempre visível, app-style
   Nunca escondido, nem no desktop
   (projeto é mobile-first / webview)
   ---------------------------------------- */

.m-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    background: rgba(13, 14, 17, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    display: flex !important;          /* sempre visível — nunca display:none */
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 40 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
}

.m-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 16px !important;
    color: rgba(255,255,255,0.35) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    flex: 1 !important;
    min-width: 0 !important;
    position: relative !important;
}

.m-bottom-item:hover,
.m-bottom-item:active {
    color: rgba(255,255,255,0.7) !important;
}

.m-bottom-item--active {
    color: var(--color-primary) !important;
}

.m-bottom-item--active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
}

.m-bottom-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

.m-bottom-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Feedback tátil */
@media (hover: none) {
    .m-bottom-item:active {
        transform: scale(0.9);
        transition: transform 0.1s ease, color 0.1s ease;
    }
}

/* ----------------------------------------
   STICKY BAR — acima do bottom nav
   
   Hierarquia de z-index:
   z-40 = bottom nav
   z-45 = sticky bar (acima do bottom nav)
   z-50 = header
   z-100 = reading progress
   
   bottom = altura do bottom nav (56px) + safe area
   ---------------------------------------- */

.m-sticky-bar {
    position: fixed !important;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(17, 19, 24, 0.97) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.3) !important;
    padding: 10px 16px !important;
    z-index: 45 !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4) !important;
}

.m-sticky-bar--visible {
    transform: translateY(0) !important;
}

/* ----------------------------------------
   FOOTER — padding para não ser coberto
   
   Precisa de espaço para:
   - Bottom nav: 56px
   - Sticky bar quando visível: ~60px
   - Folga: 16px
   
   Usa o mínimo (bottom nav) pois o sticky bar
   só aparece no single enquanto rola a página,
   e some quando o CTA final fica visível.
   ---------------------------------------- */

.m-footer {
    margin-top: var(--space-32) !important;
    border-top: 1px solid var(--color-border) !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px) !important;
}

.m-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-16) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    text-align: center;
}

.m-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4) var(--space-16);
}

.m-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.m-footer-links a:hover {
    color: rgba(255,255,255,0.6);
}

.m-footer-disclaimer {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    line-height: 1.5;
    max-width: 480px;
    margin: 0;
}

.m-footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.15);
    margin: 0;
}

/* Desktop: mais espaçado horizontalmente */
@media (min-width: 768px) {
    .m-footer-inner {
        padding: var(--space-20) var(--space-24) 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        flex-wrap: wrap;
        gap: var(--space-16);
    }

    .m-footer-links { order: 1; }
    .m-footer-disclaimer { order: 2; flex: 1; text-align: center; max-width: none; }
    .m-footer-copy { order: 3; white-space: nowrap; }
}

/* ----------------------------------------
   APP SHELL — padding-bottom global
   
   Todo conteúdo da página precisa de espaço
   na base para não ficar atrás do bottom nav.
   O footer tem seu próprio padding, mas o
   .m-app-shell precisa do mínimo para páginas
   sem footer (como buscas, categorias).
   ---------------------------------------- */

.m-app-shell {
    padding-top: 0 !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px) !important;
}

/* ----------------------------------------
   M-APP (container da home)
   Mesmo padding-bottom do app-shell
   ---------------------------------------- */

.m-app {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
}

/* ============================================================
   PATCH: Espaçamento footer + sticky bar
   Colar ao final do app.css
   ============================================================ */

/*
   Hierarquia de alturas fixas na base da tela:
   - Bottom nav:  56px  (z-40)
   - Sticky bar:  ~60px (z-45, só aparece no single)
   
   O footer precisa de padding-bottom = bottom nav apenas.
   A sticky bar fica ACIMA do bottom nav, não acima do footer.
   
   O espaço excessivo vinha de padding-bottom duplicado em:
   - .m-app-shell  (tinha 56+16px)
   - .m-app        (tinha 56+16px)
   - .m-footer     (tinha 56+16px)
   → triplo espaço desnecessário
*/

/* App shell: zero padding-bottom — o footer cuida do espaço */
.m-app-shell {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Container da home: zero padding-bottom — o footer cuida */
.m-app {
    padding-bottom: 0 !important;
}

/* Footer: padding-bottom exato = bottom nav + safe area + folga mínima */
.m-footer {
    margin-top: var(--space-24) !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 8px) !important;
    border-top: 1px solid var(--color-border) !important;
}

.m-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-16) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    text-align: center;
}

.m-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
}

.m-footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.m-footer-links a:hover {
    color: rgba(255,255,255,0.5);
}

.m-footer-disclaimer {
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    line-height: 1.5;
    max-width: 440px;
    margin: 0;
}

.m-footer-copy {
    font-size: 10px;
    color: rgba(255,255,255,0.12);
    margin: 0;
}

/* Desktop: linha horizontal compacta */
@media (min-width: 768px) {
    .m-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        flex-wrap: wrap;
        gap: var(--space-12);
        padding: var(--space-16) var(--space-24) 0;
    }

    .m-footer-links   { order: 1; }
    .m-footer-disclaimer { order: 2; flex: 1; text-align: center; max-width: none; }
    .m-footer-copy    { order: 3; white-space: nowrap; }
}

/* Sticky bar: posicionada exatamente acima do bottom nav */
.m-sticky-bar {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
}

.m-footer {
    padding-bottom: calc(56px + 60px + env(safe-area-inset-bottom, 0px) + 12px) !important;
}

/* ============================================================
   PATCH: Footer layout organizado
   Colar ao final do app.css
   ============================================================ */

.m-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-16) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    text-align: center;
}

/* Linha 1: links de navegação */
.m-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 0;
}

.m-footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    padding: 4px 12px;
    transition: color 0.2s;
    /* Separador entre links */
    border-right: 1px solid rgba(255,255,255,0.1);
}

.m-footer-links a:last-child {
    border-right: none;
}

.m-footer-links a:hover {
    color: rgba(255,255,255,0.6);
}

/* Linha 2: disclaimer */
.m-footer-disclaimer {
    font-size: 10px;
    color: rgba(255,255,255,0.18);
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
}

/* Linha 3: copyright */
.m-footer-copy {
    font-size: 10px;
    color: rgba(255,255,255,0.12);
    margin: 0;
}

/* Desktop: duas linhas empilhadas, centralizadas */
@media (min-width: 768px) {
    .m-footer-inner {
        padding: var(--space-20) var(--space-24) 0;
        flex-direction: column;   /* empilhado, não horizontal */
        align-items: center;
        text-align: center;
        gap: var(--space-10);
    }

    /* Reseta order para sequência natural */
    .m-footer-links      { order: 1; }
    .m-footer-disclaimer { order: 2; max-width: 600px; }
    .m-footer-copy       { order: 3; }
}

/* ============================================================
   ARCHIVE PAGE — Header + Grid
   Colar ao final do app.css
   ============================================================ */

.archive-header {
    padding: var(--space-20) var(--space-16) var(--space-16);
    max-width: 1280px;
    margin: 0 auto;
}

.archive-type {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.archive-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.archive-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: var(--space-8);
}

.archive-count {
    font-size: 13px;
    color: var(--color-muted);
}

/* Chips na archive */
.chips-archive {
    padding: var(--space-8) var(--space-16);
    max-width: 1280px;
    margin: 0 auto;
}

/* Feed da archive: mesma largura do restante */
.archive-header + .chips-archive + .feed,
.archive-header + .feed {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-16);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-32) 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 8px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-muted);
    transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Empty state */
.archive-empty {
    text-align: center;
    padding: var(--space-48) var(--space-16);
    color: var(--color-muted);
}

.empty-icon {
    display: block;
    font-size: 48px;
    margin-bottom: var(--space-16);
    opacity: 0.3;
}

.btn-back {
    display: inline-block;
    margin-top: var(--space-16);
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
}

@media (min-width: 768px) {
    .archive-header { padding: var(--space-24) var(--space-24) var(--space-16); }
    .archive-title  { font-size: 36px; }
    .chips-archive  { padding: var(--space-8) var(--space-24); }

    .archive-header + .chips-archive + .feed,
    .archive-header + .feed {
        padding: 0 var(--space-24);
    }
}

/* ============================================================
   CATEGORY CARDS — Página /categorias
   Colar ao final do app.css
   ============================================================ */

/* Grid de categorias: 2 colunas no mobile, mais no desktop */
.cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (min-width: 540px)  { .cat-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 900px)  { .cat-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(5, 1fr) !important; } }

/* Card de categoria */
.cat-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Imagem */
.cat-card__media {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--color-surface-2);
    overflow: hidden;
}

.cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__media img {
    transform: scale(1.05);
}

/* Placeholder quando não há imagem */
.cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: var(--color-primary);
    background: rgba(168, 85, 247, 0.08);
    letter-spacing: -1px;
}

/* Info */
.cat-card__info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.cat-card__count {
    font-size: 11px;
    color: var(--color-muted);
}

/* ============================================================
   SEARCH PAGE — /buscar
   Colar ao final do app.css
   ============================================================ */

.search-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-16);
}

@media (min-width: 768px) {
    .search-page { padding: 0 var(--space-24); }
}

/* ----------------------------------------
   SEARCH BAR
   ---------------------------------------- */

.search-bar-wrapper {
    padding: var(--space-16) 0 var(--space-12);
    position: sticky;
    top: 72px;              /* abaixo do header */
    z-index: 30;
    background: #0f1012;
    padding-bottom: var(--space-12);
}

@media (min-width: 480px) { .search-bar-wrapper { top: 68px; } }
@media (min-width: 768px) { .search-bar-wrapper { top: 72px; } }

.search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0 var(--space-16);
    height: 52px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.search-bar__icon {
    width: 20px; height: 20px;
    color: var(--color-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-bar:focus-within .search-bar__icon {
    color: var(--color-primary);
}

.search-bar__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;          /* 16px evita zoom no iOS */
    font-family: inherit;
    color: var(--color-text);
    line-height: 1;
    min-width: 0;
}

.search-bar__input::placeholder {
    color: rgba(255,255,255,0.25);
}

/* Remove o ícone nativo de busca do Safari/Chrome */
.search-bar__input::-webkit-search-decoration,
.search-bar__input::-webkit-search-cancel-button { display: none; }

.search-bar__clear {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-bar__clear svg {
    width: 14px; height: 14px;
    color: var(--color-muted);
}

.search-bar__clear:hover { background: rgba(255,255,255,0.12); }

/* ----------------------------------------
   SUGESTÕES (estado inicial)
   ---------------------------------------- */

.search-suggestions {
    padding: var(--space-8) 0 var(--space-20);
}

.search-suggestions__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    margin-bottom: var(--space-12);
    font-weight: 600;
}

/* ----------------------------------------
   RESULTADOS
   ---------------------------------------- */

.search-results__header {
    font-size: 13px;
    color: var(--color-muted);
    padding: var(--space-8) 0 var(--space-16);
}

/* ----------------------------------------
   LOADING
   ---------------------------------------- */

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    padding: var(--space-48) 0;
    color: var(--color-muted);
    font-size: 14px;
}

/* ----------------------------------------
   EMPTY STATE
   ---------------------------------------- */

.search-empty {
    text-align: center;
    padding: var(--space-40) var(--space-16);
}

.search-empty .empty-icon {
    display: block;
    font-size: 48px;
    margin-bottom: var(--space-16);
    opacity: 0.25;
}

.search-empty p {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.search-empty__tip {
    font-size: 13px;
    color: var(--color-muted) !important;
}

/* ----------------------------------------
   LOAD MORE
   ---------------------------------------- */

.search-load-more {
    display: flex;
    justify-content: center;
    padding: var(--space-24) 0 var(--space-32);
}

.search-load-more__btn {
    padding: 12px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.search-load-more__btn:hover {
    background: var(--color-surface-2);
    border-color: rgba(168,85,247,0.3);
}

/* ============================================================
   PATCH: Feed Ad Card v3 — banner full-height + SEO links
   Colar ao final do app.css
   ============================================================ */

/* Estrutura igual ao .card de produto */
.feed-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    grid-column: auto !important;
    padding: 0;
    min-height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* Área de imagem: mesmo aspect-ratio 1:1 do .card-media */
.feed-ad-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-surface-2);
}

/* Banner preenche 100% da área de imagem */
.feed-ad-card__media .mas-ad-slot,
.feed-ad-card__media .mas-ad-slot--static {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
}

.feed-ad-card__media .mas-ad-slot__box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100%;
}

.feed-ad-card__media .mas-ad-slot__label { display: none !important; }

.feed-ad-card__media .mas-ad-slot__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.feed-ad-card__media .mas-ad-slot img,
.feed-ad-card__media .mas-ad-slot__link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    max-width: none !important;
}

/* Área do texto: igual ao card-footer em altura e padding */
.feed-ad-card__body {
    padding: var(--space-12) var(--space-16) var(--space-16);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    flex: 1;
}

/* Label "Publicidade" discreta */
.feed-ad-card__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.2);
    font-weight: 500;
    display: block;
    margin: 0;
}

/* Links de categoria para SEO */
.feed-ad-card__seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: auto;
}

.feed-ad-card__seo-link {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.feed-ad-card__seo-link:hover {
    color: var(--color-primary);
    border-color: rgba(168,85,247,0.3);
}

/* Mobile: full width */
@media (max-width: 539px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}

/* Tablet: full width */
@media (min-width: 540px) and (max-width: 899px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}

/* ============================================================
   PATCH: Feed Ad Card v4 — design consistente com card produto
   Colar ao final do app.css
   ============================================================ */

.feed-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    grid-column: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.feed-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* ----------------------------------------
   Área da imagem — aspect-ratio 1:1
   igual ao .card-media
   ---------------------------------------- */
.feed-ad-card__media {
    position: relative;         /* contexto para o banner */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-surface-2);
    margin: 0;
    /* O banner renderiza dentro aqui */
}

/* Faz o mas-ad-slot preencher 100% do figure */
.feed-ad-card__media .mas-ad-slot,
.feed-ad-card__media .mas-ad-slot--static {
    display: block;
    width: 100%;
    height: 100%;
}

.feed-ad-card__media .mas-ad-slot__label { display: none !important; }

.feed-ad-card__media .mas-ad-slot__box {
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: block;
}

.feed-ad-card__media .mas-ad-slot__link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    overflow: hidden;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.feed-ad-card__media .mas-ad-slot img,
.feed-ad-card__media .mas-ad-slot__link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    max-width: none !important;
}

/* ----------------------------------------
   Header — igual ao .card-header
   ---------------------------------------- */
.feed-ad-card__header {
    padding: var(--space-12) var(--space-16) 0;
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-muted);
}

.feed-ad-card__sponsored {
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-primary);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ----------------------------------------
   Título — igual ao .card-title
   ---------------------------------------- */
.feed-ad-card__title {
    font-size: 16px;
    font-weight: 700;
    padding: var(--space-8) var(--space-16);
    line-height: 1.25;
    color: var(--color-text);
    flex-grow: 1;
}

/* ----------------------------------------
   Badges de categoria — SEO interno
   ---------------------------------------- */
.feed-ad-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 0 var(--space-16) var(--space-8);
}

.feed-ad-card__cat-link {
    font-size: 11px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.feed-ad-card__cat-link:hover {
    color: var(--color-primary);
    border-color: rgba(168,85,247,0.3);
}

/* ----------------------------------------
   Footer — igual ao .card-footer
   ---------------------------------------- */
.feed-ad-card__footer {
    padding: var(--space-12) var(--space-16) var(--space-16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: auto;
}

.feed-ad-card__cta {
    font-weight: 700;
    color: #fff;
}

/* Mobile: full width */
@media (max-width: 539px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}

/* Tablet: full width */
@media (min-width: 540px) and (max-width: 899px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}

/* ============================================================
   PATCH DEFINITIVO: Feed Ad Card — banner visível
   Colar ao final do app.css
   ============================================================ */

/*
   Problema: .feed-ad-card__media tem aspect-ratio 1:1 mas
   os filhos não herdam a altura porque <figure> não é
   flex/grid container. Solução: position relative no pai
   e position absolute nos filhos para preencher 100%.
*/

.feed-ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    grid-column: auto !important;
    padding: 0;
    min-height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

/* Área da imagem: aspect-ratio define a altura, position relative é o contexto */
.feed-ad-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-surface-2);
    overflow: hidden;
    display: block;
    width: 100%;
}

/* mas-ad-slot ocupa 100% via position absolute */
.feed-ad-card__media .mas-ad-slot,
.feed-ad-card__media .mas-ad-slot--static {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.feed-ad-card__media .mas-ad-slot__label {
    display: none !important;
}

.feed-ad-card__media .mas-ad-slot__box {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.feed-ad-card__media .mas-ad-slot__link {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.feed-ad-card__media .mas-ad-slot img,
.feed-ad-card__media .mas-ad-slot__link img {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    max-width: none !important;
}

/* Header — igual ao .card-header */
.feed-ad-card__header {
    padding: var(--space-12) var(--space-16) 0;
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.feed-ad-card__sponsored {
    background: rgba(168,85,247,0.12);
    color: var(--color-primary);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Título — igual ao .card-title */
.feed-ad-card__title {
    font-size: 16px;
    font-weight: 700;
    padding: var(--space-8) var(--space-16);
    line-height: 1.25;
    color: var(--color-text);
    flex-grow: 1;
}

/* Badges de categoria — SEO */
.feed-ad-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 0 var(--space-16) var(--space-8);
}

.feed-ad-card__cat-link {
    font-size: 11px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.feed-ad-card__cat-link:hover {
    color: var(--color-primary);
    border-color: rgba(168,85,247,0.3);
}

/* Footer — igual ao .card-footer */
.feed-ad-card__footer {
    padding: var(--space-12) var(--space-16) var(--space-16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: auto;
}

.feed-ad-card__cta {
    font-weight: 700;
    color: #fff;
}

/* Mobile: full width */
@media (max-width: 539px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}

/* Tablet: full width */
@media (min-width: 540px) and (max-width: 899px) {
    .feed-ad-card { grid-column: 1 / -1 !important; }
}