/* Estilos para a galeria de imagens do produto */

.produto-imagens {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.produto-imagem-principal {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.produto-imagem-principal img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.produto-imagem-principal:hover img {
    transform: scale(1.02);
}

.produto-galeria {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.galeria-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
}

.galeria-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.galeria-thumbnails::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.galeria-thumbnails::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.galeria-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.thumbnail-item.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* Badges sobre a imagem principal */
.badge-destaque,
.badge-desconto {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.badge-destaque {
    left: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.badge-desconto {
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .produto-imagens {
        gap: 15px;
    }
    
    .galeria-thumbnails {
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .badge-destaque,
    .badge-desconto {
        top: 8px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .badge-destaque {
        left: 8px;
    }
    
    .badge-desconto {
        right: 8px;
    }
}

@media (min-width: 769px) {
    .produto-imagens {
        gap: 25px;
    }
    
    .galeria-thumbnails {
        gap: 15px;
        padding-bottom: 15px;
    }
    
    .thumbnail-item {
        width: 90px;
        height: 90px;
    }
    
    .thumbnail-item:hover {
        transform: translateY(-3px);
    }
}

/* Animações */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.produto-imagem-principal img {
    animation: fadeInScale 0.5s ease-out;
}

.thumbnail-item {
    animation: fadeInScale 0.3s ease-out;
}

.thumbnail-item:nth-child(1) { animation-delay: 0.1s; }
.thumbnail-item:nth-child(2) { animation-delay: 0.2s; }
.thumbnail-item:nth-child(3) { animation-delay: 0.3s; }
.thumbnail-item:nth-child(4) { animation-delay: 0.4s; }
.thumbnail-item:nth-child(5) { animation-delay: 0.5s; }
