/* Keep the original sticky layout; use the same viewport background in header and page. */
html { overflow-y: auto !important; height: auto !important; }
body { overflow: visible !important; height: auto !important; min-height: 100dvh; }
#menuStickyShell { position: sticky !important; top: 0; z-index: 100; display: flow-root; background: var(--bgClr); }
#menuHeaderSlot { position: relative !important; height: auto !important; }
#menuBrandHeader, #menuCategoryNav { position: relative !important; inset: auto !important; transform: none !important; }
#menuCategorySentinel { display: none !important; }
html[data-menu-season="winter"] {
    --winter-image: url('/assets/image/winter-bg.webp');
    background: #173c60 var(--winter-image) center top / cover no-repeat fixed !important;
}
html[data-menu-season="winter"] body { background: transparent !important; }
html[data-menu-season="winter"] #menuStickyShell {
    background: transparent !important;
    box-shadow: none !important;
    isolation: isolate;
}
/* A clipped, viewport-fixed image behind the header blocks products without
   covering the language dropdown or changing sticky positioning. */
html[data-menu-season="winter"] #menuStickyShell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #173c60 var(--winter-image) center top / cover no-repeat fixed;
}
html[data-menu-season="winter"] #menuHeaderSlot,
html[data-menu-season="winter"] #menuBrandHeader,
html[data-menu-season="winter"] #menuCategoryNav { background: transparent !important; }
/* On touch browsers with limited fixed-background support, use a fixed
   viewport layer clipped to an independent header backing element. */
@supports (clip-path: inset(0)) {
    html[data-menu-season="winter"] #menuStickyShell::before { content: none; }
    html[data-menu-season="winter"] .winter-header-backdrop {
        display: block; position: absolute; inset: 0; z-index: -1;
        clip-path: inset(0); pointer-events: none;
    }
    html[data-menu-season="winter"] .winter-header-backdrop::before {
        content: ""; position: fixed; inset: 0;
        background: #173c60 var(--winter-image) center top / cover no-repeat;
    }
    html[data-menu-season="winter"] { background: #173c60 !important; }
    html[data-menu-season="winter"] body::before {
        content: ""; position: fixed; inset: 0; z-index: -1;
        pointer-events: none;
        background: #173c60 var(--winter-image) center top / cover no-repeat;
    }
    html[data-menu-season="winter"] body { isolation: isolate; }
}
.winter-header-backdrop { display: none; }

/* V5: Swiper owns the horizontal spacing; no edge button margins. */
#menuCategoryNav .sliderSwiper #sc { gap: 0 !important; }
#menuCategoryNav .sliderSwiper #sc > .swiper-slide {
    flex-shrink: 0 !important;
    width: 125px !important;
    box-sizing: border-box;
}
#menuCategoryNav .sliderSwiper #sc > .swiper-slide > .slideDiv {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 !important;
    box-sizing: border-box;
}
/* Use the same viewport-sized photograph in the sticky shell, including mobile. */
html[data-menu-season="winter"] #menuStickyShell {
    background: #173c60 var(--winter-image) center top / max(100vw, 234dvh) auto no-repeat !important;
}
html[data-menu-season="winter"] #menuStickyShell::before { content: none !important; }
html[data-menu-season="winter"] #menuStickyShell .winter-header-backdrop { display: none !important; }
html[data-menu-season="winter"] body::before {
    background-size: max(100vw, 234dvh) auto !important;
}

/* V6: let vertical page gestures begin on buttons and horizontal galleries. */
button { touch-action: manipulation !important; }
#menuCategoryNav .sliderSwiper,
#menuCategoryNav .sliderSwiper .swiper-wrapper,
#menuCategoryNav .slideDiv,
#pr .menuImgDiv,
#pr .imgSlider,
#pr .imgSlider .swiper-wrapper,
#pr .imgSlider .swiper-slide,
#pr .imgSlider .swiper-zoom-container,
#pr .imgSlider img { touch-action: pan-y pinch-zoom !important; }
#pr .seeItemBtn { touch-action: pan-y pinch-zoom !important; }

/* V7: full-width category separators and sticky-aware anchors. */
#pr .menu-category-marker { flex: 0 0 100%; width: 100%; scroll-margin-top: calc(var(--menu-sticky-height, 220px) + 8px); }
#pr .menu-category-anchor-first { height: 0; margin-bottom: -10px; }
#pr .menu-category-heading { padding: 12px 16px; border-radius: 12px; background: var(--clrF); font-size: 20px; font-weight: 600; }
html[data-menu-season="winter"] #pr .menu-category-heading { background: rgba(245,250,255,.94); color: #29485d; }
