/* 0.9.31: customer store menu (☰ drawer, RTL: opens from the right). Independent of the admin menu. */
.shop-header > .store-menu-btn { flex: none; margin-inline-end: 8px; }
.store-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  color: var(--brand-deep, #163e33); background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e9e3); border-radius: var(--radius-sm, 12px);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(20, 50, 40, .07));
}
.store-menu-btn:active { background: var(--brand-soft, #eef3ed); }
.store-scrim { position: fixed; inset: 0; z-index: 1190; border: 0; background: rgba(15, 30, 24, .45); opacity: 0; transition: opacity .2s ease; }
.store-scrim.is-open { opacity: 1; }
.store-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; flex-direction: column; width: min(86vw, 340px); max-height: 100vh; max-height: 100dvh;
  background: var(--surface, #fff); color: var(--text, #1c2b24);
  border-inline-start: 1px solid var(--line, #e3e9e3); box-shadow: var(--shadow-md, 0 12px 34px rgba(19, 51, 40, .12));
  transform: translateX(100%); transition: transform .22s ease; direction: rtl; text-align: right;
}
.store-drawer.is-open { transform: translateX(0); }
.store-drawer[hidden], .store-scrim[hidden] { display: none; }
.store-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--brand-deep, #163e33); color: #fff; flex: none; }
.store-drawer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.store-drawer-user { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--brand-soft, #eef3ed); border-bottom: 1px solid var(--line, #e3e9e3); }
.store-drawer-user small { color: var(--muted, #68736b); }
.store-drawer-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px; }
.store-menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; margin: 2px 0;
  color: inherit; text-decoration: none; border-radius: var(--radius-sm, 12px); cursor: pointer; list-style: none;
}
.store-menu-item::-webkit-details-marker { display: none; }
.store-menu-item:hover, .store-menu-item:focus-visible { background: var(--brand-soft, #eef3ed); }
.store-menu-item[aria-current="page"] { background: var(--brand-soft, #eaf4ee); color: var(--brand-deep, #163e33); font-weight: 700; box-shadow: inset -3px 0 0 var(--brand, #19896b); }
.store-menu-ico { display: inline-flex; flex: none; color: var(--brand, #19896b); }
.store-menu-label { flex: 1 1 auto; }
.store-menu-badge { flex: none; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--brand, #19896b); color: #fff; font-size: .8rem; text-align: center; }
.store-menu-chev { display: inline-flex; flex: none; color: var(--muted, #68736b); transform: scaleX(-1); transition: transform .15s ease; }
.store-menu-cats[open] > summary .store-menu-chev { transform: rotate(90deg); }
.store-menu-sub { padding-inline-start: 22px; }
.store-menu-subitem { min-height: 46px; }
.store-drawer-foot { flex: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line, #e3e9e3); margin: 0; }
.store-menu-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: var(--radius-sm, 12px); border: 1px solid var(--line, #e3e9e3); background: var(--surface, #fff); color: var(--danger, #b42318); font: inherit; cursor: pointer; }
html.store-menu-open, html.store-menu-open body { overflow: hidden; }
@media (min-width: 900px) {
  .store-drawer { width: 340px; }
  .store-menu-item { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .store-drawer, .store-scrim { transition: none; } }
