/* ============================================================
   WS Magazine — CSS Principal
   Ultra-leve, mobile-first, sem dependências externas
   ============================================================ */

:root {
  --primary:    #028102;
  --primary-d:  #014401;
  --accent:     #10b2d9;
  --dark:       #1a1a2e;
  --dark2:      #16213e;
  --gray:       #6c757d;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --border:     #e9ecef;
  --text:       #2d2d2d;
  --text-light: #555;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-h:   0 6px 24px rgba(0,0,0,.14);
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'Courier New', monospace;
  --max-w:      1200px;
  --transition: .22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-d); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
#site-header {
  background: var(--dark);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; max-width: var(--max-w); margin: 0 auto;
}
.site-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--white) !important;
  letter-spacing: -.5px;
}
.site-logo span { color: var(--primary); }

/* Navegação desktop */
.nav-menu { display: flex; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px; border-radius: 6px;
  font-size: .92rem; font-weight: 500;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--primary); color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* Search bar header */
.header-search { display: flex; align-items: center; gap: 8px; }
.header-search input {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); padding: 7px 14px; border-radius: 20px;
  font-size: .88rem; outline: none; width: 200px;
  transition: background var(--transition), width var(--transition);
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { background: rgba(255,255,255,.2); width: 240px; }
.header-search button {
  background: var(--primary); border: none; color: white;
  padding: 7px 14px; border-radius: 20px; cursor: pointer;
  font-size: .88rem; font-weight: 600;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--primary-d); }

/* ---- Hero / Banner ---- */
.hero-banner {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 60%, #3a0a12 100%);
  color: var(--white); padding: 56px 16px 52px;
  text-align: center;
}
.hero-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.25;
  margin-bottom: 14px;
}
.hero-banner h1 span { color: var(--accent); }
.hero-banner p {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  max-width: 560px; margin: 0 auto 24px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 28px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ---- Categories row ---- */
.categories-row {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 0; overflow-x: auto;
}
.cats-inner {
  display: flex; gap: 10px; padding: 0 16px;
  max-width: var(--max-w); margin: 0 auto;
  white-space: nowrap;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: var(--light); border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: all var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ---- Main layout ---- */
.main-wrap { padding: 36px 0 56px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
}

/* ---- Section titles ---- */
.section-title {
  font-size: 1.35rem; font-weight: 800; color: var(--dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: flex; align-items: center; gap: 8px;
}

/* ---- Article cards grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }

.card-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--border), var(--light));
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.article-card:hover .card-thumb img { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: white;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .4px;
}

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: .75rem; color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px;
}
.card-title {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
  font-size: .86rem; color: var(--text-light); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--gray);
}
.card-read-btn {
  background: var(--primary); color: white !important;
  padding: 6px 14px; border-radius: 6px; font-size: .82rem; font-weight: 700;
}
.card-read-btn:hover { background: var(--primary-d); }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.widget-title {
  font-size: 1rem; font-weight: 800; color: var(--dark);
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* Popular posts widget */
.popular-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  min-width: 26px; height: 26px; background: var(--primary);
  color: white; border-radius: 50%; font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.popular-title {
  font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--text);
}
.popular-title a { color: var(--text); }
.popular-title a:hover { color: var(--primary); }

/* CTA widget */
.widget-cta {
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  color: white; text-align: center;
}
.widget-cta .widget-title { color: white; border-color: var(--accent); }
.widget-cta p { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.btn-cta {
  display: block; background: var(--primary); color: white !important;
  padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: .92rem;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 8px;
}
.btn-cta:hover { background: var(--primary-d); transform: scale(1.02); }
.btn-cta.shopee { background: #ee4d2d; }
.btn-cta.shopee:hover { background: #c73f23; }

/* ---- Single article page ---- */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.article-header { padding: 36px 0 24px; }
.article-breadcrumb {
  font-size: .82rem; color: var(--gray); margin-bottom: 12px;
}
.article-breadcrumb a { color: var(--gray); }
.article-breadcrumb a:hover { color: var(--primary); }

.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.2; color: var(--dark);
  margin-bottom: 14px;
}
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: var(--gray); margin-bottom: 20px;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-thumb {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/7;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sumário */
.toc-box {
  background: var(--light); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 18px 20px; margin: 28px 0;
}
.toc-box h3 { font-size: .95rem; font-weight: 800; margin-bottom: 10px; }
.toc-box ol { padding-left: 18px; }
.toc-box li { padding: 3px 0; }
.toc-box a { font-size: .9rem; font-weight: 500; }

/* Conteúdo do artigo */
.article-content { line-height: 1.75; color: var(--text); }
.article-content h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--dark);
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content strong { font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid var(--accent); background: #fff8f0;
  padding: 14px 20px; margin: 20px 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-light);
}

/* ---- Pagination ---- */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 32px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--border);
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Footer ---- */
#site-footer {
  background: var(--dark); color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 36px;
}
.footer-col h4 {
  color: var(--white); font-size: 1rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.65); font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { font-size: .88rem; line-height: 1.7; }

.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.affiliate-disclosure {
  background: rgba(255,255,255,.06); border-radius: 6px;
  padding: 12px 16px; font-size: .8rem; margin-top: 12px;
  color: rgba(255,255,255,.5); text-align: center;
}

/* ---- Utilities ---- */
.badge-new { background: #28a745; color: white; }
.badge-top { background: var(--primary); color: white; }
.badge-offer { background: var(--accent); color: var(--dark); }

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---- Skeleton loader ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; } /* sidebar oculta em mobile */
}

