/* Container e Reset */
#gpv-my-heroes {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
    background: #fff;
    position: relative;
    z-index: 10;
    font-family: inherit; /* Herda a fonte do site */
}

.mh-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.mh-wrapper * {
    box-sizing: border-box;
}

/* Header */
.mh-header { text-align: center; margin-bottom: 40px; }
.mh-h1 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}
.mh-subtitle { color: #666; font-size: 1.1rem; }

/* Grid de Cards */
.mh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

/* Estilo do Card */
.mh-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante altura igual na linha */
}

.mh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Imagem do Card */
.mh-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Quadrado perfeito 1:1 */
    background: #f3f4f6;
}

.mh-card-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge (Tipo do Produto) */
.mh-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}
.mh-badge img.emoji { margin: 0; width: 14px; } /* Ajuste para emojis WP */

/* Corpo do Card */
.mh-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Ocupa o resto da altura */
    gap: 12px;
}

.mh-card-date {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: auto; /* Empurra conteúdo para baixo se sobrar espaço */
}

/* Select (Dropdown) */
.mh-card-select-wrap {
    position: relative;
    width: 100%;
}

.mh-card-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    appearance: none; /* Remove estilo nativo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.mh-card-select:focus {
    border-color: #2AC8D3;
    outline: none;
    background-color: #fff;
}

/* Preço */
.mh-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    min-height: 28px; /* Evita pulo se vazio */
}
.mh-card-price del { font-size: 0.9rem; color: #9ca3af; font-weight: 400; margin-right: 8px; }
.mh-card-price ins { text-decoration: none; color: #111827; }

/* Botão Adicionar (Visível e Robusto) */
.mh-btn-add {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2AC8D3, #8882EE);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 5px;
}

.mh-btn-add:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}

.mh-btn-add:active { transform: translateY(0); }

.mh-btn-add:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.mh-btn-add.success {
    background: #10b981; /* Verde Sucesso */
}

/* Spinner e Loading */
.mh-step-loading { text-align: center; padding: 40px; }
.mh-spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2AC8D3;
    border-radius: 50%;
    animation: mh-spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes mh-spin { to { transform: rotate(360deg); } }

/* Inputs Iniciais */
.mh-input-wrap { display: flex; gap: 10px; max-width: 500px; margin: 20px auto; }
.mh-input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; }
.mh-cta { background: #333; color: #fff; border:none; padding: 0 24px; border-radius: 8px; cursor: pointer; }

/* Ajuste Mobile */
@media (max-width: 600px) {
    .mh-grid { grid-template-columns: 1fr; } /* 1 coluna no mobile */
    .mh-input-wrap { flex-direction: column; }
    .mh-cta { width: 100%; padding: 12px; }
}

/* --- PATCH VISUAL --- */

/* Restaura visibilidade dos Steps iniciais */
.mh-step {
    padding: 20px 0;
    animation: mhFadeIn 0.3s ease-out;
}

@keyframes mhFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Garante estilo dos botões de método (Step 0) */
.mh-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.mh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mh-btn:hover {
    border-color: #2AC8D3;
    color: #2AC8D3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 200, 211, 0.15);
}

.mh-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #6b7280;
}
.mh-btn-ghost:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
    box-shadow: none;
}

/* --- PATCH: Input Screen Moderno (Step 1) --- */

#mh-step-input {
    max-width: 520px; /* Um pouco mais largo */
    margin: 30px auto;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #f3f4f6; /* Borda bem suave */
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); /* Sombra mais difusa e moderna */
    text-align: center;
}

.mh-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827; /* Preto suave */
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Wrapper do Input + Botão */
.mh-input-wrap {
    display: flex;
    flex-direction: column; 
    gap: 15px;
    width: 100%;
}

.mh-input {
    width: 100%;
    padding: 18px 24px; /* Padding generoso */
    border: 2px solid #e5e7eb;
    border-radius: 16px; /* Borda mais arredondada */
    font-size: 1.5rem; /* Texto GRANDE */
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    background: #f9fafb; /* Fundo levemente cinza */
    transition: all 0.25s ease;
    outline: none;
    letter-spacing: 1px;
}

.mh-input:focus {
    border-color: #8882EE;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(136, 130, 238, 0.15);
    transform: translateY(-2px);
}

.mh-input::placeholder { 
    color: #d1d5db; 
    font-weight: 400; 
    letter-spacing: normal;
    font-size: 1.2rem;
}

/* Botão de Busca */
.mh-cta {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2AC8D3 0%, #8882EE 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 8px 20px rgba(136, 130, 238, 0.25);
}

.mh-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(136, 130, 238, 0.35);
    filter: brightness(1.05);
}

.mh-cta:active { 
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(136, 130, 238, 0.2);
}

/* Link Voltar */
.mh-link-sm {
    background: none;
    border: none;
    margin-top: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    padding: 8px 16px;
    border-radius: 50px;
}

.mh-link-sm:hover { 
    color: #4b5563; 
    background: #f3f4f6;
}

/* Desktop */
@media (min-width: 768px) {
    #mh-step-input { padding: 50px; }
    
    .mh-input-wrap {
        flex-direction: row; 
        align-items: center;
    }
    
    .mh-input {
        text-align: left;
        flex: 1.5; 
        border-radius: 16px 0 0 16px; /* Junta com o botão */
        border-right: none;
        padding-right: 10px;
    }
    
    .mh-cta {
        flex: 1; 
        border-radius: 0 16px 16px 0; /* Junta com o input */
        width: auto;
        box-shadow: none; /* Sombra unificada seria complexa, removemos aqui */
    }
    
    /* Efeito de foco unificado no desktop */
    .mh-input:focus {
        z-index: 2; /* Traz pra frente pra borda aparecer sobre o botão */
        border-right: 2px solid #8882EE;
        border-radius: 16px;
    }
    
    /* Botão hover no desktop precisa de border-radius full se input focar? 
       Não, mantemos o visual "fusionado" estilo Mailchimp/Stripe */
}

/* Correção do Botão nos Cards (estava invisível/branco) */
.mh-btn-add {
    background: linear-gradient(90deg, #2AC8D3, #8882EE) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(136, 130, 238, 0.2);
}
.mh-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(136, 130, 238, 0.3);
}

/* Correção de Preço Vazio */
.mh-card-price:empty::before {
    content: "Consulte";
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
}

/* PATCH: Ajuste de altura e padding do Select */
.mh-card-select {
    height: auto !important; /* Remove altura fixa se houver */
    padding: 12px 36px 12px 12px !important; /* Mais espaço interno */
    line-height: 1.4 !important;
    min-height: 44px; /* Altura mínima confortável para toque */
    white-space: normal; /* Permite quebra de linha se necessário */
    text-overflow: ellipsis;
}

/* Ajuste fino para Mobile */
@media (max-width: 600px) {
    .mh-card-select {
        font-size: 16px !important; /* Evita zoom automático no iOS */
    }
}