:root {
  --brand: #147af0;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}

/* Smooth cross-page navigation (no hard header flash) where supported. */
@view-transition { navigation: auto; }

/* The header is a persistent element - keep it perfectly stable across navigation. */
::view-transition-group(site-header) { animation-duration: 0s; }
/* Stop the old→new snapshot cross-fade (and its plus-lighter blend) so the
   header + icons don't shimmer/double-image during the transition. */
::view-transition-old(site-header),
::view-transition-new(site-header) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

* { box-sizing: border-box; }

/* Critical header sizing (prevents inline SVG/logo flashing oversized before the section CSS loads). */
.hdr__icon svg { width: 21px; height: 21px; }
.hdr__icon { width: 39px; height: 39px; }
.hdr__logo img { max-height: 48px; width: auto; display: block; }
.hdr__search-inline svg, .hdr__cur-caret, .hdr__cur-trigger svg { width: 18px; height: 18px; }
.hdr__flag { width: 20px; height: 14px; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header__brand { text-decoration: none; color: var(--ink); }
.site-header__name { font-size: 18px; font-weight: 700; }
.site-header__logo { height: 32px; width: auto; display: block; }
.site-header__badge { font-size: 12px; font-weight: 600; color: var(--brand); background: #eaf2fe; padding: 4px 10px; border-radius: 999px; }

.page { min-height: calc(100vh - 64px - 96px); }

.store-info { padding: 56px 0; }
.store-info__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.store-info__title { margin: 0 0 8px; font-size: 40px; line-height: 1.1; font-weight: 800; }
.store-info__lead { margin: 0 0 8px; font-size: 16px; color: var(--muted); max-width: 60ch; }
.store-info__note { margin-top: 28px; font-size: 13px; color: var(--muted); }

.store-info__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.kv a { color: var(--brand); text-decoration: none; }
.address { font-style: normal; font-size: 14px; line-height: 1.6; }
.muted { color: var(--muted); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; text-align: center; }
.site-footer p { margin: 2px 0; font-size: 13px; }
.site-footer__muted { color: var(--muted); }

/* Customer auth pages (login / register / account) */
.auth { padding: 56px 0 90px; }
.auth__wrap { display: flex; justify-content: center; }
.auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 12px 40px rgba(15,23,42,.05); }
.auth__title { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.auth__sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.auth__err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.auth__field { display: block; margin-bottom: 14px; }
.auth__field > span { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.auth__field input { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth__field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,122,240,.15); }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth__btn { width: 100%; margin-top: 6px; padding: 14px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.auth__btn:hover { background: #1e293b; }
.auth__alt { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.auth__alt a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth__back { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--brand); text-decoration: none; }
.auth__details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.auth__detail { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.auth__detail-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.auth__detail-value { font-size: 15px; color: var(--ink); }
.auth__btn--link { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
