/* ===== E-commerce: header, cards, listagem, produto, animações ===== */
.radar-search { position: relative; display: flex; align-items: center; }
.radar-search input[type=search] { width: 190px; padding: 9px 38px 9px 14px; border: 1px solid var(--border); border-radius: 99px; font: inherit; font-size: .875rem; background: #fff; color: var(--foreground); transition: width .25s, border-color .2s, box-shadow .2s; }
.radar-search input[type=search]:focus { width: 250px; outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.radar-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--chumbo); display: flex; }
.radar-cart-badge { display: inline-block; min-width: 20px; text-align: center; background: var(--secondary); color: #212121; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; margin-left: 6px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.radar-cart-badge.bump { transform: scale(1.5); }

#radar-luxe-root .product-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
#radar-luxe-root .product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.22); border-color: var(--primary); }
#radar-luxe-root .product-image { position: relative; overflow: hidden; background: #f1f1f2; aspect-ratio: 1 / 1; }
#radar-luxe-root .product-image-link { display: block; width: 100%; height: 100%; }
#radar-luxe-root .product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .6s cubic-bezier(.16,1,.3,1); }
#radar-luxe-root .product-card:hover .hover-scale { transform: scale(1.07); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; align-items: flex-start; }
.badge { padding: 4px 12px; border-radius: 99px; font: 700 .75rem var(--font-h); letter-spacing: .02em; }
.badge-sale { background: #c0392b; color: #fff; animation: badgePulse 2.4s ease-in-out infinite; }
.badge-stock { background: var(--secondary); color: #212121; }
.badge-out { background: var(--chumbo); color: #fff; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.quick-view { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--chumbo); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; z-index: 5; text-decoration: none; }
#radar-luxe-root .product-card:hover .quick-view, .quick-view:focus { opacity: 1; transform: none; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.product-cat { font-size: .72rem; color: var(--cinza); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; }
.product-title-link { text-decoration: none; color: inherit; }
.product-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px; min-height: 2.6em; color: var(--foreground); }
#radar-luxe-root .product-price { font-family: var(--font-h); font-weight: 700; font-size: 1.3rem; color: var(--primary-dark); }
#radar-luxe-root .product-price del { color: var(--cinza); font-weight: 400; font-size: .9rem; margin-right: 6px; opacity: .8; }
#radar-luxe-root .product-price ins { text-decoration: none; }
.product-pay { margin: 4px 0 14px; font-size: .8rem; color: var(--chumbo); }
.add-btn { margin-top: auto; width: 100%; justify-content: center; gap: 6px; font-size: .9rem; padding: 11px 14px; }
.add-btn.loading { opacity: .7; pointer-events: none; }
.add-btn.added { background: var(--chumbo); }
.add-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.added_to_cart { display: none !important; }

/* listagem padrão do WooCommerce (loja / categorias / busca) */
.woocommerce ul.products, ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0 0 40px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; float: none; margin: 0; padding: 0; }
.woocommerce-products-header__title, .woocommerce .page-title { font-family: var(--font-h); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.woocommerce-result-count { color: var(--chumbo); font-size: .9rem; }
.woocommerce-ordering select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; }
.woocommerce-breadcrumb { color: var(--cinza); font-size: .85rem; margin-bottom: 14px; }
.woocommerce-breadcrumb a { color: var(--primary-dark); text-decoration: none; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--foreground); }
.woocommerce-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* página de produto */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery { background: #f1f1f2; border-radius: var(--radius); padding: 20px; margin: 0; width: 100%; float: none; }
.woocommerce div.product .summary { float: none; width: 100%; margin: 0; }
.woocommerce div.product .product_title { font-family: var(--font-h); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--primary-dark); font-family: var(--font-h); font-size: 1.9rem; font-weight: 700; }
.woocommerce div.product p.price del { color: var(--cinza); font-size: 1.1rem; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; margin: 20px 0; flex-wrap: wrap; }
.woocommerce .quantity .qty { width: 78px; height: 48px; border: 1px solid var(--border); border-radius: 10px; text-align: center; font: inherit; }
.woocommerce div.product form.cart .button, .woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 0 28px; height: 48px; font: 700 1rem var(--font-h); cursor: pointer; transition: background .2s, transform .15s; }
.woocommerce div.product form.cart .button:hover { background: var(--primary-dark); transform: translateY(-2px); }
.trust-list { list-style: none; margin: 18px 0 0; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 10px; font-size: .9rem; color: var(--chumbo); }
.trust-list .dashicons { color: var(--primary); margin-right: 4px; }
.trust-list a { color: var(--primary-dark); font-weight: 600; }
.woocommerce-tabs, .related.products, .up-sells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0; list-style: none; border-bottom: 2px solid var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--secondary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-h); font-weight: 700; color: var(--foreground); padding: 10px 14px; display: block; text-decoration: none; }
.related.products > h2 { font-family: var(--font-h); margin: 20px 0; }

