/*
|--------------------------------------------------------------------------
| GALERIA DO PRODUTO ERP
|--------------------------------------------------------------------------
| Digiflexo ERP Pro
| Viewport Web
| Versão: 6.2.2.gallery.2
|--------------------------------------------------------------------------
*/

.dfx-erp-product-gallery {
    width: 100%;
    box-sizing: border-box;
}

.dfx-erp-gallery-inner {
    display: block;
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| IMAGEM PRINCIPAL
|--------------------------------------------------------------------------
*/

.dfx-erp-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #ececec;
    border-radius: 18px;
}

.dfx-erp-main-image img,
#dfx-main-product-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 18px;
}

/*
|--------------------------------------------------------------------------
| BOTÃO DE ZOOM
|--------------------------------------------------------------------------
*/

.dfx-erp-zoom-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;

    width: 36px;
    height: 36px;

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

    background: #fff;
    border-radius: 50%;
    border: 1px solid #e5e5e5;

    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    text-decoration: none;

    transition: transform .2s ease, box-shadow .2s ease;
}

.dfx-erp-zoom-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.dfx-erp-zoom-icon::before {
    content: "⌕";
    font-size: 22px;
    line-height: 1;
    color: #111;
}

/*
|--------------------------------------------------------------------------
| MINIATURAS
|--------------------------------------------------------------------------
*/

.dfx-erp-gallery-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.dfx-erp-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;

    padding: 0;
    margin: 0;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;

    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;

    outline: none !important;
    box-shadow: none !important;

    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.dfx-erp-thumb:hover {
    transform: translateY(-2px);
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

.dfx-erp-thumb.active,
.dfx-erp-thumb.is-active {
    border-color: #0073e6;
    box-shadow: 0 0 0 2px rgba(0, 115, 230, .14);
}

.dfx-erp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVO
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .dfx-erp-main-image {
        border-radius: 10px;
    }

    .dfx-erp-main-image img,
    #dfx-main-product-image {
        border-radius: 16px;
        transition: transform .25s ease;
    }

    .dfx-erp-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 10px;
    }

    .dfx-erp-thumb {
        border-radius: 12px;
    }

    .dfx-erp-zoom-button {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
}
