/* Cabeçalho único das páginas públicas, incluindo o catálogo de brindes. */
:root {
  --quote-budget-text: #f7f6f5;
}
.site-header-fixed {
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ink: #0d0d0f;
  --paper: #f7f6f5;
  --line: #e2dfdd;
  --header-text: var(--quote-budget-text);
  --header-muted: #c2c2c8;
  --header-line: color-mix(in srgb, var(--header-text) 13%, transparent);
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--header-text);
  background: var(--ink);
  border-bottom: 1px solid var(--header-line);
  font: 400 15px / 1.5 var(--sans);
}
.site-header-fixed *,
.site-header-fixed *::before,
.site-header-fixed *::after {
  box-sizing: border-box;
}
.site-header-fixed a {
  text-decoration: none;
  color: inherit;
}
.site-header-fixed button,
.site-header-fixed input {
  font: inherit;
}
.site-header-fixed :is(a, button, input):focus-visible {
  outline: 2px solid var(--header-text);
  outline-offset: 5px;
}
.site-header-fixed .site-header {
  width: min(1440px, calc(100% - 80px));
  min-height: 64px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  position: relative;
}
.site-header-fixed .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  gap: 0;
  width: auto;
  height: auto;
  color: var(--header-text);
  font: 700 16px / 1.2 var(--sans);
  letter-spacing: 0;
  transform: none;
}
.site-header-fixed .brand span {
  color: inherit;
}
.site-header-fixed .brand-logo {
  display: block;
  flex: none;
  width: 142px;
  height: 41px;
  background: currentColor;
  mask: var(--company-logo) center / contain no-repeat;
  -webkit-mask: var(--company-logo) center / contain no-repeat;
}
.site-header-fixed .brand-logo--compact {
  clip-path: polygon(0 0, 100% 0, 100% 82%, 28% 82%, 28% 100%, 0 100%);
}
.site-header-fixed .brand-caption {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-top: -1px;
  color: var(--header-muted);
}
.site-header-fixed .brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
}
.site-header-fixed .site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  color: var(--header-muted);
  font-size: 14px;
}
.site-header-fixed .site-nav > a,
.site-header-fixed .nav-drop-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: 500 14px / 1.5 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
}
.site-header-fixed .site-nav > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.site-header-fixed .site-nav > a:hover,
.site-header-fixed .site-nav > a.is-active,
.site-header-fixed .nav-drop-toggle:hover {
  color: var(--header-text);
  background: none;
}
.site-header-fixed .site-nav > a:is(:hover, .is-active)::after {
  transform: scaleX(1);
}
.site-header-fixed .site-header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}
.quote-budget-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.button.quote-budget-button,
button.quote-budget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: var(--quote-budget-text);
}
.button.quote-budget-button:hover,
button.quote-budget-button:hover {
  background: var(--brand-dark, var(--brand));
}
.quote-budget-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.site-header-fixed .nav-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 7px;
  color: var(--header-text);
  background: var(--brand);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.18s ease;
}
.site-header-fixed .nav-cta:hover {
  background: var(--brand-dark, var(--brand));
}
.site-header-fixed .menu-toggle {
  display: none;
}
.site-header-fixed .site-search {
  display: flex;
  position: static;
  margin: 0;
  padding: 0;
  width: 40px;
  flex: none;
}
.site-header-fixed .site-search-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--header-text);
  background: none;
  cursor: pointer;
}
.site-header-fixed .site-search-toggle:hover {
  background: var(--header-line);
}
.site-header-fixed .site-search input {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--header-line);
  border-radius: 7px;
  color: var(--header-text);
  background: var(--ink);
  visibility: hidden;
}
.site-header-fixed .site-search input::placeholder {
  color: var(--header-muted);
}
.site-header-fixed .site-search.is-open input {
  visibility: visible;
}
.site-header-fixed .site-search-results,
.site-header-fixed .nav-drop-menu {
  position: absolute;
  z-index: 60;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}