@media (max-width: 680px) {
  .nav-menu { display: none; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark2); padding: 12px; z-index: 999; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .header-search input { width: 140px; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .header-search { display: none; }
  .hero-banner { padding: 36px 16px 32px; }
  .product-btns { flex-direction: column; }
  .btn-buy { min-width: unset; }
}

/* ---- Print ---- */
@media print {
  #site-header, #site-footer, .sidebar, .product-btns { display: none; }
  .article-content { font-size: 12pt; }
}


/* ============================================================
   ARTIGO — Estrutura completa (coompare style)
   ============================================================ */

.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.art-container { padding: 28px 16px 56px; }

/* ── Cabeçalho ── */
.art-header { margin-bottom: 24px; }
.art-meta-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .8rem; color: var(--gray); margin-bottom: 10px;
}
.art-cat-pill {
  background: var(--primary); color: white;
  padding: 3px 10px; border-radius: 20px;
  font-size: .74rem; font-weight: 700;
}
.art-title {
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-weight: 800; line-height: 1.22; color: var(--dark);
  margin-bottom: 12px;
}
.art-excerpt {
  font-size: 1.04rem; color: var(--text-light);
  line-height: 1.72; margin-bottom: 18px;
}
.art-thumb {
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 24px; aspect-ratio: 16/7;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Conteúdo de texto ── */
.art-intro, .art-content { line-height: 1.78; color: var(--text); margin-bottom: 28px; }
.art-content h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--dark);
  margin: 32px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.art-content h3 { font-size: 1.12rem; font-weight: 700; margin: 20px 0 8px; }
.art-content p  { margin-bottom: 14px; }
.art-content ul,
.art-content ol { padding-left: 22px; margin-bottom: 14px; }
.art-content ul { list-style: disc; }
.art-content ol { list-style: decimal; }
.art-content li { margin-bottom: 5px; }
.art-content strong { font-weight: 700; }
.art-content blockquote {
  border-left: 4px solid var(--accent); background: #f0faff;
  padding: 12px 18px; margin: 18px 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-light);
}

