/*////////////// CSS REVISTO //////////////*/

/* NAVBAR — estrutura base */

.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 100px;
    box-shadow: var(--soft-shadow, 0 0 10px rgba(0, 0, 0, 0.12));
}

.navbar.navbar-index>div {
    max-width: 1500px;
    gap: 2rem;
}

@media (max-width: 1300px) {
    .navbar.navbar-index>div {
        gap: 1rem;
    }
}

.bg-light {
    background-color: var(--color-white, #fff) !important;
}

.navbar-brand {
    margin-right: 0 !important;
    flex-shrink: 0;
}

.logotipo {
    width: 120px;
    height: auto;
}

/* NAV LINKS */

.nav-link {
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-align: center;
    padding: 4px 10px;
    line-height: 1.3;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    /* evita quebra inesperada */
}

@media (max-width: 1199px) {
    .nav-link br {
        display: none;
    }
}

.navbar-index .nav-link:hover {
    border-bottom: 3px solid var(--color-secondary, #06add3);
    color: #000;
}

.nav-link:active,
.icon-search:active,
.login-botao:active {
    color: #ccc;
}

/* BOTÃO DE PESQUISA */

.nav-btn-search {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 20px;
    color: inherit;
    transition: color 0.2s ease;
    line-height: 1;
}

.nav-btn-search:hover {
    color: var(--color-primary, #ff936d);
}

.icon-search:hover {
    color: var(--color-primary, #ff936d);
}

/* MODAL DE PESQUISA */

.modal-body .icon-search {
    font-size: 20px;
}

.modal-header h4 {
    font-size: 18px;
}

.modal-backdrop {
    --bs-backdrop-bg: var(--color-white, #fff);
    --bs-backdrop-opacity: 0.97;
}

.modal-content-header {
    border: none;
    background-color: var(--color-white, #fff);
}

.modalheader {
    border-bottom: none;
}

.form-style {
    font-family: "Montserrat", sans-serif;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #000 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.modal-body .form-control {
    background-color: transparent !important;
}

/* Botão submit dentro do modal */
.btn-pesquisa-submit {
    background: none;
    border: none;
    padding: 0.62rem .75rem !important;
    cursor: pointer;
    font-size: 20px;
    color: inherit;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.btn-pesquisa-submit:hover {
    color: var(--color-primary, #ff936d);
}

/* BOTÃO "COMPRAR CARTÃO" */

.botao-carrinho {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-primary, #ff936d) 0%, var(--color-primary-dark, #ff7d68) 100%);
    width: 160px;
    height: 40px;
    color: var(--color-white, #fff) !important;
    cursor: pointer;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.botao-carrinho:hover {
    opacity: 0.88;
}

/* BOTÃO "ATIVAÇÃO DO CARTÃO" */

.ativacao-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 190px;
    height: 40px;
    color: var(--color-white, #fff) !important;
    cursor: pointer;
    border: 2px solid var(--color-secondary, #04ACD3);
    border-radius: 10px;
    background-color: var(--color-secondary, #04ACD3);
    text-decoration: none;
    transition: filter 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.ativacao-botao:hover {
    filter: brightness(0.9);
}

/*  EFEITO HOVER NOS BOTÕES (icon desliza) — funciona com display:flex no pai */

.header-btn {
    position: relative;
    overflow: hidden;
}

/* Ícone: inicialmente à direita, ocupa 28% */
.header-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 25%;
    height: 90%;
    transition: width 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
    pointer-events: none;
}

/* Label: ocupa o espaço restante, centrado */
.header-btn-label {
    display: block;
    width: 75%;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4),
        opacity 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
    pointer-events: none;
}

.header-btn:hover .header-btn-icon {
    width: 100%;
}

.header-btn:hover .header-btn-label {
    left: -75%;
    opacity: 0;
}


/* LOGIN + LÍNGUA */

.login-botao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: var(--bs-nav-link-color);
    text-decoration: none;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.login-botao:hover {
    color: var(--color-primary, #ff936d);
}

.login-botao:active {
    color: #ccc;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.lang-divider {
    color: #ddd;
    font-size: 13px;
    line-height: 1;
    user-select: none;
}

.lang-btn {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #bbb;
    padding: 3px 5px;
    border-radius: 4px;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--color-secondary, #04ACD3);
}

.lang-btn.lang-active {
    color: var(--color-secondary, #04ACD3);
}

.nav-user-link,
.nav-logout-link {
    font-size: 13px;
    line-height: 1.3;
}


/* BLOCO UTILIZADOR LOGADO */

.nav-user-block {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card clicável: avatar + nome */
.nav-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    max-width: 150px;
    /* evita nomes muito longos reventarem o layout */
}

.nav-user-card:hover {
    background-color: #f5f5f5;
}

/* Círculo com a inicial */
.nav-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-secondary, #06add3);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* Coluna de texto: label + nome */
.nav-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-user-label {
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-user-name {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-heading, #181E4B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Botão de logout — só ícone, discreto */
.nav-logout-btn svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    fill: #bbb;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.nav-logout-btn:hover svg {
    fill: var(--color-primary, #ff936d);
    background-color: #fff0eb;
}

/****************** BOTÕES FLUTUANTES *****************/

.circuitos-floating-section {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn-flutuante-circuitos {
    background-color: var(--color-white);
    border-radius: 50%;
    border:none;
    box-shadow: var(--shadow);
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-heading);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    gap: 0.2rem;
}

.btn-flutuante-circuitos svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.btn-flutuante-circuitos span {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: var(--color-heading);
    line-height: 1;
    text-align: center;
}

.btn-flutuante-circuitos:hover {
    transform: perspective(600px) translateZ(30px) scale(1.06);
    box-shadow: var(--shadow);
    border: 5px solid var(--color-secondary);
}

.btn-flutuante-circuitos:hover svg {
    color: var(--color-secondary);
}

.btn-flutuante-circuitos:hover span {
    color: var(--color-secondary);
}
.circuitos-floating-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.circuitos-floating--hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#modalNlSocial {
    background: linear-gradient(to right, var(--color-secondary), var(--color-white));
    position: relative;
    overflow: hidden;
    height: 100vh;
}

#modalNlSocial .nl-svg-boneco,
#modalNlSocial .nl-svg-ponte {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

#modalNlSocial .nl-svg-boneco {
  left: 0;
  bottom: 0;
  width: clamp(100px, 18vw, 280px);
  height: auto;
}

#modalNlSocial .nl-svg-ponte {
  right: 0;
  top: clamp(2rem, 8vw, 6rem);
  width: clamp(100px, 20vw, 340px);
  height: auto;
}

#modalNlSocial .nl-svg-boneco svg,
#modalNlSocial .nl-svg-ponte svg {
  display: block;
  width: 100%;
  height: auto;
}

.modal-nl-social {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
}

.modal-nl-social-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-nl-titulo {
    color: var(--color-heading);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.modal-nl-subtitulo {
    color: var(--color-text);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    margin: 0;
}


.nl-form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.nl-input {
  flex: 1 1 220px;
  max-width: 360px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--color-heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-height: 50px;
}

.nl-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(4, 172, 211, 0.15);
  outline: none;
}

.nl-input::placeholder {
  color: var(--color-text);
  opacity: 0.55;
}

.btn-newsletter.btncircuitos-original  {
    background-color: var(--color-white);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}


.modal-nl-ou {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 1rem;
    color: var(--color-text);
    font-size: 0.8rem;
    opacity: 0.5;
}

.modal-nl-ou::before,
.modal-nl-ou::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: currentColor;
}


.modal-nl-social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.modal-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: clamp(0.82rem, 1vw, 0.9rem);
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.modal-social-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.modal-social-link--facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.modal-social-link--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

@media (max-width: 767px) {
  #modalNlSocial .nl-svg-boneco {
    width: clamp(70px, 22vw, 130px);
    opacity: 0.5;
  }

  #modalNlSocial .nl-svg-ponte {
    width: clamp(70px, 24vw, 140px);
    opacity: 0.4;
    top: 0;
  }

  .btn-flutuante-circuitos{
    width:2.5rem;
    height:2.5rem;
  }
}

@media (max-width: 479px) {

  #modalNlSocial .nl-svg-boneco,
  #modalNlSocial .nl-svg-ponte {
    display: none;
  }
}

@media (max-width: 575px) {
    .circuitos-floating-section {
        bottom: 1.25rem;
        right: 1.25rem;
        gap: 0.5rem;
    }

    #modalNlSocial .modal-dialog {
        margin-top: 0;
        margin-bottom: 0;
    }


    .modal-nl-form {
        flex-direction: column;
    }

    .modal-nl-input {
        width: 100%;
    }

    .modal-nl-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-social-link {
        justify-content: center;
    }
}


@media (min-width: 1400px) {
  #modalNlSocial .nl-svg-boneco {
    width: clamp(220px, 16vw, 320px);
  }

  #modalNlSocial .nl-svg-ponte {
    width: clamp(260px, 18vw, 380px);
  }
}