/* 导航与搜索共享滚动页头；只在向下滚动时收起，向上滚动立即恢复。 */
.storefront-header-shell{position:sticky;top:0;z-index:50;background:#fff;transition:transform .22s ease;box-shadow:0 1px 0 #ececec}
.storefront-header-shell.is-scroll-hidden{transform:translateY(-100%)}
.storefront .site-header{grid-template-columns:minmax(130px,1fr) minmax(240px,680px) minmax(160px,1fr);min-height:86px;padding:16px 32px;gap:24px}
.storefront .site-header .brand{grid-column:1;grid-row:1;justify-self:start;width:auto;max-width:100%;height:auto;min-height:44px}
.storefront .brand-name{white-space:normal;max-width:100%;font-size:32px;font-weight:650;line-height:1.2;overflow-wrap:anywhere}
.storefront .site-header .header-left{grid-column:1;grid-row:1;position:absolute;left:12px;top:12px}
.storefront .site-header .header-search{display:none}
.storefront .site-header .site-header-actions{grid-column:3;grid-row:1}
.storefront .search-drawer{position:static;grid-column:2;grid-row:1;padding:0;gap:0;box-shadow:none;min-width:0;background:transparent}
.storefront .search-field{flex:1;height:46px;border-color:#bbb;border-radius:3px}
.storefront .search-field:focus-within{border-color:#777 #222;box-shadow:inset 1px 0 #222,inset -1px 0 #222}
.storefront .search-field input{font-size:15px}
.storefront .search-close{display:none}
.storefront .catalog-sidebar{padding:0 32px;overflow:visible}
.storefront .category-nav{position:static;overflow:visible;flex-wrap:wrap;gap:clamp(16px,3vw,56px)}
.storefront .category-button{font-size:16px;font-weight:650;min-height:54px;text-decoration:none;letter-spacing:.045em;display:flex;align-items:center;white-space:normal;overflow-wrap:anywhere;min-width:0}
.storefront .navigation-item .category-button{flex:0 1 auto}
.navigation-item{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.mega-menu-toggle{display:grid;place-items:center;min-width:28px;min-height:40px;padding:4px;border:0;background:none;font-size:18px}
.mega-menu{position:absolute;top:100%;left:0;right:0;display:none;grid-template-columns:1fr;gap:24px;padding:28px 40px 32px;background:#fff;box-shadow:0 12px 18px #00000012;border-top:1px solid #eee;max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain}
.mega-menu.has-highlights{grid-template-columns:minmax(240px,2fr) repeat(2,minmax(0,1fr))}
.mega-menu-categories{min-width:0}
.mega-menu-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}
.mega-menu.has-highlights .mega-menu-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.mega-menu-new .mega-menu-category-grid{grid-template-columns:1fr;gap:4px}
.mega-menu-new.has-highlights .mega-menu-category-grid{grid-template-columns:1fr}
.mega-menu-section-title{font-size:13px;font-weight:650;color:#777;letter-spacing:.08em;margin:0 0 24px;text-transform:uppercase}
.mega-menu-feature{display:block;min-width:0;color:#222;text-decoration:none;text-align:center;align-self:start}
.mega-menu-feature img{display:block;width:100%;height:clamp(180px,24vw,320px);object-fit:cover;background:#f5f5f5}
.mega-menu-feature span{display:block;margin-top:14px;font-size:15px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.navigation-item:focus-within .mega-menu,.navigation-item.is-open .mega-menu{display:grid}
.mega-menu-column{min-width:0}
.mega-menu-section-header{margin-bottom:24px}
.mega-menu-section-header .mega-menu-section-title{margin-bottom:10px}
a.mega-menu-all{display:inline-block;color:#222;font-size:14px;text-underline-offset:4px;overflow-wrap:anywhere}
.mega-menu-empty{grid-column:1/-1;margin:0;color:#666;font-size:15px}
.mega-menu-heading{display:block;margin-bottom:14px;color:#555;font-size:14px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.mega-menu-link{display:block;margin:10px 0;color:#222;font-size:15px;text-decoration:none;overflow-wrap:anywhere}
.mega-menu-grandchild{padding-left:14px;font-size:14px;color:#666}
.mega-menu a:hover{text-decoration:underline;text-underline-offset:4px}
.collection-showcase{display:flex;gap:16px;overflow-x:auto;padding:28px 20px 20px;scroll-snap-type:x proximity;scrollbar-width:thin}
.collection-showcase[hidden]{display:none}
.showcase-card{flex:0 0 calc((100% - 96px)/7);min-width:140px;max-width:260px;color:#222;text-decoration:none;text-align:center;scroll-snap-align:start}
.showcase-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:3px;background:#f5f5f5}
.showcase-card span{display:block;padding:12px 4px;font-size:14px;font-weight:650;line-height:1.5;text-transform:uppercase}
.showcase-card:hover span{text-decoration:underline;text-underline-offset:4px}
.storefront .catalog-heading{justify-content:space-between;padding:20px 20px 12px;gap:20px}
.storefront #category-heading{position:static;flex:1;min-width:0;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:24px;font-weight:600;line-height:1.4}
.storefront .catalog-results{flex:0 0 auto;width:auto}
.storefront .catalog-toolbar{gap:20px;padding:8px 20px 22px;flex-wrap:wrap}
.storefront .catalog-filters{flex-wrap:wrap;gap:10px;flex:1 1 800px}
.storefront .active-filters{padding:0 20px 20px}
.storefront .product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:36px 16px;margin:0 20px}
.storefront .catalog-footer{margin-top:40px}
.footer-channel .footer-contact-value{display:block;max-width:270px;overflow-wrap:anywhere;font-size:12px;color:#777}
.sale-section{margin:64px 20px 0;min-height:1px}
.sale-section[hidden]{display:none}
.sale-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.sale-heading h2{margin:0;font-size:26px;font-weight:550}
.sale-arrows{display:flex;gap:12px}
.sale-arrows button{width:44px;height:44px;border:1px solid #ddd;background:#fff;font-size:22px}
.sale-products{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5);gap:16px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:12px}
.sale-products .product-card{scroll-snap-align:start}
.sale-view-all{display:block;width:240px;margin:28px auto 0;padding:14px 22px;background:#202020;color:#fff;text-align:center;text-decoration:none;font-size:14px;font-weight:650}
.sale-view-all:hover{background:#444;color:#fff}
@media(min-width:990px) and (hover:hover) and (pointer:fine){.navigation-item:hover .mega-menu{display:grid}}
@media(min-width:1800px){.storefront .product-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sale-products{grid-auto-columns:calc((100% - 80px)/6)}}
@media(max-width:1099px) and (min-width:750px){.storefront .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:989px){
 .storefront .site-header{grid-template-columns:minmax(90px,1fr) minmax(120px,2fr) auto;min-height:76px;height:auto;padding:12px 14px 12px 52px;gap:12px}
 .storefront .brand-name{font-size:23px;letter-spacing:1px}
 .storefront .site-header .header-left{grid-column:auto;grid-row:auto;top:12px;left:4px}
 .storefront .search-field{height:42px;padding:0 10px}
 .storefront .search-field input{font-size:14px}
 .storefront .catalog-sidebar{padding:20px;overflow-y:auto}
 .storefront .category-nav{gap:0;align-items:stretch}
 .navigation-item{flex-wrap:wrap;border-bottom:1px solid #eee;gap:0}
 .storefront .navigation-item .category-button{flex:1;min-width:0;border:0;font-size:16px}
 .mega-menu-toggle{width:44px;height:48px}
 .mega-menu,.mega-menu.has-highlights{position:static;flex:1 0 100%;grid-template-columns:1fr 1fr;gap:18px;padding:10px 0 20px;border:0;box-shadow:none;max-height:none;overflow:visible}
 .mega-menu-categories{grid-column:1/-1}
 .mega-menu .mega-menu-category-grid{grid-template-columns:1fr 1fr;gap:14px}
 .mega-menu-feature img{height:160px}
 .mega-menu-section-title{margin-bottom:16px}
 .navigation-item:focus-within:not(.is-open) .mega-menu{display:none}
 .navigation-item.is-open .mega-menu{display:grid}
 .mega-menu-link{font-size:14px}
 .storefront .catalog-filters{flex-basis:100%}
 .storefront .catalog-toolbar{gap:12px;padding-top:8px}
 .storefront .sort-field{position:static;margin-left:auto;max-width:none}
 .storefront .catalog-heading{padding-top:18px}
 .collection-showcase{gap:12px;padding-top:20px}
 .showcase-card{min-width:150px}
 .sale-products{grid-auto-columns:calc((100% - 32px)/3)}
}
@media(max-width:749px){
 .storefront .site-header{grid-template-columns:minmax(100px,1fr) auto;gap:10px;padding:10px 12px 12px 50px}
 .storefront .site-header .brand{grid-column:1}
 .storefront .site-header .site-header-actions{grid-column:2;gap:4px}
 .storefront .search-drawer{grid-column:1/-1;grid-row:2;margin-left:-38px}
 .storefront .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px;margin:0 12px}
 .storefront .catalog-heading{padding-right:12px;padding-left:12px}
 .storefront #category-heading{font-size:21px}
 .storefront .catalog-toolbar{padding-right:12px;padding-left:12px}
 .storefront .result-count{font-size:13px}
 .collection-showcase{padding-right:12px;padding-left:12px}
 .showcase-card{min-width:132px}
 .showcase-card span{font-size:12px}
 .sale-section{margin:40px 12px 0}
 .sale-heading h2{font-size:22px}
 .sale-products{grid-auto-columns:calc((100% - 12px)/2);gap:12px}
}
@media(prefers-reduced-motion:reduce){.storefront-header-shell{transition:none}}
/* 退出键明确收起菜单，即使鼠标或键盘仍留在当前一级导航。 */
.navigation-item.is-dismissed .mega-menu{display:none!important}

.storefront .category-button:focus-visible{outline:2px solid #222;outline-offset:-4px;border-radius:2px}
