/* Basic styles to match Figma product page */
:root {
    --blue: #1744fd !important;
    --muted: #616264 !important;
    --page-bg: #fff !important;
    --radius: 8px !important;
}

* {
    box-sizing: border-box
}

body {
    font-family: Tahoma, Helvetica, Arial, sans-serif !important;
    margin: 0 !important;
    background: var(--page-bg) !important;
    color: #222
}

/* Note: site-header styles might conflict with theme header, omitting unless replaced */
/* If you need the specific header from index.html, uncomment below. */
/*
.site-header { ... }
*/
.main-wrapper {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.container {
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 !important;
}

.single-product-container a {
    font-family: Tahoma !important;
    font-weight: 400 !important;
    font-style: Regular !important;
    font-size: 16px !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    color: #1744FD !important;
}

.enquire-now-btn {
    height: 42px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    background: #FFF !important;
    cursor: pointer !important;
    outline: #1744FD 1px solid !important;
    color: #1744FD !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    height: 56px !important;
    justify-content: center !important;
    align-items: center !important;
}

.woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 16px !important;
    flex-direction: column !important;
}

.woocommerce-variation-add-to-cart a {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: 0 !important;
    background: var(--blue) !important;
    cursor: pointer !important;
    border: 1px solid var(--blue) !important;
    text-decoration: none !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    display: block !important;
}

/* Loading state for CTAs */
.woocommerce-variation-add-to-cart .loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
    cursor: wait !important;
}

/* Spinner styles */
.woocommerce-variation-add-to-cart .loading::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -10px !important;
    margin-left: -10px !important;
    border: 2px solid currentColor !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure spinner color matches button text color logic (but since text is transparent, we need to force it) */
.woocommerce-variation-add-to-cart .loading::after {
    border-color: #fff !important;
    border-right-color: transparent !important;
}

/* The spinning animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.btn.primary,
.ctas a {
    background: var(--blue) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    height: 56px !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn.outline {
    background: #fff !important;
    color: var(--blue)
}

.btn.ghost {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.06)
}

.single-product-container {
    margin-left: 80px !important;
    margin-right: 80px !important;
    margin-bottom: 60px !important;
    margin-top: 30px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
}

.breadcrumbs {
    color: var(--muted) !important;
    font-size: 14px !important;
    margin-bottom: 16px
}

.breadcrumbs a {
    color: inherit !important;
    text-decoration: none !important;
    font-style: normal !important;
    font-size: small !important;
}

.current-breadcrumb {
    color: #1744FD !important;
    font-family: Tahoma !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

.single-product-hero {
    display: flex !important;
    gap: 32px !important;
    margin-bottom: 60px !important;
}

.single-product-hero .left {
    flex: 0 0 480px !important;
    max-width: 100% !important;
    /* Safety */
}

.main-image {
    background: #fff !important;
    text-align: center !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 374px !important;
    width: 100% !important;
    /* Adaptive */
}

.main-image.zoomed {
    cursor: zoom-out !important;
}

.zoom-icon {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--blue) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.zoom-icon:hover {
    background: #fff !important;
}

.zoom-icon.active {
    background: var(--blue) !important;
    color: #fff !important;
    border-color: var(--blue) !important;
}

.main-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.2s ease-out !important;
    display: block !important;
    /* Ensure fit */
}

@media screen and (max-width: 768px) {
    .main-image {
        height: 250px !important;
    }
}

.thumbs-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.thumbs-viewport {
    overflow: hidden !important;
    flex: 1 !important;
}

.thumbs {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
    transition: transform 0.3s ease-in-out !important;
    width: 100% !important;
}

.thumb {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    /* Show 4 items: (100% - 3 * 8px gap) / 4 */
    flex: 0 0 calc((100% - 24px) / 4) !important;
    min-width: 0 !important;
}

.thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.2 !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

.nav-btn {
    background: #fff !important;
    border: 1px solid #1744FD !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: var(--blue) !important;
    font-size: 16px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.nav-btn:hover:not(:disabled) {
    background: #f0f0f0 !important;
    border-color: var(--blue) !important;
}

.nav-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
    color: #999 !important;
}

.right {
    flex: 1 !important;
}

.product-hero-and-tabs {
    display: flex !important;
    flex-direction: column !important;
    max-width: 900px !important;
}

