/* V5.1 — iPhone PWA stable viewport, true fixed top & bottom bars and elegant logo/seal. */
:root { --app-header-height:72px; --app-tab-height:66px; }
html, body { height:100%; margin:0; overflow:hidden; overscroll-behavior:none; }
body { -webkit-text-size-adjust:100%; }
#app { width:100%; height:100%; min-height:0; }
#app.app-mode { overflow:hidden; }
#app.screen-mode { height:100dvh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.app-shell { display:flex; flex-direction:column; width:100%; height:100vh; height:100dvh; overflow:hidden; background:#FFFAF8; }
.app-shell .header { position:relative!important; top:auto!important; z-index:15; height:calc(var(--app-header-height) + env(safe-area-inset-top, 0px)); min-height:calc(var(--app-header-height) + env(safe-area-inset-top, 0px)); flex:0 0 auto; padding-top:env(safe-area-inset-top, 0px); box-sizing:border-box; transform:none; }
.app-shell .header-inner { height:var(--app-header-height); width:100%; padding-left:max(15px,env(safe-area-inset-left,0px)); padding-right:max(15px,env(safe-area-inset-right,0px)); }
.app-scroll { flex:1 1 0; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; scrollbar-width:none; touch-action:pan-y; scroll-padding-top:16px; }
.app-scroll::-webkit-scrollbar{display:none;}
.app-scroll .content-area { padding-bottom:36px; }
.app-shell .nav { position:relative!important; inset:auto!important; flex:0 0 auto; height:calc(var(--app-tab-height) + env(safe-area-inset-bottom,0px)); min-height:calc(var(--app-tab-height) + env(safe-area-inset-bottom,0px)); padding-bottom:env(safe-area-inset-bottom,0px); padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px); box-sizing:border-box; z-index:20; transform:none; display:flex; align-items:stretch; }
.app-shell .nav-item { flex:1 1 0; width:0; max-width:195px; min-width:0; height:var(--app-tab-height); justify-content:center; }
.app-shell .nav-item small { white-space:nowrap; }
.app-mode .cart-floating { bottom:calc(var(--app-tab-height) + env(safe-area-inset-bottom,0px) + 12px); }
.app-mode .toast { bottom:calc(var(--app-tab-height) + env(safe-area-inset-bottom,0px) + 18px); }
.logo-signet { border:0!important; background:none!important; box-shadow:none!important; transform:none!important; width:43px!important; height:43px!important; display:flex; align-items:center; justify-content:center; }
.brand-symbol { display:block; width:43px; height:43px; object-fit:contain; }
.seal-symbol { display:block; width:80px; height:80px; object-fit:contain; }
.hero .hero-seal { margin:18px auto 2px; }
.card-seal .seal-symbol { width:78px; height:78px; }
/* Disable old SVG artwork in CSS and preserve the visual space of the replacement. */
.hero-seal .heart-seal-svg,.card-seal .heart-seal-svg,.heart-cutlery-svg{display:none!important;}
.login-heart-cutlery .brand-symbol { width:90px; height:90px; margin:auto; }
.sheet,.card-sheet,.review-sheet { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
@media(max-width:380px){
 .app-shell .header-inner{padding-left:max(9px,env(safe-area-inset-left,0px));padding-right:max(9px,env(safe-area-inset-right,0px));}
 .brand-symbol,.logo-signet{width:37px!important;height:37px!important;}
 .logo{gap:8px;}
 .app-shell .nav-item{max-width:none;}
}
@media(prefers-reduced-motion:reduce){.app-scroll{scroll-behavior:auto;}}
