/* ═══════════════════════════════════════════════════════════════════════════
 *  SHELL — announcement, header, mobile menu, search, footer (DD §3.1, §3.12, §4)
 *  Task 9 (2026-10-05). The one shell for every page: shop pages get this file
 *  appended after global.css in global.min.css and every bundle-*.min.css;
 *  the folded evidence-desk pages link it after research-desk.css. Colours are
 *  DD §2 tokens only (tokens.css), so both themes follow html[data-theme].
 *  Basket drawer: assets/css/cart-drawer.css (DD §3.5).
 * ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --nav-h-desktop: 76px;
  --nav-h-mobile: 60px;
  --sh-serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --sh-sans: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;
  --sh-mono: 'DM Mono', 'DM Mono Fallback', ui-monospace, monospace;
}

/* ── Wordmark (DD §3.1): the mark is the name — Cormorant 500, "Research" in --brand-text ── */
.wordmark {
  font-family: var(--sh-serif);
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: -.005em;
  color: var(--text);
  text-transform: none;
  white-space: nowrap;
}
.wordmark__accent { color: var(--brand-text); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Announcement (DD §3.1): one static line, never dismissible, never stacked ── */
.shell-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 32px;
  padding: 4px var(--gutter);
  background: var(--surface-2);
  border-block-end: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--sh-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
}
.shell-announcement svg { inline-size: 14px; block-size: 14px; flex: none; fill: none; stroke: var(--brand-text); stroke-width: 1.6; stroke-linecap: round; }
.shell-announcement remy-clock { display: inline-block; color: var(--text); }

/* ── Header bar (DD §3.1 / §4 Header: E3 at 96 %, hairline, 60 px mobile · 76 px desktop) ── */
body > nav[aria-label="Main navigation"],
body > nav[aria-label="Navegação principal"] {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 8px;
  block-size: var(--nav-h-mobile);
  padding: 0 max(12px, calc(var(--gutter) - 4px));
  background: rgb(var(--ground-rgb) / .96);
  border-block-end: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
  font-family: var(--sh-sans);
  isolation: isolate;
  transition: box-shadow var(--d-2) var(--ease-out);
}
body > nav[aria-label="Main navigation"].nav-scrolled,
body > nav[aria-label="Navegação principal"].nav-scrolled { box-shadow: 0 8px 24px rgb(var(--shade-rgb) / .28); }
body > nav .nav-logo,
body > nav .nav-link,
body > nav .nav-cta,
body > nav .nav-icon { color: inherit; text-decoration: none; }

body > nav .nav-logo {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  min-inline-size: 0;
  padding-inline: 4px;
  flex: 0 1 auto;
  color: var(--text);
}
body > nav .nav-logo:visited { color: var(--text); }

/* Desktop links: Outfit 15, quiet until hovered; the current page carries a 2 px brand rule. */
body > nav .nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
}
body > nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: 12px;
  border-radius: var(--r-2);
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  transition: color var(--d-1) var(--ease-out), background-color var(--d-1) var(--ease-out);
}
body > nav .nav-link:visited { color: var(--text-2); }
body > nav .nav-link:hover,
body > nav .nav-link:visited:hover { color: var(--text); background: var(--surface-2); }
body > nav .nav-link.active,
body > nav .nav-link[aria-current="page"] { color: var(--text); }
body > nav .nav-link.active::after,
body > nav .nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 6px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand);
}

body > nav .nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}
body > nav .nav-right > * { flex-shrink: 0; }

/* Ghost icon buttons (DD §4 Button / ghost): 44 × 44, transparent, --surface-3 on hover. */
body > nav .nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}
body > nav .nav-icon:link,
body > nav .nav-icon:visited { color: var(--text); }
body > nav .nav-icon:hover { background: var(--surface-3); color: var(--text); }
body > nav .nav-icon svg {
  inline-size: 20px;
  block-size: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Theme toggle (DD §4): the glyph shows the current mode — moon on dark, sun on light. */
.nav-icon--theme .icon-sun,
:root[data-theme="light"] .nav-icon--theme .icon-moon { display: none; }
:root[data-theme="light"] .nav-icon--theme .icon-sun { display: block; }

/* Basket (DD §3.1): bag glyph + mono count badge on --brand; hidden while the basket is empty. */
body > nav .nav-icon--cart { gap: 0; }
.cart-count {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 2px;
  display: none;
  align-items: center;
  justify-content: center;
  min-inline-size: 18px;
  block-size: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--sh-mono);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}
