/* ======================================================
   VARIÁVEIS GLOBAIS
====================================================== */
:root {
    --primaria: #7b2cbf;
    --primaria-dark: #5a189a;

    --texto: #111;
    --texto-suave: #555;

    --bg: #ffffff;
    --cinza: #f5f5f5;

    --radius: 4px;
}

/* ======================================================
   GLOBAL
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: "Inter", sans-serif;
    color: var(--texto);
}
/* ======================================================
   BREADCRUMB — Igual ao da página de Livro
====================================================== */

.breadcrumb {
    font-size: 0.9rem;
    color: var(--texto-suave);
    margin: 25px 0 15px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb span {
    color: var(--texto-suave);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--primaria-dark);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .ativo {
    color: var(--texto);
    font-weight: 600;
}


/* ======================================================
   CONTAINER PRINCIPAL
====================================================== */

.produto-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}


/* ======================================================
   HEADER DO PRODUTO
====================================================== */

.produto-header {
    text-align: center;
    padding: 50px 0 10px;
}

.produto-header h1 {
    font-size: 2rem;
    color: var(--primaria);
    margin-bottom: 5px;
}

.produto-header .produto-cat {
    font-size: 0.95rem;
    color: var(--texto-suave);
}


/* ======================================================
   GRID: IMAGEM + INFO
====================================================== */

.produto-container {
    max-width: 1000px;
    margin: 0 auto;
}

.produto-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 850px) {
    .produto-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
    }
}


/* ======================================================
   IMAGEM DO PRODUTO — ESTILO CLEAN / EDITORIAL
====================================================== */

.produto-imagem img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
}

.produto-sem-img {
    width: 100%;
    height: 380px;
    background: var(--cinza);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--texto-suave);
    font-size: 1rem;
}


/* ======================================================
   INFORMAÇÕES DO PRODUTO
====================================================== */

.produto-info {
    padding-right: 10px;
}

.produto-preco-detalhe {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primaria);
    margin-bottom: 18px;
}

.produto-descricao {
    white-space: pre-line;
    color: var(--texto-suave);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
}


/* ======================================================
   BOTÃO ADICIONAR AO CARRINHO
====================================================== */

.produto-botoes {
    margin-top: 10px;
}

.btn-grande {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    background: var(--primaria);
    color: #fff;

    padding: 12px 26px;
    border-radius: var(--radius);

    font-size: 1rem;
    font-weight: 600;

    transition: 0.2s ease;
}

.btn-grande:hover {
    background: var(--primaria-dark);
}


/* ======================================================
   PRODUTOS RELACIONADOS — IMITA LISTAGEM DA LOJA
====================================================== */

.relacionados {
    margin-top: 70px;
    text-align: center;
}

.relacionados h2 {
    color: var(--primaria);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.relacionados .produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}


.relacionados .produto-card {
    padding: 5px;
}

.relacionados .produto-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 0;
    background: #fff;
}

.relacionados .produto-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 6px;
}

.relacionados .produto-preco-page {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primaria);
}


/* ======================================================
   RESPONSIVIDADE GERAL
====================================================== */

@media (max-width: 600px) {

    .produto-header h1 {
        font-size: 1.6rem;
    }

    .produto-imagem img {
        max-height: 340px;
    }

    .btn-grande {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .produto-grid {
        gap: 20px;
    }

    .produto-descricao {
        font-size: 0.92rem;
    }

    .relacionados .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ======================================================
   FOOTER — protegido
====================================================== */
footer,
.footer,
#footer {
  background: #1a1423 !important;
  color: #fff !important;
}
body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}
