/* ------------------------------------
PRINT STYLES
------------------------------------ */
@page {
  size: A4;
  margin: 20mm 10mm;
}

html,
body {
  font-size: 11px;
  background: #fff;
  overflow: visible;
  margin: 0 auto;
}

body.printversion {
  font-size: 11px;
  line-height: 16px;
}

body.printversion p {
  margin: 6px 0;
}

body.printversion a,
body.printversion .product_images {
  pointer-events: none !important;
}

body.printversion h1 {
  font-size: 30px;
  line-height: 40px;
  margin: 16px 0;
}

/* Hide unnecessary elements */
body.printversion #menu-location-product-menu,
body.printversion #menu-location-secondary-menu,
body.printversion
  .product_wrap
  .summary
  .sticky_desc
  .product_desc.overflow
  a.readmore,
body.printversion .gform_wrapper,
body.printversion .product_accordions,
body.printversion .product_deets_share,
body.printversion .related_products,
body.printversion .product_extra_modules,
body.printversion .insta,
body.printversion footer,
body.printversion .mega,
body.printversion .header_spacer,
body.printversion a.open_gallery,
body.printversion .product_deets,
body.printversion .price,
body.printversion .stock,
body.printversion form,
body.printversion .swipe_prompt,
body.printversion .nav_toggle,
body.printversion .desktop_hamburger,
body.printversion a.search_mobile,
body.printversion .button-group,
body.printversion #podium-website-widget,
body.printversion .search_mobile {
  display: none !important;
}

/* Header */
body.printversion header.main {
  position: static;
  text-align: left;
  display: block;
  height: auto;
  padding: 0 20px;
  box-shadow: none;
  margin: 0 0 50px 0;
}

body.printversion header.main .print_contact {
  float: right;
  text-align: right;
  font-size: 9px;
  line-height: 16px;
}

body.printversion header.main img {
  vertical-align: middle;
}

body.printversion header.main img.brand_image {
  width: 100px;
  height: 60px;
  object-fit: contain;
  margin-left: auto !important;
}

/* Print message */
body.printversion .print_message {
  text-align: center;
  padding: 30px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Product layout */
body.printversion .product_wrap {
  display: block;
}

body.printversion .product_wrap .product_images {
  width: auto;
  background: none;
  text-align: left;
  padding: 0 20px;
  padding-top: 3rem !important;
}

/* Gallery - show first 2 images only */
body.printversion .product_images_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
}

body.printversion .product_images_inner button {
  display: none !important;
}

body.printversion .product_images_inner a {
  display: none;
}

body.printversion .product_images_inner a:first-child,
body.printversion .product_images_inner a:nth-child(2) {
  display: block;
}

body.printversion .product_images_inner a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Summary section */
body.printversion .product_wrap .summary {
  width: auto;
  background: white;
}

body.printversion .product_wrap .summary .sticky_desc {
  padding: 20px;
}

body.printversion .product_wrap .summary .sticky_desc .product_desc {
  max-height: none;
  line-height: inherit;
  display: block;
}

body.printversion .product_wrap .summary .sticky_desc .product_desc p,
body.printversion .product_wrap .summary .sticky_desc .product_desc h1,
body.printversion .product_wrap .summary .sticky_desc .product_desc h2,
body.printversion .product_wrap .summary .sticky_desc .product_desc h3,
body.printversion .product_wrap .summary .sticky_desc .product_desc h4,
body.printversion .product_wrap .summary .sticky_desc .product_desc h5,
body.printversion .product_wrap .summary .sticky_desc .product_desc span {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body.printversion .product_wrap .summary iframe {
  display: none !important;
}

/* Print footer */
body.printversion .print_footer {
  width: 100%;
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: left;
  background: white;
}

body.printversion .print_footer .print_right {
  float: right;
}

/* Mobile - stack images vertically */
@media screen and (max-width: 767px) {
  body.printversion .product_images_inner {
    grid-template-columns: 1fr;
  }

  body.printversion header.main .print_contact {
    text-align: center;
    float: none;
    margin: 20px 0;
  }

  body.printversion header.main {
    text-align: center;
  }
}

/* Desktop dimensions */
@media screen and (min-width: 768px) {
  html,
  body {
    width: 210mm;
    height: 282mm;
  }
}

/* Actual print */
@media print {
  .print_message {
    display: none;
  }

  .product-desc {
    font-size: 10px !important;
  }

  html,
  body {
    width: 210mm;
    height: 282mm;
  }
}

/* Show product description under title in print mode */
body.printversion
  .product_accordions
  .accordion.open
  .accordion_content.product-details {
  display: block !important;
}

body.printversion .product_accordions {
  display: block !important;
}

body.printversion .sticky-cont {
  flex: none;
}

body.printversion
  .product_wrap
  .summary
  .sticky_desc
  .product_accordions
  .accordion {
  border-top: none;
}

body.printversion
  .product_wrap
  .summary
  .sticky_desc
  .product_accordions
  .accordion
  .accordion_content {
  padding-top: 10px;
  padding-bottom: 10px;
}

body.printversion .product_accordions .accordion_header {
  display: none !important;
}

body.printversion .product_accordions .accordion:not(.open),
body.printversion .product_accordions .accordion:not(:first-child) {
  display: none !important;
}

body.printversion .accordion_content {
  mask-image: none;
  -webkit-mask-image: none;
}

body.printversion .accordion_content {
  max-height: 100%;
}

body.printversion .product_wrap .summary .sticky_desc {
  height: 100%;
  max-height: fit-content;
}