.cart-count.show { display: inline-flex; }
/* cart-utils keeps the nav badge "shown" at 0; the empty basket reads as the bare bag (DD §3.1: count badge, not a zero). */
body > nav .nav-icon--cart .cart-count[aria-label="Basket empty"] { display: none; }
@keyframes rp-badge-pop {
  0%   { transform: scale(1);    }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1);    }
}
.cart-count.is-bumped,
#cartCount.is-bumped { animation: rp-badge-pop var(--d-3) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .cart-count.is-bumped,
  #cartCount.is-bumped { animation: none; }
}

/* The redundant desktop/mobile header CTA stays hidden: the drawer carries Order, the basket carries Checkout. */
body > nav .nav-right .nav-cta { display: none; }
body.reference-page .mobile-drawer .drawer-footer { display: none !important; }

/* Hamburger (mobile only) */
body > nav .nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--d-1) var(--ease-out);
}
body > nav .nav-hamburger:hover { background: var(--surface-3); }
body > nav .nav-hamburger svg { inline-size: 22px; block-size: 16px; }
body > nav .nav-hamburger :is(.ham-top, .ham-mid, .ham-bot) {
  transform-origin: center;
  transition: transform var(--d-2) var(--ease-out), opacity var(--d-2) var(--ease-out);
}
body > nav .nav-hamburger.open .ham-top { transform: translate(0, 6px) rotate(45deg); }
body > nav .nav-hamburger.open .ham-mid { opacity: 0; }
body > nav .nav-hamburger.open .ham-bot { transform: translate(0, -6px) rotate(-45deg); }

/* PT header: language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: var(--sh-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding: 0 6px; border-radius: var(--r-2); color: var(--text-2); text-decoration: none; }
.lang-switch a:hover,
.lang-switch a.active { color: var(--text); }
.lang-switch .sep { color: var(--text-3); }

/* No-JS: the drawer needs JavaScript, so the primary links render as a plain row below lg (Pass 18 M6). */
.nav-nojs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  flex-basis: 100%;
  padding-block-end: 8px;
}
.nav-nojs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  text-decoration: none;
}