.product-title {
    font-family: Tahoma !important;
    font-weight: 700 !important;
    font-style: Bold !important;
    font-size: 32px !important;
}

.sku {
    color: var(--blue) !important;
    font-family: "Roboto Mono", monospace !important;
    margin-bottom: 12px;
}

.lede {
    color: #333 !important;
    margin-bottom: 16px
}

.specifications-label {
    color: var(--800, #323232) !important;
    font-family: Tahoma !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

.product-controls {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    width: 100% !important;
}

.selectors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    flex-direction: column !important;
    width: 100% !important;
    border: none !important;
    padding: 0px !important;
}

.selectors label {
    display: flex !important;
    flex-direction: column !important;
    font-size: 14px !important;
    color: #333 !important;
    gap: 16px !important;
}

.single-product-container .quantity-label {
    font-size: 16px !important;
    color: #333 !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.selectors select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding: 8px 40px 8px 8px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5dc !important;
    width: 100% !important;
    cursor: pointer !important;
}

.selectors input[type=number] {
    padding: 8px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5dc !important;
    width: 128px !important;
}

/* Quantity field on single product */
.single-product-container .product-controls .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.single-product-container .product-controls .quantity .qty {
    padding: 8px !important;
    border-left: 1px solid #323232 !important;
    border-right: 1px solid #323232 !important;
    width: 50px !important;
    font-size: 14px !important;
}

.single-product-container .product-controls .quantity .qty::-webkit-outer-spin-button,
.single-product-container .product-controls .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.single-product-container .product-controls .quantity .qty[type=number] {
    -moz-appearance: textfield !important;
}

.single-product-container .cart {
    width: 100% !important;
}

.single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.single-product-container .attributes {
    width: 100% !important;
    margin: 0px !important;
    border: none !important;
    border-radius: 0px !important;
}

.single-product-container .attributes tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

/* last row */
.single-product-container .attributes tr:last-child {
    margin-bottom: 0 !important;
}

.single-product-container .attributes th.label {
    text-align: left !important;
    font-weight: 400 !important;
}

.single-product-container .attributes td.label {
    padding: 0 !important;
}

.single-product-container .attributes td.label label {
    display: flex !important;
    flex-direction: column !important;
    font-size: 14px !important;
    color: #333 !important;
}

.single-product-container .attributes td.value {
    padding: 0 !important;
}

.single-product-container .attributes select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding: 8px 40px 8px 8px !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5dc !important;
    width: 100% !important;
    cursor: pointer !important;
}

.single-product-container .attributes .reset_variations {
    font-size: 16px !important;
    font-family: Tahoma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #1744FD !important;
    text-decoration: underline !important;
    margin-left: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: flex-end !important;
    font-size: 14px !important;
}

.single-product-container .attributes .reset_variations:hover {
    color: #0E2998 !important;
}

.single-product-container .woocommerce-variation p[role="alert"],
.single-product-container .single_variation p[role="alert"] {
    margin-top: 12px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #FCA5A5 !important;
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
    font-size: 14px !important;
    font-family: Tahoma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.ctas {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    margin-top: 24px !important;
}

.ctas .button,
.ctas .btn,
.ctas .wp-element-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    border: 1px solid var(--blue) !important;
    cursor: pointer !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    font-weight: 700 !important;
    height: 56px !important;
}

.ctas .button,
.ctas .wp-element-button {
    background: var(--blue) !important;
    color: #fff !important;
}

