/* Shop phone shell only. Loaded after page styles; typography.css owns all type.
   Pages own their content in portal.css, shorts.css and chat.css. */
.public-shop .shop-app-nav { display:none; }
.public-shop .shop-header-search{display:none;width:44px;min-width:44px;height:44px;place-items:center;border-radius:50%;color:#6d28d9;background:#f5f2fa;flex-shrink:0}
.public-shop .shop-header-search:focus-visible{outline:3px solid #6d28d9;outline-offset:2px}
@media(max-width:1100px){.public-shop .shop-header-search{display:grid}.public-shop .header-actions{gap:6px}}
@media(min-width:601px) and (max-width:819px){.public-shop .header-inner{gap:8px;padding-inline:16px}.public-shop .shop-top-link{padding-inline:10px;gap:4px}}
@media(max-width:600px),(max-width:959px) and (max-height:500px) {
 .public-shop {
  --app-accent:#6d28d9; --app-hot:#cc0b60; --app-ink:#241d35;
  --app-muted:#655e73; --app-line:#e9e6f0; --app-soft:#f4eeff;
  --app-gradient:linear-gradient(115deg,#5924cf,#c51691);
  padding-bottom:calc(var(--shop-app-nav-height,3.5rem) + var(--shop-viewport-bottom,0px) + env(safe-area-inset-bottom));
 }
 .public-shop .site-header { background:#fff; border-color:var(--app-line); }
 /* One locked header row: the menu, the brand and the four actions never wrap or stack. The actions wrapper dissolves so every
    button is a flex item of the row; icon buttons shrink from 44px to a 34px floor and stay circles. If that still overflows,
    client/shop/viewport.js sets data-shop-header-compact and the brand text turns visually hidden (the link keeps its aria-label).
    Text is never made smaller; typography.css still owns every size. */
 .public-shop .site-header .header-inner { flex-wrap:nowrap; gap:2px; padding-inline:8px; }
 .public-shop .header-actions { display:contents; }
 .public-shop .header-inner>.brand { flex:0 0 auto; margin-right:auto; }
 .public-shop .brand strong { overflow-wrap:normal; white-space:nowrap; }
 .public-shop .header-inner :is(.menu-icon,.shop-header-search,.shop-notification-button) { flex:0 1 44px; width:auto; min-width:34px; height:auto; min-height:0; aspect-ratio:1; padding:0; display:grid; place-items:center; }
 .public-shop .header-inner .ui-language { flex:0 0 auto; }
 .public-shop .header-inner .ui-language-trigger { min-width:0; min-height:40px; padding:4px 6px; gap:4px; }
 html[data-shop-header-compact] .public-shop .header-inner>.brand strong { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
 .public-shop .menu-icon { border-radius:14px; color:var(--app-ink); }
 .public-shop .shop-brand-mark rect { fill:var(--app-accent); }
 .public-shop .login { background:var(--app-soft); color:var(--app-accent); border-radius:50%; }
 .public-shop .search { border:1.5px solid #ff4d79; background:#fff; border-radius:999px; height:auto; min-height:48px; margin-bottom:18px; padding:4px 5px 4px 14px; box-shadow:0 4px 16px #f41f4e14; }
 .public-shop .search input,.public-shop .search .search-leading-icon+input { padding:6px 4px; background:transparent; border-radius:999px; }
 .public-shop .search .search-scan-btn { width:36px; height:36px; min-height:36px; border:0; border-radius:50%; background:transparent; color:#64748b; }
 .public-shop .search .search-submit-btn { width:48px; height:38px; min-height:38px; border:0; border-radius:999px; background:linear-gradient(135deg,#ff5874,#f41f4e); color:#fff; }
 .public-shop .shop-sidebar { bottom:calc(var(--shop-app-nav-height,3.5rem) + var(--shop-viewport-bottom,0px)); background:#fff; }
 .public-shop .shop-sidebar .shop-nav-link { gap:12px; border-radius:14px; color:var(--app-ink); }
 .public-shop .shop-sidebar .shop-nav-link.active { background:var(--app-soft); color:var(--app-accent); }
 .public-shop .shop-sidebar .shop-nav-link.active .shop-icon { color:var(--app-accent); }
 .public-shop .site-header .shop-upload-trigger { display:none; }
 .public-shop .shop-app-nav {
  position:fixed; z-index:50; bottom:var(--shop-viewport-bottom,0px); left:var(--shop-viewport-left,0px); right:0;
  width:var(--shop-viewport-width,100vw); max-width:100%; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:end; gap:0;
  background:#fff; border-top:1px solid #f3e8ee; padding:2px 1px calc(2px + env(safe-area-inset-bottom)); box-shadow:0 -4px 12px #ff3d6b0f;
 }
 .public-shop .shop-app-nav :is(a,.shop-app-upload) {
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:1px;
  min-height:44px; min-width:0; width:100%; padding:0; border:0; border-radius:10px; background:transparent; color:#8d8796;
 }
 .public-shop .shop-app-nav svg { position:relative; width:18px; height:18px; flex-shrink:0; }
 .public-shop .shop-app-nav a[aria-current] { background:transparent; color:#ff3d6b; }
 .public-shop .shop-app-upload-mark {
  display:grid; place-items:center; width:32px; height:32px; margin-top:0; border-radius:50%; color:#fff;
  background:#ff3d6b; box-shadow:0 4px 10px #ff3d6b40;
 }
 .public-shop .shop-app-upload-mark svg { width:16px; height:16px; color:#fff; }
 .public-shop .shop-app-nav span { position:relative; min-width:0; max-width:100%; overflow-wrap:anywhere; word-break:normal; text-align:center; }
 .public-shop .shop-app-nav[data-mobile-wrap] { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
 .public-shop .shop-app-nav[data-mobile-wrap] :is(a,.shop-app-upload) { padding-block:8px; }
 .public-shop .shop-app-nav[data-mobile-wrap] .shop-app-upload-mark { width:32px; height:32px; }
 .public-shop .shop-footer { border-color:var(--app-line); margin-top:28px; padding-block:20px 12px; }
 .public-shop .shop-footer .footer-bottom>div { gap:8px 16px; }
}
/* Script-free baseline of the compact state: at the narrowest phone widths the row cannot hold the brand text (client/shop/viewport.js handles wider screens with larger text). */
@media(max-width:350px) {
 .public-shop .header-inner>.brand strong { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}
/* Icon-only account button (label hidden up to 819px): same shrinking circle as the other header icons, status dot on its corner. */
@media(max-width:600px),(max-width:819px) and (max-height:500px) {
 .public-shop .header-inner .login { flex:0 1 44px; width:auto; min-width:34px; height:auto; min-height:0; aspect-ratio:1; padding:0; justify-content:center; }
 .public-shop .header-inner .login[data-signed-in]::after { top:4px; right:3px; }
}
@media(max-width:959px) and (max-height:500px) {
 .public-shop .header-inner { min-height:60px; padding-block:8px; }
 .public-shop .site-header { min-height:60px; }
 .public-shop .shop-sidebar { top:var(--shop-header-height,60px); }
 .public-shop .shop-app-nav :is(a,.shop-app-upload) { min-height:44px; }
 .public-shop .shop-app-nav { padding-block:2px; }
 .public-shop .shop-app-upload-mark { width:32px; height:32px; }
}
