/**
 * UGATE Product Print Styles
 */

@page {
size: auto;
margin: 0.45in 0.5in 0.55in;
}

body.single-product {
background: #fff !important;
color: #111 !important;
font-size: 10.5pt !important;
line-height: 1.4 !important;
}

body.single-product #boxed-wrapper,
body.single-product #wrapper,
body.single-product #main,
body.single-product #main > .fusion-row,
body.single-product #content,
body.single-product .post-content {
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
background: #fff !important;
}

body.single-product a[href]::after {
content: none !important;
}


/* ==========================================================
   HEADER — LOGO + PHONE ONLY
   ========================================================== */

body.single-product .fusion-tb-header {
display: block !important;
position: relative !important;
min-height: 72px !important;
margin: 0 0 22px !important;
padding: 0 0 14px !important;
border-bottom: 2px solid #222 !important;
background: #fff !important;
}


/* Phone row */

body.single-product .section_header_customize_top {
display: block !important;
position: absolute !important;
top: 13px !important;
right: 0 !important;
width: auto !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
z-index: 20 !important;
}

body.single-product .section_header_customize_top > .fusion-builder-row,
body.single-product .section_header_customize_top .fusion-layout-column,
body.single-product .section_header_customize_top .fusion-column-wrapper {
display: block !important;
width: auto !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}

/* Hide all top header items except phone number */
body.single-product .section_header_customize_top .fusion-column-wrapper > div {
display: none !important;
}

body.single-product .section_header_customize_top .fusion-column-wrapper > .phone-header {
display: block !important;
}

body.single-product .phone-header,
body.single-product .phone-header p {
margin: 0 !important;
padding: 0 !important;
}

body.single-product .phone-header a {
color: #111 !important;
font-size: 17pt !important;
line-height: 1.2 !important;
font-weight: 700 !important;
text-decoration: none !important;
}


/* Logo row */

body.single-product .section_header_customize {
display: block !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
background: #fff !important;
}

body.single-product .section_header_customize > .fusion-builder-row {
display: block !important;
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}

/* Hide menu and search */
body.single-product .section_header_customize .fusion-builder-column-2,
body.single-product .section_header_customize .fusion-builder-column-3 {
display: none !important;
}

/* Logo column */
body.single-product .section_header_customize .fusion-builder-column-1 {
display: block !important;
width: 180px !important;
max-width: 180px !important;
margin: 0 !important;
padding: 0 !important;
}

body.single-product .section_header_customize .fusion-builder-column-1 .fusion-column-wrapper {
margin: 0 !important;
padding: 0 !important;
}

body.single-product .section_header_customize img {
display: block !important;
width: 150px !important;
max-width: 150px !important;
height: auto !important;
}


/* ==========================================================
   HIDE EVERYTHING WE DON'T WANT
   ========================================================== */

body.single-product .ugate-woo-breadcrumb,
body.single-product .ugate-woo-cta-col,

body.single-product .ugate-woo-related,
body.single-product .ugate-financing,
body.single-product .ugate-testimonials,

body.single-product .fusion-footer,
body.single-product .fusion-tb-footer,
body.single-product .fusion-footer-widget-area,
body.single-product .fusion-footer-copyright-area,

body.single-product #toTop,
body.single-product .to-top-container,
body.single-product .fusion-social-networks,
body.single-product .fusion-sliding-bar-wrapper {
display: none !important;
}


/*
 * Belt-and-suspenders:
 * once Equipment Description ends, hide every later sibling.
 */
body.single-product .post-content > .ugate-woo-description ~ * {
display: none !important;
}


/* ==========================================================
   PRODUCT TOP AREA
   ========================================================== */

body.single-product .ugate-woo-single {
display: block !important;
width: 100% !important;
margin: 0 !important;
padding: 0 0 18px !important;
background: #fff !important;
}

body.single-product .ugate-woo-single > .fusion-builder-row {
display: flex !important;
flex-direction: column !important;
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}


/* Product information first */

body.single-product .ugate-woo-info {
order: 1 !important;
display: block !important;
width: 100% !important;
max-width: none !important;
margin: 0 0 16px !important;
padding: 0 !important;
}

body.single-product .ugate-woo-info > .fusion-column-wrapper,
body.single-product .ugate-woo-summary {
display: block !important;
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}


/* Title */

