/* ===========================
   PÁGINA DO PRODUTO
=========================== */

body{
    background:var(--background-color, #f8f8f8);
}

/* ===========================
   AÇÕES DO TOPO
=========================== */

.aviso-carrinho{
    width:90%;
    max-width:1300px;
    margin:0 auto 20px;
    padding:14px 20px;
    background:var(--surface-color, #fff);
    border:1px solid var(--border-color, rgba(0,0,0,.06));
    border-left:4px solid var(--accent-color, #0d6efd);
    border-radius:10px;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
    color:var(--text-color, #1a1a1a);
}

.aviso-carrinho i{
    color:var(--accent-color, #0d6efd);
    font-size:20px;
}

.aviso-carrinho a{
    margin-left:auto;
    color:var(--accent-color, #0d6efd);
    font-weight:700;
    text-decoration:underline;
    white-space:nowrap;
}

.acoes-topo{
    width:90%;
    max-width:1300px;
    margin:30px auto 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.btn-voltar{
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:var(--text-color, #333);
    background:var(--surface-color, #fff);
    padding:12px 22px;
    border-radius:999px;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
}

.btn-voltar:hover{
    background:var(--button-color, #333);
    color:var(--button-text-color, #fff);
}

/* ===========================
   BREADCRUMB
=========================== */

.breadcrumb{
    width:90%;
    max-width:1300px;
    margin:0 auto 25px;
    color:var(--text-secondary-color, #666);
    font-size:14px;
}

.breadcrumb a{
    color:var(--text-secondary-color, #666);
}

.breadcrumb a:hover{
    color:var(--accent-color, #0d6efd);
}

/* ===========================
   PRODUTO
=========================== */

.produto{
    width:90%;
    max-width:1300px;
    margin:auto;
    display:flex;
    gap:60px;
    background:var(--surface-color, white);
    padding:40px;
    border-radius:22px;
    border:1px solid var(--border-color, rgba(0,0,0,.05));
    box-shadow:0 15px 40px rgba(0,0,0,.06);
}

/* FOTO */

.produto-imagem{
    width:45%;
}

.produto-imagem img{
    width:100%;
    border-radius:16px;
    object-fit:cover;
}

.galeria-miniaturas{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.miniatura{
    width:64px;
    height:64px;
    padding:0;
    border:2px solid transparent;
    border-radius:10px;
    overflow:hidden;
    cursor:pointer;
    background:none;
    opacity:.7;
    transition:.2s;
}

.miniatura img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.miniatura:hover{
    opacity:1;
}

.miniatura.ativa{
    border-color:var(--accent-color, #333);
    opacity:1;
}

/* INFO */

.produto-info{
    width:55%;
    display:flex;
    flex-direction:column;
}

.titulo-favorito{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.titulo-favorito h1{
    font-size:32px;
    font-weight:700;
    color:var(--text-color, #222);
    line-height:1.25;
}

.titulo-favorito h2{
    margin-top:16px;
    font-size:28px;
    font-weight:700;
    color:var(--accent-color, #27ae60);
    display:flex;
    align-items:baseline;
    gap:12px;
}

.titulo-favorito h2 .preco-original{
    font-size:18px;
    font-weight:400;
    text-decoration:line-through;
    color:var(--text-secondary-color, #999);
}

.nota-atacado{
    margin:6px 0 0;
    font-size:14px;
    color:var(--text-secondary-color, #666);
}

/* FAVORITO */

.favorito{
    flex-shrink:0;
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:24px;
    background:var(--background-color, #eee);
    color:var(--text-color, #333);
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.25s;
}

.favorito:hover{
    background:#ff4d6d;
    color:white;
    transform:scale(1.06);
}

/* ESPECIFICAÇÕES */

.informacoes{
    margin-top:28px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.informacoes p{
    margin:0;
    background:var(--background-color, #f2f2f2);
    color:var(--text-secondary-color, #555);
    font-size:13.5px;
    padding:8px 16px;
    border-radius:999px;
}

.informacoes p strong{
    color:var(--text-color, #222);
    font-weight:600;
}

/* QUANTIDADE */

.quantidade{
    margin-top:36px;
}

.quantidade h3{
    font-size:15px;
    font-weight:600;
    color:var(--text-color, #222);
    margin-bottom:12px;
}

.contador{
    display:flex;
    align-items:center;
    gap:20px;
    width:fit-content;
    background:var(--background-color, #f2f2f2);
    border-radius:999px;
    padding:6px;
}

.contador button{
    width:38px;
    height:38px;
    border:none;
    background:var(--surface-color, #fff);
    cursor:pointer;
    border-radius:50%;
    font-size:18px;
    color:var(--text-color, #333);
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.contador span{
    font-size:18px;
    font-weight:600;
    min-width:20px;
    text-align:center;
}

/* BOTÃO */

.btn-carrinho{
    width:100%;
    margin-top:30px;
    padding:18px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    background:var(--button-color, #111);
    color:var(--button-text-color, #fff);
    font-size:17px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:.3s;
}

.btn-carrinho i{
    font-size:20px;
}

.btn-carrinho:hover{
    background:var(--button-hover-color, #333);
    transform:translateY(-2px);
}

.btn-carrinho:disabled{
    background:#ccc;
    color:#666;
    cursor:not-allowed;
    transform:none;
}

.esgotado{
    color:#c0392b;
    font-weight:600;
}

/* ===========================
   DESCRIÇÃO
=========================== */

.descricao{
    width:90%;
    max-width:1300px;
    margin:40px auto 60px;
    background:var(--surface-color, white);
    border:1px solid var(--border-color, rgba(0,0,0,.05));
    padding:35px;
    border-radius:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.06);
}

.descricao h2{
    margin-bottom:18px;
    font-size:20px;
    color:var(--text-color, #222);
}

.descricao p{
    color:var(--text-secondary-color, #555);
    line-height:1.8;
    white-space:pre-line;
}

/* ==========================================
   RESPONSIVIDADE - PRODUTO
========================================== */

@media (max-width:768px){

    .acoes-topo{
        width:95%;
        margin:20px auto;
        gap:10px;
    }

    .btn-voltar{
        padding:10px 18px;
        font-size:14px;
    }

    .breadcrumb{
        width:95%;
        font-size:13px;
        margin:0 auto 15px;
    }

    .produto{
        width:95%;
        flex-direction:column;
        padding:20px;
        gap:25px;
        border-radius:18px;
    }

    .produto-imagem,
    .produto-info{
        width:100%;
    }

    .produto-imagem img{
        width:100%;
        height:auto;
    }

    .titulo-favorito h1{
        font-size:26px;
    }

    .titulo-favorito h2{
        font-size:22px;
    }

    .favorito{
        width:44px;
        height:44px;
        font-size:20px;
    }

    .informacoes p{
        font-size:13px;
    }

    .btn-carrinho{
        margin-top:24px;
        font-size:16px;
    }

    .descricao{
        width:95%;
        padding:24px;
        border-radius:18px;
    }

    .descricao h2{
        font-size:18px;
    }

    .descricao p{
        font-size:14.5px;
    }

}
