/* Reset e configurações gerais
* {
    box-sizing: border-box;
} */

/* Modal customizado */
.mk3d-modal {
    background: #f8f9fa;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header customizado */
.mk3d-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 30px 0;
    position: relative;
}

/* 
.mk3d-close-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.mk3d-close-btn:hover {
    color: #000;
} */


.close-text {
    font-size: 14px;
}

.close-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Body do modal */
.mk3d-body {
    padding: 20px 40px 40px;
}

/* Logo */
.mk3d-logo {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.logo-mk {
    color: #000;
}

.logo-separator {
    color: #007bff;
    margin: 0 5px;
}

.logo-3d {
    color: #6c757d;
    font-weight: 400;
}

/* Textos principais */
.mk3d-title {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mk3d-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.4;
}


/* Placeholder da camiseta */
.tshirt-placeholder {
    width: 50px;
    height: 60px;
    position: relative;
}


.tshirt-shape::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 12px;
    background: inherit;
    border-radius: 12px 12px 0 0;
}

.tshirt-shape::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

/* Ícones de sobreposição */
.overlay-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.red-x {
    background: #dc3545;
}

.green-check {
    background: #28a745;
}

/* Texto de aviso */
.mk3d-warning {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

/* Botões customizados */
.mk3d-btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: #000;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mk3d-btn-outline:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mk3d-btn-primary {
    background: #1291e2;
    border: 2px solid #1291e2;
    color: white;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mk3d-btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-icon {
    font-size: 18px;
}

/* Responsividade */
@media (max-width: 768px) {
    .mk3d-body {
        padding: 20px 25px 30px;
    }

    .mk3d-logo {
        font-size: 36px;
        margin-bottom: 20px;
    }

    /* .mk3d-title {
        font-size: 14px;
    } */

    .mk3d-subtitle {
        font-size: 14px;
    }


    .mk3d-btn-outline,
    .mk3d-btn-primary {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Animações */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Backdrop customizado */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Efeitos de hover nos botões */
.mk3d-btn-outline:active,
.mk3d-btn-primary:active {
    transform: translateY(0);
}

/* Estilo para o botão de demonstração */
.btn-primary {
    background: #007bff;
    border-color: #007bff;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* VISUALIZAR 3D */
.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    justify-content: space-between;
}

.btn-descartar {
    background-color: #E3E3E3;
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 14px;
    /* border-bottom: 3px solid #dc3545; */
}

.btn-descartar:hover {
    background-color: #CCC;
    color: #000;
}

.btn-publicar {
    background-color: #00FC8A;
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 14px;
}

.btn-publicar:hover {
    background-color: #CCC;
    color: white;
}

.btn-remover {
    background-color: #E3E3E3;
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 14px;
}

.btn-remover:hover {
    background-color: #CCC;
    color: #000;
}




.btn-ajustes {
    background-color: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
}

.btn-ajustes:hover {
    background-color: #17a2b8;
    color: white;
}

.btn-gerar {
    background-color: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
}

.btn-gerar:hover {
    background-color: #17a2b8;
    color: white;
}

.btn-make-it-woow {
    background-color: #000;
    color: #00bfff;
    border: 2px solid #00bfff;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
}

.btn-make-it-woow:hover {
    background-color: #00bfff;
    color: #000;
}

.modal-content {
    border-radius: 20px;
}

.modal-body-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.product-image {
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-weight: bold;
    font-size: 18px;
}


#confirmDiscardModal .btn-danger {
    background: #ff4b4b;
    border: none;
    font-weight: 600;
}

#confirmDiscardModal .btn-outline-secondary {
    font-weight: 500;
}

/* ANIMAÇÃO MAKE IT WOOW */
/* Estado inicial: invisível e fora da tela */
.btn-make-it-woow {
    opacity: 0;
    transform: scale(0.7) rotate(-10deg);
    transition: none;
}

/* Estado visível com entrada + um único pulso azul */
.btn-make-it-woow.show-woow {
    animation:
        woowEntrance 1.2s cubic-bezier(0.2, 1.3, 0.3, 1.2) forwards,
        woowGlowOnce 1.3s ease-in-out 1.2s;
    /* 💥 brilho único após entrada */
}



/* Entrada com zoom, bounce e leve rotação */
@keyframes woowEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
        filter: blur(2px);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
        filter: brightness(1.4);
    }

    70% {
        transform: scale(0.95) rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
}

/* Brilho azul WooW — apenas uma vez */
@keyframes woowGlowOnce {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }

    50% {
        box-shadow: 0 0 35px 10px rgba(13, 110, 253, 0.55);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* === BACKDROP DO MODAL WOOOW (entre o GLB e o WooW) === */
/* backdrop do WooW só cuida do visual; z-index vem do JS */
.modal-backdrop.woow-backdrop {
  background-color: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(6px);
  opacity: 1 !important;
}




/* === MODAL WOOOW ACIMA DO PRÓPRIO BACKDROP === */
/* WooW modal acima de tudo */
#woowModal .modal-dialog {
    z-index: 1070 !important;
    transform: scale(0.9);
    transition: transform 0.4s ease-out;
}

#woowModal.show .modal-dialog {
    transform: scale(1);
}


/* aparência do conteúdo */
#woowModal .modal-content {
  background: #111;
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.35);
}

/* Caixa interna (se estiver usando .woow-box dentro de .modal-content) */
.woow-box {
    background: #111;
    color: #fff;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Botão do WooW com #00bfff */
.btn-make-it-woow-modal {
    background: transparent;
    border: 1.5px solid #00bfff;
    color: #00bfff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-make-it-woow-modal:hover {
    background: #00bfff;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.7);
    transform: scale(1.05);
}

#glbModal {
    z-index: 1051 !important;
}


.btn-make-it-woow.show-woow {
  animation: woowEntrance 1.2s cubic-bezier(0.2, 1.3, 0.3, 1.2) forwards;
}