.site-header-fixed .site-search-results {
  top: calc(100% + 60px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: 60vh;
  overflow: auto;
}
.site-header-fixed .site-search-results[hidden] {
  display: none;
}
.site-header-fixed .site-search-group {
  display: grid;
  padding: 4px 0;
}
.site-header-fixed .site-search-group > span {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  color: var(--muted);
}
.site-header-fixed .site-search-group a,
.site-header-fixed .nav-drop-menu a {
  padding: 9px 10px;
  font-size: 14px;
  border-radius: 4px;
}
.site-header-fixed .site-search-group a:hover,
.site-header-fixed .nav-drop-menu a:hover {
  background: var(--line);
}
.site-header-fixed .site-search-empty {
  padding: 10px;
  margin: 0;
  font-size: 14px;
}
.site-header-fixed .nav-drop {
  position: relative;
}
.site-header-fixed .nav-drop-menu {
  display: none;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
}
.site-header-fixed .nav-drop.is-open .nav-drop-menu {
  display: grid;
}
.site-header-fixed .nav-drop-menu .nav-drop-all {
  border-top: 1px solid var(--line);
  color: var(--brand);
}
@media (max-width: 1100px) {
  .site-header-fixed .site-header {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 48px);
    min-height: 60px;
  }
  .site-header-fixed .site-header-actions {
    gap: 14px;
  }
  .site-header-fixed .menu-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 0 0 4px;
    color: var(--header-text);
    background: none;
    border: 0;
    cursor: pointer;
  }
  .site-header-fixed .menu-toggle b {
    font-size: 12px;
    font-weight: 500;
  }
  .site-header-fixed .menu-toggle-icon {
    display: grid;
    gap: 5px;
    width: 21px;
  }
  .site-header-fixed .menu-toggle-icon i {
    display: block;
    height: 1.5px;
    width: 21px;
    background: currentColor;
    transition: transform 0.18s ease;
  }
  .site-header-fixed .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .site-header-fixed .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .site-header-fixed .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    background: var(--ink);
    border-bottom: 1px solid var(--header-line);
  }
  .site-header-fixed .site-nav.is-open {
    display: flex;
  }
  .site-header-fixed .site-nav > a,
  .site-header-fixed .nav-drop-toggle {
    min-height: 48px;
    font-size: 18px;
  }
  .site-header-fixed .site-nav > a::after {
    right: auto;
    width: 24px;
    bottom: 6px;
  }
  .site-header-fixed .nav-drop-menu {
    position: static;
    transform: none;
    margin: 8px 0;
  }
  body.public-menu-open {
    overflow: hidden;
  }
}
@media (max-width: 560px) {
  .site-header-fixed .site-header {
    width: calc(100% - 32px);
    min-height: 56px;
    gap: 10px;
  }
  .site-header-fixed .brand-logo {
    width: 124px;
    height: 36px;
  }
  .site-header-fixed .brand-caption {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  .site-header-fixed .site-header-actions {
    gap: 8px;
  }
  .site-header-fixed .nav-cta {
    padding: 0 12px;
    min-height: 36px;
    font-size: 12px;
  }
  .site-header-fixed .site-search,
  .site-header-fixed .site-search-toggle {
    width: 32px;
  }
  .site-header-fixed .menu-toggle b {
    display: none;
  }
  .site-header-fixed .menu-toggle {
    min-width: 32px;
    justify-content: center;
    padding: 0;
  }
  .site-header-fixed .site-nav {
    left: -16px;
    right: -16px;
    padding-inline: 20px;
    max-height: calc(100dvh - 56px);
  }
  .site-header-fixed .site-search input {
    top: calc(100% + 8px);
    right: 0;
  }
  .site-header-fixed .site-search-results {
    top: calc(100% + 60px);
    right: 0;
  }
}
@media (max-width: 360px) {
  .site-header-fixed .brand-logo {
    width: 112px;
    height: 33px;
  }
  .site-header-fixed .nav-cta {
    font-size: 11px;
    padding-inline: 10px;
  }
  .site-header-fixed .site-header-actions {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-fixed *,
  .site-header-fixed *::after {
    transition: none;
  }
}

/* A busca abre uma faixa contínua; o campo e os resultados compartilham a mesma largura. */
.site-header-fixed .site-search-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  max-height: calc(100dvh - 64px);
  overflow: auto;
}
.site-header-fixed .site-search.is-open .site-search-panel {
  display: block;
}
.site-header-fixed .site-search-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}
.site-header-fixed .site-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--header-text);
}
.site-header-fixed .site-search-field:focus-within {
  border-color: var(--ink);
}
.site-header-fixed .site-search .site-search-field input {
  position: static;
  flex: 1;
  width: 0;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  box-shadow: none;
  visibility: inherit;
}
.site-header-fixed .site-search-field input::placeholder {
  color: var(--muted, var(--ink));
}
.site-header-fixed .site-search-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.site-header-fixed .site-search .site-search-results {
  position: static;
  width: 100%;
  max-height: none;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-header-fixed .site-search-panel :is(a, button):focus-visible {
  outline-color: var(--ink);
}
@media (max-width: 1100px) {
  .site-header-fixed .site-search-panel {
    top: 60px;
    max-height: calc(100dvh - 60px);
  }
}
@media (max-width: 560px) {
  .site-header-fixed .site-search-panel {
    top: 56px;
    padding: 16px;
    max-height: calc(100dvh - 56px);
  }
}

.site-header-fixed .site-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.site-header-fixed .site-search-clear {
  flex: none;
  border: 0;
  padding: 8px;
  background: none;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.site-header-fixed .site-search-clear[hidden] {
  display: none;
}

.site-header-fixed .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:nth-child(2) {
  opacity: 0;
}

.site-header-fixed .nav-cta[data-pet-cart-link],
.site-header-fixed .nav-cta[data-gift-cart-link] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--header-text);
  border-radius: 0;
}
.site-header-fixed [data-pet-cart-count],
.site-header-fixed #quote-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 50%;
  background: var(--public-brand);
  color: var(--paper);
  font-size: 12px;
}

