.h5 {
  --paper:#edf2ff;
  --ink:#101d3b;
  --muted:#536685;
  --navy:#101a3e;
  --blue:#244be6;
  --line:#dce5fd;
  --radius:21px;
  --tabs:calc(64px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,#e7efff 0%,#f3f6ff 520px,#f4f6fc 100%);
  min-height:100dvh;
  padding-bottom:calc(var(--tabs) + 16px);
}
.h5 .wrap { width:min(600px,calc(100% - 30px)); }
.h5 .h5-home, .h5 .h5-page { padding-top:max(16px,env(safe-area-inset-top,0px)); }
.h5-home-top,.h5-page-header,.h5-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.h5-brand { display:inline-flex; align-items:center; gap:10px; font-size:1.25rem; letter-spacing:-.025em; }
.h5-brand img { border-radius:14px; box-shadow:0 6px 13px #193c791e; }
.h5-icon-button { display:inline-grid; place-items:center; flex:none; width:44px; height:44px; border:1px solid #dce6ff; border-radius:15px; color:#2847a9; background:#fff; }
.h5-icon-button:active,.h5 .button:active,.h5-search button:active { transform:scale(.97); }
.h5-search { display:flex; align-items:center; gap:8px; min-height:52px; padding:5px 5px 5px 12px; margin-block:16px; border:1px solid #d7e1fa; border-radius:18px; background:#fff; }
.h5-search svg { width:21px;height:21px;color:#4865aa;flex:none; }
.h5-search input { min-width:0; flex:1; padding:4px 0; border:0; background:transparent; }
.h5-search input:focus { outline:none; }
.h5-search:focus-within { border-color:#7693ff; box-shadow:0 0 0 3px #b9c9ff83; }
.h5-search button { min-height:40px; padding:0 15px; color:#fff; border:0; border-radius:13px; font-weight:700; background:#244be6; }
.h5-hero {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  min-height:244px;
  overflow:hidden;
  padding:22px 20px;
  border-radius:26px;
  background:#10235a url("/store/assets/hero.webp") 79% center/auto 115% no-repeat;
  color:#fff;
  box-shadow:0 14px 24px #222f731d;
}
.h5-hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#111c48 4%,#111c48f0 32%,#111c4860 73%,#111c4833); }
.h5-hero p { color:#c1d2ff; font-weight:700; font-size:.83rem; }
.h5-hero h1 { margin-block:8px 16px; font-size:clamp(1.84rem,8vw,2.75rem); letter-spacing:-.025em; }
.h5-hero .button { background:#e8f0ff; color:#1d378e; border:0; }
.h5-section { margin-block:23px; }
.h5-section-head { margin-bottom:12px; }
.h5-section-head h2 { font-size:1.25rem; }
.h5-section-head p { margin-top:3px; }
.h5-section-head > a { display:flex; align-items:center; min-height:44px; color:#2645b0; font-weight:650; font-size:.82rem; }
.h5-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.h5-categories a { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; padding:10px 3px; border:1px solid #e1e9fb; border-radius:16px; background:#fff; text-align:center; }
.h5-categories b { display:block; font-size:clamp(.69rem,3.05vw,.87rem); line-height:1.4; }
.h5-category-icon,.h5-member-icon { display:grid; place-items:center; width:39px; height:39px; flex:none; border-radius:13px; color:#284ac6; background:#e9efff; }
.h5-categories a:nth-child(3n+2) .h5-category-icon { color:#2c58a6; background:#e5f4ff; }
.h5-categories a:nth-child(3n) .h5-category-icon { color:#6240ac; background:#f1eaff; }
.h5-category-list { grid-template-columns:1fr; gap:10px; }
.h5-category-list a { flex-direction:row; text-align:left; padding:12px; gap:13px; }
.h5-category-list b { font-size:1rem; }
.h5-category-list small { display:block; margin-top:3px; color:var(--muted); font-size:.82rem; }
.h5-tabbar { position:fixed; z-index:22; inset:auto 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; width:min(100%,630px); min-height:var(--tabs); margin-inline:auto; padding:5px 10px calc(4px + env(safe-area-inset-bottom,0px)); border:1px solid #e0e8fa; border-radius:21px 21px 0 0; background:#fcfdff; box-shadow:0 -7px 26px #25367a17; }
.h5-tabbar a { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1px; min-width:0; min-height:52px; border-radius:15px; font-size:.75rem; line-height:1.2; font-weight:650; color:#536584; }
.h5-tabbar a[aria-current] { color:#2446d3; background:#ecf0ff; }
.h5-tabicon { display:grid; place-items:center; }
.h5-count { position:absolute; inset:2px auto auto calc(50% + 9px); padding:1px 4px; color:#fff; background:#244be6; border:1px solid white; border-radius:12px; font-size:.68rem; }
.h5-subbar { display:flex; align-items:center; gap:12px; margin-bottom:13px; min-width:0; font-size:1.06rem; }
.h5-subbar .h5-icon-button { border-radius:50%; }
.h5-page-header h1,.h5-view-account .catalog-head h1 { font-size:1.75rem; }
.h5 .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.h5 .product { border-radius:18px; border-color:#e0e8fc; overflow:hidden; }
.h5 .product h3 { line-height:1.38; }
.h5 .product-image { background:#f3f6ff; }
.h5 .product-merchant { padding-block:6px; }
.h5 .product-merchant .merchant-link { min-height:28px; }
.h5 .catalog-head { display:flex; flex-direction:row; align-items:center; gap:8px; }
.h5 .catalog-head h1 { overflow-wrap:anywhere; }
.h5 .catalog-head form { flex:none; }
.h5-view-merchant .catalog-head { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.h5-view-merchant .catalog-head h2 { font-size:1.25rem; line-height:1.25; }
.h5-view-merchant #merchant-search { width:100%; min-width:0; }
.h5-view-merchant #merchant-search input { width:0; min-height:40px; }
.h5-view-merchant #merchant-search button { flex:none; min-width:max-content; padding:7px 12px; white-space:nowrap; }
.h5 .catalog-filters { display:flex; flex-wrap:nowrap; overflow-x:auto; padding:2px 3px 8px; scrollbar-width:thin; }
.h5 .chip { flex:none; min-height:39px; display:inline-flex; align-items:center; border-radius:13px; }
.h5 .button { min-height:44px; border-radius:14px; font-weight:700; }
.h5 .button.secondary { color:#2a48a9; background:#fff; border-color:#dce5ff; }
.h5 .panel { border-color:#e0e8fa; box-shadow:0 5px 17px #20345d08; }
.h5 .detail { grid-template-columns:1fr; gap:14px; padding:13px; }
.h5 .detail h1 { font-size:clamp(1.22rem,5.2vw,1.77rem); line-height:1.32; }
.h5 .detail .product-image { height:240px; }
.h5 .detail .product-image img { height:218px; }
.h5 .detail .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:start; }
.h5 .detail .actions > .button,.h5 .detail .add-cart-form .button { width:100%; min-width:0; white-space:nowrap; padding-inline:7px; }
.h5 .detail .add-cart-form { display:grid; min-width:0; }
.h5 .detail .add-cart-form label { display:grid; font-size:.8rem; }
.h5 .detail .add-cart-form select { max-width:100%; }
.h5 .detail .actions > [data-add] { grid-column:1/-1; width:auto; justify-self:start; padding-inline:3px; border:0; background:transparent; font-size:.85rem; }
.h5 .order-product .product-image { height:68px; }
.h5 .order-product .product-image img { height:60px; }
.h5 .order-product { grid-template-columns:68px minmax(0,1fr); }
.h5-order-swipe {
  display:flex;
  overflow-x:auto;
  scrollbar-width:none;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  border-radius:12px;
}
.h5-order-swipe::-webkit-scrollbar { display:none; }
.h5-order-swipe-body { flex:0 0 100%; min-width:0; scroll-snap-align:start; }
.h5-order-delete {
  flex:0 0 76px;
  scroll-snap-align:end;
  scroll-snap-stop:always;
  background:#b5273d;
  border:0;
  color:#fff;
  font-weight:700;
}
.h5-order-delete:focus-visible { outline:2px solid #17295e; outline-offset:-4px; }
.h5 .cart-stepper button,.h5 .cart-remove { min-height:44px; min-width:44px; }
.h5 .cart-group { padding:13px; }
.h5 .cart-group h2 { font-size:1rem; }
.h5 .panel.account-panel { margin-top:14px; }
.h5-view-account .catalog-head { margin-bottom:15px; }
.h5 .member-summary { color:#fff; border:0; padding:20px; background:linear-gradient(135deg,#152664,#2548b8 90%); box-shadow:0 9px 23px #26399b2b; }
.h5 .member-summary .meta { color:#d9e4ff; }
.h5 .member-mark { border-radius:18px; color:#e6eeff; background:#ffffff26; }
.h5 .member-summary .wallet-figures { margin-bottom:0; background:#fff; }
.h5 .member-entries { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.h5 .member-entry { border-radius:17px; padding:12px; }
.h5 .member-entry > .h5-member-icon { color:#244be6; }
.h5 .member-entry .h5-member-icon svg { width:21px; height:21px; }
.h5-settings-trigger { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 12px; border:1px solid #dbe5ff; border-radius:15px; color:#2847a9; background:#fff; font-size:.88rem; font-weight:700; white-space:nowrap; }
.h5-settings-trigger svg { width:18px; height:18px; }
.h5-settings-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.h5-settings-heading h1 { font-size:1.6rem; }
.h5-settings-group { margin-top:12px; padding:8px 14px; }
.h5-settings-group h2 { margin:8px 0 6px; color:var(--muted); font-size:.87rem; }
.h5-setting-row { display:flex; align-items:center; gap:9px; min-height:52px; padding:7px 0; }
.h5-setting-row + .h5-setting-row { border-top:1px solid var(--line); }
.h5-setting-label { flex:1; min-width:0; font-weight:650; }
.h5-setting-icon { display:grid; place-items:center; flex:0 0 35px; height:35px; border-radius:11px; color:#284ac6; background:#edf1ff; }
.h5-setting-icon svg,.h5-setting-forward svg,.h5-logout-button svg { width:19px; height:19px; }
.h5-setting-forward { display:grid; color:#5d6e8c; }
.h5-setting-status { color:var(--muted); font-size:.77rem; }
.h5-setting-avatar,.h5-member-photo { border-radius:11px; object-fit:cover; }
.h5-member-photo { width:100%; height:100%; border-radius:inherit; }
.h5-settings-form-panel { padding:15px; }
.h5-settings-form-panel .form-stack { margin-top:0; }
.h5-setting-actions { display:flex; align-items:stretch; gap:8px; }
.h5-setting-actions > * { flex:1; }
.h5-setting-actions .button { width:100%; }
.h5-avatar-options { min-width:0; border:0; padding:0; margin:0; }
.h5-avatar-options legend { margin-bottom:11px; font-weight:700; }
.h5-avatar-options > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.h5-avatar-option { position:relative; }
.h5-avatar-option > input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.h5-avatar-option > span { display:grid; justify-items:center; gap:6px; min-height:96px; padding:8px 3px; border:2px solid var(--line); border-radius:14px; color:var(--ink); background:#fff; font-size:.77rem; text-align:center; }
.h5-avatar-option img { border-radius:12px; }
.h5-avatar-option input:checked + span { color:#2140b9; background:#edf1ff; border-color:#3b61f3; }
.h5-avatar-option input:focus-visible + span { outline:3px solid #7da8ff; outline-offset:2px; }
.h5-logout-button { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; margin-top:14px; border:1px solid #f2d5d9; border-radius:15px; color:#a92b40; background:#fff; font-weight:700; }
.h5-settings-dialog { width:min(calc(100% - 34px),360px); padding:18px; border:1px solid var(--line); border-radius:19px; color:var(--ink); background:#fff; }
.h5-settings-dialog::backdrop { background:#101d4b8f; }
.h5-settings-dialog h2 { margin-bottom:16px; font-size:1.22rem; }
.h5-settings-dialog .h5-confirm-logout { border-color:#a92b40; background:#a92b40; }
.h5-legal-line { display:flex; flex-wrap:wrap; justify-content:center; gap:3px 14px; padding:15px 0; color:#51617e; font-size:.75rem; }
.h5 .toast { z-index:24; bottom:calc(var(--tabs) + 12px); }
.h5 .form-stack :is(input:not([type=checkbox]),select,textarea) { min-height:44px; border-radius:13px; }
@media (prefers-reduced-motion:reduce) {
  .h5 * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
