/* Navegação compartilhada: fundo transparente em todas as páginas. */
:root { --royal-header-offset: 108px; --royal-header-height: 97px; }
html { scroll-padding-top: var(--royal-header-offset); }
.site-header.royal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 4px 14px 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}
.royal-header .royal-header__shell {
  max-width: 1560px;
  min-height: 86px;
  margin-inline: auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(155,216,233,.32);
  border-radius: 60px;
  background: transparent;
  box-shadow: none;
  transition: background .22s ease, box-shadow .22s ease;
}
.royal-header.is-scrolled .royal-header__shell {
  background: transparent;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: none;
}
.royal-header a { text-decoration: none; }
.royal-header .royal-header__brand { flex: 0 0 134px; min-width: 0; color: #e8d296; line-height: 1; }
.royal-header__wordmark { display: block; font-family: 'Roboto Slab',Georgia,serif; font-weight: 700; font-size: 24px; letter-spacing: -.5px; text-align: center; }
.royal-header__wordmark > span { display: block; margin-top: 7px; font-family: 'Roboto',Arial,sans-serif; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.royal-header .royal-header__navigation { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: center; }
.royal-header .royal-header__links { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; flex-wrap: nowrap; }
.royal-header__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; color: #f4f8ff; font: 700 14px/1.2 'Roboto',Arial,sans-serif; white-space: nowrap; transition: background .18s ease, border-color .18s ease; }
.royal-header__links a[aria-current='page'], .royal-header__links a:hover { background: rgba(163,203,255,.13); border-color: rgba(161,211,245,.27); }
.royal-header .royal-header__search { flex: 1; min-width: 160px; position: relative; margin: 0; }
.royal-header__search input { appearance: none; display: block; width: 100%; height: 52px; min-width: 0; padding: 0 48px 0 20px; border: 1px solid rgba(165,220,235,.25); border-radius: 999px; background: rgba(171,217,246,.1); color: #fff; font: 400 14px/1.4 'Roboto',Arial,sans-serif; outline: none; }
.royal-header__search input::placeholder { color: #d7e6f2; opacity: 1; }
.royal-header__search input:focus { border-color: #97e53d; }
.royal-header__search button { position: absolute; right: 6px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #89ef40; cursor: pointer; }
.royal-header__search button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.royal-header__pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid rgba(169,223,236,.25); border-radius: 999px; color: #fff; background: rgba(169,217,241,.08); font: 700 16px/1.2 'Roboto',Arial,sans-serif; white-space: nowrap; cursor: pointer; }
.royal-header__pill > svg { width: 19px; height: 19px; fill: currentColor; }
.royal-header .royal-header__cart { flex: 0 0 auto; padding-right: 25px; }
.royal-header__count { position: absolute; top: 1px; right: 5px; display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border: 2px solid #064c70; border-radius: 999px; background: #80f2d4; color: #032435; font-size: 11px; font-weight: 800; }
.royal-header__account { position: relative; flex: 0 0 auto; }
.royal-header__account summary { list-style: none; }
.royal-header__account summary::-webkit-details-marker { display: none; }
.royal-header__account-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 180px; padding: 8px; border: 1px solid rgba(160,220,239,.35); border-radius: 14px; background: #073f69; box-shadow: 0 12px 35px rgba(0,13,38,.35); }
.royal-header__account-menu a { display: block; padding: 11px 12px; border-radius: 8px; color: #fff; font: 500 13px/1.3 'Roboto',Arial,sans-serif; }
.royal-header__account-menu a:hover { background: rgba(167,223,240,.15); }
.royal-header__toggle { display: none; }
.royal-header a:focus-visible, .royal-header button:focus-visible, .royal-header summary:focus-visible { outline: 2px solid #c8ef7a; outline-offset: 3px; }
@media (min-width: 1251px) and (max-width: 1450px) {
  .royal-header .royal-header__shell { gap: 10px; padding-inline: 12px; }
  .royal-header .royal-header__navigation { gap: 10px; }
  .royal-header .royal-header__links { gap: 2px; }
  .royal-header__links a { font-size: 12px; padding-inline: 9px; }
  .royal-header .royal-header__brand { flex-basis: 124px; }
  .royal-header__pill { font-size: 14px; padding-inline: 12px; }
}
@media (max-width: 1250px) {
  :root { --royal-header-offset: 86px; --royal-header-height: 81px; }
  .site-header.royal-header { padding: 4px 10px 7px; }
  .royal-header .royal-header__shell { position: relative; min-height: 70px; padding: 10px 16px; gap: 10px; }
  .royal-header .royal-header__brand { margin-right: auto; flex-basis: 118px; }
  .royal-header__wordmark { font-size: 22px; }
  .royal-header__wordmark > span { font-size: 9px; margin-top: 5px; }
  .royal-header__toggle { display: inline-flex; order: 4; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(169,223,236,.3); border-radius: 50%; background: rgba(169,217,241,.09); cursor: pointer; }
  .royal-header__toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .royal-header__toggle[aria-expanded='true'] span:first-child { transform: translateY(6px) rotate(45deg); }
  .royal-header__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .royal-header__toggle[aria-expanded='true'] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .royal-header .royal-header__navigation { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; max-height: calc(100dvh - 104px); overflow-y: auto; border: 1px solid rgba(163,221,238,.35); border-radius: 18px; background: linear-gradient(115deg, rgba(15,40,93,.98), rgba(5,90,108,.98)); box-shadow: 0 16px 35px rgba(0,20,45,.35); }
  .royal-header .royal-header__navigation.is-open { display: flex; }
  .royal-header .royal-header__links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .royal-header__links a { justify-content: flex-start; min-height: 42px; font-size: 13px; padding-inline: 12px; }
  .royal-header .royal-header__search { display: none; }
  .royal-header__account .royal-header__pill { width: 100%; justify-content: flex-start; }
  .royal-header__account-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .royal-header .royal-header__cart { min-height: 42px; padding-left: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .royal-header .royal-header__shell, .royal-header__toggle span, .royal-header__links a { transition: none; }
}

/* O slot mantém o fluxo; fixed não é afetado pelo overflow global das páginas. */
.royal-header-slot { height: var(--royal-header-height); }
.site-header.royal-header { position: fixed; inset-inline: 0; top: 0; }

.royal-header .royal-header__links a {
  padding: 0 12px;
  color: #f4f8ff;
  font: 700 14px/1.2 'Roboto',Arial,sans-serif;
  border: 1px solid transparent;
}
.royal-header .royal-header__links a[aria-current='page'],
.royal-header .royal-header__links a:hover {
  background: rgba(163,203,255,.13);
  border-color: rgba(161,211,245,.27);
  color: #fff;
}
@media (min-width:1251px) and (max-width:1450px) {
  .royal-header .royal-header__links a { padding-inline: 9px; font-size: 12px; }
}
@media (max-width:1250px) {
  .royal-header .royal-header__links a { padding-inline: 12px; font-size: 13px; }
}

/* Apenas a logo do cabeçalho; textos e demais áreas permanecem originais. */
.royal-header .royal-header__brand { flex: 0 0 184px; min-width: 0; }
.royal-header .royal-header__logo {
    display: block;
    width: 184px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, .96);
}
@media(min-width:1251px) and (max-width:1450px) { .royal-header .royal-header__brand { flex-basis: 164px; } }
@media(max-width:1250px) {
  .royal-header .royal-header__brand { flex: 1 1 168px; min-width: 0; margin-right: auto; }
  .royal-header .royal-header__logo { width: 168px; padding: 5px 6px; }
  .royal-header .royal-header__toggle { flex: 0 0 42px; }
}
