/* Header account navigation and mobile sheets use the store's rounded sheet design. */
.yc-mobile-search-trigger{display:none}
.yc-account-dropdown{width:min(420px,calc(100vw - 48px));max-height:calc(100dvh - var(--header-height,180px) - 24px);overflow:auto;padding:20px;border-radius:16px;overscroll-behavior:contain}
.yc-account-menu-welcome{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.yc-account-menu-avatar{display:grid;place-items:center;flex:0 0 44px;height:44px;background:var(--yc-primary-soft);color:var(--yc-primary);border-radius:14px;font-size:24px}
.yc-account-menu-welcome>div{display:grid;gap:3px;min-width:0}
.yc-account-menu-welcome small{font-size:11px;color:var(--yc-muted)}
.yc-account-menu-welcome strong{font-size:17px;overflow-wrap:anywhere}
.yc-account-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.yc-account-links>a{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:12px 10px;border:1px solid var(--yc-border-soft);border-radius:12px;background:var(--yc-surface-alt);color:var(--yc-link-color)}
.yc-account-links>a>.micon:first-child{font-size:20px;color:var(--yc-icon-color);flex-shrink:0;margin-top:2px}
.yc-account-links>a>.micon:last-child{display:none}
.yc-account-links>a>span{display:grid;gap:5px;min-width:0}
.yc-account-links strong{font-size:12px;font-weight:600;line-height:1.4}
.yc-account-links small{font-size:11px;line-height:1.45;color:var(--yc-muted)}
.yc-account-links>a:hover,.yc-account-links>a[aria-current]{border-color:var(--yc-primary-border);background:var(--yc-primary-soft)}
.yc-account-links>a[aria-current]>.micon:first-child{color:var(--yc-icon-color)}
.yc-account-dropdown .yc-account-community{margin-top:14px;padding:14px 0 0;border-top:1px solid var(--yc-border-soft);font-weight:600}
.yc-account-community>span:last-child{margin-left:auto}
.yc-account-dropdown a:focus-visible,.yc-header-sheet :is(a,button,input):focus-visible{outline:2px solid var(--yc-primary);outline-offset:2px}
html.yc-header-sheet-open{overflow:hidden}
.yc-header-sheet.yc-info-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:var(--yc-header-sheet-height,90dvh);padding:0;border:0;border-radius:22px 22px 0 0;background:var(--yc-surface);color:var(--yc-text);box-shadow:0 -12px 60px color-mix(in srgb,var(--yc-shadow-color) 13.33%,transparent);overflow:hidden}
.yc-header-sheet[open]{display:flex;flex-direction:column}
.yc-header-sheet::backdrop{background:color-mix(in srgb,var(--yc-inverse-bg) 46.67%,transparent);backdrop-filter:blur(3px)}
.yc-header-sheet .yc-sheet-handle{display:block;flex:0 0 4px;width:38px;height:4px;border-radius:4px;background:var(--yc-border);margin:10px auto 0}
.yc-header-sheet .yc-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--yc-border-soft);flex-shrink:0}
.yc-header-sheet .yc-sheet-eyebrow{display:block;margin-bottom:5px;font-size:10px;font-weight:650;letter-spacing:1px;color:var(--yc-primary)}
.yc-header-sheet .yc-sheet-head h2{margin:0;font-size:22px;line-height:1.25;font-weight:650}
.yc-header-sheet .yc-sheet-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:var(--yc-surface-alt);color:var(--yc-text);cursor:pointer;font-size:18px}
.yc-header-sheet-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px calc(20px + env(safe-area-inset-bottom))}
#yc-header-search-sheet{height:min(680px,var(--yc-header-sheet-height,90dvh))}
.yc-header-sheet .yc-discovery{display:block;min-width:0;width:100%}
.yc-header-sheet .yc-header-search{position:sticky;top:0;z-index:2;height:50px;background:var(--yc-surface-alt);border-radius:12px}
.yc-header-sheet .yc-header-search input{font-size:16px}
.yc-header-sheet .yc-search-results{position:static;min-width:0;max-height:none;border:0;border-radius:0;box-shadow:none;padding:20px 0 0;overflow:visible}
.yc-header-sheet .yc-search-results-head{font-size:14px}
.yc-header-sheet [data-search-close]{display:none}
.yc-header-sheet .yc-search-chips a{display:flex;align-items:center;min-height:44px;border-radius:10px}
.yc-header-sheet .yc-search-matches a{min-height:76px}
.yc-header-sheet .yc-search-matches img{flex:0 0 52px}
.yc-header-sheet .yc-search-matches span{min-width:0;overflow-wrap:anywhere}
.yc-header-sheet .yc-search-all{min-height:46px;background:var(--yc-inverse-bg);color:var(--yc-inverse-text);border-radius:10px}
.yc-header-sheet .yc-account-dropdown{position:static;width:100%;max-width:none;max-height:none;padding:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
@media(max-width:900px){
  .yc-header-sheets-ready .yc-header-main>.yc-discovery{display:none}
  .yc-header-sheets-ready .yc-mobile-search-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-row:2;grid-column:1/-1;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--yc-border);border-radius:8px;background:var(--yc-surface-alt);color:var(--yc-muted);text-align:left;font-size:12px}
  .yc-mobile-search-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .yc-mobile-search-trigger .micon{font-size:20px;color:var(--yc-icon-color)}
}