body.single-product .ugate-woo-title {
margin: 0 0 5px !important;
padding: 0 !important;
color: #111 !important;
font-size: 23pt !important;
line-height: 1.08 !important;
font-weight: 700 !important;
text-transform: none !important;
break-after: avoid !important;
page-break-after: avoid !important;
}

body.single-product .ugate-woo-subtitle {
margin: 0 0 7px !important;
color: #555 !important;
font-size: 11pt !important;
line-height: 1.25 !important;
}

body.single-product .ugate-woo-price {
margin: 0 0 14px !important;
color: #111 !important;
font-size: 18pt !important;
line-height: 1.2 !important;
font-weight: 700 !important;
}


/* ==========================================================
   EQUIPMENT DETAILS
   ========================================================== */

body.single-product .ugate-woo-specs {
display: grid !important;
grid-template-columns: repeat(4, 1fr) !important;
gap: 0 !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
border-top: 1px solid #bbb !important;
border-bottom: 1px solid #bbb !important;
break-inside: avoid !important;
page-break-inside: avoid !important;
}

body.single-product .ugate-woo-spec {
display: block !important;
margin: 0 !important;
padding: 8px 12px !important;
border-right: 1px solid #ddd !important;
}

body.single-product .ugate-woo-spec:last-child {
border-right: 0 !important;
}

body.single-product .ugate-woo-spec .k {
display: block !important;
margin: 0 0 2px !important;
color: #666 !important;
font-size: 8.5pt !important;
font-weight: 600 !important;
line-height: 1.2 !important;
text-transform: uppercase !important;
letter-spacing: .04em !important;
}

body.single-product .ugate-woo-spec .v {
display: block !important;
color: #111 !important;
font-size: 11pt !important;
font-weight: 700 !important;
line-height: 1.25 !important;
}


/* ==========================================================
   PRODUCT GALLERY — FIRST TWO IMAGES ONLY
   ========================================================== */

body.single-product .ugate-woo-gallery {
order: 2 !important;
display: block !important;
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}

body.single-product .ugate-woo-gallery > .fusion-column-wrapper,
body.single-product .fusion-woo-product-images,
body.single-product .avada-single-product-gallery-wrapper,
body.single-product .woocommerce-product-gallery {
display: block !important;
width: 100% !important;
max-width: none !important;
height: auto !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
opacity: 1 !important;
overflow: visible !important;
}


/* Remove FlexSlider viewport restrictions */

body.single-product .woocommerce-product-gallery .flex-viewport {
display: block !important;
width: 100% !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}


/* Full gallery becomes a two-column static grid */

body.single-product .woocommerce-product-gallery__wrapper {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 12px !important;

width: 100% !important;
max-width: none !important;
height: auto !important;

margin: 0 !important;
padding: 0 !important;

transform: none !important;
-webkit-transform: none !important;
}


/* Hide every image */

body.single-product .woocommerce-product-gallery__image {
display: none !important;
float: none !important;
position: static !important;

width: auto !important;
max-width: none !important;
height: auto !important;

margin: 0 !important;
padding: 0 !important;

transform: none !important;
}


/* Show only image 1 and image 2 */

body.single-product .woocommerce-product-gallery__image:nth-child(1),
body.single-product .woocommerce-product-gallery__image:nth-child(2) {
display: block !important;
width: 100% !important;
}


/* Image formatting */

body.single-product .woocommerce-product-gallery__image > a:first-child {
display: block !important;
width: 100% !important;
height: auto !important;
}

body.single-product .woocommerce-product-gallery__image img {
display: block !important;
width: 100% !important;
max-width: 100% !important;
height: auto !important;
margin: 0 !important;
border: 1px solid #ddd !important;
object-fit: contain !important;
}


/* Kill thumbnail navigation / arrows / lightbox */

body.single-product .flex-control-thumbs,
body.single-product .avada-product-gallery-thumbs-wrapper,
body.single-product .avada-product-gallery-thumbs,
body.single-product .woocommerce-product-gallery .flex-direction-nav,
body.single-product .woocommerce-product-gallery__trigger,
body.single-product .avada-product-gallery-lightbox-trigger {
display: none !important;
}


/* ==========================================================
   EQUIPMENT DESCRIPTION
   ========================================================== */

body.single-product .ugate-woo-description {
display: block !important;
width: 100% !important;
margin: 18px 0 0 !important;
padding: 18px 0 0 !important;
border-top: 2px solid #222 !important;
background: #fff !important;
color: #111 !important;
}

