/* Hide only the page scrollbar; wheel, touch and keyboard scrolling stay native.
   Do not affect scrollbars in menus, dialogs or checkout controls. */
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Homepage only, in every language. Match Woo's responsive four-column formula:
   keep its 150px minimum card width and existing narrow-screen wrapping. */
body.home.woocommerce-shop .wc-block-product-template__responsive {
    grid-template-columns: repeat(auto-fill, minmax(max(150px, calc(25% - .9375em)), 1fr));
}
/* Same three-frame Flying Zonkie sprite and gentle drift as the official homepage. */
#azk-store-cursor-trail { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:9998; contain:strict; }
#azk-store-cursor-trail .azk-store-cursor-particle {
    position:absolute; width:57px; height:85px; pointer-events:none;
    background:url('./FlyingZonkie_U.png') no-repeat; background-size:171px 85px;
    animation:azk-store-cursor-rise 4s cubic-bezier(0,0,.2,1) both, azk-store-cursor-flap .4s steps(3) infinite;
}
@keyframes azk-store-cursor-flap { from { background-position:0 0; } to { background-position:-171px 0; } }
@keyframes azk-store-cursor-rise {
    from { opacity:.8; transform:translate(0,0) scale(.2) rotate(0deg); }
    to { opacity:0; transform:translate(var(--dx),var(--dy)) scale(.2) rotate(var(--end-rot)); }
}
@media (prefers-reduced-motion:reduce), (any-hover:none) { #azk-store-cursor-trail { display:none; } }
/* Never snapshot the whole page: cross-origin live sprites must remain visible. */
html[data-azk-content-fading] [data-azk-store-page] { opacity:0; }
/* A real background, below every product/image/text and persistent shell.
   Isolation keeps the negative-z layer ABOVE the body's existing base paint,
   without raising the shop into a new stacking context or covering its UI. */
html[data-azk-background-active] body { isolation: isolate; }
#azk-store-loading-background {
    /* Overscan the largest mobile viewport. Safari's collapsing/translucent
       bottom toolbar can reveal pixels outside fixed inset:0's small viewport.
       Horizontal wipe timing/width remain unchanged. */
    position: fixed; inset: -20vh 0; min-height: 140vh; z-index: -1; pointer-events: none;
    opacity: 0; overflow: hidden; contain: strict;
}
@supports (height: 100lvh) {
    #azk-store-loading-background { inset: -20lvh 0; min-height: 140lvh; }
}
#azk-store-loading-background > span {
    /* The homepage read-more sideWipe: an opaque flat colour fills from the
       left, then withdraws to the right. No gradient, blur or slow drifting. */
    position: absolute; inset: 0;
    pointer-events: none;
    background: rgb(var(--azk-wash-rgb));
    transform: scaleX(0); transform-origin: left center;
    animation: azk-store-background-pass 650ms cubic-bezier(.86,0,.07,1) 1 both;
}
#azk-store-loading-background > span:nth-child(2) { animation-delay: .13s; }
#azk-store-loading-background > span:nth-child(3) { animation-delay: .26s; }
#azk-store-loading-background[data-search="true"] > span { animation-duration: 1000ms; }
/* One staggered pass per navigation. Long requests keep only the progress bar. */
@keyframes azk-store-background-pass {
    0% { transform: scaleX(0); transform-origin: left center; }
    45% { transform: scaleX(1); transform-origin: left center; }
    46% { transform: scaleX(1); transform-origin: right center; }
    100% { transform: scaleX(0); transform-origin: right center; }
}
[data-azk-store-page][aria-busy="true"] { cursor: progress; }
/* Both persistent shell sections use the same width on all store templates/locales. */
.wp-site-blocks > :is(header,footer).wp-block-template-part .has-global-padding > .wp-block-group.alignwide {
    width: 100%; max-width: 1440px !important; margin-inline: auto; box-sizing: border-box;
}
/* A region's geometry belongs to that region, not the previous/next body class.
   Keep both sides of an AJAX commit correct, including reduced-motion Back.
   Match the existing theme widths; do not alter the header or product design. */
