/* Estilos no tema Gamxo - CORES VERDES #86ce00 */
.wpdm-package-card.gamxo-style {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.wpdm-package-card.gamxo-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.package-header {
    position: relative;
    overflow: hidden;
    min-height: 380px; /* Alterado para altura mínima em vez de fixa */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Adicionado padding para não cortar a imagem */
}

.package-thumb {
    width: 100%; /* Alterado para 100% para melhor aproveitamento do espaço */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-thumb img {
    width: 100%;
    height: auto;
    max-height: 380px; /* Altura máxima definida */
    object-fit: contain; /* Alterado de 'cover' para 'contain' para não cortar a imagem */
    display: block;
    border-radius: 8px;
}

.package-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #86ce00; /* VERDE */
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package-content {
    padding: 25px;
    box-sizing: border-box;
}

.package-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 20px 0;
    line-height: 1.4;
    word-wrap: break-word;
    min-height: 30px; /* Garante espaço mesmo se o título não aparecer */
}

.package-title a {
    color: inherit;
    text-decoration: none;
}

.package-title a:hover {
    color: #86ce00; /* VERDE */
}

.package-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #86ce00; /* VERDE */
    min-width: 0;
    box-sizing: border-box;
}

.meta-item i {
    color: #86ce00; /* VERDE */
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.meta-label {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 500;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
    word-wrap: break-word;
}

.download-button {
    text-align: center;
}

.view-details-btn {
    display: inline-block;
    background: #86ce00; /* VERDE */
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.view-details-btn:hover {
    background: #75b300; /* VERDE mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 206, 0, 0.3);
    color: #fff !important;
}

/* Correções para não cortar conteúdo */
.wpdm-package-card.gamxo-style {
    overflow: visible;
}

.package-content {
    overflow: visible;
}

.meta-item {
    overflow: hidden;
}

/* Responsividade melhorada */
@media (max-width: 1200px) {
    .package-meta-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .package-header {
        min-height: 300px; /* Altura mínima ajustada para mobile */
    }
    
    .package-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .package-content {
        padding: 20px;
    }
    
    .package-title {
        font-size: 20px;
    }
    
    .meta-item {
        padding: 12px;
    }
    
    .view-details-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .package-header {
        min-height: 260px; /* Altura mínima reduzida para telas pequenas */
    }
    
    .package-content {
        padding: 15px;
    }
    
    .package-title {
        font-size: 18px;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .meta-content {
        align-items: center;
    }
}

/* Garantir que tudo caiba dentro do container */
* {
    box-sizing: border-box;
}

.wpdm-package-card.gamxo-style * {
    max-width: 100%;
}

/* Override dos estilos padrão do WPDM */
.wpdm-package-card.gamxo-style table {
    display: none;
}

.link-template {
    display: none;
}

/* Remover qualquer estilo de download do WPDM */
.wpdm-download-link {
    display: none !important;
}

/* Estilo de fallback caso a imagem não carregue */
.package-thumb {
    background-color: #f5f5f5;
    min-height: 380px;
}

/* Garantir que o título seja exibido mesmo com problemas no shortcode */
.package-title:empty::before {
    content: "Título não disponível";
    color: #999;
    font-style: italic;
}