@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: none !important;
        height: auto !important;
        min-height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .nav_container {
        display: none;
    }

    .navbar-desktop-sidebar {
        display: none !important;
    }

    .promo-items {
        display: none !important;
    }

    .header-right {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
    }


    .navbar-desktop-topbar {
        box-shadow: none !important;
    }

    .page-header {
        box-shadow: none !important;
    }

    .navbar {
        box-shadow: none !important;
    }


    body {
        box-shadow: none !important;
    }

    #bottombarsticky {
        display: none !important;
    }

    #footer_info {
        display: none !important;
    }

    .navbar-brand {
        margin-top: -25px !important;
    }

    .breadcrumb {
        margin-top: 25px;
    }

    .container {
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: none !important;
    }


    #review_spinner {
        display: none !important;
    }

    iframe {
        display: none !important;
    }

    img {
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 15px 0 !important;
    }

    figure,
    .product-image,
    .image-container,
    .card,
    .product-card,
    div[class*="image"],
    div[class*="img"],
    div[class*="photo"] {
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .product-section,
    .image-section {
        page-break-before: always !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid !important;
        page-break-before: auto !important;
        margin-top: 20px !important;
    }

    /* breaks order printout
    * {
        position: relative !important;
        overflow: visible !important;
        transform: none !important;
    }
*/
    .product-image img,
    .image-container img {
        margin: 30px 0 !important;
        padding: 15px 0 !important;
    }

    /* Gift Voucher Print Styles */
    .voucher-container {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .voucher-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
        border: 2px solid #000 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .voucher-image {
        max-width: 120px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 15px auto !important;
    }

    .voucher-title {
        font-size: 24px !important;
        text-align: center !important;
        margin: 10px 0 !important;
        font-weight: bold !important;
        color: #000 !important;
    }

    .voucher-amount {
        font-size: 36px !important;
        text-align: center !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 15px 0 !important;
    }

    .voucher-code {
        font-size: 16px !important;
        text-align: center !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 10px 0 !important;
    }

    .voucher-message {
        font-size: 14px !important;
        text-align: center !important;
        font-style: italic !important;
        color: #333 !important;
        margin: 15px 0 !important;
        padding: 10px !important;
        border-top: 1px solid #ccc !important;
        border-bottom: 1px solid #ccc !important;
    }

    .voucher-footer {
        margin-top: 20px !important;
        text-align: center !important;
        font-size: 12px !important;
        color: #666 !important;
    }

    .voucher-site {
        font-weight: bold !important;
        margin-bottom: 5px !important;
    }

    .voucher-expiry {
        font-size: 11px !important;
    }

    /* Hide all elements when printing vouchers except voucher content */
    body.printing-voucher > *:not(#voucher-container) {
        display: none !important;
    }

    body.printing-voucher * {
        visibility: hidden !important;
    }

    /* Show only voucher elements */
    body.printing-voucher #voucher-container,
    body.printing-voucher #voucher-container *,
    body.printing-voucher .voucher-container,
    body.printing-voucher .voucher-container *,
    body.printing-voucher .voucher-card,
    body.printing-voucher .voucher-card *,
    body.printing-voucher .voucher-header,
    body.printing-voucher .voucher-header *,
    body.printing-voucher .voucher-content,
    body.printing-voucher .voucher-content *,
    body.printing-voucher .voucher-image,
    body.printing-voucher .voucher-title,
    body.printing-voucher .voucher-amount,
    body.printing-voucher .voucher-code,
    body.printing-voucher .voucher-message,
    body.printing-voucher .voucher-footer,
    body.printing-voucher .voucher-footer *,
    body.printing-voucher .voucher-site,
    body.printing-voucher .voucher-expiry {
        visibility: visible !important;
        display: block !important;
    }

    /* Ensure voucher container positioning */
    body.printing-voucher #voucher-container,
    body.printing-voucher .voucher-container {
        position: static !important;
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Print-specific voucher styling */
    body.printing-voucher .voucher-card {
        width: 400px !important;
        border: 2px solid #333 !important;
        border-radius: 10px !important;
        background: white !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
    }

    body.printing-voucher .voucher-header {
        text-align: center !important;
        padding: 15px 20px 5px 20px !important;
        background: white !important;
    }

    body.printing-voucher .voucher-image {
        width: 250px !important;
        height: 118px !important;
        max-width: none !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    body.printing-voucher .voucher-content {
        padding: 20px !important;
        text-align: center !important;
    }

    body.printing-voucher .voucher-title {
        font-size: 28px !important;
        font-weight: bold !important;
        color: #333 !important;
        margin-top: 5px !important;
        margin-bottom: 15px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    body.printing-voucher .voucher-amount {
        font-size: 48px !important;
        font-weight: bold !important;
        color: #28a745 !important;
        margin: 20px 0 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
    }

    body.printing-voucher .voucher-code {
        font-size: 18px !important;
        font-weight: bold !important;
        color: #495057 !important;
        margin: 15px 0 !important;
        padding: 8px 16px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border-radius: 20px !important;
        display: inline-block !important;
    }

    body.printing-voucher .voucher-message {
        font-size: 16px !important;
        font-style: italic !important;
        color: #6c757d !important;
        margin: 20px 0 !important;
        padding: 15px !important;
        background: rgba(255, 255, 255, 0.6) !important;
        border-radius: 8px !important;
        border-left: 4px solid #007bff !important;
        border-right: 4px solid #007bff !important;
    }

    body.printing-voucher .voucher-footer {
        margin-top: 25px !important;
        padding-top: 15px !important;
        border-top: 1px solid #dee2e6 !important;
    }

    body.printing-voucher .voucher-site {
        font-size: 16px !important;
        font-weight: bold !important;
        color: #495057 !important;
        margin-bottom: 8px !important;
    }

    body.printing-voucher .voucher-expiry {
        font-size: 14px !important;
        color: #6c757d !important;
    }

    /* Clean print layout */
    @media print {
        body.printing-voucher {
            margin: 0 !important;
            padding: 10px !important;
        }
    }

}