@media print {
  /* Hide non-essential elements */
  header, footer, nav,
  .bottom-nav, .scroll-to-top, .whatsapp-fab,
  .cart-drawer-overlay, .cart-drawer-content,
  .sf-topbar, .sf-subnav, .sf-mobile-bar,
  .am-overlay, .skip-to-content,
  .breadcrumb, .btn, button,
  .product-action-1, .product-badges,
  .cart-fab, .route-loader {
    display: none !important;
  }

  /* Reset backgrounds and colors for ink saving */
  body {
    background: white !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  /* Ensure images print properly */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  table, figure, img {
    page-break-inside: avoid;
  }

  /* Invoice/statement print optimization */
  .invoice-container,
  .statement-container,
  .order-details {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Main content full width */
  .main, .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Remove shadows and borders for clean print */
  .card, .co-card, .form-card, .info-box, .loc-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
