/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

/* Container raiz da página do produto */
.product-container {
    padding-top: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Roboto', sans-serif;
    color: #2c3e50; /* Cor institucional escura */
}

.product-datasheet a, .product-video-link a{
    color: blue;
}

/* Container de imagens e galeria */
.product-images {
    display: flex;
    gap: 1.5rem;
    flex: 1 1 500px;
    min-width: 300px;
    max-width: 600px;
}

/* Imagem principal do produto */
.main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s ease;
}

/* Thumbnails verticais */
.thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 4px;
}

/* Imagem em miniatura */
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #00000018;
    /* border-radius: 15rem; */
    /* box-shadow: 0 0 8px rgba(143, 0, 0, 0.336); */
}

/* Wrapper das imagens */
.imagem-container {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
}


/* ==========================================================================
   BLOCO DE INFORMAÇÕES DO PRODUTO
   ========================================================================== */

.product-info {
    flex: 1 1 400px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title {
    text-align: left;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.product-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.promo-badge {
    background-color: #dc3545;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.SKU {
    font-size: 0.9rem;
    margin-bottom: -0.5rem;
    color: #444;
    font-family: monospace;
}


/* ==========================================================================
   DESCRIÇÃO DO PRODUTO
   ========================================================================== */

.product-description {
    line-height: 1.6;
    color: #444;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
}

/* Área expandida da descrição */
.product-description-full {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 40px 1rem;
    margin: 0 auto;
    text-align: left !important;
    line-height: 1.6;
    font-size: 1rem;
    color: #2c3e50;
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-description-full * {
    text-align: left !important;
}

h1 {
    text-align: center;
    font-weight: 700;
    color: #222;
}


/* ==========================================================================
   AÇÕES DO USUÁRIO (CARRINHO, COMPARTILHAMENTO, ETC.)
   ========================================================================== */

/* Ações do produto (botões e quantidade) */
.produto-card {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Muda o alinhamento para a esquerda */
    gap: 1rem;
    margin-top: 1rem;
    margin-left: -20px; /* Opcional, ajuste conforme necessário */
}

/* Campo de quantidade */
.produto-card input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

/* Formulário de adição ao carrinho */
.form-carrinho {
    margin-top: 20px;
}

/* Input de quantidade separado */
.input-quantidade {
    width: 80px;
    height: 45px;
    padding: 5px;
    margin-left: 10px;
    margin-right: 0.5px;
    font-size: 16px;
}

/* Botão adicionar ao carrinho */
.btn-adicionar-carrinho {
    background-color: #008686;
    color: white;
    padding: 15px 5px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.btn-adicionar-carrinho:hover {
    background-color: #000000;
}

/* Botão para importar lista de produtos */
.btn-importar-lista {
    background-color: #008686;
    color: white;
    border: none;
    padding: 12px 5px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

.btn-importar-lista:hover {
    background-color: #000000;
}


/* ==========================================================================
   COMPONENTES AUXILIARES
   ========================================================================== */

/* Linha divisória */
.separador {
    width: 100%;
    height: 1.5px;
    background-color: #eee;
    margin: 2rem 0;
    border-radius: 1px;
}

/* Grid de compartilhamento */
.share-grid {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 5px 0;
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    flex-wrap: wrap;
}

.share-grid span {
    margin-right: 10px;
}

.share-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 18px;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 991px) {
    .product-container {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
    }

    .product-images {
        justify-content: center;
        max-width: 100%;
    }

    .imagem-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .thumbnails-vertical {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        margin-top: 1rem;
        gap: 10px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .main-image {
        max-height: 300px;
        height: auto;
    }

    .produto-card {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.6rem;
    }

    .main-image {
        max-height: 250px;
    }

    .btn-orcamento {
        width: 100%;
        text-align: center;
    }

    .produto-card {
        flex-direction: column;
        align-items: stretch;
    }

    .produto-card input[type="number"] {
        width: 100%;
    }

    .share-grid {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .btn-adicionar-carrinho {
        scale: 0.9;
    }
}

@media (max-width: 450px) {
    .btn-adicionar-carrinho {
        scale: 0.8;
    }
}
.separador {
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  margin: 0.1rem 0;
}
.separadordesc {
  width: 100%;
  height: 0.5px;
  background-color: #e0e0e0;
  margin: 5rem 0;
}
.main-image {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-image:hover {
    transform: scale(1.1);
    position: relative;

}
.product-price {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-price strong {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.preco-formatado {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9230f; /* Vermelho escuro institucional */
}

.product-price {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.preco-formatado {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9230f; /* Vermelho institucional */
}

.preco-sob-consulta {
    font-size: 1.6rem;
    font-weight: 600;
    color: #6c757d; /* Cinza elegante para indicar informação secundária */
    font-style: italic;
}
/* Estilos para os efeitos de carregamento */
.thumbnail-loading, .main-image-loading, .modal-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.thumbnail-container {
    position: relative;
    min-height: 60px; /* Altura mínima para o efeito de loading */
}

.main-image-container {
    position: relative;
    min-height: 300px; /* Altura mínima para o efeito de loading */
    cursor: zoom-in;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.452);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.modal-caption {
    margin: auto;   
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fafafa;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #0000007c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #212529;
}

.preco-antigo {
    font-size: 1.4rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 1rem;
}

.preco-formatado {
    color: #d7263d; /* vermelho promocional */
}

.preco-sob-consulta {
    color: #555;
    font-style: italic;
}
.product-description-full table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #222;
    background-color: #f8f8f8;
}

.product-description-full th,
.product-description-full td {
    border: 1px solid #ccc;
    padding: 3px 6px;
    line-height: 1.1;
    text-align: left;
    vertical-align: middle;
}

/* Cabeçalho com fundo escuro institucional */
.product-description-full th {
    background-color: #1f2d3d;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
}

/* Linhas alternadas (zebra monocromática) */
.product-description-full tr:nth-child(even) {
    background-color: #eeeeee;
}
.product-description-full tr:nth-child(odd) {
    background-color: #ffffff;
}
.form-group-horizontal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 280px; /* ajuste conforme seu layout */
}

.form-group-horizontal label {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    color: #343a40;
}

.form-group-horizontal select {
    flex-grow: 1;
    font-size: 0.85rem;
    padding: 0.4rem;
    border: 1px solid #6c757d;
    border-radius: 0.25rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-group-horizontal select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,.2);
}
