/* =====================================================================================
   PRODUTO — PÁGINA INDIVIDUAL
   Arquivo: /views/style_produtos.css
   Autor: UNIÃO MADEIRAS (2025)
   Descrição: Estilos completos da página de produto, incluindo:
   - Header moderno
   - Galeria
   - Layout base
   - Bloco de medidas
   - Modal avançado
   - Produtos relacionados
===================================================================================== */


/* ============================================================
   1) HEADER DO PRODUTO
============================================================ */
.produto-header {
    background: linear-gradient(180deg, #f3fff5 0%, #ffffff 100%);
    padding: 15px 0 20px;
    text-align: center;
}

.produto-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f4a1c;
    margin-bottom: 10px;
}

.produto-breadcrumb {
    font-size: 15px;
    color: #1b5e20;
    margin-top: 5px;
}

.produto-breadcrumb a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 500;
}

.produto-breadcrumb span {
    margin: 0 6px;
}

.selo-capelinha {
    display: inline-block;
    margin-top: 18px;
    background: #e7f8ea;
    color: #0b3d17;
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #b7e6bf;
}


/* ============================================================
   2) IMAGEM PRINCIPAL E GALERIA
============================================================ */

.produto-foto img {
    width: 100%;
    border-radius: 24px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: .3s;
    cursor: zoom-in;
}

.produto-foto img:hover {
    transform: scale(1.02);
}

.galeria-mini {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.galeria-mini img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.galeria-mini img:hover {
    transform: scale(1.06);
}


/* ============================================================
   3) LAYOUT PRINCIPAL
============================================================ */

.produto-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.produto-esquerda { flex: 1 1 48%; }
.produto-direita  { flex: 1 1 48%; }

.descricao-produto {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

.descricao-produto h2,
.descricao-produto h3 {
    font-weight: 700;
    color: #0f4a1c;
}


/* ============================================================
   4) BOTÕES PADRÃO
============================================================ */

.btn-orcamento {
    margin-top: 25px;
    background: #0f4a1c;
    color: #fff;
    padding: 14px 26px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    width: 100%;
    transition: .3s;
}

.btn-orcamento:hover {
    background: #2d7b36;
}


/* ============================================================
   5) BLOCO DE MEDIDAS
============================================================ */

.bloco-medidas {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #dceedd;
    border-radius: 12px;
    background: #f6fff7;
}

.titulo-medidas {
    font-size: 20px;
    color: #0f4a1c;
    margin-bottom: 12px;
    font-weight: 700;
}

.medidas-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.medida-item {
    background: white;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #bcd9c4;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.medida-item input {
    transform: scale(1.2);
}

.medida-item .ok {
    color: green;
    font-size: 14px;
    display: none;
}

.medida-item input:checked + span + .ok {
    display: inline-block;
}


/* ============================================================
   6) MODAL DE COTAÇÃO
============================================================ */

.um-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.um-modal.open {
    display: flex;
}

.um-modal-box {
    background: white;
    padding: 30px;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0px 12px 32px rgba(0,0,0,.25);
}

.modal-item {
    background: #f8f8f8;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.modal-qtd {
    width: 80px;
    padding: 6px;
    margin-top: 6px;
}

.modal-btns {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.btn-outline {
    flex: 1;
    background: #fff;
    border: 1px solid #0f4a1c;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

.btn-solid {
    flex: 1;
    background: #0f4a1c;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}


/* ============================================================
   7) FAIXA FINAL
============================================================ */

.faixa-destaque-final {
    background: #0f4a1c;
    color: #fff;
    padding: 14px;
    font-size: 17px;
    border-radius: 12px;
    text-align: center;
    margin: 55px 0 35px;
    font-weight: 500;
}


/* ============================================================
   8) PRODUTOS RELACIONADOS
============================================================ */

.relacionados-titulo {
    margin-top: 60px;
    font-size: 24px;
    font-weight: 700;
    color: #0f4a1c;
}

.produto-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ececec;
    box-shadow: 0px 8px 18px rgba(0,0,0,0.08);
    transition: .3s;
    margin-bottom: 25px;
}

.produto-card:hover {
    transform: translateY(-6px);
}

.produto-card img {
    width: 100%;
    height: auto;
}

.produto-info {
    padding: 18px;
    text-align: center;
}

.produto-info h3 {
    font-size: 17px;
    color: #0f4a1c;
    font-weight: 600;
}

.btn-produto {
    width: 100%;
    background: #0f4a1c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 12px;
    border: none;
    cursor: pointer;
    transition: .3s;
}

.btn-produto:hover {
    background: #2d7b36;
}


/* ============================================================
   9) REMOVER CABEÇALHO ANTIGO
============================================================ */

#breadcrumbs,
#title-box {
    display: none !important;
}


/* ============================================================
   10) RESPONSIVO
============================================================ */

@media (max-width: 768px) {

    .produto-wrapper {
        flex-direction: column;
    }

    .medidas-lista {
        flex-direction: column;
    }

    .galeria-mini img {
        width: 100px;
        height: 100px;
    }
}