body.single-product .ugate-woo-description > .fusion-builder-row,
body.single-product .ugate-woo-description .fusion-layout-column,
body.single-product .ugate-woo-description .fusion-column-wrapper {
display: block !important;
width: 100% !important;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
}

body.single-product .ugate-woo-description-title {
margin: 0 0 12px !important;
padding: 0 !important;
}

body.single-product .ugate-woo-description-title h2 {
margin: 0 !important;
color: #111 !important;
font-size: 16pt !important;
line-height: 1.2 !important;
font-weight: 700 !important;
break-after: avoid !important;
page-break-after: avoid !important;
}

body.single-product .ugate-product-description-content {
color: #111 !important;
font-size: 10.25pt !important;
line-height: 1.42 !important;
}

body.single-product .ugate-product-description-content p {
margin: 0 0 7px !important;
color: #111 !important;
}


/* ==========================================================
   PAGE BREAK CONTROL
   ========================================================== */

body.single-product .ugate-woo-summary,
body.single-product .ugate-woo-specs,
body.single-product .woocommerce-product-gallery__image {
break-inside: avoid !important;
page-break-inside: avoid !important;
}

body.single-product h1,
body.single-product h2,
body.single-product h3 {
break-after: avoid !important;
page-break-after: avoid !important;
}

body.single-product img {
break-inside: avoid !important;
page-break-inside: avoid !important;
}



/* ==========================================================
   UGATE PRINT REFINEMENTS
   ========================================================== */


/* ----------------------------------------------------------
   Keep header phone number on one line
   ---------------------------------------------------------- */

body.single-product .section_header_customize_top {
width: 210px !important;
min-width: 210px !important;
text-align: right !important;
}

body.single-product .section_header_customize_top .phone-header,
body.single-product .section_header_customize_top .phone-header p,
body.single-product .section_header_customize_top .phone-header a {
width: 100% !important;
white-space: nowrap !important;
word-break: normal !important;
overflow-wrap: normal !important;
text-align: right !important;
}

body.single-product .section_header_customize_top .phone-header a {
font-size: 15pt !important;
}


/* ----------------------------------------------------------
   Remove empty CTA row below equipment specifications
   ---------------------------------------------------------- */

body.single-product .ugate-woo-summary > .fusion-builder-row {
display: none !important;
}


/* ----------------------------------------------------------
   Gallery:
   Featured/main product image + the following gallery image
   ---------------------------------------------------------- */

/* Undo the earlier nth-child selection */
body.single-product .woocommerce-product-gallery__image:nth-child(1),
body.single-product .woocommerce-product-gallery__image:nth-child(2) {
display: none !important;
}


/*
 * WooCommerce gives the featured image the wp-post-image class.
 * Print that image and the gallery image immediately following it.
 */
body.single-product .woocommerce-product-gallery__image:has(.wp-post-image),
body.single-product .woocommerce-product-gallery__image:has(.wp-post-image)
+ .woocommerce-product-gallery__image {
display: block !important;
width: 100% !important;
}


/* ----------------------------------------------------------
   Slight title refinement for a cleaner equipment sheet
   ---------------------------------------------------------- */

body.single-product .ugate-woo-title {
font-size: 20pt !important;
line-height: 1.1 !important;
margin-bottom: 5px !important;
}



/* ==========================================================
   UGATE PRINT — FINAL CLEANUP
   ========================================================== */

/*
 * Avada/FlexSlider creates cloned gallery slides.
 * Never print those.
 */
body.single-product .woocommerce-product-gallery__image.clone {
display: none !important;
}


/*
 * Remove the now-empty inner CTA row beneath the specs.
 */
body.single-product .ugate-woo-info .fusion-builder-row-inner {
display: none !important;
}


/*
 * Remove any leftover spacing around the hidden CTA area.
 */
body.single-product .ugate-woo-summary {
padding-bottom: 0 !important;
margin-bottom: 0 !important;
}

body.single-product .ugate-woo-info {
padding-bottom: 0 !important;
margin-bottom: 14px !important;
}


/*
 * Keep only the featured image and the next real gallery image.
 */
body.single-product .woocommerce-product-gallery__image {
display: none !important;
}

body.single-product .woocommerce-product-gallery__image:has(.wp-post-image),
body.single-product .woocommerce-product-gallery__image:has(.wp-post-image)
+ .woocommerce-product-gallery__image:not(.clone) {
display: block !important;
width: 100% !important;
}