@media(max-width:900px){
 .yc-header-actions .yc-header-reviews{display:none}
 .yc-header-brand .yc-mobile-menu-trigger{display:flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;width:auto;min-height:44px;color:var(--yc-text)}
 .yc-mobile-menu-trigger .micon{font-size:23px;-webkit-text-stroke:.55px currentColor}
 .yc-mobile-menu-trigger>span{font-size:11px;font-weight:650}
 .yc-header-brand{gap:9px}
}
@media(max-width:360px){
 .yc-header-brand img{max-width:112px}
 .yc-header-actions{gap:14px}
 .yc-header-brand .yc-mobile-menu-trigger{gap:3px}
}

/* Desktop PDP navigation yields space to the persistent purchase bar. */
@media(min-width:901px){
 .yc-header-scroll-ready .yc-header-v2{transition:transform .22s ease;}
 .yc-header-scroll-ready .yc-header-v2.is-scroll-hidden{transform:translateY(-100%);pointer-events:none;box-shadow:none}
 .yc-header-scroll-ready .yc-buy-nav{transition:top .22s ease;}
}
@media(prefers-reduced-motion:reduce){
 .yc-header-scroll-ready .yc-header-v2,.yc-header-scroll-ready .yc-buy-nav{transition:none}
}

/* A single quiet action group keeps search and customer navigation balanced. */
@media(min-width:901px){
 .yc-header-v2 .yc-header-main{gap:24px}
 .yc-header-v2 .yc-header-actions{gap:2px;padding:3px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-lg);background:var(--yc-surface)}
 .yc-header-v2 .yc-header-actions .yc-header-action{min-height:38px;padding:6px 10px;gap:7px;border:0;border-radius:var(--yc-radius-sm);background:transparent;font-size:11px;line-height:1.3;font-weight:var(--yc-font-heading-weight,600);transition:background .15s,color .15s}
 .yc-header-v2 .yc-header-actions .yc-header-action>.micon:first-child{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;font-size:20px;color:var(--yc-icon-color)}
 .yc-header-v2 .yc-header-actions .yc-header-action:hover,.yc-header-v2 .yc-account-menu[open]>summary{background:var(--yc-surface-alt);color:var(--yc-link-hover)}
 .yc-header-v2 .yc-header-reviews span{display:block;max-width:68px;line-height:1.3}
 .yc-header-v2 .yc-account-menu{border-inline:1px solid var(--yc-border-soft)}
 .yc-header-v2 .yc-account-menu>summary small{font-size:9px;margin-bottom:2px;color:var(--yc-muted)}
 .yc-header-v2 .yc-account-menu[open]>summary>.micon-down{transform:rotate(180deg)}
 .yc-header-v2 .yc-header-cart .yc-header-cart-count{margin-left:1px;min-width:18px;height:18px;background:var(--yc-primary);color:var(--yc-primary-text);font-size:10px}
 .yc-header-v2 .yc-account-dropdown{top:calc(100% + 12px);width:416px;padding:16px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-lg);background:var(--yc-surface);box-shadow:0 16px 40px color-mix(in srgb,var(--yc-shadow-color) 12%,transparent)}
 .yc-header-v2 .yc-account-menu-welcome{padding:12px;margin-bottom:12px;border-radius:var(--yc-radius-md);background:var(--yc-surface-alt)}
 .yc-header-v2 .yc-account-menu-avatar{background:var(--yc-icon-bg);color:var(--yc-icon-color)}
 .yc-header-v2 .yc-account-menu-welcome strong{font-size:14px;font-weight:var(--yc-font-heading-weight,600)}
 .yc-header-v2 .yc-account-dropdown .yc-account-primary{min-height:38px;padding:9px 12px;border-radius:var(--yc-radius-md);font-size:12px}
 .yc-header-v2 .yc-account-links{gap:8px;margin-top:12px}
 .yc-header-v2 .yc-account-links>a{min-height:70px;padding:10px;gap:8px;background:var(--yc-surface);border-radius:var(--yc-radius-md)}
 .yc-header-v2 .yc-account-links>a>.micon:first-child{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;margin:0;border-radius:var(--yc-radius-sm);background:var(--yc-icon-bg);color:var(--yc-icon-color);font-size:16px}
 .yc-header-v2 .yc-account-links>a:hover{background:var(--yc-primary-soft);border-color:var(--yc-primary-border)}
 .yc-header-v2 .yc-account-links small{font-size:10px}
 .yc-header-v2 .yc-account-dropdown .yc-account-community{min-height:38px;margin-top:12px;padding:10px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-md);background:var(--yc-surface-alt);font-size:12px}
}
@media(min-width:901px) and (max-width:1100px){
 .yc-header-v2 .yc-header-main{gap:16px}
 .yc-header-v2 .yc-header-brand img{max-width:140px}
 .yc-header-v2 .yc-header-actions .yc-header-action{padding:6px;gap:5px;font-size:10px}
 .yc-header-v2 .yc-account-menu>summary small{display:none}
}

