@media print {
  /* ===== صفحه ===== */
  @page {
    margin: 1.5cm;
    size: A4;
  }

  /* ===== پنهان‌سازی عناصر غیرضروری ===== */
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn,
  .skip-link,
  .breadcrumb,
  .article-share,
  .article-tags,
  .cta-box,
  .filter-bar,
  .pagination,
  .newsletter,
  .faq-tabs,
  .blog-tabs,
  .map-wrapper,
  .footer-bottom,
  .contact-methods,
  .pd-actions,
  .related-wrap,
  [data-no-print] {
    display: none !important;
  }

  /* ===== پایه ===== */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    font-size: 12pt;
    line-height: 1.5;
    background: #fff !important;
    color: #000 !important;
  }

  /* ===== تایپوگرافی ===== */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    break-after: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    color: #000 !important;
  }

  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }

  p, li {
    orphans: 3;
    widows: 3;
  }

  /* ===== لینک‌ها ===== */
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  a[href^="http"]::after,
  a[href^="/"]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    color: #555 !important;
    word-break: break-all;
  }
  a[href^="#"]::after,
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }

  /* ===== تصاویر ===== */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* ===== جداول ===== */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }
  th, td {
    border: 1px solid #999 !important;
    padding: 6pt 8pt;
    text-align: right;
  }
  th {
    background: #eee !important;
    font-weight: bold;
  }

  /* ===== کارت‌ها ===== */
  .blog-card,
  .product-card,
  .feature,
  .value,
  .method,
  .step,
  .category-card,
  .brand-card,
  .faq-item {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* ===== سکشن‌ها ===== */
  .page-section,
  section {
    padding: 12pt 0 !important;
    page-break-inside: auto;
  }

  /* ===== FAQ ===== */
  .faq-item summary {
    font-weight: bold;
  }
  .faq-item[open] .faq-answer,
  .faq-answer {
    display: block !important;
    padding: 6pt 12pt !important;
  }

  /* ===== مقاله ===== */
  .article-hero {
    max-height: 6cm;
    overflow: hidden;
    page-break-after: avoid;
  }
  .article-lead {
    border-right: 3px solid #000 !important;
    padding: 8pt 12pt !important;
  }
  .article-content h2 {
    border-right: 3px solid #000 !important;
    padding-right: 8pt !important;
  }

  /* ===== پیوند پاورقی ===== */
  .print-footer {
    display: block !important;
    margin-top: 20pt;
    padding-top: 10pt;
    border-top: 1px solid #999;
    font-size: 10pt;
    text-align: center;
    color: #555 !important;
  }
}

/* ===== کلاس‌های کمکی ===== */
.print-only { display: none; }
@media print {
  .print-only { display: block !important; }
  .no-print { display: none !important; }
}