/* =======================================================
   custom.css — Hondasa
   Todas as customizações feitas ao longo do projeto:
   • Seletor de idiomas (bandeiras)
   • Botão Mercado Livre
   • Bloco "Não Encontrou"
   • Código da peça (product-code)
   ======================================================= */


/* =====================================================
   1. SELETOR DE IDIOMAS — APENAS BANDEIRAS
   ===================================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    font-size: 1.6rem;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    opacity: 0.4;
    filter: grayscale(60%);
}

.lang-btn:hover {
    opacity: 0.85;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 2px 6px rgba(232, 0, 45, 0.5));
    transform: scale(1.2);
}


/* =====================================================
   2. BOTÃO MERCADO LIVRE
   ===================================================== */
.btn-mercadolivre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    background-color: #FFE600;
    color: #333333;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-mercadolivre:hover {
    background-color: #f0d800;
    transform: translateY(-1px);
    color: #333333;
    text-decoration: none;
}

.btn-mercadolivre:active {
    transform: translateY(0);
}

.btn-mercadolivre img.ml-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* =====================================================
   3. CÓDIGO DA PEÇA — linha abaixo do nome
   ===================================================== */
.product-name .product-code {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
    font-family: 'Courier New', monospace;
    opacity: 0.75;
}


/* =====================================================
   4. BLOCO "NÃO ENCONTROU A PEÇA"
   ===================================================== */
.nao-encontrou {
    margin-top: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Barra vermelha lateral esquerda */
.nao-encontrou::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #e8002d;
    border-radius: 16px 0 0 16px;
}

/* Círculo decorativo de fundo */
.nao-encontrou::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: rgba(232, 0, 45, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.nao-encontrou-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(232, 0, 45, 0.4));
}

.nao-encontrou-text {
    flex: 1;
}

.nao-encontrou-text h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.nao-encontrou-text h3 span {
    color: #e8002d;
}

.nao-encontrou-text p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.nao-encontrou-text p strong {
    color: #ffffff;
}

.nao-encontrou-cta {
    flex-shrink: 0;
}


/* =====================================================
   5. RESPONSIVO — ajustes mobile
   ===================================================== */
@media (max-width: 768px) {

    /* Bloco não encontrou empilha vertical */
    .nao-encontrou {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .nao-encontrou::before {
        width: 100%;
        height: 4px;
        border-radius: 16px 16px 0 0;
    }

    .nao-encontrou-cta {
        width: 100%;
    }

    .nao-encontrou-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Bandeiras: tamanho reduzido no mobile */
    .lang-btn {
        font-size: 1.35rem;
    }
}
