/* Magule refresh 1.5.0 — load AFTER magule-cards-v4.css. */
/* No page backgrounds: the approved white visual style stays in place. */
body.mg-refresh { --mg-accent:#ecad65; --mg-ink:#242331; --mg-line:#eee9e3; }
body.mg-refresh .mg-pick:focus-visible { outline:2px solid #a96b26; outline-offset:4px; }
/* Category introduction, subcategories and bestsellers retain native layout. */
/* Compact sale labels. Retain original numeric discount and all price data. */
body.mg-refresh .products-block .flag.flag-discount{ display:inline-flex!important; align-items:center; justify-content:center; width:auto!important; height:auto!important; min-width:0; min-height:0; padding:7px 10px!important; border-radius:8px!important; background:#e52f3d!important; color:#fff!important; opacity:1; line-height:1.2; box-shadow:none; }
body.mg-refresh .products-block .flag.flag-discount:before{ display:none!important; }
body.mg-refresh .products-block .flag.flag-discount .price-save{ color:#fff; font-size:15px!important; font-weight:700; line-height:1.2; }
body.mg-refresh .products-block .flag.flag-discount .price-save sub{ font-size:inherit!important; bottom:0; }
body.mg-refresh .products-block .flag.flag-discount .price-standard{ display:none!important; }
body.mg-refresh .products-block .p:has(.flag-discount) .flag-action{ display:none!important; }
body.mg-refresh .products-block .p .flags-extra { right:8px!important; top:8px!important; }
/* Homepage sliders retain native pagination dots. */
/* Worlds: equal image boxes, no permanent link underlines. */
body.mg-refresh.in-index .top-category-block .menu-content>div>a { text-decoration:none; }
body.mg-refresh.in-index .top-category-block .menu-image { display:flex; align-items:center; justify-content:center; height:100px; }
body.mg-refresh.in-index .top-category-block .menu-image img { width:100%; height:100%; object-fit:contain; }
/* Editorial picks: link cards, with price copied from current Shoptet markup. */
body.mg-refresh .mg-picks { margin:46px 0 55px; }
body.mg-refresh .mg-picks h2 { text-align:center; font-size:30px; margin:0 0 8px; }
body.mg-refresh .mg-picks-intro { text-align:center; color:#6b6872; margin-bottom:24px; }
body.mg-refresh .mg-picks-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
body.mg-refresh .mg-pick { display:flex; flex-direction:column; padding:20px; border:1px solid rgba(55,45,32,.065); border-radius:20px; background:#fff; box-shadow:0 4px 16px rgba(55,45,32,.085); color:var(--mg-ink); text-decoration:none; min-width:0; }
body.mg-refresh .mg-pick:hover { border-color:var(--mg-accent); }
body.mg-refresh .mg-pick img { display:block; height:190px; width:100%; object-fit:contain; margin-bottom:18px; }
body.mg-refresh .mg-pick-world { color:#8b5b28; font-size:12px; font-weight:600; margin-bottom:6px; }
body.mg-refresh .mg-pick h3 { font-size:16px; line-height:1.45; margin:0 0 18px; }
body.mg-refresh .mg-pick-price { font-size:20px; margin-top:auto; font-weight:700; }
body.mg-refresh .mg-pick-cta { font-size:13px; margin-top:8px; text-decoration:underline; text-underline-offset:3px; color:#69451f; }
@media(max-width:767px) {
 body.mg-refresh .mg-picks-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 body.mg-refresh .mg-pick { padding:13px; border-radius:15px; }
 body.mg-refresh .mg-pick img { height:140px; margin-bottom:12px; }
 body.mg-refresh .mg-pick h3 { font-size:14px; }
 body.mg-refresh .mg-picks h2 { font-size:25px; }
 body.mg-refresh.in-index .top-category-block .menu-image { height:76px; }
 body.mg-refresh .products-block .flag.flag-discount { padding:5px 7px!important; }
 body.mg-refresh .products-block .flag.flag-discount .price-save { font-size:12px!important; }
 body.mg-refresh.in-index .products-block:has(.swiper-container) .slider-group-products { padding-bottom:44px; }
 body.mg-refresh.in-index .products-block .slider-group-products>.swiper-arrow { top:auto!important; bottom:0; transform:none!important; }
 body.mg-refresh.in-index .products-block .slider-group-products>.swiper-arrow-prev { left:calc(50% - 48px)!important; }
 body.mg-refresh.in-index .products-block .slider-group-products>.swiper-arrow-next { right:calc(50% - 48px)!important; }
}
@media(prefers-reduced-motion:reduce) { body.mg-refresh .mg-pick { transition:none; } }

/* Keep logo edges stable instead of scaling them on hover. */
body.mg-refresh.in-index .top-category-block .menu-image img,
body.mg-refresh.in-index .top-category-block .menu-image:hover img { transform:none!important; }

/* Enabled only by the early script; fail-open timeout restores visibility. */
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="harry-potter-1-logo-png-transparent.jpg"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="harry-potter-1-logo-png-transparent.jpg"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="magule_stranger_things.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="magule_stranger_things.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="lord-of-the-rings-logo-png_seeklogo-489298.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="lord-of-the-rings-logo-png_seeklogo-489298.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="star-wars-logo.jpg"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="star-wars-logo.jpg"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="minecraft2.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="minecraft2.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="magule_bluey.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="magule_bluey.png"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[src*="g__binin_kouzeln___domek.jpg"],
html.mg-logos-loading body.in-index .top-category-block .menu-image img:not(.mg-logo-ready)[data-src*="g__binin_kouzeln___domek.jpg"] { visibility:hidden!important; }
