/* Container Principal do Produto */
#product-details-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#product-details-container:hover {
    transform: translateY(-5px);
}

/* Galeria de Imagens */
#product-gallery {
    flex: 2;
    padding: 20px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fafafa;
}

#main-image-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

#main-image {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#main-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border 0.3s, transform 0.3s, opacity 0.3s;
    object-fit: cover;
    opacity: 0.8;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #3498db;
    transform: scale(1.1);
    opacity: 1;
}

/* Detalhes do Produto */
#product-info {
    flex: 1;
    padding: 20px;
    max-width: 400px;
    background-color: #fff;
}

#product-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s;
}

#product-title:hover {
    color: #c0392b;
}

#product-price {
    font-size: 22px;
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

#product-price:hover {
    color: #c0392b;
}

.old-price {
    text-decoration: line-through;
    color: #777;
    font-size: 16px;
}

.discount {
    background-color: #27ae60;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 14px;
}

.additional-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.highlight {
    color: #e67e22;
    font-weight: bold;
}

#payment-methods,
#return-policy {
    margin-bottom: 20px;
}

#payment-methods h4,
#return-policy h4,
#seller-summary h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

#payment-methods ul {
    list-style: none;
}

#payment-methods li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #555;
}

#payment-methods li i {
    color: #27ae60;
    margin-right: 8px;
}

#return-policy p {
    font-size: 14px;
    color: #555;
}

/* Resumo do Vendedor */
#seller-summary {
    margin-bottom: 20px;
}

#seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
}

#seller-details {
    display: flex;
    flex-direction: column;
}

#seller-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

#seller-reputation,
#seller-sales,
#seller-followers {
    font-size: 14px;
    color: #555;
}

/* Botões de Ação */
#buy-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: #e74c3c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #3498db;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

/* Estilo para a imagem principal */
#main-image {
    width: 100%;
    height: auto;
    border-radius: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo para as miniaturas */
.thumbnail-image {
    width: 80px;
    height: 80px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    border-radius: 4px;
}

/* Destaque para a miniatura ativa */
.thumbnail-image.active {
    border-color: #007bff;
    transform: scale(1.1);
}

/* Hover para miniaturas */
.thumbnail-image:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Adicionado ao contêiner da imagem principal */
#main-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1; /* Mantém proporção fixa */
    position: relative;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

/* Imagem principal */
#main-image {
    width: 300px;
    height: 500px;
    /* object-fit: cover; */ /* Mantém a proporção da imagem sem distorção */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito hover para a imagem principal */
#main-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Galeria de miniaturas */
#thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Miniaturas */
.thumbnail-image {
    width: 80px; /* Tamanho fixo */
    height: 80px;
    object-fit: cover; /* Garante que a imagem preencha sem distorção */
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0.8; /* Suaviza o visual padrão */
}

/* Miniatura ativa */
.thumbnail-image.active {
    border-color: #007bff; /* Destaque com borda azul */
    transform: scale(1.1); /* Leve aumento */
    opacity: 1;
}

/* Hover nas miniaturas */
.thumbnail-image:hover {
    border-color: #007bff;
    transform: scale(1.05);
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    #main-image-container {
        max-width: 90%; /* Ajuste em telas menores */
    }

    .thumbnail-image {
        width: 60px; /* Reduz tamanho das miniaturas */
        height: 60px;
    }
}