/* ── Search overlay (desktop; DD §3.1: full-width under the header, E2, Esc closes) ── */
.search-overlay {
  position: absolute;
  inset: 100% 0 auto;
  z-index: var(--z-search);
  display: none;
  padding: 20px 0 24px;
  background: var(--surface-1);
  border-block: 1px solid var(--line-2);
  box-shadow: var(--shadow-e2);
}
.search-overlay.open { display: block; }
.search-overlay__inner { inline-size: min(640px, calc(100vw - 48px)); margin: 0 auto; }
.search-overlay__input-wrap { position: relative; display: flex; align-items: center; }
.search-overlay__input {
  inline-size: 100%;
  block-size: 52px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sh-sans);
  font-size: 16px;
  outline: none;
}
.search-overlay__input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.search-overlay__input::placeholder { color: var(--text-2); }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-overlay__icon { position: absolute; inset-inline-start: 14px; inline-size: 20px; block-size: 20px; color: var(--text-2); pointer-events: none; }
.search-overlay__clear {
  position: absolute;
  inset-inline-end: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.search-overlay__clear:hover { color: var(--text); background: var(--surface-3); }
.search-overlay__clear.show { display: inline-flex; }
.search-overlay__results { margin-top: 12px; max-block-size: 400px; overflow-y: auto; }
.search-overlay__group-label { padding: 8px 0 4px; color: var(--text-2); font-family: var(--sh-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.search-overlay__result {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 10px 12px;
  border-radius: var(--r-2);
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  text-decoration: none;
}
.search-overlay__result:visited { color: var(--text-2); }
.search-overlay__result:hover,
.search-overlay__result.focused { background: var(--surface-3); color: var(--text); }
.search-overlay__result-cat { flex-shrink: 0; margin-inline-start: auto; padding-inline-start: 12px; color: var(--text-2); font-family: var(--sh-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.search-overlay__result--product { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.search-overlay__result--product .search-overlay__result-cat { grid-area: 1 / 2 / 3 / 3; }
.search-overlay__result-meta { grid-area: 2 / 1 / 3 / 2; display: block; margin-top: 2px; color: var(--text-2); font-family: var(--sh-mono); font-size: 12px; letter-spacing: .02em; }
.search-overlay__result-meta:empty { display: none; }
.search-overlay__empty,
.search-overlay__suggest { padding: 16px 0 0; color: var(--text-2); font-family: var(--sh-sans); font-size: 14px; text-align: center; }
.search-overlay__suggest a { color: var(--brand-text); }

/* ── Mobile menu (DD §3.1 / §4 Mobile drawer: from the right, 100dvh, E2, page inert) ── */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer-scrim);
  display: block;
  background: rgb(var(--shade-rgb) / .6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--d-2) var(--ease-io), visibility 0s linear var(--d-2);
}
.drawer-scrim.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--d-2) var(--ease-out), visibility 0s; }
.mobile-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  inline-size: min(100%, 400px);
  block-size: 100dvh;
  overflow: hidden;
  background: var(--surface-1);
  border-inline-start: 1px solid var(--line-2);
  box-shadow: var(--shadow-e2);
  color: var(--text);
  font-family: var(--sh-sans);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--d-3) var(--ease-io), visibility 0s linear var(--d-3);
}
.mobile-drawer.open { transform: none; visibility: visible; pointer-events: auto; transition: transform var(--d-3) var(--ease-out), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer { transform: none; opacity: 0; transition: opacity var(--d-2) linear, visibility 0s linear var(--d-2); }
  .mobile-drawer.open { opacity: 1; transition: opacity var(--d-2) linear, visibility 0s; }
}
.drawer-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  block-size: var(--nav-h-mobile);
  padding: 0 8px 0 16px;
  border-block-end: 1px solid var(--line);
}
.drawer-brand { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--text); text-decoration: none; }
.drawer-brand:visited { color: var(--text); }
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.drawer-close:hover { background: var(--surface-3); }
.drawer-close svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.drawer-search { flex-shrink: 0; padding: 12px 16px; border-block-end: 1px solid var(--line); }
.drawer-search input {
  inline-size: 100%;
  block-size: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sh-sans);
  font-size: 16px;
  outline: none;
}
.drawer-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.drawer-search input::placeholder { color: var(--text-2); }
.drawer-search-results { flex-shrink: 0; padding: 0 16px; }
.drawer-links {
  flex: 1;
  min-block-size: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0 24px;
}
.drawer-link,
.drawer-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 100%;
  min-block-size: 52px;
  padding: 0 16px;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--sh-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: start;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}
.drawer-link:visited { color: var(--text); }
.drawer-link:hover,
.drawer-accordion-toggle:hover { background: var(--surface-2); }
.drawer-link.active,
.drawer-link[aria-current="page"] { color: var(--brand-text); }
.drawer-accordion-chevron {
  inline-size: 12px;
  block-size: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  transition: transform var(--d-2) var(--ease-out);
}
.drawer-accordion-toggle[aria-expanded="true"] { color: var(--brand-text); }
.drawer-accordion-toggle[aria-expanded="true"] .drawer-accordion-chevron { transform: rotate(180deg); }
.drawer-accordion-panel { display: none; padding: 4px 16px 12px 28px; background: var(--surface-2); border-block-end: 1px solid var(--line); }
.drawer-accordion-panel.open { display: block; }
.drawer-accordion-panel a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: 8px 0;
  border-block-end: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.drawer-accordion-panel a:visited { color: var(--text-2); }
