/* Print Styles for indirimli.com */

@media print {
  /* Hide interactive and non-essential elements */
  header,
  footer,
  nav,
  #cookie-consent,
  #toast-container,
  .compare-widget,
  .live-chat,
  .quick-view-modal,
  .theme-toggle,
  .share-buttons,
  .price-alert-form,
  .favorite-btn,
  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-ghost {
    display: none !important;
  }

  /* Ensure main content is visible */
  main,
  #main-content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Comparison table optimizations */
  .comparison-table,
  .compare-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .comparison-table th,
  .comparison-table td,
  .compare-table th,
  .compare-table td {
    border: 1px solid #000 !important;
    padding: 8px !important;
    text-align: left !important;
  }

  /* Product cards to list items */
  .product-card,
  .card {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
  }

  /* Links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="/"]::after {
    content: " (https://indirimli.com" attr(href) ")";
  }

  /* Page breaks */
  h1, h2, h3 {
    break-after: avoid;
  }

  table, figure, img {
    break-inside: avoid;
  }

  /* Background colors to white for ink saving */
  body {
    background: white !important;
    color: black !important;
  }

  .bg-white,
  .bg-secondary-50,
  .bg-secondary-100,
  .bg-primary-50,
  .bg-green-50,
  .bg-blue-50 {
    background: white !important;
  }

  /* Ensure images are not too large */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Show product prices clearly */
  .price {
    font-size: 1.2em !important;
    font-weight: bold !important;
  }
}
