/*
 * WooCommerce Full Product Page Printer - Print Styles
 */

/* Hide un-necessary elements globally */
.wcfpp-print-only,
.wcfpp-print-logo {
  display: none;
}

@media print {
  /* Hide theme elements */
  header,
  footer,
  aside,
  nav,
  .site-header,
  .site-footer,
  .sidebar,
  #sidebar,
  .woocommerce-breadcrumb,
  .woocommerce-notices-wrapper,
  .woocommerce-store-notice,
  #wcfpp-print-btn,
  .product_navigation,
  .up-sells,
  .related.products,
  #comments,
  #respond,
  .quantity,
  .single_add_to_cart_button,
  .cart,
  .product_meta,
  .social-sharing,
  .entry-summary .yith-wcwl-add-to-wishlist,
  .compare-button,
  ul.tabs.wc-tabs,
  .screen-reader-text,
  .banner-area.page-banner,
  .td-woo-banner {
    display: none !important;
  }

  /* Show print-only elements */
  .wcfpp-print-only {
    display: block !important;
  }

  .wcfpp-print-logo {
    display: block !important;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    float: none !important;
  }

  .wcfpp-print-logo img {
    max-width: 250px !important;
    height: auto !important;
    display: inline-block !important;
  }

  /* Reset layout for print */
  body,
  html {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .container,
  .container-fluid,
  .site-main,
  .content-area,
  #content,
  .product,
  main,
  article,
  .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: visible !important;
  }

  [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Product layout adjustments */
  .woocommerce-product-gallery {
    width: 35% !important;
    float: left !important;
    margin-right: 5% !important;
    margin-top: 0 !important;
  }

  .summary.entry-summary {
    width: 60% !important;
    float: left !important;
    margin-top: 0 !important;
  }

  .product::after,
  .summary::after {
    content: "";
    display: table;
    clear: both;
  }

  h1.product_title {
    font-size: 20pt !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #2c3e50 !important;
  }

  .price {
    font-size: 16pt !important;
    color: #e67e22 !important;
    font-weight: bold;
    margin-bottom: 20px !important;
    display: block;
  }

  /* Beautify Tables */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border: 1px solid #dee2e6 !important;
    font-size: 10pt !important;
  }

  table th,
  table td {
    padding: 12px 15px !important;
    text-align: left !important;
    border: 1px solid #dee2e6 !important;
  }

  /* Header styling if present */
  table thead th {
    background-color: #f8f9fa !important;
    color: #333 !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Row styling */
  table tr:nth-child(even) {
    background-color: #fcfcfc !important;
  }

  /* Label column styling (first column) */
  table tr td:first-child,
  table.shop_attributes th {
    background-color: #f8f9fa !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    width: 30% !important;
  }

  /* Value column styling (second column) */
  table tr td:last-child,
  table.shop_attributes td {
    color: #555 !important;
  }

  /* Specific WooCommerce attribute table tweaks */
  table.shop_attributes {
    border: none !important;
    border-top: 1px solid #eee !important;
  }

  table.shop_attributes tr {
    border-bottom: 1px solid #eee !important;
  }

  table.shop_attributes th,
  table.shop_attributes td {
    border: none !important;
    padding: 10px 0 !important;
  }

  /* Typography */
  body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  p {
    margin-bottom: 15px !important;
  }

  /* Force all tabs/sections to be visible */
  .woocommerce-tabs,
  .woocommerce-tabs .woocommerce-Tabs-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
  }

  .wcfpp-print-title {
    display: block !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2c3e50 !important;
    font-size: 18pt !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    clear: both !important;
    text-transform: capitalize;
  }

  @page {
    margin: 1.5cm;
  }
}
