/**
 * Info Dados Cards - Componente de Exibição de Informações
 * 
 * Estilos para o componente que exibe informações detalhadas das lentes
 * ao interagir com os botões de seleção
 */

/* =========================================================================
   CONTAINER PRINCIPAL
   ========================================================================= */

.info-dados-cards {
    display: block;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s;
    border: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 40px);
    /* Tipografia padrão do sistema */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Remove qualquer herança indesejada */
    box-sizing: border-box;
}

.info-dados-cards.ksl9a3f2e1 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ajusta o container pai quando o card está ativo */
.ksla1bfc19.direita.info-card-ativo {
    overflow: hidden !important;
}

.kslcad2bb3.info-card-ativo {
    overflow: hidden !important;
    /* Remove padding para que o card ocupe todo o espaço */
    padding: 0 !important;
    /* Remove estilos que podem conflitar */
    text-align: left !important;
    /* Mantém apenas o background e border-radius do container */
}

/* =========================================================================
   HEADER DO CARD
   ========================================================================= */

.info-dados-cards__header {
    background: linear-gradient(135deg, #19204c 0%, #0056b3 100%);
    padding: 16px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.info-dados-cards__titulo {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;

    orphans: 2;
    widows: 2;
}

/* =========================================================================
   BODY DO CARD
   ========================================================================= */

.info-dados-cards__body {
    padding: 20px;
    box-sizing: border-box;
}

.info-dados-cards__imagem {
    margin-bottom: 20px;
    text-align: center;
}

.info-dados-cards__img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-dados-cards__descricao {
    margin-bottom: 20px;
}

.info-dados-cards__descricao p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
  
    orphans: 2;
    widows: 2;
}

.info-dados-cards__video-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.info-dados-cards__video-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.info-dados-cards__video-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

.info-dados-cards__video-btn i {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.info-dados-cards__video-btn-text {
    font-size: 11px;
    line-height: 1;
}

/* Esconde o texto em telas muito pequenas, mantém apenas o ícone - Regras 480px movidas para responsive/480.css */

/* =========================================================================
   DETALHES DO PRODUTO
   ========================================================================= */

.info-dados-cards__detalhes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.info-dados-cards__produto,
.info-dados-cards__preco-lente,
.info-dados-cards__preco-armacao,
.info-dados-cards__preco-total,
.info-dados-cards__prazo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-dados-cards__label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.info-dados-cards__valor {
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.info-dados-cards__preco-lente .info-dados-cards__valor {
    color: #007bff;
    font-size: 16px;
}

.info-dados-cards__preco-armacao .info-dados-cards__valor {
    color: #6c757d;
    font-size: 16px;
}

.info-dados-cards__preco-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
}

.info-dados-cards__preco-total .info-dados-cards__label {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.info-dados-cards__preco-total .info-dados-cards__valor--total {
    color: #28a745;
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.info-dados-cards__produto .info-dados-cards__valor {
    font-size: 15px;
    color: #495057;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* =========================================================================
   RESPONSIVE - MOBILE
   ========================================================================= */

/* Regras 768px movidas para responsive/768.css */

/* Regras 480px movidas para responsive/480.css */

/* =========================================================================
   ANIMAÇÕES
   ========================================================================= */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-dados-cards.ksl9a3f2e1 {
    animation: slideInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   ESTADOS ESPECIAIS
   ========================================================================= */

/* Botão selecionado */
.ksle849e11 button.selecionado {
    border-color: #007bff;
    background: linear-gradient(135deg, #e7f3ff 0%, #cfe2ff 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Ocultar coluna direita quando o card está ativo (desktop) */
@media (min-width: 769px) {
    .ksla1bfc19.direita.info-cards-oculto {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
}

/* Hover no card (desktop) */
/* Hover desativado conforme solicitado */

/* =========================================================================
   MODAL DE VÍDEO
   ========================================================================= */

/* O modal de vídeo do info-dados-cards agora usa as mesmas classes do modal de receita
   (ksl7f3a9b7-receita-modal) definidas em gavetas/gaveta-receita.css */

