
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #1b1b5bdb;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  width: 95%;
  max-width: 600px;
  max-height: 97%;
  overflow-y: auto;
  position: relative;
  min-height: 97%;
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
}
.option-card:hover {
  border-color: #5050fb;
}
.option-card.selected {
  border-color: #5050fb;
  background: #f0f7ff;
}
.card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.card-content img {
  width: 55px;
  height: 55px;
}
.card-content > div {
  flex: 1;
}
.card-label {
  font-weight: bold;
  font-size: 15px;
  color: #000;
  font-family: 'Nunito', sans-serif;
}
.card-desc {
  font-size: 12px;
  color: #555;
  font-family: 'Nunito', sans-serif;
}
.card-price {
  font-weight: bold;
  color: #5050fb;
  white-space: nowrap;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
}

/* Label Recomendado */
.card-label-recomendado {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #e2ffe3;
  color: #01573c;
  font-size: 7px;
  font-weight: bold;
  padding: 0px 10px;
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
}

.btns-lente {
  margin-top: 0px;
  text-align: center;
}
.btn-lente {
  background: #5050fb;
  color: #fff;
  border: solid 3px #5c5cf1;
  padding: 15px 23px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  width: 100%;
}
.btn-lente:hover {
  background: #6c6ce7;
  color: #fff;
  border: solid 3px #5050fb;
}
.btn-combo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: solid 2px #838383;
    font-weight: 600;
    color: #646464;
    font-size: 14px;
    background: #f0f2ff;
}
.btn-lente:hover {
  background: #6c6ce7;
  color: #fff;
  border: solid 3px #5050fb;
}
.close-btn-lente {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: #000000;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.step-circle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  border: 2px solid #898be1;
}

.step-circle.active {
  background-color: #5050fb;
  color: white;
}

.option-card .card-footer {
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

.external-buy-btn {
  display: block;
  width: 100%;
  margin: 12px 0;
  text-align: center;
}

    /* Estilização do botão */
    .btn-lente-compra {
      position: relative;
      width: 100%;
      padding: 15px 15px;
      font-weight: 600;
      color: #5150fb;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background-color: #fff;
      border-radius: 5px;
      border: solid 2px #5150fb;
      cursor: pointer;
      margin-top: 8px;
      transition: background-color 0.3s ease;
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); /* Sombra inicial invisível */
    }

    /* Efeito de Aura Pulsante */
    .btn-lente-compra::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      border-radius: 5px;
      background-color: #d3d3f5; /* Cor suave da aura */
      animation: pulsar 2s ease-in-out infinite;
      z-index: -1; /* Para manter a aura atrás do botão */
    }

    /* Animação de pulsar */
    @keyframes pulsar {
      0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7); }
      70% { box-shadow: 0 0 0 7px rgba(0, 122, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
    }

    /* Ícone do botão */
    .btn-lente-compra img {
      width: 30px;
      height: 20px;
      filter: brightness(0) saturate(100%) invert(34%) sepia(60%) hue-rotate(190deg) saturate(600%) brightness(110%);
      transition: filter 0.3s ease; /* Transição suave para o efeito de hover */
    }

    /* Efeito ao passar o mouse */
    .btn-lente-compra:hover {
      background-color: #605ff9;
      color: #fff;
      box-shadow: 0 0 10px 3px rgba(37, 211, 102, 0.6); /* Aumenta a intensidade da sombra no hover */
    }

    /* Efeito de hover na imagem (remover filtro) */
    .btn-lente-compra:hover img {
      filter: none; /* Remove o filtro de cor na imagem */
    }

/* ====== MODAL DE DETALHES DA CATEGORIA ====== */

/* Botão "Mais detalhes" nos cards */
.btn-mais-detalhes {
  background: #f6f6f6;
  color: #000;
  border: 2px solid #e0e0e0;
  padding: 0px 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  position: absolute;
  right: -2px;
  top: -2px;
  width: auto;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
}

.btn-mais-detalhes:hover {
  background: #5050fb;
  color: white;
  border-color: #5050fb;
}

.btn-mais-detalhes i {
  font-size: 10px;
}

/* Modal overlay de detalhes */
.modal-detalhes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.modal-detalhes-overlay.show {
  display: flex;
}

/* Conteúdo do modal */
.modal-detalhes-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Corpo do modal */
.modal-detalhes-body {
  padding: 15px;
}

/* Footer do modal */
.modal-detalhes-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

/* Botão de fechar detalhes */
.btn-fechar-detalhes {
  background: #5050fb;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background-color 0.2s ease;
  width: 100%;
}

.btn-fechar-detalhes:hover {
  background: #4040e6;
}

/* Título */
.modal-detalhes-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

/* Container da imagem */
.modal-detalhes-imagem-container {
  text-align: center;
  margin-bottom: 20px;
}

/* Imagem */
.modal-detalhes-imagem {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Informações */
.modal-detalhes-info {
  text-align: center;
}

/* Preço */
.modal-detalhes-preco {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #5050fb;
  margin-bottom: 10px;
}

/* Legenda */
.modal-detalhes-legenda {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .modal-detalhes-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-detalhes-body {
    padding: 10px 10px;
  }
  
  .modal-detalhes-titulo {
    font-size: 18px;
  }
  
  .modal-detalhes-preco {
    font-size: 20px;
  }
  
  .modal-detalhes-imagem {
    max-height: 100%;
  }
  
  .modal-detalhes-footer {
    padding: 10px;
  }
  
  .btn-fechar-detalhes {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 180px;
  }
}

/* Evitar scroll do body quando modal está aberto */
body.modal-detalhes-open {
  overflow: hidden;
}

/* Botão de detalhes da espessura */
.card-label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-detalhes-espessura {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 0px 8px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: 5px;
}

.btn-detalhes-espessura:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #343a40;
}

/* Modal para detalhes da espessura */
.modal-detalhes-espessura {
  position: fixed;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-detalhes-espessura-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-detalhes-espessura h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  text-align: center;
}

.modal-detalhes-espessura p {
  margin: 10px 0;
  color: #666;
  font-family: 'Nunito', sans-serif;
  line-height: 1.5;
}

.modal-detalhes-espessura .detalhes-lista {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.modal-detalhes-espessura .detalhes-lista li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  color: #555;
  font-family: 'Nunito', sans-serif;
}

.modal-detalhes-espessura .detalhes-lista li:last-child {
  border-bottom: none;
}

.modal-detalhes-espessura .btn-fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-detalhes-espessura .btn-fechar:hover {
  color: #333;
}

/* Container da imagem dos detalhes da espessura */
.detalhes-imagem-container {
  text-align: center;
  margin-top: 20px;
  padding: 15px 0;
}

/* Imagem responsiva dos detalhes da espessura */
.detalhes-imagem {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.detalhes-imagem:hover {
  transform: scale(1.02);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .detalhes-imagem-container {
    margin-top: 15px;
    padding: 10px 0;
  }
  
  .detalhes-imagem {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 480px) {
  .detalhes-imagem-container {
    margin-top: 10px;
    padding: 5px 0;
  }
}