.site-header-fixed .site-nav a.nav-cta {
  background: var(--brand);
  color: var(--header-text);
  padding: 10px 16px;
  border-radius: 7px;
}

:root {
  --site-content-width: min(1440px, 80%);
}
.site-header-fixed .site-header {
  width: var(--site-content-width);
}
.site-header-fixed .site-nav {
  justify-self: center;
}
@media (max-width: 1100px) {
  :root {
    --site-content-width: calc(100% - 48px);
  }
}
@media (max-width: 780px) {
  :root {
    --site-content-width: min(560px, calc(100% - 32px));
  }
}

.site-header-fixed #nav-saiba-mais {
  left: 0;
  right: auto;
  transform: none;
}

html {
  scrollbar-gutter: stable;
}

.site-header-fixed .nav-cta .cart-label-short {
  display: none;
}
@media (max-width: 560px) {
  .site-header-fixed .nav-cta .cart-label-long {
    display: none;
  }
  .site-header-fixed .nav-cta .cart-label-short {
    display: inline;
  }
}

/* A ação principal abre junto ao menu no celular. */
.site-header-fixed .site-nav > .mobile-budget {
  display: none;
}
@media (max-width: 1100px) {
  .site-header-fixed .site-header-actions {
    margin-left: auto;
  }
  .site-header-fixed .site-header-actions > .nav-cta:not([data-pet-cart-link]) {
    display: none;
  }
  .site-header-fixed .site-nav {
    left: auto;
    right: 0;
    width: min(340px, calc(100vw - 32px));
    background: var(--header-bg, var(--ink));
    color: var(--header-text);
    border: 1px solid var(--header-line);
    border-radius: 0 0 12px 12px;
  }
  .site-header-fixed .site-nav > a,
  .site-header-fixed .nav-drop-toggle {
    color: var(--header-text);
  }
  .site-header-fixed .site-nav > .mobile-budget {
    display: flex;
    background: var(--brand);
    color: var(--header-text);
    padding-inline: 16px;
    margin-bottom: 8px;
    border-radius: 7px;
  }
  .site-header-fixed .site-nav > .mobile-budget::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .site-header-fixed .site-nav > .mobile-budget {
    gap: 8px;
    border: 1px solid var(--header-text);
    font-weight: 800;
  }
  .site-header-fixed .nav-drop {
    width: 100%;
  }
  .site-header-fixed .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .site-header-fixed .nav-drop-menu {
    padding: 6px;
    border: 1px solid var(--header-line);
    border-radius: 8px;
    margin: 6px 0 10px;
  }
  .site-header-fixed .nav-drop-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid var(--line);
    margin-block: 4px;
    text-decoration: none;
  }

  .site-header-fixed .nav-drop-menu a::after {
    content: "›";
    margin-left: 12px;
  }
}

/* Carrinho mantém ícone e contador nas telas mais estreitas. */
@media (max-width: 380px) {
  .site-header-fixed .nav-cta[data-pet-cart-link] .pet-cart-label {
    display: none;
  }
  .site-header-fixed .nav-cta[data-pet-cart-link] {
    gap: 6px;
    padding-inline: 6px;
    min-width: 44px;
  }
}