.ctas .btn.outline,
.ctas .enquire-now-btn {
    background: #fff !important;
    color: #1744FD !important;
    border-color: #1744FD !important;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Loading State */
.single_add_to_cart_button.loading {
    position: relative;
    color: transparent !important; /* Hide original text */
    pointer-events: none; /* Prevent double-clicks */
}

.single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff; /* Spinner color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


.side-note {
    display: flex !important;
    flex-direction: row !important;
    margin-top: 20px !important;
    color: #555 !important;
    max-width: 350px !important;
    color: var(--800, #323232) !important;
    gap: 25px !important;
    font-family: Tahoma !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 140% !important;
}

.note-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.single-product-tabs {
    margin-top: 28px
}

.single-product-tab-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    gap: 12px !important;
    border-bottom: 1px solid #dcdcdc !important;
    border-top: 1px solid #dcdcdc !important;
    overflow-x: auto
}

.single-product-tab-list li {
    padding: 12px 18px !important;
    cursor: pointer !important;
    color: #7C7C7C !important;
}

.single-product-tab-list li.active {
    border-bottom: 1px solid #303030 !important;
    color: #303030 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.single-product-tab-panels {
    padding: 18px 0px !important;
    border-bottom: 1px solid #dcdcdc !important;
}

.panel {
    display: none;
    overflow-x: auto !important;
    box-sizing: border-box !important;
    width: calc(100% - 0px);
}

.panel.active {
    display: block
}

.panel-inner {
    width: 900px !important;
}

.nose-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 12px
}

.nose {
    background: #efefef !important;
    padding: 12px !important;
    border-radius: 6px
}

.related {
    margin-top: 28px
}

.related-list {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    font-family: Tahoma !important;
}

.related-card {
    background: #fff !important;
    border-radius: 8px !important;
    width: 296px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: 1 1 250px !important;
    max-width: 296px !important;
}

.related-card img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: 6px
}

.related-label {
    color: var(--800, #323232) !important;
    font-family: Tahoma !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.5em !important;
    height: 3em !important;
}

.related-products-title {
    font-family: Tahoma !important;
    font-weight: 700 !important;
    font-style: Bold !important;
    font-size: 32px !important;
    margin-bottom: 20px !important;
}

@media(max-width:900px) {
    .product-hero {
        flex-direction: column
    }

    .left {
        flex: unset !important;
        width: 100%
    }

    .ctas {
        flex-direction: row !important;
        margin-top: 8px
    }

    .nose-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.layout-wrapper {
    display: flex !important;
    gap: 48px !important;
}

.product-container {
    flex: 1 !important;
    min-width: 0 !important;
}

.sticky-nav-wrapper {
    width: 296px !important;
    flex-shrink: 0 !important;
    padding-left: 24px !important;
    /* Align with content start approximately */
    position: sticky !important;
    top: 204px !important;
    align-self: flex-start !important;
    /* This is the fix */
}

.sticky-nav {
    margin-top: 60px !important;
}

.sticky-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sticky-nav-title {
    color: #2F2F2F !important;
    font-family: Tahoma !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.sticky-nav li:first-child {
    border-top: 1px solid #D1D5DC !important;
}

.sticky-nav li {
    border-bottom: 1px solid #D1D5DC !important;
    padding: 12px 22px !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: color 0.2s !important;
    position: relative !important;
    color: #1744FD !important;
    font-family: Tahoma !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

.sticky-nav li:hover {
    color: var(--blue) !important;
}


.sticky-custom-solution {
    /* Styling */
    background-color: #FDD945 !important;
    /* matches p-4 (16px) */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    color: #0E2998 !important;
    border: 1px solid #0E2998 !important;

}

.sticky-feedback {
    border: 1px solid #FDD945 !important;
    /* Styling */
    background-color: #0E2998 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    color: #FFFFFF !important;
}

@media(max-width: 1100px) {
    .sticky-nav-wrapper {
        display: none !important;
    }
}

.breadcrumbs .current-breadcrumb {
    color: #1744fd !important;
    font-weight: 700 !important;
}

/* Fix for sticky header obscuring content on scroll */
.single-product-tabs,
.related,
.panel {
    scroll-margin-top: 180px !important;
}

.print-brochure-container {
    padding: 28px 22px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    cursor: pointer !important;
}

.print-brochure-label {
    font-family: Tahoma !important;
    font-weight: 400 !important;
    font-style: Regular !important;
    font-size: 12px !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    color: #1744FD !important;
}

.sticky-custom-quote {
    position: relative !important;
    margin-top: 80px !important;
}

.sticky-custom-quote-container {
    width: 295px !important;
    height: 74px !important;
    border-top-right-radius: 36px !important;
    background: #FDD017 !important;

    font-family: Tahoma !important;
    font-weight: 700 !important;
    font-style: Bold !important;
    font-size: 16px !important;

    margin-right: 80px !important;

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

    padding-left: 60px !important;

    color: #1744FD !important;
}

.sticky-custom-quote-wheel {
    position: absolute !important;
    top: -20px !important;
    left: -20px !important;
}

.empty-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 300px !important;
    padding: 50px !important;
}

.wc-block-components-notice-banner>.wc-block-components-notice-banner__content {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-right: 16px !important;
    white-space: normal !important;
}

.wc-block-components-notice-banner>.wc-block-components-notice-banner__content a{
    font-size: 12px !important;
}

.side-note-small {
    border-top: 1px solid #CBCBCB !important;
    border-bottom: 1px solid #CBCBCB !important;
    padding: 20px 20px 10px 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    margin-bottom: 20px !important;
    display: none !important;
}

.note-content-small {
    display: flex !important;
    margin-bottom: 10px !important;
    align-items: center;
}

.note-content-small-image-container {
    width: 70px !important;
    min-width: 70px !important;
}

.side-note-small img, .side-note img {
    border-radius: 0px !important;
}

.out-of-stock-buttons {
    margin-top: 20px !important;
    border-top: 1px solid #C6C6C7 !important;
    padding-top: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
}

a.out-of-stock-btn-primary {
    background: var(--blue) !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    height: 56px !important;
    justify-content: center !important;
    align-items: center !important;
}

a.out-of-stock-btn-outline {
    background: #fff !important;
    color: var(--blue);
    border: 1px solid var(--blue);
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    height: 56px !important;
    justify-content: center !important;
    align-items: center !important;
}

.product-notices-mobile {
    display: none !important;
}

.product-notices-desktop {
    position: relative !important;
}

.product-notices-mobile .close-icon, .product-notices-desktop .close-icon {
    position: absolute;
    right: 7px;
    top: 7px;
    cursor: pointer;
}

.related .muted {
    color: #7C7C7C !important;
    font-size: 14px !important;
    margin: 0 0 8px !important
}

.print-brochure-options {
    display: none;
}


/* Image Overlay Styles */
.image-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-overlay.active {
    display: flex !important; /* Show when active */
}

.overlay-content {
    position: relative;
    max-width: 50vw; /* 50% of the viewport width */
    max-height: 90vh; /* Limit height to prevent overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

#overlayImage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensure the image fits within the container */
}

.prev-arrow,
.next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    border: none;
}

