/* ===== MODAL DE VÍDEO (CSS Adicional) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 1000px; /* Ajuste para melhor enquadramento */
    position: relative;
    padding: 0; /* Remover padding para o vídeo */
    overflow: hidden; /* Garantir que o vídeo não saia do modal */
    border-radius: 12px;
}

.modal-content video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 16 / 9; /* Forçar proporção de vídeo */
}

/* Estilos para a Galeria de Produtos (Carousel) */
.product-gallery-content {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-gallery-content img {
    max-width: 90%;
    max-height: 70vh; /* Limitar a altura para caber na tela */
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.product-gallery-content img:hover {
    transform: scale(1.02);
}

.product-gallery-content .gallery-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

#prevButton {
    left: 10px;
}

#nextButton {
    right: 10px;
}

.close {
    color: #fff;
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

/* Ícone de Play para Vídeos */
.video-item {
    position: relative;
    cursor: pointer;
}

.video-item::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.video-item:hover::after {
    opacity: 1;
    color: var(--color-primary);
}
