/* Pró-Criar – Ficha de Animal | Versão 4.0 */

.pc-wrap *, .pc-wrap *::before, .pc-wrap *::after { box-sizing: border-box; }

.pc-wrap {
    max-width: 1100px;
    margin: 30px auto;
    padding: 24px 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2c2c2c;
    line-height: 1.5;
}

/* HEADER */
.pc-header {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.pc-col-foto {
    flex: 0 0 380px;
    max-width: 380px;
}

.pc-col-dados {
    flex: 1;
    min-width: 260px;
}

/* FOTO PRINCIPAL */
.pc-foto-principal {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

.pc-foto-placeholder {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 2px dashed #ccc;
}

/* GALERIA */
.pc-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pc-galeria img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.65;
}

.pc-galeria img.ativa,
.pc-galeria img:hover {
    border-color: #1a7c3e;
    opacity: 1;
}

/* BOTÃO FAVORITO */
.pc-favorito { margin-top: 16px; }

.pc-btn-fav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #ffc107;
    color: #856404;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.pc-btn-fav:hover {
    background: #fff3cd;
    border-color: #e6a800;
    color: #5a4000;
}

.pc-btn-fav.pc-favoritado {
    background: #ffc107;
    border-color: #e6a800;
    color: #fff;
}

.pc-btn-fav.pc-favoritado:hover {
    background: #e6a800;
    border-color: #cc9a00;
    color: #fff;
}

.pc-btn-fav:disabled { opacity: 0.6; cursor: wait; }
.pc-fav-estrela { font-size: 18px; line-height: 1; }
.pc-fav-total   { font-size: 13px; font-weight: 400; opacity: 0.85; }

/* STATUS */
.pc-status {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* TÍTULO */
.pc-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pc-info-linha { font-size: 14px; color: #555; margin-bottom: 8px; }
.pc-info-linha strong { color: #1a1a1a; }
.pc-local { font-size: 14px; color: #777; margin-bottom: 14px; }

/* PREÇO */
.pc-preco {
    font-size: 26px;
    font-weight: 700;
    color: #1a7c3e;
    margin-bottom: 4px;
}

.pc-preco small {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.pc-preco-consulta {
    font-size: 18px;
    color: #888;
    font-style: italic;
    margin-bottom: 14px;
}

/* TABELA */
.pc-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.pc-tabela td {
    padding: 9px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.pc-tabela td:first-child {
    font-weight: 600;
    color: #555;
    width: 38%;
    background: #f8f8f8;
}

.pc-tabela td:last-child { color: #1a1a1a; }
.pc-tabela a { color: #1a7c3e; text-decoration: none; }
.pc-tabela a:hover { text-decoration: underline; }

/* SEÇÕES */
.pc-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #1a7c3e;
}

.pc-genealogia-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
    margin-bottom: 24px;
}

.pc-genealogia-link {
    display: inline-block;
    padding: 10px 22px;
    background: #1a7c3e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: background 0.2s;
}

.pc-genealogia-link:hover { background: #145f30; }

.pc-observacoes {
    background: #f9f9f9;
    border-left: 5px solid #1a7c3e;
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

/* VÍDEOS */
.pc-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.pc-video-wrap {
    flex: 1 1 400px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.pc-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.pc-video-local { flex: 1 1 400px; }
.pc-video-local video { width: 100%; border-radius: 12px; }

/* ── SEÇÃO QR CODE – PADRÃO PRÓ-CRIAR ─────────────────────
   Os estilos de .pc-prop-qr-section e filhos já estão
   no CSS Adicional do tema (Aparência → Personalizar).
   Aqui só garantimos o espaçamento correto dentro do wrap.
─────────────────────────────────────────────────────────── */
.pc-wrap .pc-prop-qr-section {
    margin-top: 44px;
    margin-bottom: 8px;
}

/* MODAL ZOOM */
.pc-modal-foto {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.pc-modal-foto.aberta { opacity: 1; pointer-events: auto; }

.pc-modal-foto-img {
    max-width: 94vw;
    max-height: 94vh;
    border-radius: 10px;
    object-fit: contain;
}

.pc-modal-foto-fechar {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    opacity: 0.85;
    transition: opacity 0.2s;
    user-select: none;
}

.pc-modal-foto-fechar:hover { opacity: 1; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .pc-header { flex-direction: column; gap: 20px; }
    .pc-col-foto { flex: 0 0 100%; max-width: 100%; }
    .pc-foto-principal { height: 260px; }
    .pc-titulo { font-size: 22px; }
    .pc-preco { font-size: 22px; }
    .pc-videos-grid { flex-direction: column; }
}

@media (max-width: 480px) {
    .pc-wrap { padding: 12px; }
    .pc-foto-principal { height: 220px; }
    .pc-galeria img { width: 60px; height: 60px; }
    .pc-titulo { font-size: 20px; }
    .pc-tabela td { display: block; width: 100%; }
    .pc-tabela td:first-child {
        border-bottom: none;
        padding-bottom: 2px;
        font-size: 12px;
        text-transform: uppercase;
    }
}