/* carrinho e checkout */
.woocommerce table.shop_table { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--primary) !important; color: #fff !important; border-radius: 10px !important; font-family: var(--font-h); }

/* WhatsApp flutuante e toast */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); z-index: 999; text-decoration: none; animation: waPulse 2.8s infinite; }
.wa-float .dashicons { font-size: 30px; width: 30px; height: 30px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 8px 22px rgba(0,0,0,.28); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 8px 22px rgba(0,0,0,.28); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 8px 22px rgba(0,0,0,.28); } }
.radar-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 160%); background: #2a2d31; color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 10000; font-size: .95rem; transition: transform .45s cubic-bezier(.34,1.56,.64,1); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.radar-toast.show { transform: translate(-50%, 0); }
.radar-toast a { color: var(--secondary); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* entrada escalonada de cards e hero */
.js li.product.reveal, .js .products-grid .product-card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.js li.product.reveal.active, .js .products-grid .product-card.active { opacity: 1; transform: none; }
.store-hero .hero-bg { animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }

@media (max-width: 860px) {
    .woocommerce div.product { grid-template-columns: 1fr; gap: 22px; }
    .radar-search { display: none; }
    .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    li.product.reveal, .products-grid .product-card { opacity: 1; transform: none; }
}

/* ===== Easter egg: Aventura RTS ===== */
.egg-hint { margin-top: 6px; font-size: .75rem; opacity: .55; }
html.av-open, html.av-open body { overflow: hidden; }
#aventura { position: fixed; inset: 0; z-index: 100000; background: #1d3a73; font-family: var(--font-b); color: #fff; }
#aventura-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#aventura-canvas.grab { cursor: grabbing; }
.av-hud { position: absolute; left: 0; right: 0; pointer-events: none; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.av-top { top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px; }
.av-title { font: 800 1.15rem var(--font-h); letter-spacing: .14em; display: flex; flex-direction: column; }
.av-title small { font: 400 .78rem var(--font-b); letter-spacing: .08em; opacity: .85; margin-top: 2px; }
.av-dist { font: 700 1.5rem var(--font-h); background: rgba(0,0,0,.28); padding: 6px 16px; border-radius: 99px; backdrop-filter: blur(4px); }
.av-close { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: 18px; cursor: pointer; }
.av-close:hover { background: rgba(0,0,0,.65); }
.av-help { bottom: 20px; text-align: center; font-size: .85rem; opacity: .9; padding: 0 16px; }
.av-credit { position: absolute; left: 14px; bottom: 6px; font-size: .68rem; opacity: .6; }
.av-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 1.2rem var(--font-h); letter-spacing: .06em; background: linear-gradient(#1d3a73, #e98a5c); animation: avPulse 1.4s ease-in-out infinite; }
@keyframes avPulse { 50% { opacity: .75; } }
.av-msg { position: absolute; top: 90px; left: 50%; transform: translate(-50%, -20px); opacity: 0; font: 700 1.2rem var(--font-h); background: rgba(0,0,0,.4); padding: 10px 22px; border-radius: 99px; transition: all .5s; text-align: center; backdrop-filter: blur(4px); }
.av-msg.show { opacity: 1; transform: translate(-50%, 0); }
.av-touch { position: absolute; bottom: 52px; left: 0; right: 0; display: none; justify-content: space-between; padding: 0 22px; }
.av-touch button { width: 78px; height: 78px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; font-size: 28px; touch-action: none; }
@media (hover: none) and (pointer: coarse) { .av-touch { display: flex; } .av-help { display: none; } }
