/* Store menu, the hamburger (js/store-menu.js; owner 2026-10-26 picked look A: a drawer from the right). Built from the
   page tokens, so light/dark, the store colour and every design follow. Above the nav and the phone start bar (40),
   below modals (200), the language card (400) and toasts. */
.sm-btn .i{width:20px;height:20px}
html[data-menu] .nav .sm-btn{margin-left:-12px}
@media (max-width:480px){html[data-menu] .nav .sm-btn{margin-left:-2px}} /* the bar's gap is 10px there */
@media (max-width:860px){
  html[data-menu] .nav :is(.tp-nav,.lp-nav){display:none} /* on phones language + theme live in the menu */
  html[data-menu] .nav .wrap > .btn{margin-left:auto}
}
html.sm-open,html.sm-open body{overflow:hidden}

.sm{position:fixed;inset:0;z-index:180}
.sm-scrim{position:absolute;inset:0;background:rgb(18 13 46 / .5);opacity:0;transition:opacity .28s}
.sm.on .sm-scrim{opacity:1}
.sm-panel{position:absolute;top:0;right:0;bottom:0;width:min(380px,88vw);display:flex;flex-direction:column;overflow:hidden;border-radius:24px 0 0 24px;background:var(--card);color:var(--ink);font-family:var(--f-body);box-shadow:var(--shadow);transform:translateX(104%);transition:transform .32s cubic-bezier(.2,.8,.2,1)}
.sm.on .sm-panel{transform:none}
.sm-body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain} /* never sideways (owner 2026-10-26) */
.sm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:12px 16px;border-bottom:1px solid var(--line)}
.sm-logo{min-width:0}
.sm-x .i{width:18px;height:18px}
.sm-start{display:flex;margin:16px 16px 0}
.sm-sec{padding:18px 16px 4px}
.sm-h{margin:0 0 10px;font:700 13px/1.2 var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.sm :is(a,button):focus-visible{outline:2px solid var(--rani);outline-offset:2px}

/* this phone's own surprises */
.sm-mine{display:grid;grid-template-columns:minmax(0,1fr);gap:8px} /* a grid track sizes to the one-line title unless capped */
.sm-mine-row{min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border-radius:16px;background:var(--rani-wash);color:var(--ink);text-decoration:none}
.sm-mine-row b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sm-mine-row .i{width:18px;height:18px;color:var(--rani)}

/* every surprise: picture, name, price */
.sm-rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.sm-rows a{display:grid;grid-template-columns:48px minmax(0,1fr) auto 16px;align-items:center;gap:12px;padding:5px 8px 5px 5px;border-radius:16px;text-decoration:none}
.sm-art{display:grid;place-items:center;aspect-ratio:1/1;overflow:hidden;border-radius:14px;background:var(--sm-tint)}
.sm-art .sx{display:block;width:84%}
.sm-art img{width:100%;height:100%;object-fit:cover}
.sm-name{font-size:16px;font-weight:700;line-height:1.25;color:var(--ink)}
.sm-price{font-size:15px;font-weight:800;color:var(--ink);white-space:nowrap}
.sm-price s{margin-left:4px;font-weight:600;font-size:.88em;color:var(--ink-2)}
.sm [data-tint]{--sm-hue:var(--rani-wash);--sm-tint:var(--sm-hue)}
.sm [data-tint="birthday"]{--sm-hue:#FFE3A6}.sm [data-tint="proposal"]{--sm-hue:#FFD0E1}.sm [data-tint="apology"]{--sm-hue:#E2D9FF}.sm [data-tint="anniversary"]{--sm-hue:#FFD9CA}
.sm [data-tint="wedding"]{--sm-hue:#D3F0E1}.sm [data-tint="farewell"]{--sm-hue:#D2E5FF}.sm [data-tint="getwell"]{--sm-hue:#DEF2D2}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .sm [data-tint]{--sm-tint:color-mix(in srgb,var(--sm-hue) 17%,var(--card))}}
:root[data-theme="dark"] .sm [data-tint]{--sm-tint:color-mix(in srgb,var(--sm-hue) 17%,var(--card))}

/* more links */
.sm-links{list-style:none;margin:0;padding:0}
.sm-links a{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 10px;border-radius:14px;color:var(--ink);font-weight:600;text-decoration:none}
.sm-links a > .i:first-child{width:20px;height:20px;color:var(--rani)}
.sm-links span{flex:1;min-width:0}
.sm-links em{font-style:normal;font-size:14px;color:var(--ink-2)}
.sm-links a > .i:last-child,.sm-rows a > .i:last-child{width:16px;height:16px;color:var(--ink-2)}
@media (hover:hover){.sm-links a:hover,.sm-rows a:hover{background:var(--rani-wash)}}

/* help: the store's only WhatsApp button */
.sm-help .sm-h{margin-bottom:12px}
.sm-wa{gap:10px;background:#25D366;color:#06301A;box-shadow:0 10px 22px -14px #128C4A}
.sm-wa .i{width:22px;height:22px}

/* language + light/dark */
.sm-prefs{display:flex;gap:10px;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px))}
.sm-pref{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 14px;border:0;border-radius:999px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--line);color:var(--ink);font:600 15px/1.2 var(--f-body);cursor:pointer}
.sm-pref .i{width:18px;height:18px}
.sm-pref [data-theme-ic]{display:inline-grid}
@media (prefers-reduced-motion:reduce){.sm-panel,.sm-scrim{transition:none!important}}
