/* Keep native Swiper controls and hit targets; replace conflicting pseudo-element arrows. */
body.hy-store :is(.hy-home,.wd-products-element) .wd-carousel-inner{overflow:visible}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow{width:44px!important;height:44px!important;min-width:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--hy-line);border-radius:50%;background:var(--hy-panel);color:var(--hy-text);transform:none!important}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow.wd-disabled{pointer-events:auto!important;opacity:.35!important;cursor:default}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-arrow-inner{display:grid;place-items:center;width:44px!important;height:44px!important;transform:none!important;direction:ltr}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-arrow-inner:before{content:''!important;display:block!important;width:24px!important;height:24px!important;margin:0!important;border:0!important;transform:none!important;background:currentColor!important;mask:url('icons/chevron-right.svg') center/contain no-repeat!important}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-next .wd-arrow-inner:before{mask-image:url('icons/chevron-left.svg')!important}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-arrow-inner:after{display:none!important}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow:hover{color:var(--hy-accent);border-color:var(--hy-accent)}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow:focus-visible{outline:2px solid var(--hy-accent);outline-offset:3px}
:is(.hy-home,.wd-products-element) .hy-end-highlight{border-radius:6px;animation:hy-carousel-end 3s ease-out 1}
@keyframes hy-carousel-end{0%,100%{box-shadow:0 0 0 0 transparent}40%{box-shadow:0 0 0 5px #f9731626,0 0 18px #f9731655;color:var(--hy-accent)}}
@media(max-width:480px){#hy-vehicle-dialog{padding:16px}#hy-vehicle-dialog header{margin-bottom:16px}#hy-vehicle-dialog .hy-vehicle-picker{gap:12px!important}#hy-vehicle-dialog h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){:is(.hy-home,.wd-products-element) .hy-end-highlight{animation:none;outline:2px solid var(--hy-accent);outline-offset:3px}}
/* Native separated controls previously used -32px offsets; keep both hit areas inside the viewport. */
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows.wd-pos-sep .wd-prev{right:8px!important;left:auto!important}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows.wd-pos-sep .wd-next{left:8px!important;right:auto!important}

/* A disabled visible control remains a real hit target; locked carousels have no controls. */
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow{pointer-events:auto!important;z-index:5}
body.hy-store :is(.hy-home,.wd-products-element) .hy-carousel-static .wd-nav-arrows{display:none!important}
.hy-carousel-position{display:block;text-align:center;font-size:11px;color:var(--hy-muted);padding-top:8px;direction:rtl}
.hy-carousel-position[hidden]{display:none}
.hy-carousel-at-end{box-shadow:inset 2px 0 var(--hy-accent);border-radius:8px}
body.hy-store :is(.hy-home,.wd-products-element) .wd-carousel{--wd-gap:8px!important}
@media(max-width:1024px){body.hy-store :is(.hy-home,.wd-products-element) .wd-carousel{--wd-gap:6px!important}}
@media(max-width:600px){body.hy-store :is(.hy-home,.wd-products-element) .wd-carousel{--wd-gap:6px!important}}

/* Mobile navigation uses the existing menu in one modal, never a second controller. */
#hy-mobile-menu{width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid var(--hy-line);border-radius:12px;background:var(--hy-panel);color:var(--hy-text);direction:rtl;overflow:auto}
#hy-mobile-menu::backdrop{background:#0008}
#hy-mobile-menu header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#hy-mobile-menu h2{font-size:18px;margin:0;color:var(--hy-text)}
#hy-mobile-menu h3{font-size:14px;color:var(--hy-muted);border-top:1px solid var(--hy-line);padding-top:16px;margin-top:16px}
#hy-mobile-menu .hy-mobile-menu-close{width:40px;height:40px;padding:0;font-size:24px;border:1px solid var(--hy-line);border-radius:8px;background:var(--hy-panel-alt);color:var(--hy-text)}
#hy-mobile-menu .hy-main-nav{display:grid!important;gap:0;padding:0}
#hy-mobile-menu a{display:block;padding:10px 6px;color:var(--hy-text);font-size:13px}
#hy-mobile-menu a:is(:hover,:focus-visible){color:var(--hy-accent);background:var(--hy-panel-alt)}
#hy-mobile-menu ul{list-style:none;margin:0;padding:0}#hy-mobile-menu ul.children{padding-right:18px;border-right:1px solid var(--hy-line)}
@media(max-width:1024px){
 body.hy-store .hy-secondary-vehicle .hy-menu-toggle{display:flex!important;align-items:center;justify-content:center;width:36px!important;min-width:36px!important;height:40px;padding:4px}
 body.hy-store .hy-sprint-header .hy-header-actions .hy-account{display:inline-flex!important;align-items:center;justify-content:center;width:36px!important;min-width:36px!important;height:40px;padding:6px!important}body.hy-store .hy-sprint-header .hy-header-actions .hy-account>span{display:none!important}
 body.hy-store .hy-sprint-header .hy-header-inner{grid-template-columns:auto minmax(0,1fr) auto!important}
 body.hy-store .hy-secondary-space{height:56px}
 body.hy-store .hy-bottom-nav{position:fixed;inset-inline:0;bottom:0;z-index:950;display:grid;grid-template-columns:repeat(5,1fr)!important;padding:8px 4px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--hy-line)}body.hy-store .hy-bottom-nav>a,body.hy-store .hy-bottom-nav>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:4px;font-size:11px;min-width:0}body.hy-store .hy-bottom-nav span{font-size:10px}
 body.hy-store{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* Searchable vehicle drill-down: one scroll region, no nested select popups. */
#hy-vehicle-dialog{width:min(500px,calc(100vw - 20px));padding:16px;overflow:hidden;max-height:calc(100dvh - 24px)}
#hy-vehicle-dialog .hy-modal-vehicle[hidden]{display:none!important}
#hy-vehicle-dialog header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}
#hy-vehicle-dialog h2{font-size:16px;line-height:1.8;margin:0}
.hy-vehicle-steps{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
#hy-vehicle-dialog .hy-vehicle-steps>input{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;align-self:stretch;transform:none!important;height:44px!important;min-height:44px;padding-inline:12px!important;color:var(--hy-text)!important;background:var(--hy-panel-alt)!important;border:1px solid var(--hy-line)!important;border-radius:10px!important}
.hy-vehicle-step-list{overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 260px);min-height:120px;scrollbar-width:thin}
#hy-vehicle-dialog .hy-vehicle-step-list>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 10px!important;min-height:50px;border:0!important;border-bottom:1px solid var(--hy-line)!important;border-radius:0!important;background:transparent!important;color:var(--hy-text)!important;text-align:right;font-size:13px;font-weight:500}
#hy-vehicle-dialog .hy-vehicle-step-list>button[hidden]{display:none!important}
#hy-vehicle-dialog .hy-vehicle-step-list>button:hover,#hy-vehicle-dialog .hy-vehicle-step-list>button:focus-visible{background:var(--hy-panel-alt)!important;color:var(--hy-accent)!important}
#hy-vehicle-dialog .hy-vehicle-step-list>.hy-vehicle-choose-parent{color:var(--hy-accent)!important}
#hy-vehicle-dialog .hy-vehicle-back{align-self:flex-start;background:var(--hy-panel-alt)!important;color:var(--hy-text)!important;padding:6px 10px;min-height:34px;border:1px solid var(--hy-line);border-radius:6px;font-size:12px}
#hy-vehicle-dialog .hy-vehicle-back[hidden]{display:none!important}
#hy-vehicle-dialog .hy-modal-clear{margin-top:10px;font-size:11px;min-height:36px;background:transparent!important;color:var(--hy-muted)!important}

/* SVG masks avoid bidi mirroring of text chevrons and font-dependent close glyphs. */
#hy-vehicle-dialog .hy-vehicle-step-arrow{display:block;flex:0 0 18px;width:18px;height:18px;background:currentColor;mask:url('icons/chevron-left.svg') center/contain no-repeat;direction:ltr;transform:none!important;color:var(--hy-muted)}

.hy-secondary-vehicle{display:flex;align-items:center;gap:8px;min-width:0}
body.hy-store .hy-secondary-vehicle .hy-menu-toggle{display:none;background:transparent!important;color:var(--hy-text)!important;border:0;border-radius:8px;flex:none}
@media(max-width:1024px){
 body.hy-store .hy-sprint-header .hy-secondary-row{grid-template-columns:minmax(0,1fr) auto}
 body.hy-store .hy-secondary-vehicle .hy-menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:36px;min-width:36px;height:40px;padding:4px}
 body.hy-store .hy-secondary-vehicle .hy-vehicle-highlight{min-width:0;max-width:100%}
 body.hy-store .hy-secondary-vehicle .hy-vehicle-highlight>span{min-width:0;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}

/* Shared product sliders: keep separated controls fully inside their own track. */
body.hy-store :is(.hy-home,.wd-products-element) .wd-carousel-inner{position:relative}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows.wd-pos-sep .wd-btn-arrow{position:absolute;top:50%!important;margin-top:-22px!important;visibility:visible!important;opacity:1;pointer-events:auto!important;z-index:5}
body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-btn-arrow.wd-lock{display:none!important}
html[dir=ltr] body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows.wd-pos-sep .wd-prev{left:8px!important;right:auto!important}
html[dir=ltr] body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows.wd-pos-sep .wd-next{right:8px!important;left:auto!important}
html[dir=ltr] body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-prev .wd-arrow-inner:before{mask-image:url('icons/chevron-left.svg')!important}
html[dir=ltr] body.hy-store :is(.hy-home,.wd-products-element) .wd-nav-arrows .wd-next .wd-arrow-inner:before{mask-image:url('icons/chevron-right.svg')!important}

/* Phase 7C: shared disclosure geometry and quiet, theme-aware scrollbars. */
:root{--hy-scroll-thumb:color-mix(in srgb,var(--hy-muted) 40%,var(--hy-panel));--hy-scroll-hover:color-mix(in srgb,var(--hy-muted) 65%,var(--hy-panel))}
html,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog){scrollbar-width:thin;scrollbar-color:var(--hy-scroll-thumb) transparent}
html::-webkit-scrollbar,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog)::-webkit-scrollbar{width:7px;height:7px}
html::-webkit-scrollbar-thumb,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog)::-webkit-scrollbar-thumb{background:var(--hy-scroll-thumb);border-radius:10px;border:2px solid var(--hy-panel)}
html::-webkit-scrollbar-thumb:hover,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog)::-webkit-scrollbar-thumb:hover{background:var(--hy-scroll-hover)}
html::-webkit-scrollbar-track,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog)::-webkit-scrollbar-track{background:transparent;margin-block:10px}
html::-webkit-scrollbar-button,body.hy-store :is(#hy-mobile-menu,.hy-filter-dock,.hy-archive-drawer,.hy-vehicle-options,.hy-search-results,.hy-theme-menu>div,dialog)::-webkit-scrollbar-button{display:none;width:0;height:0}
#hy-mobile-menu .hy-menu-category-row{display:flex;align-items:center;gap:4px}
#hy-mobile-menu .hy-menu-category-row>a{flex:1;min-width:0;font-weight:700}
body.hy-store #hy-mobile-menu .hy-menu-disclosure{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--hy-line);border-radius:8px;background:var(--hy-panel-alt);color:var(--hy-text)}
.hy-menu-disclosure svg{width:20px;height:20px;transition:transform .18s ease}
.hy-menu-disclosure[aria-expanded=true] svg{transform:rotate(180deg)}
#hy-mobile-menu ul.children{padding-inline-start:14px;padding-inline-end:0;border-inline-start:1px solid var(--hy-line);border-right:0;margin:0 8px 8px 0}
#hy-mobile-menu ul.children[hidden]{display:none!important}
#hy-mobile-menu a{overflow-wrap:anywhere}
#hy-mobile-menu ul.children a{font-size:12px;font-weight:500}
#hy-mobile-menu :is(.current-cat,.current-cat-parent)>.hy-menu-category-row>a,#hy-mobile-menu .current-cat>a{color:var(--hy-accent);background:var(--hy-panel-alt);border-radius:6px}
body.hy-store :is(.hy-sidebar-form,.hy-theme-menu) summary{list-style:none}
body.hy-store :is(.hy-sidebar-form,.hy-theme-menu) summary::-webkit-details-marker{display:none}
body.hy-store.hy-archive-page .hy-sidebar-form summary{min-height:44px}
body.hy-store.hy-archive-page .hy-sidebar-form summary:after{content:'';display:block;width:18px;height:18px;border:0;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transform:none;flex:0 0 18px;transition:transform .18s ease;margin-inline:8px 0}
body.hy-store.hy-archive-page .hy-sidebar-form details[open]>summary:after{transform:rotate(180deg)}
.hy-menu-disclosure:focus-visible{outline:2px solid var(--hy-accent);outline-offset:2px}
body.hy-store>.hy-loading-global{position:fixed;inset:0;z-index:100200;pointer-events:none;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--hy-text)}
body.hy-store>.hy-loading-global>span:last-child{background:var(--hy-panel);padding:8px 14px;border:1px solid var(--hy-line);border-radius:8px;box-shadow:0 4px 18px #0002}
.hy-empty-scope{display:flex;flex-wrap:wrap;gap:8px;margin-block:12px}
@media(prefers-reduced-motion:reduce){.hy-menu-disclosure svg,body.hy-store.hy-archive-page .hy-sidebar-form summary:after{transition:none}.hy-loading-spinner{animation:none!important}}

.hy-scope-label{align-self:center;font-size:11px;color:var(--hy-muted);white-space:nowrap}

.hy-archive-empty>a{display:inline-flex;align-items:center;min-height:44px;padding:6px 10px;margin:4px;border:1px solid var(--hy-line);border-radius:7px}.hy-archive-empty p{max-width:64ch}

#hy-mobile-menu a[aria-current=page],#hy-mobile-menu .hy-menu-active-parent>.hy-menu-category-row>a{color:var(--hy-accent);font-weight:700;background:var(--hy-panel-alt);border-radius:6px}
