/*
 * Kamera Klinikum - OpenCart Final UI Layer
 * PRINT v1
 * 2026-09-19
 *
 * Screen rules will be added only after print is approved.
 */

@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* Web navigation / chrome */
    header,
    footer,
    nav,
    #menu,
    #top,
    #column-left,
    #column-right,
    .breadcrumb,
    .buttons,
    .btn,
    .kk-actions {
        display: none !important;
    }

    /* OpenCart layout becomes full-width on paper */
    #content,
    #common-home,
    .container,
    .container-fluid,
    .row {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #content {
        float: none !important;
    }

    /* Avoid horizontal overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    table {
        max-width: 100% !important;
    }

    /* Avoid ugly page splitting where possible */
    table,
    tr,
    td,
    th,
    .panel,
    .product-layout,
    .kk-card,
    .kk-detail {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Do not print shadows/background decoration */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Kamera Klinikum - PRINT shell cleanup 2026-09-20 */
@media print {
    .footer-container,
    .botton-part,
    #btnwhatsapp,
    #popupaddtocart,
    #notify_when_available,
    #ciquick-contact {
        display: none !important;
    }
}

/* Kamera Klinikum - HOME PRINT product limit v1 - 2026-09-20 */
@media print {

    /* Owl product modules: print only first 5 products */
    .owl-carousel > div:nth-child(n+6) {
        display: none !important;
    }

    /* "Spezielle Produkte": print only first 5 products */
    #carouselp .swiper-wrapper > .product-layout:nth-child(n+6) {
        display: none !important;
    }
}

