/* Etiqueta premiada (moda e acessórios).
 *
 * Cores de MARCA como var(--jg-<hex>, #<hex>) nos botões e textos; caixa preta
 * premium, papel de seda, kraft, a peça e o dourado do hot stamping em hex
 * direto. Nunca azul. Nenhum preço na etiqueta.
 *
 * Contrato:
 *  - Estado FINAL por classe estática ou @keyframes … forwards.
 *  - Movimento reduzido: cada coisa para num estado VISÍVEL.
 *  - Tampa, papel, peça, etiqueta e o zoom da "câmera" são JS (inline). A
 *    câmera é um wrapper escalado com origem no centro da etiqueta; os textos
 *    da etiqueta são pequenos em px e crescem com o zoom.
 *  - A virada é scaleX em duas metades (frente fecha, verso abre), sem 3D.
 */

.eq__palco {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #FBF7F2, #EADFD2 80%);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
    user-select: none;
    font-family: Arial, sans-serif;
}
.eq__camera { position: absolute; inset: 0; }   /* sem will-change: o texto rasteriza já na escala do zoom */

.eq__rotulo {
    position: absolute;
    left: 3%; top: 4%;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--jg-14532d, #14532d);
    border: 1px solid #C9A227;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #FFF3C4;
    white-space: nowrap;
    z-index: 8;
}
.eq__rotulo img { width: 12px; height: 12px; }

/* ---------------- mesa e caixa ---------------- */