/* Desktop catalogue navigation and a balanced, contained mega menu. */
@media(min-width:901px){
 .yc-header-v2 .yc-header-navigation{gap:18px;min-height:48px}
 .yc-header-v2 .yc-mega{align-self:center}
 .yc-header-v2 .yc-mega>summary{min-height:34px;padding:6px 12px;gap:8px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-md);background:var(--yc-surface-alt);font-size:12px;font-weight:var(--yc-font-heading-weight)}
 .yc-header-v2 .yc-mega>summary>.micon-menu{font-size:18px;color:var(--yc-icon-color)}
 .yc-header-v2 .yc-mega[open]>summary{border-color:var(--yc-primary-border);background:var(--yc-primary-soft)}
 .yc-header-v2 .yc-header-nav-links,.yc-header-v2 .yc-header-primary{gap:18px;font-size:12px}
 .yc-header-v2 .yc-header-nav-links>a,.yc-header-v2 .yc-header-primary a{min-height:46px}
 .yc-header-v2 .yc-header-help{font-size:11px}
 .yc-header-v2 .yc-mega-panel{top:calc(100% + 8px);border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-lg);box-shadow:0 18px 48px color-mix(in srgb,var(--yc-shadow-color) 12%,transparent);max-height:calc(100dvh - var(--header-height) - 24px)}
 .yc-header-v2 .yc-mega-top{padding:12px 18px;background:var(--yc-surface-alt);font-size:13px;color:var(--yc-text)}
 .yc-header-v2 .yc-mega-top button{width:30px;height:30px;border-radius:var(--yc-radius-sm);background:var(--yc-surface);color:var(--yc-icon-color)}
 .yc-header-v2 .yc-mega-grid{grid-template-columns:minmax(160px,.85fr) minmax(210px,1fr) minmax(0,2.15fr);gap:20px;padding:20px}
 .yc-header-v2 .yc-mega-grid>div{min-width:0}
 .yc-header-v2 .yc-mega-grid h2{margin-bottom:12px;font-size:12px;color:var(--yc-text);font-weight:var(--yc-font-heading-weight);text-transform:none;letter-spacing:0}
 .yc-header-v2 .yc-mega-categories>a{min-height:36px;padding:8px 10px;margin-bottom:4px;border:1px solid transparent;border-radius:var(--yc-radius-sm);font-size:12px;background:var(--yc-surface-alt)}
 .yc-header-v2 .yc-mega-categories .yc-mega-all{background:var(--yc-primary-soft);color:var(--yc-link-hover)}
 .yc-header-v2 .yc-mega-categories>a:hover{border-color:var(--yc-primary-border);background:var(--yc-primary-soft)}
 .yc-header-v2 .yc-mega-discover>a{padding:9px 0;font-size:12px;border-color:var(--yc-border-soft)}
 .yc-header-v2 .yc-mega-price{margin-top:16px;padding:12px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-md);background:var(--yc-surface-alt)}
 .yc-header-v2 .yc-mega-price h3{font-size:11px;margin-bottom:10px;font-weight:var(--yc-font-heading-weight)}
 .yc-header-v2 .yc-mega-price input{height:34px;border-radius:var(--yc-radius-sm);font-size:12px}
 .yc-header-v2 .yc-mega-product-grid{gap:10px;align-items:stretch}
 .yc-header-v2 .yc-mega-product{padding:10px;border:1px solid var(--yc-border-soft);border-radius:var(--yc-radius-md);background:var(--yc-surface)}
 .yc-header-v2 .yc-mega-product:hover{border-color:var(--yc-primary-border);background:var(--yc-surface)}
 .yc-header-v2 .yc-mega-product img{width:100%;height:auto;aspect-ratio:1;padding:6px;margin-bottom:10px;object-fit:contain;border-radius:var(--yc-radius-sm);background:var(--yc-surface-alt)}
 .yc-header-v2 .yc-mega-product>strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.5;font-weight:var(--yc-font-heading-weight);color:var(--yc-text)}
 .yc-header-v2 .yc-mega-product>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;font-size:12px}
 .yc-header-v2 .yc-mega-product del{display:inline;font-size:10px;color:var(--yc-muted)}
 .yc-header-v2 .yc-mega-product ins{font-weight:var(--yc-font-heading-weight);color:var(--yc-price-color)}
 .yc-header-v2 .yc-mega-note{padding:10px 12px;margin:12px 0 0;border-radius:var(--yc-radius-sm);background:var(--yc-surface-alt);font-size:11px;line-height:1.5;color:var(--yc-muted)}
}
