/* ========== ESTILOS PARA PROMOÇÕES NUMÉRICAS ========== */

.promocoes-numericas-container {
    margin: 1.5rem 0;
    padding: 0 0.75rem;
    width: 100%;
}

.promocoes-header {
    margin-bottom: 1rem;
    padding: 0 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.promocoes-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-campanha-promocao-titulo-cor, #333);
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex: 0 0 auto;
}

.promocoes-subtitle {
    font-size: 0.875rem;
    color: var(--theme-campanha-promocao-subtitulo-cor, #666);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    flex: 1 1 100%;
    min-width: 0;
}

.promocoes-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4px 4px 4px;
    width: 100%;
}

.promocao-card {
    width: 100%;
    background: linear-gradient(135deg, var(--theme-campanha-promocao-card-fundo, #2d3748) 0%, #1a202c 100%);
    color: var(--theme-campanha-promocao-card-texto, #fff);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.promocao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.promocao-card:active {
    transform: translateY(0);
}

/* Selo no topo do card (ex.: "Mais Vendido") — mesma forma do "Mais popular": faixa no topo, cantos superiores arredondados */
.promocao-destaque-wrapper {
    margin: -12px -12px 0.5rem -12px;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.promocao-card.tem-selo-destaque .promocao-card-header {
    border-radius: 0;
}

.promocao-card.tem-selo-destaque .promocao-card-body {
    border-radius: 0 0 12px 12px;
}

.promocao-destaque {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    border-radius: 12px 12px 0 0;
    line-height: 1.35;
    display: block;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.promocao-destaque .promocao-destaque-texto {
    display: inline-block;
}

.promocao-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    width: 100%;
}

.promocao-info {
    flex: 1;
    line-height: 1.2;
}

.promocao-quantidade {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.promocao-preco {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.promocao-preco strong {
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

.promocao-desconto {
    background-color: var(--theme-campanha-promocao-tag-desconto-fundo, #ffc107);
    color: var(--theme-campanha-promocao-tag-desconto-texto, #000);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.promocao-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.promocao-preco-unitario {
    font-size: 0.65rem;
    background-color: rgba(0,0,0,0.3);
    color: white;
    font-weight: 200;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promocao-btn-comprar {
    background: linear-gradient(135deg, var(--theme-campanha-promocao-botao-comprar-fundo, var(--theme-cor-destaque, #10b981)) 0%, var(--theme-cor-destaque-escura, #059669) 100%);
    color: var(--theme-campanha-promocao-botao-comprar-texto, #fff) !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.promocao-btn-comprar:hover {
    background: var(--theme-campanha-promocao-botao-comprar-hover, var(--theme-cor-destaque-escura, #059669));
    transform: scale(1.02);
    color: var(--theme-campanha-promocao-botao-comprar-texto, #fff) !important;
}

.promocao-btn-comprar:active {
    transform: scale(0.98);
    color: var(--theme-campanha-promocao-botao-comprar-texto, #fff) !important;
}

.promocao-btn-comprar:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    color: var(--theme-campanha-promocao-botao-comprar-texto, #fff) !important;
}

.promocao-btn-comprar i {
    font-size: 0.875rem;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .promocoes-numericas-container {
        padding: 0 0.5rem;
        margin: 1rem 0;
    }
    
    .promocoes-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 2px 4px 2px;
    }
    
    .promocao-card {
        padding: 10px;
    }
    
    .promocoes-title {
        font-size: 1.1rem;
    }
    
    .promocoes-subtitle {
        font-size: 0.8rem;
    }
    
    .promocao-quantidade {
        font-size: 0.8rem;
    }
    
    .promocao-preco {
        font-size: 0.7rem;
    }
    
    .promocao-btn-comprar {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Responsividade Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .promocoes-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Responsividade Desktop */
@media (min-width: 769px) {
    .promocoes-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