/* TOC */
.toc-box {
  background: var(--light); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 16px 20px; margin: 0 0 24px;
}
.toc-box h3 { font-size: .95rem; font-weight: 800; margin-bottom: 10px; }
.toc-box ol { padding-left: 18px; }
.toc-box li { padding: 3px 0; }
.toc-box a  { font-size: .9rem; font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   LISTA RESUMO (psb) — aparece logo após a intro
   ════════════════════════════════════════════════════════════ */
.product-summary-box {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 0 0 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.psb-title {
  background: var(--primary); color: white;
  font-size: .98rem; font-weight: 800;
  padding: 11px 18px; margin: 0;
}
.psb-list { padding: 4px 0; }

.psb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.psb-item:last-child { border-bottom: none; }
.psb-item:hover { background: #f4fef4; }

.psb-thumb {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.psb-thumb:hover { opacity: .85; }
.psb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.psb-thumb-placeholder {
  font-size: 1.5rem; font-weight: 900; color: var(--primary);
}

.psb-info { flex: 1; min-width: 0; }
.psb-name {
  display: flex; align-items: baseline; gap: 6px;
  font-size: .91rem; font-weight: 700; color: var(--dark);
  line-height: 1.3; margin-bottom: 5px; text-decoration: none;
  transition: color var(--transition);
}
.psb-name:hover { color: var(--primary); }
.psb-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: .72rem; font-weight: 800; flex-shrink: 0;
}
.psb-badge {
  display: inline-block; background: var(--accent); color: white;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
  margin-top: 3px; letter-spacing: .3px;
}
.psb-stars {
  display: block; color: #f4c430;
  font-size: .82rem; margin-top: 3px; letter-spacing: 1px;
}
.psb-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 15px; border-radius: 8px;
  background: var(--primary); color: white !important;
  font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0,120,0,.22);
  text-decoration: none;
}
.psb-btn:hover { background: var(--primary-d); transform: scale(1.04); }

/* ════════════════════════════════════════════════════════════
   CARDS DETALHADOS (pdc) — estilo coompare com sanfona
   ════════════════════════════════════════════════════════════ */
.products-detail { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }

.pdc {
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: box-shadow var(--transition);
}
.pdc:hover { box-shadow: var(--shadow-h); }

/* Parte sempre visível */
.pdc-top {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 18px 16px;
}

.pdc-num {
  min-width: 34px; height: 34px; border-radius: 8px;
  background: var(--primary); color: white;
  font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* Imagem clicável */
.pdc-img-link {
  flex-shrink: 0; display: block;
  width: 120px; height: 120px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light);
  transition: opacity var(--transition);
}
.pdc-img-link:hover { opacity: .88; }
.pdc-img {
  width: 100%; height: 100%; object-fit: contain;
}

.pdc-info { flex: 1; min-width: 0; }
.pdc-name {
  font-size: 1.06rem; font-weight: 800; color: var(--dark);
  line-height: 1.3; margin: 0 0 6px;
}
.pdc-badge {
  display: inline-block; background: var(--accent); color: white;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 7px;
}
.pdc-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pdc-stars  { color: #f4c430; font-size: .92rem; letter-spacing: 1px; }
.pdc-rating-num { font-size: .82rem; font-weight: 700; color: var(--gray); }
.pdc-price {
  font-size: 1.25rem; font-weight: 800; color: var(--primary);
  margin-bottom: 12px;
}
.pdc-price small { font-size: .75rem; font-weight: 400; color: var(--gray); margin-left: 4px; }

/* Botões CTA */
.pdc-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pdc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; flex: 1; min-width: 140px;
  padding: 11px 16px; border-radius: 8px;
  font-size: .88rem; font-weight: 800;
  color: white !important; text-decoration: none;
  transition: all var(--transition); text-align: center;
}
.pdc-btn-ml {
  background: #ffe600; color: #222 !important;
  box-shadow: 0 2px 8px rgba(255,230,0,.3);
}
.pdc-btn-ml:hover  { background: #e6cf00; transform: translateY(-2px); }
.pdc-btn-shp { background: #ee4d2d; box-shadow: 0 2px 8px rgba(238,77,45,.25); }
.pdc-btn-shp:hover { background: #c73f23; transform: translateY(-2px); }

/* ── Descrição — sempre visível (primeiras linhas) ── */
.pdc-desc-wrap {
  padding: 14px 18px 0;
}
.pdc-desc {
  font-size: .93rem;
  color: var(--text-light);
  line-height: 1.78;
  margin: 0;
}
.pdc-desc p {
  margin: 0 0 10px;
}
.pdc-desc p:last-child {
  margin-bottom: 0;
}

/* Parte visível por padrão (preview = 3 linhas) */
.pdc-desc-preview {
  font-size: .93rem;
  color: var(--text-light);
  line-height: 1.78;
  /* 3 linhas visíveis: line-height(1.78) × font-size(.93rem≈14.88px) × 3 ≈ 79px */
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
  margin: 0;
}
/* Degradê suave no fim das 3 linhas */
.pdc-desc-preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2em;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

/* Parte oculta (restante do texto) */
.pdc-desc-more {
  font-size: .93rem;
  color: var(--text-light);
  line-height: 1.78;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease;
  margin: 0;
}
.pdc-desc-more p {
  margin: 0 0 10px;
}
.pdc-desc-more p:first-child {
  margin-top: 8px;
}

/* Quando aberto: remove degradê do preview e mostra o resto */
.pdc-desc-open .pdc-desc-preview::after {
  display: none;
}
.pdc-desc-open .pdc-desc-more {
  max-height: 2000px;
  opacity: 1;
}

/* ── Botão "Ver mais info" ── */
.pdc-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 18px 16px;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}
.pdc-toggle-btn:hover {
  background: var(--primary);
  color: white;
}
.pdc-toggle-btn .pdc-toggle-icon {
  font-size: .75rem;
  transition: transform .3s ease;
  display: inline-block;
}
.pdc-toggle-btn[aria-expanded="true"] .pdc-toggle-icon {
  transform: rotate(180deg);
}

/* Botões CTA dentro da área expandida */
.pdc-btns-inner {
  padding: 14px 18px 18px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}

/* Conteúdo do artigo abaixo dos produtos */
.art-body {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.art-body::before {
  content: '📄 Saiba mais sobre o tema';
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray);
  margin-bottom: 16px;
}

/* ── Relacionados ── */
.related-section { margin-top: 36px; }
.related-title {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.related-grid { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); }
.related-card { text-decoration: none; color: inherit; display: block; }
.related-card .card-title { color: var(--text); }
.related-card:hover .card-title { color: var(--primary); }
.card-thumb-placeholder {
  height: 100%; min-height: 110px;
  background: linear-gradient(135deg, var(--border), var(--light));
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pdc-top { gap: 10px; }
  .pdc-img-link { width: 80px; height: 80px; }
  .pdc-btn { min-width: unset; padding: 10px 10px; font-size: .8rem; }
  .psb-thumb { width: 58px; height: 58px; }
  .psb-btn { padding: 8px 10px; font-size: .72rem; }
  .psb-name { font-size: .83rem; }
  .art-meta-top { gap: 8px; }
}
@media (max-width: 420px) {
  .pdc-top { flex-wrap: wrap; }
  .pdc-img-link { width: 100%; height: 180px; order: -1; }
  .pdc-img { object-fit: contain; }
  .pdc-btns { flex-direction: column; }
  .pdc-btn { min-width: unset; }
}
