/* Collect-owned chrome. Sticker Mule's logo, global navigation, account
   flyout, responsive collapse, and mobile disclosure all live in this client
   overlay. The reusable collectibles module owns the page/subnav language but
   never ships client-specific .smnav rules. */

/* ---------- global nav (Sticker Mule brown bar) ---------- */
.smnav {
  background: var(--sm-nav-brown, #4e2817);
  color: #fff;
  height: var(--sm-nav-height, 52px);
  min-height: var(--sm-nav-height, 52px);
  display: flex;
  align-items: center;
  /* The reference global bar is viewport-aligned even when the page and
     footer content use a centered rail. At the 3786px reference width its
     controls sit 40px from the viewport edges. */
  padding: 0 clamp(20px, 2.17vw, 40px);
  gap: 28px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  position: sticky;
  top: 0;
  z-index: 100;
}
.smnav .mobile-menu { display: none; }
.smnav .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  height: var(--sm-nav-height, 52px);
  margin-right: 0;
  padding: 0;
}
.smnav .logo svg { width: 22px; height: 16px; display: block; }
.smnav .logo img.logo-wordmark { height: 24px; width: auto; display: block; }
.smnav a, .smnav button {
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.smnav a:hover, .smnav button:hover { opacity: .85; text-decoration: none; }
.smnav .smnav-link,
.smnav .nav-login,
.smnav .nav-signup {
  display: inline-flex;
  align-items: center;
  height: var(--sm-nav-height, 52px);
  min-height: 0;
  line-height: 1;
}
.smnav .pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 0;
  background: var(--sm-pro-brown, #6e4432);
  padding: 0 14px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
}
.smnav .spacer { flex: 1; }
.smnav .icons { display: flex; align-items: center; gap: 28px; }
.smnav .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  height: var(--sm-nav-height, 52px);
}
.smnav .icon-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.smnav .cart-pip {
  position: absolute;
  top: -4px; right: -8px;
  /* Dark brand-orange variant preserves white text contrast at badge size. */
  background: var(--sm-orange-accessible, #a64000);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* PlatformKit's governed notification-bell organism supplies behavior,
   polling, badge updates, and the HTMX dropdown contract. These rules only
   adapt its neutral shell chrome to the compact Sticker Mule navigation. */
.smnav .smnav-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--sm-nav-height, 52px);
}
.smnav .smnav-notifications > [data-component="notification-bell"] {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.smnav .smnav-notifications [data-notification-bell-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: var(--sm-nav-height, 52px);
  border-radius: 6px;
  color: #fff;
}
.smnav .smnav-notifications [data-notification-bell-toggle]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.smnav .smnav-notifications [data-notification-bell-toggle] svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}
.smnav .smnav-notifications [data-notification-bell-badge] {
  position: absolute;
  top: 2px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--sm-nav-brown, #4e2817);
  border-radius: 999px;
  /* 6.26:1 with white text at the compact badge size. */
  background: var(--sm-orange-accessible, #a64000);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.smnav .smnav-notifications [data-notification-bell-badge][data-count="0"] {
  display: none;
}
.smnav .smnav-notifications [data-notification-bell-dropdown] {
  position: absolute;
  top: calc(100% + 6px);
  right: -4px;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 72px);
  /* The shared notification list is the sole vertical scroll owner. */
  overflow: hidden;
  border: 1px solid var(--sm-border, #e5e5e5);
  border-radius: 10px;
  background: var(--sm-card, #fff);
  color: var(--sm-text, #111);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
  z-index: 1000;
}
.smnav .smnav-notifications [data-component="notification-dropdown"] {
  color: var(--sm-text, #111);
  font-weight: 400;
  line-height: 1.4;
}
.smnav .smnav-notifications [data-component="notification-dropdown"] a {
  color: var(--sm-text, #111);
  font-weight: 500;
  white-space: normal;
}
.smnav .smnav-notifications [data-component="notification-dropdown"] button {
  min-width: auto;
  min-height: 32px;
  padding: 4px 8px;
  /* 6.26:1 against the white dropdown surface (WCAG AA at 12px). */
  color: var(--sm-orange-accessible, #a64000);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}
.smnav .smnav-notifications [data-component="notification-dropdown"] a:hover,
.smnav .smnav-notifications [data-component="notification-dropdown"] button:hover {
  opacity: 1;
}
.smnav .avatar {
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--sm-brown, #4c2615);
  font-weight: 800;
}
.smnav .nav-login,
.smnav .nav-signup {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.smnav .nav-login:hover,
.smnav .nav-signup:hover { opacity: .85; }
.smnav .caret { margin-left: 4px; opacity: .8; }

/* Shared Collect layout offsets follow the client chrome height instead of
   retaining the module's legacy 46px default. */
.collect-subnav { top: var(--sm-nav-height, 52px); }
.shell { min-height: calc(100vh - var(--sm-nav-height, 52px) - 54px); }
.create-ribbon { top: calc(var(--sm-nav-height, 52px) + 56px); }
.collect-rip-room .rr-stage { min-height: calc(100dvh - var(--sm-nav-height, 52px)); }

body.collect-builder-root { --sm-nav-height: 46px; }
body.collect-builder-root .smnav {
  min-height: 46px;
  height: 46px;
  padding: 0 24px;
}
body.collect-builder-root .smnav .smnav-link,
body.collect-builder-root .smnav .smnav-pro,
body.collect-builder-root .smnav .nav-login,
body.collect-builder-root .smnav .nav-signup,
body.collect-builder-root .smnav .nav-signout,
body.collect-builder-root .smnav .icons { display: none; }
body.collect-builder-root .smnav .logo { height: 46px; margin-right: 0; }
body.collect-builder-root .smfoot { display: none; }

/* ---------- authenticated account flyout ---------- */
.smnav .smnav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--sm-nav-height, 52px);
}
.smnav .smnav-account[open] > summary { opacity: 1; }
.smnav .smnav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  height: var(--sm-nav-height, 52px);
  padding: 0 4px;
  border-radius: 6px;
  color: #fff;
}
.smnav .smnav-account-toggle::-webkit-details-marker { display: none; }
.smnav .smnav-account-toggle::marker { content: ""; }
.smnav .smnav-account-toggle:hover { opacity: .9; }
.smnav .smnav-account-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.smnav .smnav-account-avatar { display: inline-flex; align-items: center; justify-content: center; }
.smnav .smnav-account-avatar > * {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  color: var(--sm-brown, #4c2615);
  font-size: 11px;
  font-weight: 800;
}
.smnav .smnav-account-caret { display: inline-flex; align-items: center; opacity: .85; }
.smnav .smnav-account-caret svg { width: 12px; height: 12px; stroke-width: 2.5; }
.smnav .smnav-account[open] > summary .smnav-account-caret { transform: rotate(180deg); }
.smnav .smnav-account-flyout {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--sm-card, #17140d);
  color: var(--sm-text, #111);
  border: 1px solid var(--sm-border, #e5e5e5);
  border-radius: 10px;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .08);
  padding: 8px 0;
  z-index: 60;
}
.smnav .smnav-account-flyout-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--sm-border, #eee);
  margin-bottom: 4px;
}
.smnav .smnav-account-flyout-avatar > * {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sm-page, #f4f1ec);
  color: var(--sm-brown, #5e3a1a);
  font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.smnav .smnav-account-flyout-userdetails { display: flex; flex-direction: column; min-width: 0; }
.smnav .smnav-account-flyout-name {
  font-size: 14px; font-weight: 700; color: var(--sm-text, #111); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
}
.smnav .smnav-account-flyout-email {
  font-size: 12px; color: var(--sm-text-muted, #666); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.smnav .smnav-account-flyout-list { list-style: none; margin: 0; padding: 4px 0; }
.smnav .smnav-account-flyout-item { margin: 0; padding: 0; }
.smnav .smnav-account-flyout-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  font-size: 14px; font-weight: 500; color: var(--sm-text, #111);
  text-decoration: none; white-space: nowrap; transition: background-color 120ms ease;
}
.smnav .smnav-account-flyout-link:hover { background: var(--sm-page, #f6f3ee); opacity: 1; }
.smnav .smnav-account-flyout-link:focus-visible {
  outline: 2px solid var(--sm-orange-accessible, #a64000); outline-offset: -2px;
}
.smnav .smnav-account-flyout-icon {
  display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center;
  color: var(--sm-text-muted, #666);
}
.smnav .smnav-account-flyout-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.smnav .smnav-account-flyout-label { flex: 1; }

.smnav .smnav-mobile-menu { display: none; }

/* ---------- global footer ----------
   Footer markup and layout are client-owned chrome, so these rules must travel
   with chrome.css. Depending on collectibles/collect.css here made
   the footer collapse on public routes that do not load the product bundle. */
.smfoot {
  background: var(--sm-page-2);
  color: var(--sm-text-2);
  padding: 50px 0 34px;
  margin-top: 0;
}
.smfoot .wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sm-content-max);
  margin: 0 auto;
  padding: 0 var(--sm-content-pad);
}
.smfoot .smfoot-brand { display: none; }
.smfoot h2 { font-size: 14px; font-weight: 800; line-height: 20px; margin: 0 0 12px; letter-spacing: 0; }
.smfoot ul { list-style: none; padding: 0; margin: 0; }
.smfoot ul li { margin-bottom: 6px; font-size: 14px; line-height: 20px; }
.smfoot a { color: var(--sm-text-2); }
.smfoot a:hover { color: var(--sm-text); text-decoration: underline; }

.smfoot .smfoot-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  column-gap: 24px;
  align-items: stretch;
}
.smfoot .smfoot-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.smfoot-social { display: flex; gap: 18px; align-items: center; margin: 0; }
.smfoot-social a { color: var(--sm-muted); display: inline-flex; align-items: center; height: 18px; }
.smfoot-social svg { display: block; }
.smfoot-social a:hover { color: var(--sm-text); }
.smfoot-support .smfoot-social {
  margin-top: auto;
  padding-top: 18px;
}
.smfoot .smfoot-bottom {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  column-gap: 24px;
  align-items: start;
  margin-top: 20px;
  padding-top: 22px;
}
.smfoot .smfoot-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--sm-content-pad);
  left: var(--sm-content-pad);
  border-top: 1px solid #d7d7d7;
}
.smfoot-legal-left { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; }
.smfoot .legal-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; font-size: 12.5px; }
.smfoot .legal-links a { color: var(--sm-text-2); }
.smfoot .legal-links a:hover { color: var(--sm-text); }
.smfoot .recaptcha { font-size: 11.5px; color: var(--sm-text-2); }

.locale-select { position: relative; grid-column: 5; justify-self: end; }
.locale-select > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sm-text-2); font-size: 13px; font-weight: 700;
  padding: 8px 0; border: 0; border-radius: 0;
}
.locale-select > summary::-webkit-details-marker { display: none; }
.locale-select > summary:hover { text-decoration: underline; }
.locale-select .caret { opacity: .7; }
.locale-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  background: var(--sm-card); border-radius: 10px; box-shadow: var(--shadow-lift);
  overflow: hidden; min-width: 220px; z-index: 50;
}
.locale-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; color: var(--sm-text);
  font-size: 13.5px; font-weight: 600;
}
.locale-menu a:hover { background: var(--sm-page); text-decoration: none; }
.locale-menu a.active { color: var(--sm-orange-accessible); }

/* PlatformKit's generic 44px link targets otherwise spread the compact social
   cluster past Support and give legal links mismatched boxes/baselines. */
.smfoot .smfoot-social a {
  width: auto;
  height: 44px;
  min-height: 44px;
}
.smfoot-support .smfoot-social svg { transform: translateY(4px); }
.smfoot .locale-select > summary {
  display: flex;
  width: max-content;
  height: auto;
  margin-left: auto;
  padding-block: 0;
}

@media (min-width: 1081px) {
  .smfoot .legal-links { flex-wrap: nowrap; }
}

@media (max-width: 1080px) {
  .smfoot .smfoot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .smfoot .smfoot-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .smfoot-legal-left { grid-column: 1 / span 2; }
  .locale-select { grid-column: 3; }
}

@media (max-width: 960px) {
  .smnav .smnav-mobile-menu {
    position: relative;
    display: block;
    flex: 0 0 44px;
    height: 52px;
    z-index: 2;
  }
  .smnav .smnav-mobile-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }
  .smnav .smnav-mobile-menu > summary::-webkit-details-marker { display: none; }
  .smnav .smnav-mobile-menu > summary::marker { content: ""; }
  .smnav .smnav-mobile-menu > summary:hover,
  .smnav .smnav-mobile-menu[open] > summary { background: rgba(255,255,255,.12); }
  .smnav .smnav-mobile-menu > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .smnav .smnav-mobile-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: -16px;
    display: flex;
    flex-direction: column;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 0 0 8px 8px;
    background: var(--sm-nav-brown, #4e2817);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
  }
  .smnav .smnav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 5px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
  }
  .smnav .smnav-mobile-link:hover,
  .smnav .smnav-mobile-link:focus-visible {
    background: rgba(255,255,255,.12);
    opacity: 1;
    text-decoration: none;
  }
  .smnav .smnav-mobile-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }
  .smnav .smnav-mobile-caret { margin-left: 8px; opacity: .7; }
  .smnav .smnav-mobile-link-with-meta { gap: 12px; }
  .smnav .smnav-mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sm-orange, #ff6900);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
  }

  .smnav {
    height: 52px;
    min-height: 52px;
    padding: 0 16px;
    gap: 0;
    overflow: visible;
    justify-content: space-between;
  }
  .smnav .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
  }
  .smnav .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 52px;
    margin-right: 0;
    padding: 0;
  }
  .smnav .logo svg { width: 30px; height: 21px; }
  .smnav .logo { width: auto; }
  .smnav .logo img.logo-wordmark { height: 26px; }
  .smnav .smnav-link,
  .smnav .smnav-pro,
  .smnav .nav-login,
  .smnav .nav-signup,
  .smnav .nav-signout { display: none; }
  .smnav .spacer { flex: 1 1 auto; min-width: 0; }
  .smnav .icons { margin-left: auto; gap: 14px; flex: 0 0 auto; }
  .smnav .smnav-notifications { display: none; }
  .smnav .icon-btn { width: 44px; height: 44px; padding: 0; }
  .smnav .icon-btn svg { width: 23px; height: 23px; }
  .smnav .icon-btn:not(.nav-search):not(.nav-cart) { display: none; }
}

@media (max-width: 720px) {
  .smfoot {
    padding: 40px 0 32px;
  }
  .smfoot .smfoot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .smfoot .smfoot-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }
  .smfoot .legal-links {
    justify-content: flex-start;
    gap: 14px;
  }
  .smfoot-legal-left {
    align-items: flex-start;
  }
  /* The divider shares the canonical content rail with every footer child.
     Keeping one token avoids a subtle four-pixel drift at narrow widths. */
  .smfoot .smfoot-bottom::before {
    right: var(--sm-content-pad);
    left: var(--sm-content-pad);
  }
  .smfoot .locale-menu { right: auto; left: 0; }
}
