/* Sama Stage 8: local-only presentation polish. No product, auth or payment logic. */
body.s4-active.s8-polish{--s8-gold:#d6aa5d;--s8-ink:#0d2942}
body.s4-active.s8-polish > header{border-bottom:1px solid #e9e0ce;gap:clamp(14px,2.8vw,36px)}
body.s4-active.s8-polish > header .brand{flex-shrink:0}
body.s4-active.s8-polish > header .s4-mark{width:56px;height:56px;min-width:56px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(150deg,#071d34,#123f54);border:1.5px solid #d6aa5d;color:#f6d997;font:900 18px/1 Tahoma,Arial,sans-serif;box-shadow:0 6px 18px #071d3422;text-shadow:none}
body.s4-active.s8-polish.s8-has-logo > header .s4-mark{display:none}
body.s4-active.s8-polish.s8-has-logo > header .brand #brandLogo{display:block!important;max-width:78px;max-height:70px;width:auto;height:auto;object-fit:contain;flex-shrink:0}
body.s4-active.s8-polish > header .brand h1{font-weight:900;line-height:1.45}
body.s4-active.s8-polish .s4-head-search{border-color:#dbe0e5;transition:border-color .15s ease,box-shadow .15s ease}
body.s4-active.s8-polish .s4-head-search:focus-within{border-color:var(--s8-gold);box-shadow:0 0 0 3px #d6aa5d26}
body.s4-active.s8-polish .s4-icon-button{transition:border-color .15s ease,box-shadow .15s ease}
body.s4-active.s8-polish .s4-icon-button:focus-visible,body.s4-active.s8-polish .s4-head-search button:focus-visible{outline:3px solid var(--s8-gold);outline-offset:2px}
/* Avoid hiding connection failures. Ordinary demo users get a concise test warning. */
body.s4-active.s8-polish #cloudBanner:not(.bad){display:none}
body.s4-active.s8-polish.s8-admin-session #cloudBanner,
body.s4-active.s8-polish #cloudBanner.bad{display:block}
body.s4-active.s8-polish .s8-demo-note{display:flex;justify-content:center;align-items:center;gap:8px;margin:0;padding:7px 16px;border-bottom:1px solid #ead6ab;background:#fff8e9;color:#75551e;text-align:center;font-size:12px;font-weight:700;line-height:1.5}
body.s4-active.s8-polish.s8-admin-session .s8-demo-note,
body.s4-active.s8-polish.s8-cloud-error .s8-demo-note{display:none}
/* Keep WhatsApp clear of the lowest interactive content and on-screen keyboards. */
body.s4-active.s8-polish .wa{max-width:126px;white-space:nowrap}
body.s4-active.s8-polish.s8-input-focused .wa{opacity:0;pointer-events:none}
@media(max-width:650px){
 body.s4-active.s8-polish .s4-utility{gap:5px;padding:6px 12px}
 body.s4-active.s8-polish .s4-util-contact{gap:10px}
 body.s4-active.s8-polish > header{padding:10px 12px 12px;gap:8px}
 body.s4-active.s8-polish > header .brand{gap:8px;align-items:center}
 body.s4-active.s8-polish > header .brand h1{font-size:clamp(13px,3.6vw,16px);line-height:1.34}
 body.s4-active.s8-polish > header .brand p{max-width:29ch;line-height:1.4}
 body.s4-active.s8-polish > header .s4-mark{width:36px;min-width:36px;height:36px;font-size:12px;border-radius:11px}
 body.s4-active.s8-polish.s8-has-logo > header .brand #brandLogo{max-width:42px;max-height:44px}
 body.s4-active.s8-polish .s4-head-actions{gap:5px}
 body.s4-active.s8-polish button.s4-icon-button{height:40px;min-height:40px;min-width:39px}
 body.s4-active.s8-polish .s4-head-search{min-height:45px;margin-top:2px}
 body.s4-active.s8-polish .s8-demo-note{font-size:11px;padding:7px 10px;min-height:34px}
 body.s4-active.s8-polish > nav.s4-menu-open{gap:8px;padding:10px 13px;box-shadow:0 10px 22px #071d3416}
 body.s4-active.s8-polish > nav.s4-menu-open button{min-height:43px;border:1px solid #ecf0f4;border-radius:11px}
 body.s4-active.s8-polish #shop .sama-hero.s4-hero{padding:15px 14px 12px}
 body.s4-active.s8-polish #shop .s4-hero h2{margin:6px 0 8px;line-height:1.4}
 body.s4-active.s8-polish #shop .sama-hero-art{min-height:165px;max-height:175px;margin:0}
 body.s4-active.s8-polish .wa{left:8px;bottom:calc(10px + env(safe-area-inset-bottom, 0px));font-size:11px;line-height:1.2;padding:8px 10px;min-height:38px;max-width:94px;box-shadow:0 5px 15px #0c513c36}
 body.s4-active.s8-polish .sama-category-tabs{scrollbar-width:none}
 body.s4-active.s8-polish .sama-category-tabs::-webkit-scrollbar{display:none}
}
@media(max-width:359px){
 body.s4-active.s8-polish > header .s4-mark{width:32px;min-width:32px;height:34px;font-size:11px}
 body.s4-active.s8-polish > header .brand h1{font-size:12px}
 body.s4-active.s8-polish #shop .sama-hero-art{min-height:151px;max-height:155px}
}
@media(prefers-reduced-motion:reduce){body.s4-active.s8-polish .s4-icon-button,body.s4-active.s8-polish .s4-head-search{transition:none}}
