/* Loader: fallback se JS falhar */
#ms-overlay[data-hidden="1"],
#ms-overlay.is-hidden { display: none !important; opacity: 0 !important; pointer-events: none !important; }

.loja-hero {
    background: linear-gradient(135deg, #17181c 0%, #3a0f18 55%, #c41e3a 100%);
}
.loja-hero img {
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}
.ms-btn-salah {
    background: #c41e3a;
    color: #fff;
}
.ms-btn-salah:hover {
    background: #9e1830;
    color: #fff;
}
.checkout-alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}
.checkout-alert.ok { background: #e8f7ee; color: #1f6b3f; border: 1px solid #b9e3c8; }
.checkout-alert.err { background: #fdecec; color: #8a1f1f; border: 1px solid #f3bcbc; }
.frete-opcao {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}
.frete-opcao.active {
    border-color: #c41e3a;
    background: #fff7f8;
}
.ms-product-thumb:hover .ms-thumb-hover { opacity: 1; }
.ms-product-thumb:hover .ms-thumb-main { opacity: 0; }

/* Galeria produto */
.galeria-principal-wrap { cursor: zoom-in; position: relative; }
.galeria-principal-wrap::after {
    content: 'Clique para ampliar';
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 11px;
    color: #888;
    background: rgba(255,255,255,.9);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}
.loja-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.loja-lightbox.is-open { opacity: 1; visibility: visible; }
.loja-lightbox img {
    max-width: min(96vw, 900px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.loja-lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ddd;
    font-size: 14px;
    padding: 0 60px;
}
.loja-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
}
.loja-lightbox-close:hover { background: rgba(255,255,255,.25); }
.loja-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
}
.loja-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.loja-lightbox-prev { left: 16px; }
.loja-lightbox-next { right: 16px; }

/* Linha do tempo do pedido */
.pedido-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pedido-timeline .pt-step { position: relative; padding: 0 0 22px 28px; }
.pedido-timeline .pt-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: -4px;
    width: 2px;
    background: #e5e5e5;
}
.pedido-timeline .pt-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ccc;
    box-sizing: border-box;
}
.pedido-timeline .pt-body { display: flex; flex-direction: column; }
.pedido-timeline .pt-body strong { font-size: 14px; }
.pedido-timeline .pt-desc { font-size: 12px; color: #888; }
.pedido-timeline .pt-rastreio { font-size: 12px; color: #444; margin-top: 4px; }
.pedido-timeline .pt-rastreio a { color: #c41e3a; font-weight: 600; }
.pedido-timeline .pt-feito .pt-dot { background: #1e7e34; border-color: #1e7e34; }
.pedido-timeline .pt-feito:not(:last-child)::before { background: #1e7e34; }
.pedido-timeline .pt-atual .pt-dot { background: #c41e3a; border-color: #c41e3a; box-shadow: 0 0 0 4px rgba(196,30,58,.15); }
.pedido-timeline .pt-futuro .pt-body strong,
.pedido-timeline .pt-futuro .pt-desc { color: #bbb; }

/* Endereços salvos no checkout */
.endereco-salvo:has(input:checked) { border-color: #c41e3a; background: #fff6f7; }

/* Forma de pagamento e parcelas no checkout */
.forma-pag:has(input:checked),
.parcela-opcao:has(input:checked) { border-color: #c41e3a; background: #fff6f7; }

/* Honeypot do contato: fora da tela, sem display:none (bots detectam) */
.contato-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
