/* TOPFUN_PRODUCT_IMAGE_ZOOM_V16_7_1 */

/*
 * ALLEEN productkaarten.
 * Nooit logo, header, footer of andere afbeeldingen.
 */

.design-product-card .product-image-wrap {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/*
 * Shirt/mockup volledig zichtbaar.
 * Geen crop.
 */
.design-product-card .product-image-wrap > img {
    display: block !important;
    width: 100% !important;
    height: 390px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 10px !important;
    background: #ffffff;
    cursor: zoom-in;
}


/* Vergrootknop IN de afbeelding */
.tfs-product-zoom-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 8;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;

    background: rgba(7,15,27,.88);
    color: #ffffff;

    font: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 24px rgba(0,0,0,.32);

    backdrop-filter: blur(5px);
}

.tfs-product-zoom-button:hover {
    background: rgba(17,38,63,.96);
    border-color: rgba(34,211,238,.60);
}

.tfs-product-zoom-button svg {
    width: 17px;
    height: 17px;
}


/* =====================================================
   MODAL
   ===================================================== */

#tfsImageZoomModal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(2,7,16,.92);

    backdrop-filter:
        blur(6px);
}

#tfsImageZoomModal.tfs-open {
    display: flex;
}


.tfs-image-zoom-dialog {
    position: relative;

    width:
        min(
            1120px,
            96vw
        );

    height:
        min(
            900px,
            92vh
        );

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(34,211,238,.22);

    border-radius: 20px;

    background: #0b1423;

    box-shadow:
        0 25px 90px
        rgba(0,0,0,.72);
}


.tfs-image-zoom-topbar {
    flex: 0 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 62px;

    padding:
        10px
        12px
        10px
        20px;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}


.tfs-image-zoom-title {
    overflow: hidden;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.tfs-image-zoom-close {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 11px;

    background:
        rgba(255,255,255,.05);

    color: #ffffff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


.tfs-image-zoom-close:hover {
    background:
        rgba(255,255,255,.12);
}


.tfs-image-zoom-body {
    flex: 1 1 auto;

    min-height: 0;

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

    padding: 18px;

    overflow: auto;

    background:
        #eef1f5;
}


.tfs-image-zoom-body img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height:
        calc(92vh - 105px);

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.18);
}


/*
 * Het watermerk zit IN de gegenereerde mockup,
 * dus vergroting toont dezelfde beveiligde preview.
 */


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

    .design-product-card
    .product-image-wrap > img {
        height: 330px !important;
        padding: 7px !important;
    }

    #tfsImageZoomModal {
        padding: 8px;
    }

    .tfs-image-zoom-dialog {
        width: 100%;
        height: 94vh;

        border-radius: 14px;
    }

    .tfs-image-zoom-body {
        padding: 8px;
    }

    .tfs-product-zoom-button {
        right: 9px;
        bottom: 9px;

        padding: 8px 10px;
    }
}