.wp-site-blocks [data-azk-store-page][data-azk-store-kind="catalogue"] {
    --azk-region-wide-size: 1440px;
}
.wp-site-blocks [data-azk-store-page][data-azk-store-kind="product"] {
    --azk-region-wide-size: 1080px;
}
.wp-site-blocks :is([data-azk-store-page].is-layout-constrained, [data-azk-store-page] .is-layout-constrained) > .alignwide {
    max-width: var(--azk-region-wide-size, 1440px) !important;
}
[data-azk-store-page] h1[tabindex="-1"]:focus { outline: none; }
.wp-site-blocks a:where(:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.woocommerce-product-gallery__trigger):not(:has(img))) {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    transition: color 180ms ease, text-decoration-color 180ms ease, background-color 180ms ease;
}
.wp-site-blocks a:where(:not(.button):not(.wp-element-button):not(.wp-block-button__link):not(.woocommerce-product-gallery__trigger):not(:has(img))):is(:hover,:focus-visible) {
    text-decoration-color: currentColor;
}
.wp-site-blocks :is(button,.button,.wp-element-button,.wp-block-button__link) {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
/* Keep Woo's native selection, keyboard and touch picker; change only its skin. */
.wp-site-blocks :is(form.woocommerce-ordering,.wc-block-catalog-sorting) select.orderby {
    appearance:none;-webkit-appearance:none;border:0;border-bottom:1px solid #bbb;border-radius:0;
    background-color:transparent;color:inherit;box-shadow:none;cursor:pointer;
    font:inherit;font-size:14px;line-height:1.4;letter-spacing:inherit;
    min-height:44px;max-width:100%;padding:10px 30px 10px 2px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23222' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 5px center;background-size:12px 8px;
    transition:border-color 180ms ease;
}
.wp-site-blocks :is(form.woocommerce-ordering,.wc-block-catalog-sorting) select.orderby:hover {border-bottom-color:#222;}
.wp-site-blocks :is(form.woocommerce-ordering,.wc-block-catalog-sorting) select.orderby:focus-visible {outline:2px solid #31a2f2;outline-offset:4px;}
@media(forced-colors:active) {.wp-site-blocks :is(form.woocommerce-ordering,.wc-block-catalog-sorting) select.orderby {appearance:auto;background-image:none;}}
/* Compact desktop hover lists only; keep the main menu and mobile tap targets. */
@media (min-width: 600px) {
    .wp-site-blocks > :is(header,footer) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
        font-size: 14px;
        line-height: 1.4;
    }
    .wp-site-blocks > :is(header,footer) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu:is(:hover,:focus-within) > .wp-block-navigation__submenu-container,
    .wp-site-blocks > :is(header,footer) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-container {
        width: max-content; min-width: 150px; max-width: min(280px, calc(100vw - 32px));
        padding: 4px 0;
    }
    .wp-site-blocks > :is(header,footer) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container > .wp-block-navigation-item > a {
        font-size: 14px; line-height: 1.4; padding: 6px 12px; white-space: nowrap;
    }
}
/* Keep panel geometry while fading, then suppress stationary hover/focus. */
@media (min-width: 600px) {
    .wp-site-blocks > :is(header,footer) .azk-submenu-closing > .wp-block-navigation__submenu-container {
        visibility: visible !important; height: auto !important; overflow: visible !important;
        width: max-content !important; min-width: 150px !important;
        max-width: min(280px, calc(100vw - 32px)); padding: 4px 0 !important;
        pointer-events: none;
    }
    .wp-site-blocks > :is(header,footer) .azk-submenu-dismissed > .wp-block-navigation__submenu-container {
        opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    }
}
.wp-site-blocks > header .azk-menu-closing { pointer-events: none; }
/* Pointer clicks should not leave a square around the tiny disclosure arrow.
   Keep the theme's focus ring for keyboard users. */
.wp-site-blocks > :is(header,footer) .wp-block-navigation-submenu__toggle:focus:not(:focus-visible) {
    outline: none !important; box-shadow: none;
}
/* Image interaction only: retain text selection, touch scrolling and gallery taps. */
.wp-site-blocks img, .pswp__img { -webkit-user-drag: none; -webkit-touch-callout: none; }
/* Keep WordPress's native modal/focus handling. Only the mobile header becomes
   a left drawer; desktop navigation and footer navigation are untouched. */
@media (max-width: 599px) {
    .wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open {
        padding: 0; overflow: hidden; flex-direction: row;
        background: rgb(0 0 0 / .18) !important;
        animation: azk-store-panel-in 350ms ease both;
    }
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__responsive-close {
        flex: none; width: min(320px, calc(100vw - 48px)); max-width: none;
        height: 100vh; height: 100dvh; margin: 0 !important; box-sizing: border-box;
        padding: calc(24px + var(--wp-admin--admin-bar--height, 0px) + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto; overscroll-behavior: contain;
        background: var(--wp--preset--color--base, #fdfdfd);
        box-shadow: 8px 0 28px rgb(0 0 0 / .08);
        animation: azk-store-drawer-in 350ms cubic-bezier(.22,.61,.36,1) both;
    }
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__responsive-dialog {
        margin: 0 !important;
    }
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__responsive-container-content,
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__container,
    .wp-site-blocks > header .is-menu-open .wp-block-navigation-item,
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__submenu-container {
        align-items: flex-start !important; justify-content: flex-start !important;
        text-align: left !important;
        --navigation-layout-justification-setting: flex-start;
        --navigation-layout-justify: flex-start;
    }
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__submenu-container {
        padding: .75em 0 0 1em !important;
    }
}
@keyframes azk-store-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
/* Woo keeps native tab semantics/display toggling; only the revealed panel fades.
   Product information and shipping/returns take a little longer to settle. */
.woocommerce-tabs .woocommerce-Tabs-panel { animation: azk-store-panel-in 350ms ease-in-out; }
.woocommerce-tabs .wc-tabs li,
.woocommerce-tabs .wc-tabs li a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, text-decoration-color 180ms ease;
}
@keyframes azk-store-panel-in { from { opacity: 0; } to { opacity: 1; } }
/* Content-only Web Animations retain the 140ms out + 210ms in timing (0.35s). */
html.azk-store-navigating::after {
    content: ''; position: fixed; inset: 0 auto auto 0; z-index: 999999;
    /* Official Azikazin homepage body/header blue. */
    height: 2px; width: 100%; background: #31a2f2;
    transform-origin: left; animation: azk-store-load 1.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes azk-store-load { from { transform: scaleX(.06); opacity: .4; } to { transform: scaleX(.94); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    #azk-store-loading-background { display: none; }
    #azk-store-loading-background > span { animation: none; }
    .wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open,
    .wp-site-blocks > header .is-menu-open .wp-block-navigation__responsive-close { animation: none; }
    .wp-site-blocks a, .wp-site-blocks button { transition: none !important; }
    ::view-transition-old(azk-store-content), ::view-transition-new(azk-store-content), ::view-transition-group(azk-store-content) { animation: none; }
    html.azk-store-navigating::after { animation: none; }
    .woocommerce-tabs .woocommerce-Tabs-panel { animation: none; }
    .woocommerce-tabs .wc-tabs li, .woocommerce-tabs .wc-tabs li a { transition: none; }
    .wp-site-blocks select.orderby {transition:none;}
}