/* Kamera Klinikum - HOME PRINT compact product grid v1 - 2026-09-20 */
@media print {

    /* Owl product modules become a normal 5-column print grid */
    .show-in-tab-mod .owl-carousel {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .show-in-tab-mod .owl-carousel > div {
        display: block !important;
        width: 20% !important;
        max-width: 20% !important;
        flex: 0 0 20% !important;
        margin: 0 !important;
        padding: 3mm !important;
        box-sizing: border-box !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .show-in-tab-mod .product-thumb {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .show-in-tab-mod .product-thumb img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: 32mm !important;
        object-fit: contain !important;
        margin: 0 auto 2mm !important;
    }

    .show-in-tab-mod .product-thumb h4,
    .show-in-tab-mod .product-thumb h4 a {
        font-size: 8pt !important;
        line-height: 1.2 !important;
    }

    .show-in-tab-mod .product-thumb .price {
        font-size: 8pt !important;
        line-height: 1.2 !important;
    }

    .show-in-tab-mod .button-group {
        display: none !important;
    }
}

/* Kamera Klinikum - HOME PRINT V2 - horizontal products + no banners - 2026-09-20 */
@media print {

    /* HOME: large promotional sliders/banners are not useful on paper */
    #slideshow0,
    #slideshow1,
    #carousel0,
    .bu_top_banners {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* HOME product tabs: neutralise Owl's screen-only runtime geometry */
    .show-in-tab-mod .owl-stage-outer {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .show-in-tab-mod .owl-stage {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .show-in-tab-mod .owl-item {
        float: none !important;
        width: 20% !important;
        max-width: 20% !important;
        flex: 0 0 20% !important;
        margin: 0 !important;
        padding: 2mm !important;
        box-sizing: border-box !important;
    }

    /* Only five actual Owl items from each product carousel */
    .show-in-tab-mod .owl-item:nth-child(n+6) {
        display: none !important;
    }

    /* Undo previous rule on the inner product wrapper */
    .show-in-tab-mod .owl-item > div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .show-in-tab-mod .product-thumb img {
        width: auto !important;
        max-width: 100% !important;
        height: 28mm !important;
        object-fit: contain !important;
        margin: 0 auto 2mm !important;
    }

    .show-in-tab-mod .owl-nav,
    .show-in-tab-mod .owl-dots {
        display: none !important;
    }
}

/* Kamera Klinikum - HOME PRINT FINAL cleanup - 2026-09-20 */
@media print {

    /* Remaining promotional banners */
    .row-cols9 {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Social-media FlexSlider */
    #flexslider {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Late homepage Swipers responsible for large/empty print pages */
    #modulbaslik-kesfetx,
    #bcarousel0,
    #bcarousel0 + .swiper-pager,
    .kategoricarusel,
    #scroller0 {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Neuigkeiten: only first five products */
    .product-yeniurunler {
        float: left !important;
        display: block !important;
        width: 20% !important;
        max-width: 20% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 2mm !important;
        box-sizing: border-box !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .product-yeniurunler:nth-of-type(n+6) {
        display: none !important;
    }

    .product-yeniurunler .product-thumb {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .product-yeniurunler .product-thumb img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: 30mm !important;
        object-fit: contain !important;
        margin: 0 auto 2mm !important;
    }

    .product-yeniurunler h4,
    .product-yeniurunler h4 a,
    .product-yeniurunler .price {
        font-size: 8pt !important;
        line-height: 1.2 !important;
    }

    .product-yeniurunler .button-group {
        display: none !important;
    }

    /* Owl FINAL: five real cards across the printable width */
    .show-in-tab-mod .owl-stage {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .show-in-tab-mod .owl-item {
        display: block !important;
        float: none !important;
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 2mm !important;
        box-sizing: border-box !important;
    }

    .show-in-tab-mod .owl-item:nth-child(n+6) {
        display: none !important;
    }

    .show-in-tab-mod .owl-item .product-thumb {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .show-in-tab-mod .owl-item .caption,
    .show-in-tab-mod .owl-item h4,
    .show-in-tab-mod .owl-item h4 a,
    .show-in-tab-mod .owl-item .price {
        width: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* Kamera Klinikum - HOME PRINT Owl outer FINAL fix - 2026-09-20 */
@media print {
    .show-in-tab-mod .owl-carousel > .owl-stage-outer {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}

/* Kamera Klinikum - HOME PRINT presentation FINAL - 2026-09-20 */
@media print {

    /* Product cards: clean catalogue look, not Excel boxes */
    .show-in-tab-mod .product-thumb,
    .product-yeniurunler .product-thumb {
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .show-in-tab-mod .owl-item,
    .product-yeniurunler {
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Hide carousel controls / category-more links in print */
    .show-in-tab-mod .owl-nav,
    .show-in-tab-mod .owl-dots,
    .swiper-pager,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    /* Bring back ONLY the Reparatur banner */
    .row-cols9 {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 5mm 0 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        clear: both !important;
    }

    .row-cols9 > div {
        display: none !important;
    }

    .row-cols9 > div:first-of-type {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .row-cols9 > div:first-of-type img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: 32mm !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* Hidden homepage Swipers must not leave printable height */
    .swiper-viewport:has(#bcarousel0),
    .swiper-viewport:has(#scroller0) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* Kamera Klinikum - HOME PRINT brand header FINAL - 2026-09-20 */
@media print {

    /* Wrong Reparatur banner: remove completely */
    .row-cols9 {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* First FlexSlider = brand logos. Re-enable only the one containing 1LOGOLAR */
    #flexslider:has(img[src*="1LOGOLAR"]) {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 4mm !important;
        padding: 0 !important;
        overflow: hidden !important;
        clear: both !important;
    }

    #flexslider:has(img[src*="1LOGOLAR"]) .flexslider,
    #flexslider:has(img[src*="1LOGOLAR"]) .slides {
        display: flex !important;
        flex-flow: row nowrap !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        list-style: none !important;
    }

    #flexslider:has(img[src*="1LOGOLAR"]) .slides > li {
        display: none !important;
        float: none !important;
        margin: 0 !important;
        padding: 1mm 3mm !important;
        box-sizing: border-box !important;
    }

    #flexslider:has(img[src*="1LOGOLAR"]) .slides > li:nth-child(-n+5) {
        display: flex !important;
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #flexslider:has(img[src*="1LOGOLAR"]) img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: 12mm !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    #flexslider:has(img[src*="1LOGOLAR"]) .flex-direction-nav,
    #flexslider:has(img[src*="1LOGOLAR"]) .flex-control-nav {
        display: none !important;
    }

    /* Second FlexSlider = social media: never print */
    #flexslider:has(img[src*="SOSYALMEDIA"]) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Kamera Klinikum - HOME PRINT corporate header FINAL - 2026-09-20 */
@media print {

    /* Existing corporate top line */
    #top {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 2mm !important;
        padding: 1.5mm 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #top .container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #top #top-links {
        display: block !important;
        float: right !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 8pt !important;
    }

    #top #top-links ul,
    #top #top-links li {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Existing logo header - logo only */
    header {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 2mm !important;
        padding: 0 !important;
        background: transparent !important;
    }

    header > .container,
    header > .container > .row {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .col-sm-3 {
        display: block !important;
        float: none !important;
        width: 58mm !important;
        max-width: 58mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header #logo {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header #logo img {
        display: block !important;
        width: auto !important;
        max-width: 58mm !important;
        height: 13mm !important;
        object-fit: contain !important;
        object-position: left center !important;
        margin: 0 !important;
    }

    /* Search, cart and account controls stay web-only */
    header .col-sm-5,
    header .col-sm-4,
    header .button_li,
    header .welcometop,
    header .btn-group,
    header .dropdown-menu {
        display: none !important;
    }

    /* Fixed social widgets must never create print pages */
    .social-icons,
    .social-fixed,
    .social-media,
    .socialmedia,
    .fixed-social,
    .social-share,
    [class*="social-fixed"],
    [class*="fixed-social"] {
        display: none !important;
    }
}

/* Kamera Klinikum - HOME PRINT header correction - 2026-09-20 */
@media print {

    /* Do not print web top navigation */
    #top {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Header = logo only */
    header > .container > .row > *:not(.col-sm-3) {
        display: none !important;
    }

    header .col-sm-3 {
        display: block !important;
    }
}