.prev-arrow {
    left: -70px;
}

.next-arrow {
    right: -70px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

/* Print Styles */
@media print {
    @page {
        margin-left: 1cm; /* Forces zero margins on the paper */
        margin-right: 1cm; /* Forces zero margins on the paper */
        margin-top: 0; /* Forces zero margins on the paper */
        @bottom-right {
            content: "PAGE " counter(page) "/" counter(pages) !important;
            color: #969696 !important;
            padding-bottom: 20px !important;
        }
    }

    body {
        counter-reset: page !important;
        background: #fff !important;
        font-size: 11pt !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .panel, 
    .print-brochure-options {
        page-break-before: always !important;
    }

    /* Hide site-wide header/footer and non-essential elements */
    .printed-brochure-header,
    .printed-brochure-footer {
        display: flex !important;
    }
    header,
    .site-header,
    #masthead,
    footer,
    .site-footer,
    #colophon,
    .sticky-nav-wrapper,
    .breadcrumbs,
    .ctas,
    .related,
    .zoom-icon,
    .nav-btn,
    .thumbs-container,
    .sticky-custom-quote,
    .sticky-custom-solution,
    .sticky-feedback,
    .side-note,
    .woocommerce-notices-wrapper,
    .wpml-ls-statics-footer,
    .otgs-development-site-front-end,
    .otgs-installer-notice,
    .wpml-site-registered,
    .single-product-tab-list,
    #wpadminbar,
    .admin-bar-fix,
    .skip-link,
    .screen-reader-text,
    .copyright,
    .site-info,
    .footer-widgets,
    .footer-socket {
        display: none !important;
    }

    .printed-brochure-header {
        position: fixed !important;
        top: 0px; /* Moves the header UP into the top margin area */
        left: 0 !important;
        width: 100% !important;
        background: #fff !important; /* Ensure header background is white */
        z-index: 1000 !important;
        box-sizing: border-box !important;
        padding-bottom: 30px !important;
        margin-top: 30px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 25px !important;
        align-items: flex-end !important;
        padding-bottom: 30px !important;
        border-bottom: 1px solid #1744FD !important;
    }

    .printed-brochure-footer {
        position: fixed !important;
        bottom: 0px; /* Moves the footer DOWN into the bottom margin area */
        left: 0 !important;
        width: 100% !important;
        background: #fff !important; /* Ensure footer background is white */
        z-index: 1000 !important;
        box-sizing: border-box !important;
        padding-top: 30px !important;
        margin-bottom: 30px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 25px !important;
        justify-content: space-between !important;
        padding-top: 20px !important;
        border-top: 1px solid #1744FD !important;
    }

    .printed-brochure-header-text {
        font-family: Tahoma !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: #323232 !important;
    }

    .printed-brochure-footer-text {
        font-family: Tahoma !important;
        font-weight: 400 !important;
        font-style: normal !important;
        color: #969696 !important;
    }

    .container,
    .single-product-container,
    .layout-wrapper,
    .product-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    .main-wrapper {
        display: block !important;
        padding-top: 150px !important; 
        padding-bottom: 140px !important;
        /* This forces the padding to repeat on every page */
        box-decoration-break: clone !important;
        -webkit-box-decoration-break: clone !important;
        width: 100% !important;
    }

    /* Adjust Hero Layout - Side by Side */
    .single-product-hero {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 20px !important;
        margin-bottom: 0px !important;
        page-break-inside: avoid;
    }

    .single-product-hero .left {
        width: 40% !important;
        max-width: 300px !important;
        flex: 0 0 auto !important;
    }

    .single-product-hero .right {
        width: 60% !important;
        flex: 1 1 auto !important;
    }

    .main-image {
        height: auto !important;
        max-height: 300px !important;
        margin-bottom: 0 !important;
        border: none !important;
    }

    .main-image img {
        max-height: 300px !important;
        object-fit: contain !important;
    }

    /* Ensure title is prominent */
    .product-title {
        font-size: 20pt !important;
        margin-top: 0 !important;
        color: #000 !important;
    }

    .sku {
        color: #1744fd !important;
        font-size: 12pt !important;
        margin-bottom: 10px !important;
    }

    /* Ensure all tab content is visible */
    .single-product-tab-panels,
    .panel {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .single-product-tabs {
        margin-top: 0px !important;
    }

    .panel {
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        page-break-inside: avoid;
        margin-top: 0px !important;
    }

    /* Add headers to panels since tabs are gone */
    .panel::before {
        display: block;
        font-size: 14pt;
        margin-bottom: 5px;
        text-transform: uppercase;
        padding-bottom: 2px;
        color: #1744fd !important;

    }

    #desc::before {
        content: "Product Description";
    }

    #specs::before {
        content: "Technical Specifications";
    }

    #downloads::before {
        content: "Downloads";
    }

    #resources::before {
        content: "Additional Resources";
    }

    /* Selectors - Ensure they look like text */
    .selectors {
        border: 1px solid #ddd !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid;
    }

    .selectors label {
        margin-bottom: 5px !important;
    }

    /* Hide Quantity in Print */
    .selectors label[for="qty"] {
        display: none !important;
    }

    /* Specifications - Maintain visual style */
    .nose {
        background: #efefef !important;
        /* Restore background */
        padding: 12px !important;
        border-radius: 6px !important;
        border: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .nose-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* Keep 3 columns if possible */
        gap: 12px !important;
    }

    /* Hide empty panels */
    .empty-panel {
        display: none !important;
    }

    /* Hide Downloads Tab and Panel */
    li[data-tab="downloads"],
    li[data-target="downloads"],
    #downloads {
        display: none !important;
    }

    /* Images: Show top 4 from thumbs, hide main carousel */
    .single-product-hero .left .main-image {
        display: none !important;
    }

    .single-product-hero .left .thumbs-container {
        display: block !important;
        height: auto !important;
    }

    .single-product-hero .left .thumbs-viewport {
        height: auto !important;
        overflow: visible !important;
    }

    .single-product-hero .left .thumbs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        transform: none !important;
        width: auto !important;
    }

    .single-product-hero .left .thumbs .thumb {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        border: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        background: none !important;
        cursor: default !important;
    }

    .single-product-hero .left .thumbs .thumb img {
        width: 100% !important;
        height: 325px !important;
        object-fit: contain;
        border-radius: 20px !important;
    }

    /* Hide 5th image onwards */
    .single-product-hero .left .thumbs .thumb:nth-child(n+5) {
        display: none !important;
    }

    /* Hide Navigation Buttons */
    .single-product-hero .left .nav-btn {
        display: none !important;
    }

    /* Hide Navigation and unnecessary elements */
    .sticky-nav-wrapper,
    .print-brochure-container,
    .woocommerce-breadcrumb,
    .product-controls,
    .single-product-tab-list {
        display: none !important;
    }

    /* Layout adjustments - Reorder: Title/Desc (Right) then Images (Left) */
    .single-product-hero {
        display: flex !important;
        flex-direction: column !important;
    }

    .single-product-hero .right {
        order: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 20px !important;
    }

    .single-product-hero .left {
        order: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 32px !important;
    }

    .print-brochure-options {
        display: block;
    }

    /* Brochure Options Print Styles */
    .brochure-attributes-grid {
        column-count: 2 !important;
        column-gap: 0 !important; /* No space between columns */
        break-inside: avoid !important;
        margin-bottom: 32px !important;
        margin-top: 20px !important;
    }

    .brochure-attribute-group {
        break-inside: avoid-column !important; /* Keep attribute group together */
        margin-bottom: 15px !important; /* Space between groups */
    }

    .brochure-attribute-title {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin-bottom: 5px !important;
        color: #000 !important;
        text-transform: uppercase !important;
    }

    .brochure-attribute-item {
        margin-bottom: 3px !important;
    }

    .brochure-attribute-item label {
        font-size: 10pt !important;
        color: #333 !important;
    }

    .ordering-info-title {
        font-size: 14pt;
        margin-bottom: 5px;
        text-transform: uppercase;
        padding-bottom: 2px;
        color: #1744fd !important; 
    }

    .ordering-code {
        font-size: 20pt;
        margin-bottom: 5px;
        text-transform: uppercase;
        padding-bottom: 20px;
        color: #1744fd !important; 
        border-bottom: 1px dashed #969696 !important;
    }

    .empty-panel-print {
        display: none !important;
    }
}

