/* One navigation treatment for the storefront and customer screens. */
.platform-header,.platform-bottom-nav{--dock:var(--primary-deep,#1A2530);--nav-line:#E8E9E9;--nav-gold:var(--accent,#C59B27);--muted:#78818A;--line:#E8E9E9}
.platform-header{position:relative;z-index:25;background:#FFFFFFED;backdrop-filter:blur(18px);border-bottom:1px solid #E8E9E980}
.platform-header .header-inner{position:relative;width:min(1510px,calc(100% - 64px));max-width:none;min-height:90px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.platform-header .store-identity{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none}
.platform-header .store-identity>img{display:block;width:72px;height:72px;object-fit:contain;flex-shrink:0;background:white;padding:2px;border-radius:20px;border:1px solid color-mix(in srgb,var(--primary) 16%,#E8E9E9);box-shadow:0 3px 12px #18253108}
.platform-header .store-identity>span{display:flex;flex-direction:column;min-width:0}
.platform-header .store-identity small{font-size:9px;color:#92979B;margin:0;line-height:1.5}
.platform-header .vendor-tagline{display:none}
.platform-header .store-identity strong{font-size:16px;line-height:1.5;letter-spacing:-.4px;font-weight:600;color:var(--ink)}
.platform-header .platform-brand-logo>img{width:145px;height:42px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.platform-header .desktop-nav{display:flex;align-items:center;gap:5px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:46px;padding:4px;background:var(--dock);border-radius:40px}
.platform-header .desktop-nav>a,.platform-header .desktop-nav>button{display:flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:9px 15px;border:0;border-radius:30px;background:none;color:#FFFFFFA8;font-size:10px;font-weight:400;white-space:nowrap;text-decoration:none}
.platform-header .desktop-nav i{font-size:16px}
.platform-header .desktop-nav .active{background:var(--nav-gold);color:var(--accent-ink,#1A2530);font-weight:500}
.platform-header .desktop-nav .active::after{display:none}
.platform-header .saved-count{display:inline-grid;place-items:center;min-width:15px;height:15px;margin:0;padding:0 3px;border-radius:50%;background:#FFFFFF22;color:inherit;font-size:8px}
.platform-header .header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.platform-header .location{display:flex;align-items:center;gap:8px;margin:0;margin-inline-end:15px}
.platform-header .location>i{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--nav-line);border-radius:50%;color:var(--primary);font-size:14px}
.platform-header .location small{display:block;color:var(--muted);font-size:8px}
.platform-header .location strong{display:block;font-size:10px;font-weight:500}
.platform-header .header-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;width:36px;min-width:36px;height:36px;border:1px solid var(--nav-line);border-radius:50%;background:white;color:var(--dock);font-size:16px;line-height:1}
.platform-header .header-actions .icon-button:hover{background:var(--soft);color:var(--primary)}
.platform-header .header-actions .platform-account-active{background:var(--soft);border-color:transparent;color:var(--primary)}
.platform-header .cart-count{position:absolute;top:-3px;inset-inline-end:-2px;display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border:2px solid white;border-radius:50%;background:var(--nav-gold);color:var(--accent-ink,#1A2530);font-size:8px;line-height:1}
.platform-bottom-nav{display:none}
.customer-platform-header{position:sticky;top:0}
.customer-platform-header,.customer-bottom-nav{--dock:var(--primary-deep);--nav-gold:var(--accent)}
@media(max-width:1250px){
  .platform-header .header-inner{width:calc(100% - 48px)}
  .platform-header .location{display:none}
  .platform-header .desktop-nav>a,.platform-header .desktop-nav>button{padding-inline:12px}
}
@media(max-width:1000px){
  .platform-header .desktop-nav{display:none}
  .platform-bottom-nav{display:flex;align-items:center;justify-content:center;position:fixed;left:50%;right:auto;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:260px;height:61px;transform:translateX(-50%);z-index:35;padding:5px;gap:5px;border:0;border-radius:50px;background:var(--dock);box-shadow:0 8px 24px #18253128}
  .platform-bottom-nav>a,.platform-bottom-nav>button{position:relative;display:flex;flex:none;align-items:center;justify-content:center;width:57px;height:51px;min-height:0;padding:0;gap:0;border:0;border-radius:50%;background:none;color:#FFFFFF8C;font-size:0;text-decoration:none;transition:background .2s,color .2s}
  .platform-bottom-nav i{font-size:23px;line-height:1}
  .platform-bottom-nav>a>span,.platform-bottom-nav>button>span{display:none}
  .platform-bottom-nav .active{background:var(--nav-gold);color:var(--accent-ink,#1A2530);box-shadow:0 0 0 4px var(--dock)}
  .platform-bottom-nav .active::before{display:none}
  .platform-header .header-actions .header-account{display:none}
  .platform-bottom-nav.customer-bottom-nav{width:min(360px,calc(100% - 32px));height:68px;gap:4px}
  .platform-bottom-nav.vendor-bottom-nav{width:min(380px,calc(100% - 32px));height:68px;gap:4px}
  .platform-bottom-nav:is(.customer-bottom-nav,.vendor-bottom-nav)>:is(a,button){flex:1;width:auto;height:58px;flex-direction:column;gap:3px;border-radius:30px}
  .platform-bottom-nav:is(.customer-bottom-nav,.vendor-bottom-nav)>:is(a,button)>span{display:block;font-size:8px;line-height:1.2;font-weight:400}
  .platform-bottom-nav:is(.customer-bottom-nav,.vendor-bottom-nav) i{font-size:21px}
}
@media(max-width:760px){
  .platform-header{padding:10px 0;background:var(--surface);border:0}
  .platform-header .header-inner{width:calc(100% - 32px);min-height:104px;padding:12px 13px;gap:10px;background:white;border:1px solid var(--nav-line);border-top:3px solid var(--nav-gold);border-radius:22px;box-shadow:0 8px 24px #1825310B}
  .platform-header .store-identity{flex:1;gap:10px}
  /* A long store name used to break inside words (overflow-wrap:anywhere) and
     collapse into one letter per line, which stretched the header card to a
     column of letters. Wrap between words, never inside one, and give up after
     two lines with an ellipsis instead of growing the header. */
  /* The logo (72px) plus the actions left only a sliver for the name, so the
     title wrapped one letter per line. Shrink both sides of that fight and let
     the name own the leftover width (two lines max, ellipsis after). */
  .platform-header .store-identity>img{width:48px;height:48px;border-radius:14px}
  .platform-header .store-identity>span{flex:1 1 auto;min-width:0;overflow:hidden}
  .platform-header .header-actions .button{padding-inline:12px;font-size:10px;min-height:38px}
  .platform-header .store-identity strong{font-size:14px;line-height:1.35;overflow-wrap:break-word;word-break:normal;hyphens:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .platform-header .store-identity small{font-size:8px}
  .platform-header .vendor-tagline{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.5}
  .platform-header .header-actions{gap:6px}
  .platform-header .header-actions .icon-button{width:40px;min-width:40px;height:40px}
  .platform-header .header-cart{background:var(--soft);color:var(--primary);border-color:transparent}
  .platform-header .share-button{display:inline-flex}
  .customer-platform-header:has(.platform-brand-logo) .header-inner{min-height:78px}
  .has-mobile-cover .platform-header{margin-top:-32px;background:transparent;backdrop-filter:none;padding-top:5px}
}
@media(max-width:480px){
  /* Icon-only menu link: the name on the left needs the room far more than the
     words "Back to menu" do. aria-label/title keep it announced. */
  .platform-header .header-actions .header-menu-link{padding-inline:11px;gap:0}
  .platform-header .header-actions .header-menu-label{display:none}
  .platform-header .store-identity strong{font-size:14px}
}
@media(max-width:350px){
  .platform-header .header-inner{width:calc(100% - 28px);min-height:96px;padding:12px 10px;gap:6px}
  .platform-header .store-identity{gap:7px}
  .platform-header .store-identity>img{width:60px;height:60px;border-radius:17px}
  .platform-header .platform-brand-logo>img{width:120px;height:36px;border-radius:0}
  .platform-header .store-identity strong{font-size:13px}
  .platform-header .header-actions{gap:4px}
  .platform-header .header-actions .icon-button{width:36px;min-width:36px;height:36px}
}
@media print{.platform-header,.platform-bottom-nav{display:none!important}}
