/* ============================================================
   ESTILOS DE ZOOM / ECRÃ INTEIRO (BRISA & MEL)
============================================================ */

/* CONTAINER DA IMAGEM */
.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-container > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-zoom-container:hover > img {
    transform: scale(1.03);
}

/* BOTÃO DE ZOOM NO PRODUTO */
.zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--castanho, #51463a);
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.zoom-btn:hover {
    transform: scale(1.12);
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.zoom-btn:focus-visible {
    outline: 2px solid var(--castanho, #51463a);
    outline-offset: 2px;
}

/* FUNDO DO MODAL DE ZOOM / ECRÃ INTEIRO */
.zoom-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(20, 16, 13, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* QUANDO O MODAL ESTÁ ABERTO */
.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

/* BARRA DE FERRAMENTAS SUPERIOR (ECRÃ INTEIRO & FECHAR) */
.zoom-modal-toolbar {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100001;
}

.zoom-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.zoom-toolbar-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.zoom-toolbar-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.zoom-fullscreen-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.zoom-close {
    font-size: 32px;
    font-weight: 300;
}

/* ÁREA DE CONTEÚDO AMPLIADO */
.zoom-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
    cursor: default;
    user-select: none;
}

/* IMAGEM EM ECRÃ INTEIRO */
.zoom-modal img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-modal.active img {
    transform: scale(1);
}

/* LEGENDA / NOME DA PEÇA */
.zoom-modal-caption {
    margin: 14px 0 0 0;
    color: #f8f5ef;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.88;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .zoom-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }

    .zoom-modal {
        padding: 16px;
    }

    .zoom-modal-toolbar {
        top: 14px;
        right: 14px;
        gap: 8px;
    }

    .zoom-toolbar-btn {
        width: 40px;
        height: 40px;
    }

    .zoom-close {
        font-size: 28px;
    }

    .zoom-modal img {
        max-width: 94vw;
        max-height: 76vh;
    }

    .zoom-modal-caption {
        font-size: 13px;
        margin-top: 10px;
    }
}