/* Hide unwanted standard elements in the plugin container */
.plugin-buttons-container .price,
.plugin-buttons-container .product_title,
.plugin-buttons-container .woocommerce-product-rating,
.plugin-buttons-container .woocommerce-product-details__short-description,
.plugin-buttons-container .product_meta,
.plugin-buttons-container .yith-wcwl-add-to-wishlist,
.plugin-buttons-container .quantity,
.plugin-buttons-container .browse_list,
.browse_list {
    display: none !important;
}

/* Quantity Buttons */
.quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1px solid #323232 !important;
    border-radius: 8px !important;
    width: fit-content !important;
    overflow: hidden !important;
}

.quantity input[type="number"] {
    text-align: center !important;
    width: 50px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #323232 !important;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.qty-btn-minus,
.qty-btn-plus {
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #323232 !important;
    padding: 0 !important;
    transition: background 0.2s !important;
}

.qty-btn-minus:hover,
.qty-btn-plus:hover {
    background: #f0f0f0 !important;
}

/* Ensure label is above or beside correctly */
.quantity-label {
    margin-bottom: 8px !important;
    font-family: Tahoma !important;
    font-size: 14px !important;
}

@media screen and (max-width: 1100px) {
    .product-notices-mobile {
        display: block !important;
        position: sticky !important;
        top: 150px !important;
        z-index: 1000 !important;
    }
}

@media screen and (max-width: 900px) {
    html {
        margin: 0px !important;
    }

    .single-product-container {
        margin-left: 20px !important;
        margin-right: 20px !important;
        margin-bottom: 0px !important;
        margin-top: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .product-hero-and-tabs {
        display: flex !important;
        flex-direction: column !important;
    }

    .single-product-hero {
        display: block !important;
    }

    .single-product-hero .left {
        margin-bottom: 30px !important;
    }

    .single-product-container {
        padding: 16px !important;
        margin: 0px !important;
    }

    .sticky-nav-wrapper {
        display: none !important;
    }

    .single-product-tabs {
        width: calc(100vw - 40px) !important;
    }

    .panel {
        width: calc(100vw - 40px) !important;
    }

    .panel-inner {
        width: calc(100vw - 40px) !important;
        padding: 0px 20px !important;
    }

    .related {
        margin-bottom: 28px !important;
    }

    .related-card {
        max-width: none !important;
        margin-bottom: 40px !important;
    }

    .side-note {
        display: none !important;
    }

    .side-note-small {
        display: block !important;
    }

    .single-product-tab-list li {
        white-space: nowrap !important;
    }

    .overlay-content {
        max-width: 80vw; /* 50% of the viewport width */
        max-height: 90vh; /* Limit height to prevent overflow */
    }

    .prev-arrow {
        left: -50px;
    }

    .next-arrow {
        right: -50px;
    }
}