.drawer-accordion-panel a:hover { color: var(--text); }
.drawer-accordion-panel a:last-child { border-block-end: 0; }
/* Supplies group label — full-opacity --text-2 (the inline 75 % opacity fell below AA in light). */
.drawer-accordion-label { display: block; padding: 16px 0 4px; color: var(--text-2); font-family: var(--sh-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.mobile-drawer .lang-switch { display: flex; gap: 4px; padding: 8px 16px; }
/* Footer row (DD §3.1): [Order →] primary, [Telegram] secondary — always visible without scrolling. */
.drawer-footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid var(--line);
  background: var(--surface-1);
}
.drawer-footer-order,
.drawer-footer-telegram {
  display: inline-flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 52px;
  padding-inline: 16px;
  border-radius: var(--r-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transition: background-color var(--d-1) var(--ease-out), border-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}
.drawer-footer-order,
.drawer-footer-order:visited { background: var(--brand); color: var(--on-brand); }
.drawer-footer-order:hover { background: var(--brand-hover); color: var(--on-brand); }
.drawer-footer-order:active { transform: translateY(1px); box-shadow: var(--glow-brand); }
.drawer-footer-telegram,
.drawer-footer-telegram:visited { border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 500; }
.drawer-footer-telegram:hover { border-color: var(--brand-text); color: var(--brand-text); }
.drawer-footer-telegram .contact-glyph { inline-size: 18px; block-size: 18px; flex: 0 0 auto; }
:is(.drawer-footer-order, .drawer-footer-telegram):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.drawer-footer-order:focus-visible { outline-color: var(--on-brand); }

/* Suppression while the menu is open */
html.drawer-open,
body.drawer-open { overscroll-behavior: contain; }
body.drawer-open .back-to-top { opacity: 0; pointer-events: none; }

/* ── Breakpoints: the hamburger shell below lg, the full link row from lg ── */
@media (max-width: 1023px) {
  body > nav .nav-left { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-right .nav-icon--search { display: none; }
  body > nav .nav-hamburger { display: inline-flex; }
  .nav-right > .lang-switch { display: none; }
  .search-overlay { display: none !important; }
  body > nav:has(.nav-nojs) { block-size: auto; min-block-size: var(--nav-h-mobile); flex-wrap: wrap; }
  .shell-announcement { min-block-size: 40px; padding-block: 4px; }
  /* Hide the fee span AND its aria-hidden separator dot together (the clock line carries the promise). */
  .shell-announcement > span { display: none; }
}
@media (min-width: 1024px) {
  body > nav[aria-label="Main navigation"],
  body > nav[aria-label="Navegação principal"] { block-size: var(--nav-h-desktop); gap: 16px; }
  .wordmark { font-size: 26px; }
  body > nav .nav-left { margin-inline-start: clamp(16px, 2.4vw, 40px); }
  body > nav .nav-right { margin-inline-start: auto; }
  .drawer-scrim,
  .mobile-drawer { display: none; }
}
@media (min-width: 1024px) {
  .nav-nojs { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  body > nav .nav-link { padding-inline: 8px; font-size: 14px; }
}
@media (max-width: 359px) {
  .wordmark { font-size: 19px; }
}

/* ── Footer (DD §3.12): brand column + four link groups, regions row, legal ── */
body > footer[aria-label] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: var(--s-12) max(var(--gutter), calc((100% - var(--container)) / 2)) var(--s-8);
  background: var(--surface-1);
  border-block-start: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--sh-sans);
  text-align: start;
}
.footer-brand-row {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding-block-end: var(--s-8);
}
.footer-brand-lockup { display: inline-flex; align-items: center; justify-self: start; min-block-size: 44px; color: var(--text); text-decoration: none; }
.footer-brand-lockup:visited { color: var(--text); }
.footer-brand-lockup .wordmark { font-size: 26px; }
.footer-brand-row > p { max-inline-size: 40ch; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.footer-glyph-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-glyph-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--sh-mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.2;
}
.footer-glyph-strip svg { inline-size: 14px; block-size: 14px; flex: none; fill: none; stroke: var(--brand-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8) var(--s-6);
  margin: 0;
  padding: var(--s-8) 0;
  border-block-start: 1px solid var(--line);
}
.footer-col { display: flex; flex-direction: column; min-inline-size: 0; }
.footer-col-header {
  margin: 0 0 var(--s-2);
  color: var(--text-2);
  font-family: var(--sh-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.footer-col a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-block-size: 44px;
  padding: 6px 0;
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--d-1) var(--ease-out);
}
.footer-col a:visited { color: var(--text-2); }
.footer-col a:hover { color: var(--brand-text); }
.footer-contact-link .contact-glyph { inline-size: 16px; block-size: 16px; flex: 0 0 auto; color: var(--brand-text); }
/* /order folds each link group into a <details> (order-express.js) — same column, a 44px summary in place of the header. */
.checkout-footer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 44px;
  color: var(--text-2);
  font-family: var(--sh-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.checkout-footer-group > summary::-webkit-details-marker { display: none; }
.checkout-footer-group > summary::after { content: ''; inline-size: 7px; block-size: 7px; margin-inline-end: 4px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--d-2) var(--ease-out); }
.checkout-footer-group[open] > summary::after { transform: rotate(-135deg); }
.checkout-footer-group > a { display: flex; }
/* DD §3.12 / brief: the footer shows the address itself (contact.json), not only the word "Email". */
.footer-contact-link[data-addr]::after { content: attr(data-addr); flex-basis: 100%; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.footer-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: var(--s-6);
  border-block-start: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--sh-sans);
  font-size: 14px;
}
.footer-regions-label { flex-basis: 100%; color: var(--text); font-family: var(--sh-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.footer-regions a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}
.footer-regions a:hover { border-color: var(--line-2); color: var(--text); }
.footer-regions-policy { flex: 0 0 100%; padding-inline-end: max(0px, calc(100% - 72ch)); margin-block-start: var(--s-2); color: var(--text-2); line-height: 1.6; }
.footer-bottom {
  display: grid;
  gap: var(--s-3);
  padding-block-start: var(--s-6);
  border-block-start: 1px solid var(--line);
}
.footer-compliance { max-inline-size: 84ch; margin: 0; color: var(--text-2); font-family: var(--sh-sans); font-size: 13px; line-height: 1.65; text-transform: none; letter-spacing: 0; text-align: start; }
.footer-copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--text-2); font-family: var(--sh-mono); font-size: 12px; letter-spacing: .04em; text-transform: none; }
/* Pass 18 CP-13: the "Português" switch is a real control — ≥44px target. */
.footer-copyright a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--brand-text);
}
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 12px; color: var(--text-2); }
body > footer :focus-visible,
body > nav :focus-visible,
.mobile-drawer :focus-visible,
.shell-announcement :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body > footer[aria-label] { grid-template-columns: minmax(280px, 1fr) minmax(0, 2.4fr); column-gap: var(--s-12); }
  .footer-brand-row { grid-column: 1; grid-row: 1; padding-block: var(--s-8) 0; }
  .footer-grid { grid-column: 2; grid-row: 1; border-block-start: 0; }
  .footer-regions,
  .footer-bottom { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-col a { min-block-size: 44px; padding-block: 8px; }
}

/* ── Back to top (desktop only; below lg the page ends at the footer) ── */
.back-to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--surface-1);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-2) var(--ease-out), visibility 0s linear var(--d-2);
}
.back-to-top.visible { opacity: 1; visibility: visible; transition: opacity var(--d-2) var(--ease-out), visibility 0s; }
.back-to-top:hover { border-color: var(--brand-text); color: var(--brand-text); }
.back-to-top svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1023px) {
  .back-to-top { display: none; }
}
