/* ============================================
   GPI Trailers — Product Page Print Stylesheet
   Optimized for one-page PDF info sheets.
   ============================================ */

@media print {
  /* Reset page basics */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: letter;
    margin: 0.6in;
  }

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

  /* Hide interactive / non-essential page chrome */
  .site-header,
  .site-footer,
  .breadcrumb,
  .product-hero-gallery-controls,
  .product-hero-thumbs,
  .specs-tabs,
  .product-cta-buttons,
  .modal,
  .modal-overlay,
  .hamburger,
  .header-dealer-btn,
  .watermark,
  script {
    display: none !important;
  }

  /* Remove section padding so content fits one page */
  .product-single {
    padding: 0 !important;
  }

  .product-summary {
    display: block !important;
    margin-bottom: 0.4in;
  }

  .product-summary-info,
  .product-summary-visual {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Header block */
  .product-summary-info .product-eyebrow {
    color: #000 !important;
    font-size: 10pt;
    margin-bottom: 0.1in;
  }

  .product-summary-info h1 {
    font-size: 18pt;
    margin-bottom: 0.1in;
    line-height: 1.1;
  }

  .product-summary-info .product-subtitle {
    color: #333 !important;
    font-size: 12pt;
    margin-bottom: 0.1in;
  }

  .product-price {
    color: #000 !important;
    font-size: 16pt;
    margin-bottom: 0.15in;
  }

  .product-summary-info .product-description {
    color: #000 !important;
    max-width: 100% !important;
    margin-bottom: 0.2in;
  }

  /* Hide the inline quick-spec list (we'll print the full table instead) */
  .product-summary-specs {
    display: none !important;
  }

  /* Image panel */
  .product-summary-visual {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    min-height: auto !important;
    margin-bottom: 0.25in;
    page-break-inside: avoid;
  }

  .product-summary-visual .gallery-main-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 3.2in !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
  }

  /* Specs section: show both panels as one clean table */
  .specs-section {
    padding: 0 !important;
    margin-top: 0.2in;
  }

  .specs-panel {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .specs-panel + .specs-panel {
    margin-top: 0.15in !important;
  }

  .specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10.5pt;
  }

  .specs-table tr {
    border-bottom: 1px solid #ccc !important;
    background: none !important;
  }

  .specs-table td {
    padding: 0.08in 0.12in !important;
    color: #000 !important;
    border: none !important;
  }

  .specs-table td:first-child {
    color: #333 !important;
    width: 45% !important;
    font-weight: 700 !important;
  }

  .specs-table td:last-child {
    font-weight: 500 !important;
  }

  /* Remove link styling */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  a[href]:after {
    content: "" !important;
  }

  /* Avoid awkward page breaks inside key blocks */
  .product-summary-info,
  .product-summary-visual,
  .specs-section,
  .specs-panel,
  .specs-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
