.voltar-loja {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--primary-dark);
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.voltar-loja:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 0, 0, 0.10);
}

.produto-detalhe {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* =========================
   GALERIA DO PRODUTO
========================= */

.produto-galeria-completa {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: start;
}

.miniaturas-lateral {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.miniatura {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 2px solid #ddd;
    cursor: pointer;
    background: #eee;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.miniatura:hover {
    border-color: var(--primary);
    transform: scale(1.03);
}

.miniatura.ativa {
    border-color: var(--accent);
}

.imagem-principal-area {
    width: 100%;
    height: 500px;
}

.produto-imagem-principal {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
    background: #eee;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.produto-sem-imagem-grande {
    width: 100%;
    height: 500px;
    background: #eee;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* =========================
   INFORMAÇÕES DO PRODUTO
========================= */

.produto-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.produto-info h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.produto-preco {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 10px 0 20px;
    line-height: 1;
}

.bloco-descricao {
    margin: 18px 0 24px;
}

.bloco-descricao h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.produto-descricao-completa {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.produto-acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.produto-acoes label {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.produto-acoes input {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
}

/* =========================
   BOTÕES DO PRODUTO
========================= */

.produto-acoes .btn-carrinho,
.produto-acoes .btn-ir-carrinho,
.produto-acoes .btn-comprar {

    width: 100%;

    min-height: 48px;

    padding: 0 16px;

    border-radius: 16px;

    border: none;

    font-size: 14px;

    font-weight: 800;

    text-align: center;

    cursor: pointer;

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease,
        background .18s ease;

}

.produto-acoes .btn-carrinho {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.produto-acoes .btn-carrinho:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

.produto-acoes .btn-comprar {

    min-height: 52px;

    font-size: 15px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #ff9a3c
        );

    color: #ffffff;

    box-shadow:
        0 16px 32px rgba(255, 122, 0, 0.32);

}

.produto-acoes .btn-comprar:hover {

    transform: translateY(-2px);

    filter: brightness(1.12);

    box-shadow:
        0 20px 38px rgba(255, 122, 0, 0.38);

}

.produto-acoes .btn-ir-carrinho {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.produto-acoes .btn-ir-carrinho:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

/* =========================
   RELACIONADOS
========================= */

.relacionados {
    margin-top: 40px;
}

.divisor-relacionados {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    margin: 40px 0 20px 0;
}

.relacionados > h2 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.1;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.relacionado-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.relacionado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.relacionado-imagem {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    background: #eee;
    margin-bottom: 12px;
}

.relacionado-card h3 {
    font-size: 16px;
    margin: 8px 0;
    width: 100%;
}

.relacionado-card h3 a {
    text-decoration: none;
    color: var(--text);
}

.relacionado-preco {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 0 0 12px;
}

.produto-sem-imagem {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin-bottom: 12px;
}

/* RELACIONADOS - BOTÃO */

.relacionado-card .btn-ver-produto {
    min-width: 118px;
}

/* =========================
   MODAL
========================= */

.modal-imagem {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal-galeria-box {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    width: min(1100px, 95vw);
    max-height: 90vh;
    background: #111;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.modal-miniaturas-lateral {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-miniatura {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 2px solid #444;
    cursor: pointer;
    background: #222;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.modal-miniatura:hover {
    border-color: #fff;
    transform: scale(1.03);
}

.modal-miniatura.ativa {
    border-color: var(--accent);
}

.modal-imagem-area {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-conteudo {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.fechar-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {
    .produto-detalhe {
        grid-template-columns: 1fr;
    }

    .produto-galeria-completa {
        grid-template-columns: 1fr;
    }

    .miniaturas-lateral {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .miniatura {
        width: 70px;
        height: 70px;
    }

    .imagem-principal-area {
        height: auto;
    }

    .produto-imagem-principal {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .produto-sem-imagem-grande {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .modal-galeria-box {
        grid-template-columns: 1fr;
    }

    .modal-miniaturas-lateral {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .modal-miniatura {
        width: 70px;
        height: 70px;
        flex: 0 0 auto;
    }
}