/* Mobile layout rules shared by the storefront, account and administration. */
.mobile-menu-toggle { display: none; }
.mobile-navigation { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(90vw, 380px); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); border: 0; background: #faf9f6; color: #171916; overflow-y: auto; overscroll-behavior: contain; }
.mobile-navigation::backdrop { background: rgb(0 0 0 / .5); backdrop-filter: blur(3px); }
.mobile-navigation[open] { display: flex; flex-direction: column; animation: drawer-enter .2s ease-out; }
.mobile-navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 25px; border-bottom: 1px solid #deded5; font-size: 12px; letter-spacing: .12em; }
.mobile-navigation-heading button { flex: 0 0 44px; height: 44px; border: 1px solid #deded5; background: transparent; color: inherit; font-size: 20px; }
.mobile-navigation nav { display: grid; gap: 0; margin: 24px 0; }
.mobile-navigation nav a { display: flex; align-items: center; min-height: 52px; padding: 12px 0; border-bottom: 1px solid #e8e7df; color: inherit; font-size: 16px; text-decoration: none; }
.mobile-navigation-note { margin-top: auto; color: #6b705f; font: italic 24px Georgia, serif; }
.mobile-navigation-open { overflow: hidden; }
@keyframes drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .mobile-navigation[open] { animation: none; } }
@media (max-width: 800px) {
  *, *::before, *::after { box-sizing: border-box; }
  /* Keep native pinch zoom. 16px fields prevent Safari's automatic focus zoom. */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; min-width: 0; max-width: 100%; }
  input, select, button { min-height: 44px; }
  input[type=checkbox], input[type=radio] { min-height: auto; flex-shrink: 0; }
  main, section, article, aside, form, fieldset, label, header, footer, [class*=grid] > *, [class*=row] > * { min-width: 0; }
  fieldset { margin-inline: 0; max-width: 100%; }
  img, video, iframe { max-width: 100%; }
  p, h1, h2, h3, h4, a, legend, small, strong, dd { overflow-wrap: anywhere; }
  .header, .admin-header { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; padding: 8px 12px !important; width: 100%; }
  .header > nav { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #171916; }
  .mobile-menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .header .brand, .admin-header .brand { margin: 0; flex-shrink: 0; }
  .header .brand img, .admin-header .brand img { width: 98px !important; height: 44px !important; object-fit: contain; }
  .header-tools { margin-left: auto; gap: 3px !important; min-width: 0; }
  .header-tools button, .header-tools a { padding-inline: 7px !important; }
  .header-tools .bag-label { display: none; }
  .admin-header #logout { margin-left: auto; }
  .admin-sidebar, .admin-mobile-nav, .admin-menu-overlay { display: none !important; }
  body:has(.admin-shell) { padding-bottom: 0; }
  .admin-shell { display: block !important; }
  .admin-main { width: 100%; padding: 24px 16px !important; }
  .admin-actions { bottom: 0 !important; margin-inline: 0 !important; flex-wrap: wrap; }
  .admin-top-row, .integration-fields, .integration-grid, .auth-grid, .account-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .integration-card { padding: 16px !important; }
  .integration-card legend { max-width: 100%; font-size: 20px; }
  .integration-heading, .panel-heading, .integration-save, .account-top { flex-wrap: wrap; }
  .integration-card b { overflow-wrap: anywhere; }
  .integration-fields label, .auth-card label { min-width: 0; }
  .search-panel { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .search-panel input { width: 100%; }
  .search-panel label { grid-column: 1 / -1; }
  .account-shell { width: 100%; margin-inline: auto; }
  .account-content, .auth-card { min-width: 0; }
  .signup-phone input { width: 100%; min-width: 0; }
  .customer-list, .orders-list, .order-card { min-width: 0; max-width: 100%; }
  .table-wrap, .size-table-wrap { max-width: 100%; overflow-x: auto; }
}
.membership-policy { padding: 24px; margin: 24px 0; border: 1px solid #ddd; background: #f7f8f4; }
.membership-policy legend { font-weight: 700; }
.membership-policy label { display: flex; gap: 12px; align-items: center; padding: 14px 0; }
.membership-policy input { width: 20px; height: 20px; accent-color: #526143; }
.google-login-button { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 14px 24px; border: 1px solid #aaa; border-radius: 4px; background: #fff; color: #222; font-size: 16px; font-weight: 500; text-decoration: none; grid-column: 1 / -1; margin-bottom: 12px; }
.google-login-button:hover { background: #f6f6f6; }
.google-phone { max-width: 560px; margin: 0 auto 28px; }
.google-phone form { display: grid; gap: 14px; margin-block: 20px; }
.google-phone label { display: grid; gap: 8px; }
.google-phone input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #bbb; }

.mobile-menu-feature { position:relative; display:block; min-height:180px; margin-top:20px; overflow:hidden; flex-shrink:0; color:#fff; text-decoration:none; background:#555d4b; }
.mobile-menu-feature img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.mobile-menu-feature::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent,rgba(0,0,0,.68)); }
.mobile-menu-feature span { position:relative; z-index:1; display:grid; gap:7px; padding:65px 20px 20px; }
.mobile-menu-feature small { font-size:10px; letter-spacing:.18em; }
.mobile-menu-feature strong { font:italic 28px Georgia,serif; }
.mobile-menu-feature b { font-size:12px; font-weight:400; }
@media(max-width:800px){.mobile-menu-toggle{order:10}.mobile-navigation nav{margin:16px 0}.mobile-navigation nav a{min-height:46px;padding:10px 0}.journey-return{display:block;padding:14px;margin-bottom:16px;background:#eef0e8;color:#303c28;text-decoration:none}.mobile-menu-editor img{max-height:200px;object-fit:cover;width:100%}}

.journey-return{display:block;padding:14px 18px;margin-bottom:16px;background:#eef0e8;color:#303c28;text-decoration:none;border:1px solid #d9ddcf}
