/**
 * Estilos para o Mobile Image Zoom
 * 
 * @package Mobile_Image_Zoom
 */

/* Container do zoom */
.miz-zoom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.miz-zoom-container.active {
    opacity: 1;
    visibility: visible;
}

/* Imagem com zoom */
.miz-zoom-img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(1);
    transition: transform 0.3s ease;
    cursor: move;
    user-select: none;
}

/* Botão de fechar */
.miz-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #5C922D !important; /* Cor do ícone verde */
    font-size: 30px;
    cursor: pointer;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #5C922D !important; /* Borda verde */
    transition: all 0.3s ease;
}

.miz-close:hover {
    background: #5C922D !important; /* Fundo verde no hover */
    color: #ffffff !important; /* Ícone branco no hover */
}

/* Ícones de zoom */
.miz-zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 1000000;
}

.miz-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #5C922D !important; /* Cor do ícone verde */
    border: 2px solid #5C922D !important; /* Borda verde */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efeito hover */
.miz-zoom-btn:hover {
    background: #5C922D !important; /* Fundo verde no hover */
    color: #ffffff !important; /* Ícone branco no hover */
    transform: scale(1.05);
    border-color: #5C922D !important;
}

/* Estilo para imagens com zoom habilitado */
img.miz-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Melhorias de acessibilidade */
.miz-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
