/* Narrow menus retain their original 640px canvas. The wrapper owns no narrow layout. */
.menuWidePane { display:contents; }
html.jaccaWide, .jaccaWide body, .jaccaWide .ui-page, .jaccaWide .ui-mobile-viewport { width:100% !important; min-width:0; }
.jaccaWide body { margin:0; }
.jaccaWide .wrapper { width:100%; max-width:1440px; }
.jaccaWide .ui-content.main { --menu-wide-sidebar:clamp(250px,23vw,320px); display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:24px; max-width:1440px; width:100%; margin-inline:auto; padding:16px clamp(20px,3vw,56px); box-sizing:border-box; overflow:visible; }
.jaccaWide.menuWideDocked .ui-content.main { grid-template-columns:var(--menu-wide-sidebar) minmax(0,1fr); }
.jaccaWide .menuWidePane { display:block; min-width:0; width:100%; }
.jaccaWide .landscape { display:none !important; }
.jaccaWide .menuWidePane > ul.menu { box-sizing:border-box; width:100%; margin:0; padding-inline:12px; }
.jaccaWide .menuWidePane :is(.stickySwiper,.stickySearchbar,.stickySearchbar-rtl,.category-reminder,.menuImageNavigation,.menuBrowsingHeader) { max-width:100%; box-sizing:border-box; }
.jaccaWide .menuWidePane :is(.stickySearchbar,.stickySearchbar-rtl) :is(form,.ui-input-text) { min-width:0; flex:1; }
.jaccaWide .menuWidePane :is(.stickySearchbar,.stickySearchbar-rtl) input { box-sizing:border-box; width:100%; max-width:100%; }
.jaccaWide.menuWideDocked :is(.menuSideBarLink,.sideMenuOpenBtnTall,.sideMenuCloseBtn) { display:none !important; }
.jaccaWide.menuWideDocked .swiper-slide:has(> .menuSideBarLink) { display:none; }
.jaccaWide .stickySwiper:not(.type-5) .swiper-slide > img { max-width:100%; object-fit:cover; }
.jaccaWide .stickySwiper .swiper-title { max-width:100%; box-sizing:border-box; bottom:0; }
.jaccaWide .menuWidePane .stickySwiper:not(.type-5) { min-height:0; }
.jaccaWide .main:not([data-upper-gallery-shape="1"]) .stickySwiper:is(.type-1,.type-2) { height:calc(var(--menu-wide-tile-size,190px) + 20px); }
.jaccaWide .main:not([data-upper-gallery-shape="1"]) .stickySwiper:is(.type-1,.type-2) .swiper-slide { height:var(--menu-wide-tile-size,190px); }
.jaccaWide .main:not([data-upper-gallery-shape="1"]) .stickySwiper:is(.type-1,.type-2) .swiper-slide > img { width:var(--menu-wide-tile-size,190px); height:var(--menu-wide-tile-size,190px); margin:0; }
.jaccaWide .stickySwiper:is(.type-3,.type-4) { height:calc(var(--menu-wide-tile-size,190px) + 74px); }
.jaccaWide .stickySwiper:is(.type-3,.type-4) .swiper-slide > img { width:var(--menu-wide-tile-size,190px); height:var(--menu-wide-tile-size,190px); }
.jaccaWide.menuWideDocked .ui-content.main > .menuSideBar { position:sticky !important; inset:auto !important; top:0 !important; width:100% !important; max-width:100%; height:100vh; height:100dvh; max-height:100dvh; min-width:0; box-sizing:border-box; transition:none !important; grid-column:1; grid-row:1; z-index:4; overflow:hidden; }
.jaccaWide.menuWideDocked .menuWidePane { grid-column:2; grid-row:1; }
.jaccaWide.menuWideDocked .sideBarBody { min-height:0; flex:1; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.jaccaWide.menuWideDocked .menuSideBar .sideBarHeader { flex:none !important; height:auto !important; margin-bottom:8px !important; min-height:0 !important; max-height:40dvh; overflow:auto; }
.jaccaWide.menuWideDocked .menuSideBar .sideBarActions { display:flex !important; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding:12px !important; margin:0 !important; min-height:0 !important; height:auto !important; }
.jaccaWide.menuWideDocked .menuSideBar .sideBarActions-bg-image-container { position:relative !important; inset:auto !important; flex:0 0 100%; width:100% !important; height:100px !important; min-height:0 !important; background-position:center; background-size:contain !important; background-repeat:no-repeat; }
.jaccaWide.menuWideDocked .menuSideBar :is(.actionIcons,.sideBarCulture) { position:static !important; width:auto !important; margin:0 !important; display:flex; gap:6px; min-width:0; flex-wrap:wrap; }
.jaccaWide.menuWideDocked .menuSideBar :is(.sideBarAction,#flag-trigger) { --jsh-icon:26px; --jsh-target:44px; width:auto !important; min-width:44px !important; min-height:44px !important; height:auto !important; padding:5px !important; font-size:26px !important; }
.jaccaWide.menuWideDocked .menuSidebarActionLabel { font-size:12px !important; }
.jaccaWide.menuWideDocked .menuSideBar :is(.menuSectionTitle,.sectionCategory) { box-sizing:border-box; max-width:100%; min-width:0; }
.jaccaWide.menuWideDocked .menuSideBar :is(.menuSectionTitle.active,.sectionCategoriesWrapper) { width:100% !important; }
.jaccaWide.menuWideDocked .menuSideBar .jcGroup:is([data-jc-layout="1"],[data-jc-layout="2"]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.jaccaWide.menuWideDocked .menuSideBar :is(.jcCaption,.menuSectionName,.categoryName) { font-size:22px !important; line-height:1.25; white-space:normal; overflow-wrap:break-word; }
.jaccaWide.menuWideDocked .menuSideBar .menuSectionTitle:not(.jcTile) { width:calc(100% - 16px) !important; margin-inline:8px; }
.jaccaWide.menuWideDocked .menuSideBar .menuSectionTitle:not(.jcTile):is(.squareImage,.landscapeImage):not(.active) { height:auto !important; min-height:120px; aspect-ratio:2/1; background-size:cover; }
.jaccaWide.menuWideDocked .menuSideBar .adsApplicationBox { max-width:100%; height:48px; font-size:18px; }
.jaccaWide.menuWideDocked .menuSideBar .adsApplicationBox-text { line-height:48px; }
.jaccaWide.menuWideDocked .menuSideBar .navigationIcons { position:static; flex:0 0 100%; justify-content:center; }
.jaccaWide.menuWideDocked .menuSideBar .navigationAction { font-size:28px !important; }
/* Rows remain rows; only the existing opt-in grid gains columns. */
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product { box-sizing:border-box; width:auto; max-width:100%; flex:1 1 100%; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a { flex:1 1 0; min-width:0; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a > .imgColumn { flex:0 0 28%; max-width:240px; min-width:0; box-sizing:border-box; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a > .descColumn { flex:1; width:auto !important; min-width:0; box-sizing:border-box; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .productImage { max-width:100%; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .itemName { overflow-wrap:break-word; }
.jaccaWide ul.menu[data-product-layout="1"] > li.product:not([data-product-group="start"],[data-product-group="middle"],[data-product-group="end"],.variation) .descColumn :is(.aligner,.alignerItem) { height:auto; }
.jaccaWide ul.menu[data-product-layout="1"] > li.product .descColumn .alignerItem > * { flex-shrink:0; }
.jaccaWide ul.menu[data-product-layout="1"] > li.product .itemName { font-size:clamp(20px,calc(var(--menu-reading-size,30px) * .8),26px) !important; }
.jaccaWide ul.menu[data-product-layout="1"] > li.product .itemDescription { font-size:clamp(16px,calc(var(--menu-reading-size,23px) * .8),20px) !important; }
.jaccaWide ul.menu[data-product-layout="1"] > li.product .itemPrice { font-size:clamp(20px,calc(var(--menu-reading-size,28px) * .8),25px) !important; }

.jaccaWide.menuWideNarrowProducts ul.menu:not([data-product-layout="1"]) > li.product > a > .imgColumn { padding-inline:8px; }
/* Creative nodes, eligibility and impression observers are preserved. Only their bounds change. */
.jaccaWide .slidein { width:min(640px,var(--menu-wide-content-width)) !important; max-width:100%; left:calc(var(--menu-wide-content-left) + (var(--menu-wide-content-width) - min(640px,var(--menu-wide-content-width))) / 2) !important; right:auto !important; max-height:50dvh; overflow:auto; box-sizing:border-box; }
.jaccaWide.menuWideDocked .slidein[data-menu-wide-zone="sidebar"] { left:var(--menu-wide-sidebar-left) !important; width:var(--menu-wide-sidebar-width) !important; }
.jaccaWide :is(.slidein,.bannerHost,.jppRecommendations) :is(img,video,iframe) { max-width:100%; object-fit:contain; }
.jaccaWide :is(.slidein,.bannerHost) :is(a,.recommendationLink,.bannerlike) { max-width:100% !important; box-sizing:border-box; }
.jaccaWide .slidein > a { width:100% !important; height:auto !important; }
.jaccaWide .slidein > a > :is(img,video) { width:100% !important; height:auto !important; }
.jaccaWide .modal { box-sizing:border-box; max-width:calc(100vw - 32px); }
.jaccaWide .jProductPopup:is([data-popup-style="1"],[data-popup-style="2"]) { max-width:800px; }
.jaccaWide .jProductPopup[data-popup-style="3"] { max-width:none; }
@media(max-width:1000px) {
 .jaccaWide .ui-content.main { gap:16px; padding-inline:12px; }
}

/* Closing the desktop rail is a page-local choice, never a saved mobile setting. */
.menuWideTools,.menuWideOpen { display:none !important; }
.jaccaWide.menuWideDocked .menuWideTools { display:flex !important; flex:0 0 auto; justify-content:flex-end; padding:4px 8px 0; }
.jaccaWide.menuWideSidebarClosed .ui-content.main > .menuSideBar { display:none !important; }
.jaccaWide .menuWidePane > .menuWideOpen:not([hidden]) { display:inline-flex !important; margin:0 12px 12px; }
.jaccaWide :is(.menuWideClose,.menuWideOpen) { align-items:center; justify-content:center; gap:8px; box-sizing:border-box; min-width:40px; min-height:40px; width:auto; padding:8px; border:1px solid currentColor; border-radius:8px; color:inherit; background:transparent; font:inherit; font-size:14px; text-shadow:none; box-shadow:none; cursor:pointer; }
.jaccaWide .menuWideClose { border:0; margin:0; }
.jaccaWide :is(.menuWideClose,.menuWideOpen) svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; flex:none; }
.jaccaWide :is(.menuWideClose,.menuWideOpen):focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.jaccaWide:not(.menuWideDocked) .slidein[data-menu-wide-zone="sidebar"] { visibility:hidden !important; pointer-events:none; }
/* Expandable sections share the same gutters as the cards, with shallower wide banners. */
.jaccaWide .menuWidePane > ul.menu[data-product-navigation]:not([data-product-navigation="0"]) { padding-inline:12px; }
.jaccaWide ul.menu[data-product-navigation]:not([data-product-navigation="0"]) > .menuExpandableHeading { width:100%; margin:8px 0; }
.jaccaWide .menuCategoryToggle { min-height:64px; }
.jaccaWide .menuThemedHeading.menuHeadingImage::before { aspect-ratio:auto; height:clamp(80px,8vw,112px); min-height:80px; }
.jaccaWide .menuThemedHeading.menuHeadingImage[data-heading-position="beside"]::before { height:100%; }
.jaccaWide .menuDisclosureCaption { padding:18px 54px; }
.jaccaWide .menuCategoryToggle :is(.menuName,.categoryName) { font-size:clamp(22px,2.1vw,32px) !important; line-height:1.25; }
.jaccaWide .menuThemedHeading > .menuCategoryChevron { margin:20px; width:10px; height:10px; }
.jaccaWide ul.menu[data-product-layout="1"],.jaccaWide ul.menu.menuBrowsingEnabled[data-product-layout="1"] { column-gap:clamp(16px,1.8vw,28px); }
.jaccaWide ul.menu[data-product-layout="1"][data-product-navigation]:not([data-product-navigation="0"]) > li.product { margin-block:10px !important; }
/* Desktop rows use compact proportions even when phones use Standard browsing.
   Only presentation changes: no mode switch, wave, tracking or gallery behavior is introduced. */
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product { margin:6px 0 !important; width:100%; --menu-density:.8; --menu-thumbnail-size:112px; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a > .imgColumn { padding:7px; flex:0 0 auto; width:auto !important; max-width:35%; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a > .imgColumn .productImage { width:112px !important; height:112px !important; min-height:0 !important; max-width:100%; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product > a > .descColumn { padding:7px 10px; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .menuDensityText { font-size:max(18px,calc(var(--menu-reading-size,24px) * .8)) !important; line-height:1.25; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .itemName { margin-bottom:4px; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .itemDescription { margin-block:5px; -webkit-line-clamp:2; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .itemPrice { margin-top:5px; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .specialtyTag { padding:4px 7px; }
.jaccaWide ul.menu:not([data-product-layout="1"]) > li.product .specialtyTagIcon img { height:28px !important; width:auto !important; max-width:32px; object-fit:contain; }