.eq__mesa { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, #D9C7B2, #C8B39B); }
.eq__caixa-fundo {
    position: absolute; left: 20%; width: 60%; top: 50%; height: 40%;
    background: linear-gradient(180deg, #111, #2B2B2B);
    box-shadow: inset 0 8px 14px rgba(0, 0, 0, .7);
}
.eq__papel {
    position: absolute; top: 46%; width: 30%; height: 24%;
    background: linear-gradient(160deg, #FFFDF8, #EFE6D8);
    box-shadow: inset 0 0 0 1px rgba(200, 185, 165, .6);
    z-index: 2;
}
.eq__papel--e { left: 21%; transform-origin: 0 100%; clip-path: polygon(0 0, 100% 8%, 92% 100%, 0 100%); }
.eq__papel--d { left: 49%; transform-origin: 100% 100%; clip-path: polygon(0 8%, 100% 0, 100% 100%, 8% 100%); }

/* a peça dobrada: malha com gola em V, vista e dobra */
.eq__peca {
    position: absolute; left: 28%; width: 44%; top: 46%; height: 30%;
    border-radius: 6px 6px 3px 3px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, rgba(0, 0, 0, 0) 2px 5px),
        linear-gradient(180deg, #CDBBA6, #B7A28A);
    box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5);
    z-index: 3;
}
.eq__gola { position: absolute; left: 36%; width: 28%; top: 0; height: 30%; background: #A58E74;
            clip-path: polygon(0 0, 100% 0, 50% 100%); }
.eq__vista { position: absolute; left: 49.5%; width: 1%; top: 30%; bottom: 8%; background: #A58E74; }
.eq__dobra { position: absolute; left: 6%; right: 6%; top: 62%; height: 2px; background: rgba(90, 70, 50, .25); }

.eq__caixa-frente {
    position: absolute; left: 18%; width: 64%; top: 62%; height: 30%;
    background: linear-gradient(180deg, #222, #0E0E0E);
    box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    z-index: 4;
}
.eq__caixa-frente img, .eq__tampa img { width: 18px; height: 18px; }
.eq__caixa-frente span, .eq__tampa span { font: 700 clamp(11px, 3vw, 15px)/1 Georgia, 'Times New Roman', serif; letter-spacing: .3em; color: #D4AF37; }
.eq__tampa {
    position: absolute; left: 16%; width: 68%; top: 44%; height: 22%;
    background: linear-gradient(180deg, #2A2A2A, #111);
    border-bottom: 2px solid #D4AF37;
    box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .6);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    z-index: 6;
}

/* ---------------- a etiqueta ---------------- */

.eq__tag {
    position: absolute; left: 60%; width: 15%; top: 47%;
    aspect-ratio: 2 / 3;
    transform-origin: 50% 0;
    opacity: 0;
    z-index: 5;
}
.eq__cordao { position: absolute; left: 50%; top: -14%; width: 1.5px; height: 18%; background: #7A5A3A; transform: rotate(35deg); transform-origin: 50% 100%; }
.eq__face {
    position: absolute; inset: 0;
    border-radius: 4px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%),
        linear-gradient(160deg, #D2AE80, #B98E5C);
    box-shadow: 0 4px 8px -3px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(90, 60, 30, .35);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
    text-align: center;
    color: #3B2A18;
    padding: 18% 8% 8%;
    box-sizing: border-box;
    transform-origin: 50% 50%;
}
.eq__furo { position: absolute; left: 50%; top: 6%; width: 12%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
            background: #EADFD2; box-shadow: inset 0 0 0 1.5px #8A6D1F; }
.eq__face--frente img { width: 34%; height: auto; }
.eq__face--frente b { font: 700 8px/1.1 Georgia, 'Times New Roman', serif; letter-spacing: .18em; }
.eq__face--frente span { font: 700 4.6px/1.2 Arial, sans-serif; letter-spacing: .2em; opacity: .75; }
.eq__face--verso { transform: scaleX(0); }

.eq--vira .eq__face--frente { animation: eq-frente var(--eq-vira, .65s) ease-in forwards; }
.eq--vira .eq__face--verso  { animation: eq-verso  var(--eq-vira, .65s) ease-out forwards; }
@keyframes eq-frente { 0% { transform: scaleX(1); } 50%, 100% { transform: scaleX(0); } }
@keyframes eq-verso  { 0%, 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* hot stamping dourado (prêmio) */
.eq__hot {
    font: 900 7.4px/1.1 Georgia, 'Times New Roman', serif;
    letter-spacing: .08em;
    background: linear-gradient(100deg, #8A6D1F 0%, #F7E08A 30%, #C9961A 50%, #FFF3B0 65%, #9A7414 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 .5px 0 rgba(255, 246, 200, .6));
}
.eq__hot--nome { font-size: 6.8px; letter-spacing: .02em; overflow-wrap: anywhere; }
.eq__face--verso img { width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1.5px solid #D4AF37; background: #fff; }
.eq--premiou .eq__hot { animation: eq-brilho 1.8s linear infinite; }
@keyframes eq-brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.eq__face--verso.eq__verso--ouro { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #4A3420, #2E2014); }
.eq--premiou .eq__face--verso { box-shadow: 0 0 0 1px #D4AF37, 0 0 8px 2px rgba(255, 214, 90, .6); }

/* instruções de lavagem (sem prêmio) */
.eq__simbolos { width: 82%; height: auto; }
.eq__cuidados { list-style: none; margin: 0; padding: 0; font: 700 4.2px/1.45 Arial, sans-serif; letter-spacing: .06em; color: #4A3A28; }

.eq__brilhos { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.eq__brilhos i {
    position: absolute;
    width: 2.2%; aspect-ratio: 1;
    background: #FFF6C9;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 2px rgba(255, 214, 90, .95));
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.eq--premiou .eq__brilhos i { animation: eq-estrela 1s ease-out forwards; }
@keyframes eq-estrela {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    45%  { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(30deg); }
    100% { opacity: .95; transform: translate(-50%, -50%) scale(.9) rotate(45deg); }
}

/* ---------------- botão e mensagem ---------------- */

.eq__botao {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 10px auto 0;
    padding: 12px 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--jg-2aa152, #2AA152), var(--jg-0a7a00, #0A7A00));
    color: #fff;
    font: 700 15px/1.2 Arial, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 6px 14px -6px rgba(var(--jg-rgb-0a7a00, 10,122,0), .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.eq__botao:hover:not(:disabled) { filter: brightness(1.06); }
.eq__botao:disabled { opacity: .55; cursor: default; }

.eq__msg {
    max-width: 480px;
    min-height: 56px;
    margin: 10px auto 0;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    text-align: center;
    font: 700 clamp(11px, 3vw, 14px)/1.35 Arial, sans-serif;
    color: #46564c;
    background: var(--jg-eef4ef, #EEF4EF);
    border: 1px solid var(--jg-dce6de, #DCE6DE);
}
.eq__msg--premiado { background: var(--jg-e3f5e6, #E3F5E6); border-color: var(--jg-9fd8ab, #9FD8AB); color: var(--jg-14532d, #14532d); }
.eq__msg--consolo  { background: #F1F3F1; border-color: #CDD5CE; color: #4F5A52; }
.eq__msg b { color: var(--jg-0a7a00, #0A7A00); }
.eq__msg--consolo b { color: #5C6B60; }

/* ---------------- vitrine ---------------- */

.eq__premios {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: 14px auto 0; max-width: 640px;
}
.eq__titulo {
    width: 100%; text-align: center;
    font: 700 13px/1.3 Arial, sans-serif; color: var(--jg-14532d, #14532d); margin-bottom: 2px;
}
.eq__premio { width: 74px; text-align: center; font: 600 10px/1.2 Arial, sans-serif; color: #46564c; }
.eq__premio img { width: 100%; border-radius: 6px; display: block; margin-bottom: 3px; }

/* ---------------- movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
    .eq--vira .eq__face--frente { animation: none; transform: scaleX(0); }
    .eq--vira .eq__face--verso  { animation: none; transform: scaleX(1); }
    .eq--premiou .eq__hot { animation: none; background-position: 50% 0; }
    .eq--premiou .eq__brilhos i { animation: none; opacity: .95; transform: translate(-50%, -50%) scale(.9) rotate(45deg); }
}
