/* Container geral */
#configurador {
    font-family: 'Arial', sans-serif;
}

/* Cada grupo de opção */
.opcao {
    margin-bottom: 25px;
    padding: 17px;
background: white;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

}

/* Título da opção */
.opcao h4 {
    margin-bottom: 10px;
    color: #5c4438;
    font-size: 16px;
    border-bottom: 4px solid #e8dcd1;
    padding-bottom: 10px;
}

/* Rótulo da imagem */
.opcao label {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px !important;
    margin: 1px;
}

/* Efeito hover */
.opcao label:hover {
    transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-radius: 8px !important;
}

/* Imagens das opções */
.opcao img {
    width: 90px !important;
    border-radius: 8px !important;
    border: 0px solid transparent;
    transition: border 0.3s, transform 0.2s;
}

/* Estilo quando selecionado */
.opcao input[type="checkbox"]:checked + img {
    width: 100px !important;
    border: 1px solid #a77f55;
    background-color: #f4f4f49e;

}

/* Preview das camadas */
#preview {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px dashed #e8dcd1;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagens dentro do preview */
#preview img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Caixa das opções configurador */
#configurador .opcoes {
    padding-bottom: 80px; /* espaço para não esconder opes atrás do botão fixo */
}








#configurador {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Caixa de opções com rolagem interna no computador */
#configurador .opcoes {
    flex: 1;
    max-height: 550px; /* altura fixa para scroll interno */
    overflow-y: auto; /* rolagem só dentro desta caixa */
    border: 0px solid #ddd;
}




#configurador .opcoes {
    flex: 1;
    order: 2; /* Desktop: opçes à esquerda */


}
#preview {
    width: 500px;
    height: 500px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    display: flex;
        align-items: center;
    justify-content: center;
    order: 1; /* Desktop: preview à direita */
    
}

#preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#configurador .opcao {
    display: block !important;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    align-items: center;
}

#configurador .opcao h4 {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#configurador .opcao h4::after {
    content: '';
    transition: transform 0.3s ease;
}

#configurador .opcao.aberto h4::after {
    transform: rotate(90deg);
}

#configurador .itens-opcao {
    display: none;
    margin-top: 10px;
}

#configurador .opcao.aberto .itens-opcao {
    display: block;
}

#configurador .opcao label {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0px;
    transition: border-color 0.3s;
}



#configurador .opcao input[type=radio] {
    display: none;
}

#configurador .opcao input[type=radio]:checked + img {
    border: 1px solid #7c5f43;
    border-radius: 4px;
}


/* Responsivo: Mobile */

@media (max-width: 600px) {
    
#preview {
    height: 400px;
    width: 400px;
}

#configurador {
    gap: 0px;
}



#configurador .opcoes {
    flex: 1;
    max-height: 230px; /* altura fixa para scroll interno */
}




}






@media (max-width: 768px) and (min-width: 481px) {
    /* Cada grupo de opção */
/* Preview das camadas */
#preview {
    width: 350px;
    height: 350px;
}

.opcao {
    min-width: 320px;

}




}


#enviar-configuracao {
    pointer-events: auto;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #5a4631 !important;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    z-index: 9000 !important; /* aumente mais ainda */
    display: flex;
    align-items: center;
    gap: 8px;
    touch-action: manipulation; /* Ajuda no iOS */
    -webkit-tap-highlight-color: transparent; /* Remove efeito colateral no toque */
}


#configurador input[type="checkbox"] {
display:none !important;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: sans-serif;
    font-size: 1.1rem;
    color: #333;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4a373;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


  


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7); /* branco com transparência */
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px); /* opcional, mas elegante */
}

  .solenvie-modal-content {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  backdrop-filter: blur(6px);
  padding: 20px;
}


.popup-modal-content {
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  max-width: 620px;
  width: 100%;
  padding: 32px 26px;
  font-family: 'Inter', sans-serif;
  position: relative;
  animation: fadeInUp 0.4s ease;
  color: #5c4033;
    background: white url('') center;
  background-size: cover;
  background-repeat: no-repeat;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-header {
  text-align: center;
  margin-bottom: 24px;
}

.popup-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 10px 0 4px;
}

.popup-header p {
  font-size: 14px;
  color: #7e6c5d;
}

.popup-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.estrela {
  width: 34px;
  height: 34px;
}

.popup-body label {
  display: block;
  font-weight: 500;
  margin-top: 16px;
  font-size: 14px;
}

.popup-body input[type="number"],
.popup-body textarea,
.popup-body input[type="file"] {
  width: 100%;
  border: 1px solid #dbcbb7;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  background: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.popup-footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.btn-confirmar {
  background: #5c4033;
  color: white;
}

.btn-confirmar:hover {
  background: #3f2b22;
}

.btn-voltar {
  background: transparent !important;
  color: #5c4033 !important;
  text-decoration: underline;
}

.btn-voltar:hover {
  color: #3f2b22;
}

.icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .popup-modal-content {
    padding: 24px 18px;
    border-radius: 12px;
    max-width: 95vw;
    width: 95vw;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .popup-header h2 {
    font-size: 20px;
  }

  .popup-header p {
    font-size: 13px;
  }

  .estrela {
    width: 26px;
    height: 26px;
  }

  .popup-body label {
    font-size: 13px;
    margin-top: 12px;
  }

  .popup-body input[type="number"],
  .popup-body textarea,
  .popup-body input[type="file"] {
    font-size: 13px;
    padding: 8px 10px;
  }

  .popup-footer {
    margin-top: 24px;
    gap: 10px;
  }

  .popup-footer button {
    font-size: 14px;
    padding: 10px 14px;
  }

  .icon {
    width: 16px;
    height: 16px;
  }
}







.popup-tag-detalhes {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgb(255 255 255 / 50%);
  backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-tag-detalhes .popup-inner {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInUp 0.3s ease;
}

.popup-tag-detalhes .popup-inner h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 16px;
}

.popup-tag-detalhes .popup-inner p {
  font-size: 15px;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.5;
}

.popup-tag-detalhes .popup-inner img {
  max-width: 25%;
  height: auto;
  border-radius: 6px;
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.popup-tag-detalhes .fechar-popup-tag {
  margin-top: 20px;
  color: #000;
  background-color: #eee;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.popup-tag-detalhes .fechar-popup-tag:hover {
  background-color: #ddd;
  color: #000;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile ajustes */
@media (max-width: 480px) {
  .popup-tag-detalhes .popup-inner {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .popup-tag-detalhes .popup-inner img {
    max-width: 40%;
  }

  .popup-tag-detalhes .fechar-popup-tag {
    width: 100%;
  }
}

.image-tag {
    width: 100%;
    text-align-last: center;
}



/* O clone adicionado ao lado direito só aparece no mobile */
@media (min-width: 768px) {
  .product-name-solenvie + .detalhes-tag-nome {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .eael-woo-cart-td.product-name .detalhes-tag-nome {
    display: none !important;
  }
}