/* ==========================================================
   UGATE PRINT — HEADER ALIGNMENT + EXACTLY 2 IMAGES
   ========================================================== */

/* Move the logo/header content upward so it vertically aligns
   more closely with the phone number. */
body.single-product .section_header_customize {
position: relative !important;
top: -12px !important;
}

body.single-product .section_header_customize .fusion-builder-column-1 {
position: relative !important;
top: -2px !important;
}


/* ----------------------------------------------------------
   Gallery: force exactly two real images
   ---------------------------------------------------------- */

/* Hide every gallery slide first. */
body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image {
display: none !important;
}


/* Hide FlexSlider clones no matter what. */
body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image.clone {
display: none !important;
}


/*
 * Show the first two real gallery items only.
 * nth-of-type is more dependable here than :has()
 * because Avada/FlexSlider may alter gallery markup.
 */
body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image:not(.clone):nth-of-type(1),

body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image:not(.clone):nth-of-type(2) {
display: block !important;
width: 100% !important;
}


/* Make sure no later image leaks through. */
body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image:not(.clone):nth-of-type(n+3) {
display: none !important;
}



/* ==========================================================
   UGATE PRINT — FIXED HEADER + CONTROLLED GALLERY
   ========================================================== */


/* ----------------------------------------------------------
   HEADER
   Put logo and phone on the same visual row.
   ---------------------------------------------------------- */

body.single-product .fusion-tb-header {
position: relative !important;
display: block !important;

height: 62px !important;
min-height: 62px !important;

margin: 0 0 18px !important;
padding: 0 !important;

border-bottom: 2px solid #222 !important;
}


/* Logo row becomes absolutely positioned. */
body.single-product .section_header_customize {
position: absolute !important;

top: 0 !important;
left: 0 !important;

width: 180px !important;
height: 58px !important;

margin: 0 !important;
padding: 0 !important;

background: transparent !important;
}


/* Undo previous movement rules. */
body.single-product .section_header_customize .fusion-builder-column-1 {
position: static !important;
top: auto !important;

width: 180px !important;
max-width: 180px !important;

margin: 0 !important;
padding: 0 !important;
}


/* Vertically center logo in header. */
body.single-product .section_header_customize .fusion-builder-column-1 .fusion-column-wrapper {
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;

height: 58px !important;

margin: 0 !important;
padding: 0 !important;
}


body.single-product .section_header_customize img {
display: block !important;

width: 150px !important;
max-width: 150px !important;
height: auto !important;

margin: 0 !important;
}


/* Phone occupies the right side of the same row. */
body.single-product .section_header_customize_top {
position: absolute !important;

top: 0 !important;
right: 0 !important;

display: flex !important;
align-items: center !important;
justify-content: flex-end !important;

width: 230px !important;
height: 58px !important;

margin: 0 !important;
padding: 0 !important;

background: transparent !important;
}


body.single-product .section_header_customize_top > .fusion-builder-row,
body.single-product .section_header_customize_top .fusion-layout-column,
body.single-product .section_header_customize_top .fusion-column-wrapper {
display: flex !important;
align-items: center !important;
justify-content: flex-end !important;

width: 100% !important;
height: 100% !important;

margin: 0 !important;
padding: 0 !important;
}


body.single-product .section_header_customize_top .phone-header {
display: block !important;
width: auto !important;
height: auto !important;

margin: 0 !important;
padding: 0 !important;
}


body.single-product .section_header_customize_top .phone-header p,
body.single-product .section_header_customize_top .phone-header a {
margin: 0 !important;
padding: 0 !important;

white-space: nowrap !important;
line-height: 1 !important;
}


/* ----------------------------------------------------------
   GALLERY
   JS marks precisely two real slides with .ugate-print-image.
   ---------------------------------------------------------- */

body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image {
display: none !important;
}


body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image.ugate-print-image {
display: block !important;

width: 100% !important;
max-width: none !important;

float: none !important;
position: static !important;

margin: 0 !important;
padding: 0 !important;

transform: none !important;
}


/* Explicitly keep all clones hidden. */
body.single-product .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image.clone {
display: none !important;
}



/* Never print the Print Listing control itself. */
body.single-product .ugate-print-listing,
body.single-product .ugate-woo-print-col {
display: none !important;
}

