/* Primary destinations, personal tools, then the account at the far right. */
body > .site-header {
  height: 56px;
  gap: 24px;
  padding-inline: 24px;
  background: var(--white);
}
.site-header .site-nav {
  position: static;
  height: auto;
  padding: 0;
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.site-header .site-main-nav {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  gap: 20px;
}
.site-primary-links,
.site-utility-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header .site-nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.site-header .site-nav .nav-item[hidden] {
  display: none;
}
.site-header .site-nav .nav-item.active {
  color: var(--brand);
  background: var(--brand-soft);
}
.site-header .site-nav .nav-item:hover {
  color: var(--brand);
  background: var(--surface-subtle);
}
.site-header .site-nav .nav-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.site-header .site-nav .nav-item .nav-label {
  white-space: nowrap;
}
.site-header .nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.site-primary-links .nav-item > svg {
  display: none;
}
.site-header .site-utility-links .nav-item {
  width: 44px;
  padding: 0;
}
.site-utility-links .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.site-header .site-account-nav {
  flex: 0 0 auto;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.site-header :is(#account-link, #account-signin) {
  gap: 10px;
  padding: 0 0 0 10px;
}
.site-header :is(#account-link, #account-signin) .nav-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.site-header .nav-count,
.site-header .action-count {
  position: static;
  margin: 0;
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  font-size: 10px;
  line-height: 1;
}
.site-utility-links .nav-count,
.site-account-nav .action-count {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  border: 2px solid var(--white);
  min-width: 19px;
  height: 19px;
}
.collections-entry .collection-icon,
.collection-first .collection-icon {
  margin-bottom: 20px;
}
.membership-guide {
  padding: 12px 16px;
}
.membership-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.membership-guide p {
  margin-top: 12px;
}
.location-privacy {
  margin: 10px 0 16px;
}
.location-privacy summary {
  cursor: pointer;
  display: list-item;
}
.location-privacy p {
  max-width: 680px;
  margin: 10px 0;
}
.loading-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.loading-status p {
  margin: 0;
  font-size: 14px;
}
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loading-turn 1s linear infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loading-pulse {
  to {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .loading-skeleton > * {
    animation: none;
  }
}
@media (min-width: 721px) and (max-width: 1050px) {
  body > .site-header {
    gap: 16px;
    padding-inline: 16px;
  }
  .site-header .site-main-nav {
    gap: 12px;
  }
  .site-header .site-primary-links .nav-item {
    padding-inline: 9px;
  }
  .site-header .site-account-nav {
    padding-left: 10px;
  }
  .site-header :is(#account-link, #account-signin) {
    width: 44px;
    padding: 0;
  }
  .site-header :is(#account-link, #account-signin) .nav-label {
    display: none;
  }
  .site-header .brand-subtitle {
    display: none;
  }
}
@media (min-width: 721px) and (max-width: 900px) {
  body > .site-header {
    gap: 12px;
  }
  .site-header .site-main-nav {
    gap: 8px;
  }
  .site-primary-links {
    gap: 2px;
  }
  .site-header .site-primary-links .nav-item {
    padding-inline: 7px;
  }
}
@media (max-width: 720px) {
  :root {
    --bottom-nav-space: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  html {
    scroll-padding-bottom: calc(var(--bottom-nav-space) + 24px);
  }
  body {
    padding-bottom: var(--bottom-nav-space);
  }
  body > .site-header {
    height: 52px;
    padding-inline: 12px;
    gap: 12px;
  }
  .site-header .site-main-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.3fr 1fr 1fr;
    gap: 0;
    height: var(--bottom-nav-space);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px #23372e06;
  }
  .site-primary-links,
  .site-utility-links {
    display: contents;
  }
  .site-header .site-main-nav .nav-item {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }
  .site-header .site-main-nav .nav-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
  }
  .site-primary-links .nav-item > svg {
    display: block;
  }
  .site-header .site-main-nav .nav-count {
    position: absolute;
    top: 0;
    right: calc(50% - 23px);
    left: auto;
    border: 2px solid var(--white);
    min-width: 19px;
    height: 19px;
  }
  .site-header .site-account-nav {
    margin-left: auto;
    padding: 0;
    border: 0;
  }
  .site-header :is(#account-link, #account-signin) {
    min-height: 44px;
    padding: 0 0 0 8px;
    gap: 8px;
    font-size: 12px;
  }
  .site-header :is(#account-link, #account-signin) .nav-label {
    max-width: 65px;
  }
  .site-header .account-avatar {
    width: 32px;
    height: 32px;
  }
  body > main,
  .public-page .public-content {
    padding-bottom: 32px;
  }
  main :is(a, button, input, summary) {
    scroll-margin-bottom: calc(var(--bottom-nav-space) + 24px);
  }
  body > .site-footer {
    padding-bottom: 28px;
  }
  .entry-page .entry-empty {
    margin-top: 16px;
    padding: 20px;
  }
  .entry-page .entry-empty h2 {
    font-size: 22px;
  }
  .entry-page .entry-empty .entry-note {
    margin-top: 16px;
    font-size: 12px;
  }
  .entry-page > .basket-heading + p {
    font-size: 13px;
    line-height: 1.5;
  }

}

@media (max-width: 360px) {
  .site-header :is(#account-link, #account-signin) .nav-label {
    display: none;
  }
  .site-header :is(#account-link, #account-signin) {
    width: 44px;
    padding: 0;
  }
}

/* Account disclosure: one entry point, with pickups before sign-in settings. */
.header-account {
  position: relative;
}
.header-account > summary {
  list-style: none;
  cursor: pointer;
}
.header-account > summary::-webkit-details-marker {
  display: none;
}
.header-account[open] > summary,
.header-account:has([aria-current="page"]) > summary {
  background: var(--brand-soft);
  color: var(--brand);
}
.account-chevron {
  font-size: 14px;
  color: var(--muted);
}
.header-account[open] .account-chevron {
  transform: rotate(180deg);
}
.header-account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(292px, calc(100vw - 24px));
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow:
    0 16px 48px #182c231a,
    0 2px 8px #182c230a;
}
.header-account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.header-account-identity strong {
  font-size: 14px;
}
.account-identity-text > span {
  font-size: 12px;
  color: var(--muted);
}
.account-identity-text > span:empty {
  display: none;
}
.site-header .header-account-panel .account-menu-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}
.site-header .header-account-panel .account-menu-link:hover,
.site-header .header-account-panel .account-menu-link[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
}
.site-header .header-account-panel .account-pickups-link {
  font-weight: 650;
  background: var(--brand-soft);
  color: var(--brand);
}
.header-account-panel .account-menu-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.site-header .header-account-panel .action-count {
  position: static;
  margin-left: auto;
}
#account-menu-status {
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #963d2d;
}
.pickups-page {
  max-width: 1000px;
  margin: 0 auto;
}
.pickups-page-heading h1 {
  margin: 8px 0 20px;
  font-size: 26px;
  letter-spacing: -0.6px;
}
.pickups-empty {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.pickups-empty-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.pickups-empty-icon svg {
  width: 22px;
  height: 22px;
}
.pickups-empty h2 {
  margin: 0;
  font-size: 18px;
}
.pickups-empty p {
  max-width: 480px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.pickups-empty .link-button {
  min-height: 44px;
}
.pickups-page .account-updates {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.account-updates summary {
  min-height: 44px;
  cursor: pointer;
}
.account-updates summary > span {
  color: var(--muted);
  margin-left: 6px;
}
@media (min-width: 721px) and (max-width: 1050px), (max-width: 360px) {
  .account-chevron {
    display: none;
  }
}
@media (max-width: 600px) {
  .pickups-page-heading h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .pickups-empty {
    gap: 12px;
    padding: 18px;
  }
  .pickups-empty-icon {
    flex-basis: 36px;
    height: 36px;
  }
}

.site-header #account-link .account-chevron svg {
  width: 14px;
  height: 14px;
}
.site-header .header-account-panel #logout {
  justify-content: flex-start;
}
.header-account-panel .account-menu-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.account-avatar {
  position: relative;
  overflow: hidden;
}
.account-avatar .account-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-identity-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.site-header .header-account-identity .account-avatar {
  width: 40px;
  height: 40px;
}
.site-header .header-account-identity .account-avatar svg {
  width: 22px;
  height: 22px;
}

/* Profile preferences: quiet sections, with each action beside its setting. */
.site-header .header-account-panel #logout {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
}
.profile-page {
  max-width: 760px;
  margin: 0 auto;
}
.profile-page > h1 {
  margin: 8px 0 20px;
  font-size: 26px;
  letter-spacing: -0.6px;
}
.profile-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}
.profile-identity > div {
  min-width: 0;
}
.profile-identity .account-avatar {
  width: 52px;
  height: 52px;
}
.profile-identity .account-avatar svg {
  width: 26px;
  height: 26px;
}
.profile-identity h2 {
  margin: 0 0 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.profile-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.profile-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 20px;
}
.profile-section > h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.profile-row + .profile-row {
  border-top: 1px solid var(--line);
}
.profile-row > div {
  min-width: 0;
}
.profile-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.profile-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.profile-row > :is(button, a) {
  flex-shrink: 0;
  min-height: 44px;
  font-size: 13px;
  background: var(--white);
}
.profile-photo-row {
  padding-bottom: 0;
}
.profile-currency-form {
  margin-top: 14px;
}
.profile-currency-form select {
  width: 100%;
  max-width: 340px;
}
.profile-currency-form .skeleton-field {
  max-width: 340px;
}
.profile-currency-form .field-help {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
}
.profile-currency-form .row {
  margin-top: 14px;
}
#currency-preference-feedback {
  font-size: 13px;
  color: var(--brand);
}
@media (max-width: 600px) {
  .profile-page > h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .profile-panel {
    padding: 18px;
  }
  .profile-row {
    gap: 14px;
  }
  .profile-row > :is(button, a) {
    padding-inline: 12px;
  }
}

/* A narrow red rule gives the warm-white header a consistent brand signature. */
body > .site-header {
  box-shadow: inset 0 2px 0 var(--accent);
}
.site-header .brand-name {
  color: var(--brand);
}
.site-header .brand-accent {
  color: var(--accent);
}
.site-header .site-nav .nav-item.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand);
}
