/* Magia Arcânica V12 — reparos de interface e integração com V11. Sem alterar dados. */
:root { --v12-navy: #08264b; --v12-gold:#ffb600; }
html body.store-v2 .site-header:not(.magic-checkout-header){isolation:isolate;overflow:visible!important;z-index:110!important;position:relative!important;background:var(--magic-header-bg,#08264b)!important}
html body.store-v2 .site-header .header-row{overflow:visible!important}
html body.store-v2 .site-header .header-row .site-logo, html body.store-v2 .site-header .header-row .site-logo img{background:transparent!important;box-shadow:none!important;border:0!important}
html body.store-v2 .site-header .header-row .site-logo img{object-fit:contain!important;max-height:86px!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .magic-search.live-search{position:relative!important;overflow:visible!important;border:0!important;border-radius:12px!important;isolation:auto!important;background:#fff!important;z-index:200!important}
html body.store-v2 .magic-search .magic-search-submit{position:absolute!important;right:0!important;top:0!important;bottom:0!important;height:100%!important;width:64px!important;margin:0!important;border-radius:0 12px 12px 0!important;border:0!important;background:var(--magic-accent,#ffb600)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:2!important}
html body.store-v2 .magic-search input{padding-right:75px!important;border-radius:12px!important}
html body.store-v2 .magic-search .live-results,html body.store-v2 .magic-search #live-search-results{position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;margin:0!important;transform:none!important;border:1px solid #dbe4ef!important;border-top:0!important;border-radius:0 0 17px 17px!important;box-shadow:0 18px 35px #001c3d30!important;background:#fff!important;z-index:500!important;max-height:min(65vh,570px)!important;overflow:auto!important}
html body.store-v2 .magic-search .live-results[hidden]{display:none!important}
/* Remove visual seam between the join panel and footer; rectangular rather than rounded CTA */
html body.store-v2 .join-members-panel{margin-bottom:0!important;border-radius:0!important;min-height:240px!important;padding:42px 0 48px!important;border:0!important;box-shadow:none!important}
html body.store-v2 .join-members-panel + footer{margin-top:0!important;border-top:0!important}
html body.store-v2 .join-members-panel:after,html body.store-v2 .join-members-panel:before{border:0!important}
html body.store-v2 .footer-grid{padding-top:42px!important}
/* Catalog photos: no scale hover; use a subtle dark tint on product pictures. */
html body.store-v2 .products-grid img, html body.store-v2 .product-card img, html body.store-v2 .magic-products-grid img,html body.store-v2 .magic-collection-track img,html body.store-v2 .saved-products-grid img{transform:none!important;transition:filter .2s ease!important}
html body.store-v2 .products-grid a:hover img,html body.store-v2 .product-card:hover img,html body.store-v2 .magic-products-grid a:hover img,html body.store-v2 .saved-products-grid a:hover img{filter:brightness(.82)!important}
html body.store-v2 .magic-collection-v6 .magic-collection-image img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:none!important}
/* PDP: main photo, information and shipping are a single coherent buying unit */
html body.store-v2 .magic-product-page{overflow:visible!important}
html body.store-v2 .magic-pdp-layout{gap:0!important;align-items:stretch!important;background:#fff!important;border:1px solid #dfe7f0!important;border-radius:22px!important;overflow:visible!important;box-shadow:0 12px 34px #0927480d!important}
html body.store-v2 .magic-pdp-layout > *{min-width:0!important;border-radius:0!important;margin:0!important}
html body.store-v2 .magic-pdp-layout .magic-pdp-primary{padding:18px!important;position:relative!important}
html body.store-v2 .magic-pdp-layout .magic-product-info{padding:25px!important;border-left:1px solid #e5ebf2!important}
html body.store-v2 .magic-pdp-layout .magic-purchase-box{padding:25px!important;background:#fff!important;color:#0b2a52!important;border:0!important;border-left:1px solid #e5ebf2!important;box-shadow:none!important}
html body.store-v2 .magic-pdp-layout .magic-purchase-box *{color:inherit}
html body.store-v2 .magic-pdp-layout .magic-purchase-box .btn.gold{color:#081c37!important}
html body.store-v2 .magic-pdp-layout .magic-purchase-title{border-bottom:1px solid #e5ebf2!important;padding-bottom:18px!important}
html body.store-v2 .magic-pdp-layout .magic-purchase-title img{width:42px!important;height:42px!important;object-fit:contain!important;image-rendering:auto!important}
html body.store-v2 .magic-pdp-layout .magic-stock{color:#087a42!important}
html body.store-v2 .magic-pdp-layout .magic-pix-box{background:#fff7e4!important;border:1px solid #f5d991!important;color:#0b2a52!important}
html body.store-v2 .magic-pdp-layout .magic-pix-box *{color:#0b2a52!important}
html body.store-v2 .magic-main-photo{position:relative!important;overflow:visible!important;cursor:zoom-in!important;background:white!important;border-radius:16px!important}
html body.store-v2 .magic-main-photo img#product-main-image{border-radius:16px!important;object-fit:contain!important;transform:none!important;max-width:100%!important}
html body.store-v2 .magic-main-photo .magic-photo-arrow,html body.store-v2 .magic-main-photo .zoom-indicator{display:none!important}
html body.store-v2 .magic-main-photo .magic-pdp-favorite{position:absolute!important;top:14px!important;right:14px!important;z-index:4!important}
html body.store-v2 .magic-main-photo .magic-pdp-favorite button{border-radius:999px!important;min-width:42px!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important;background:#fff!important;box-shadow:0 4px 16px #0a2a4d27!important;border:1px solid #dbe4ee!important}
html body.store-v2 .magic-main-photo .magic-pdp-favorite [data-fav-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%);white-space:nowrap}
html body.store-v2 .magic-main-photo .magic-pdp-favorite button.is-saved{color:#d48b0a!important}
html body.store-v2 .magic-v12-zoom-pane{display:none!important;position:absolute!important;left:calc(100% + 10px)!important;top:16px!important;width:min(530px,48vw)!important;height:480px!important;z-index:80!important;border:1px solid #e1e9f2!important;border-radius:18px!important;background-color:#fff!important;background-repeat:no-repeat!important;box-shadow:0 22px 44px #071c3d36!important;pointer-events:none!important}
@media(min-width:1150px){html body.store-v2 .magic-v12-zoom-pane.is-visible{display:block!important}}
.magic-v12-lightbox{position:fixed!important;inset:0!important;z-index:100000!important;background:rgba(2,13,32,.93)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:52px!important}
.magic-v12-lightbox img{max-width:94vw!important;max-height:90vh!important;object-fit:contain!important;background:#fff!important;border-radius:12px!important}
.magic-v12-lightbox button{position:absolute!important;right:24px!important;top:20px!important;border:0!important;border-radius:50%!important;width:48px!important;height:48px!important;background:#fff!important;color:#09294c!important;font-size:25px!important;cursor:pointer!important}
/* Admin header: never clip profile or notifications at any viewport size */
html body.admin-body .admin-layout.magic-admin-v8{min-width:0!important;overflow:visible!important}
html body.admin-body .admin-top.magic-admin-v8-top{max-width:100%!important;min-width:0!important;position:sticky!important;top:0!important;z-index:600!important;overflow:visible!important;box-sizing:border-box!important;min-height:82px!important;padding:12px 24px!important;gap:18px!important}
html body.admin-body .admin-top.magic-admin-v8-top .admin-header-controls{min-width:max-content!important;flex-shrink:0!important;overflow:visible!important}
html body.admin-body .admin-top.magic-admin-v8-top .admin-profile,html body.admin-body .admin-top.magic-admin-v8-top .admin-user-menu{overflow:visible!important;max-width:100%!important}
html body.admin-body .sidebar-heading .admin-logo img{object-fit:contain!important;background:transparent!important}
html body.admin-body .magic-admin-tools-label{display:block!important}
@media(max-width:980px){html body.store-v2 .magic-pdp-layout{display:block!important}html body.store-v2 .magic-pdp-layout .magic-product-info,html body.store-v2 .magic-pdp-layout .magic-purchase-box{border-left:0!important;border-top:1px solid #e5ebf2!important}html body.store-v2 .join-members-panel{padding:40px 16px!important}}
/* HEADER ÚNICO EM TODAS AS PÁGINAS (home e produto, exceto checkout seguro). */
@media(min-width:1050px){
html body.store-v2 .site-header:not(.magic-checkout-header),html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header){min-height:160px!important;height:auto!important;padding:0!important;background:#08264b!important}
html body.store-v2 .site-header:not(.magic-checkout-header)>.container.header-row,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header)>.container.header-row{min-height:102px!important;height:102px!important;width:min(1540px,calc(100% - 220px))!important;max-width:1540px!important;gap:30px!important;padding:0!important;display:flex!important;align-items:center!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .logo.magia-logo,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .logo.magia-logo{flex:0 0 228px!important;max-width:228px!important;width:228px!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .brand-wordmark,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .brand-wordmark{width:228px!important;height:82px!important;max-height:82px!important;object-fit:contain!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .live-search.magic-search,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .live-search.magic-search{flex:1 1 500px!important;min-width:230px!important;width:auto!important;max-width:720px!important;min-height:56px!important;height:56px!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .magic-search input,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .magic-search input{font-size:15px!important;min-height:56px!important;height:56px!important;padding-left:48px!important;padding-right:76px!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .magic-search .magic-search-submit,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .magic-search .magic-search-submit{width:62px!important;min-height:56px!important;height:56px!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .header-actions,html body.store-v2.magic-landing-v9 .site-header:not(.magic-checkout-header) .header-actions{flex:0 0 auto!important;gap:19px!important}
html body.store-v2 .magic-category-nav .container.magic-category-links,html body.store-v2.magic-landing-v9 .magic-category-nav .container.magic-category-links{min-height:54px!important;height:54px!important;width:min(1540px,calc(100% - 220px))!important;max-width:1540px!important;justify-content:space-between!important;gap:12px!important}
html body.store-v2 .magic-category-nav .magic-category-links>a,html body.store-v2.magic-landing-v9 .magic-category-nav .magic-category-links>a{font-size:13px!important;gap:8px!important}
html body.store-v2 .magic-category-nav .magic-category-links>a svg,html body.store-v2.magic-landing-v9 .magic-category-nav .magic-category-links>a svg{height:21px!important;width:21px!important}
}
/* Sol à esquerda e lua à direita não devem ficar sob a logomarca. */
html body.store-v2 .site-header:not(.magic-checkout-header)::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:url('../img/magia-v9-sol.svg') left -3px top 0 / 160px 90px no-repeat,url('../img/magia-v9-lua.svg') right -3px top 0 / 164px 90px no-repeat!important}
html body.store-v2 .site-header:not(.magic-checkout-header)>.container,html body.store-v2 .magic-category-nav{position:relative!important;z-index:2!important}
html body.store-v2 .site-header:not(.magic-checkout-header) .logo.magia-logo img{background:transparent!important}
html body.store-v2 .magic-category-nav{background:#08264b!important}
@media(max-width:1049px){html body.store-v2 .site-header:not(.magic-checkout-header){height:auto!important;min-height:0!important}html body.store-v2 .site-header:not(.magic-checkout-header)>.container.header-row{width:calc(100% - 36px)!important;max-width:none!important;min-height:76px!important;gap:12px!important;flex-wrap:wrap!important}html body.store-v2 .site-header .logo.magia-logo{max-width:190px!important;flex:0 0 190px!important}html body.store-v2 .site-header .brand-wordmark{width:190px!important;height:70px!important;max-height:70px!important}html body.store-v2 .magic-category-nav .container.magic-category-links{width:calc(100% - 36px)!important}}
html body.store-v2 .magic-main-photo .magic-pdp-favorite button.is-saved svg{fill:#ffb600!important;stroke:#0b2a52!important}
html body.store-v2 .magic-main-photo .magic-pdp-favorite button:focus-visible{outline:2px solid #ffb600!important;outline-offset:3px!important}
html body.store-v2 .magic-v12-shipping-icon{display:grid!important;place-items:center!important;flex:0 0 48px!important;width:48px!important;height:48px!important;color:#0b2a52!important;background:#eff5fc!important;border-radius:50%!important}
html body.store-v2 .magic-v12-shipping-icon svg{height:28px!important;width:28px!important;stroke-width:1.8!important;color:#0b2a52!important;transform:none!important}
