/* Header and footer shared by the home page and internal pages. */
.header.reference-header {
  position: sticky;
  z-index: 40;
  top: 0;
  padding: 28px 40px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.reference-home .header.reference-header {
  margin-bottom: -79px;
}

.ref-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 51px;
  padding: 0 clamp(20px, 2.6vw, 40px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 12px #2b102019;
  color: #1b252f;
  font: 600 14px/1.4 var(--body);
}

.ref-header-navigation, .ref-desktop-nav, .ref-header-actions {
  display: flex;
  align-items: center;
}

.ref-header-navigation {
  min-width: 0;
  gap: clamp(14px, 1.6vw, 24px);
}

.ref-logo {
  display: block;
  flex: none;
  width: 122px;
}

.ref-logo img {
  width: 100%;
  height: auto;
}

.ref-desktop-nav, .ref-dropdown ul, .ref-mobile-menu ul, .ref-footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-desktop-nav {
  gap: clamp(12px, 1.25vw, 19px);
  white-space: nowrap;
}

.ref-desktop-nav > li {
  display: flex;
  align-items: center;
}

.ref-desktop-nav > li > a {
  position: relative;
}

.ref-desktop-nav > li > a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease-out;
}

.ref-desktop-nav > li > a:hover::after,
.ref-desktop-nav > li > a:focus-visible::after {
  transform: scaleX(1);
}

.ref-nav-toggle, .ref-header-action, .ref-mobile-trigger, .ref-mobile-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
}

.ref-nav-toggle {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
}

.ref-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .23s ease;
}

.ref-nav-toggle[aria-expanded="true"] .ref-chevron,
.ref-footer-group details[open] .ref-chevron,
.ref-mobile-item details[open] .ref-chevron {
  transform: translateY(2px) rotate(225deg);
}

.ref-dropdown {
  position: absolute;
  z-index: 1;
  top: calc(100% + 10px);
  left: 50%;
  width: min(620px, calc(100% - 24px));
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 35px #2b102027;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity .25s ease-out, transform .25s ease-out, visibility .25s;
}

.ref-dropdown[inert] {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -14px);
}

.ref-dropdown p {
  margin-bottom: 12px;
  color: var(--brand);
  font-weight: 700;
}

.ref-dropdown ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  white-space: normal;
}

.ref-dropdown a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.ref-dropdown a:hover {
  color: var(--brand);
}

.ref-header-actions {
  flex: none;
  gap: 12px;
}

.ref-header-action {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  transition: background-color .16s ease, transform .16s ease;
}

.ref-header-action:hover, .ref-desktop-search {
  background: #f5f5f5;
}

.ref-header-action:hover {
  transform: scale(1.04);
}

.ref-header-account {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 21px;
  background: #fafafa;
  color: var(--brand-dark);
  font-size: 15px;
  transition: background-color .16s ease;
}

.ref-header-account:hover {
  background: var(--wash);
}

.ref-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 21px;
  height: 21px;
}

.ref-icon::before, .ref-icon::after {
  position: absolute;
  content: "";
}

.ref-icon-search::before {
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.ref-icon-search::after {
  top: 15px;
  left: 14px;
  width: 7px;
  height: 1.6px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left;
}

.ref-icon-pin::before {
  top: 3px;
  left: 4px;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.ref-icon-pin::after {
  top: 7px;
  left: 8px;
  width: 5px;
  height: 5px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.ref-icon-person::before {
  top: 2px;
  left: 7px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.ref-icon-person::after {
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 2px 2px;
}

.ref-icon-bag::before {
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.ref-icon-bag::after {
  top: 2px;
  left: 7px;
  width: 7px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.ref-icon-menu {
  width: 24px;
  background: linear-gradient(currentColor, currentColor) 0 10px / 17px 1.5px no-repeat;
}

.ref-icon-menu::before, .ref-icon-menu::after {
  left: 0;
  height: 1.5px;
  background: currentColor;
}

.ref-icon-menu::before {
  top: 5px;
  width: 21px;
}

.ref-icon-menu::after {
  top: 15px;
  width: 21px;
}

.ref-mobile-start, .utility.ref-mobile-search {
  display: none;
}

#rodape.reference-footer {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 56px 40px 40px;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #440e23;
  color: #fff;
}

.ref-footer-inner {
  position: relative;
}

.ref-footer-top {
  display: grid;
  grid-template-columns: minmax(150px, .82fr) minmax(0, 3.1fr);
  gap: clamp(22px, 3vw, 44px);
}

.ref-footer-logo {
  display: flex;
  align-items: center;
  width: 118px;
  min-height: 65px;
}

.ref-footer-logo img, .ref-footer-seal img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.ref-footer-brand > p {
  margin-top: 16px;
  color: #f7bbd0;
  font-size: 14px;
  line-height: 22px;
}

.ref-footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .93fr);
  gap: 18px;
  padding-top: 8px;
}

.ref-footer-group h2, .ref-footer-group summary {
  font: 700 11px/16px var(--body);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #f7cfdf;
}

.ref-footer-group h2 {
  margin-bottom: 22px;
  text-wrap: unset;
}

.ref-footer-group summary {
  display: none;
  list-style: none;
}

.ref-footer-group summary::-webkit-details-marker,
.ref-mobile-item summary::-webkit-details-marker {
  display: none;
}

.ref-footer-group li + li {
  margin-top: 14px;
}

.ref-footer-group a, .ref-footer-group button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffe;
  text-align: left;
  font: 500 14px/22px var(--body);
  overflow-wrap: anywhere;
}

.ref-footer-group a:hover, .ref-footer-group button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ref-footer-seal {
  position: absolute;
  bottom: -17px;
  left: 50%;
  width: 88px;
  transform: translateX(-50%);
}

.ref-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  color: #fff9;
  font: 500 14px/22px var(--body);
}

@media (max-width: 1279px) {
  .ref-header-bar {
    display: grid;
    grid-template-columns: minmax(62px, 1fr) auto minmax(62px, 1fr);
    gap: 8px;
    padding-inline: 16px;
  }

  .ref-header-navigation {
    justify-content: center;
  }

  .ref-logo {
    width: clamp(110px, 36vw, 150px);
  }

  .ref-header-actions {
    justify-content: flex-end;
    gap: 7px;
  }

  .ref-mobile-start {
    display: block;
  }

  .ref-mobile-trigger {
    gap: 8px;
    padding: 0;
    color: #1b252f;
    font-size: 14px;
  }

  .ref-desktop-nav {
    display: none;
  }
}

@media (max-width: 1023px) {
  .header.reference-header {
    padding: 0;
    background: #fff;
  }

  .reference-home .header.reference-header {
    margin-bottom: 0;
  }

  .ref-header-bar {
    border-radius: 0;
  }

  .ref-desktop-search, .ref-header-account {
    display: none;
  }

  .utility.ref-mobile-search {
    display: block;
    padding: 12px 10px;
    background: #fff;
  }

  .ref-mobile-search button {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: #f5f5f5;
    font: 500 14px/1.4 var(--body);
  }

  #rodape.reference-footer {
    padding-inline: 24px;
  }

  .ref-footer-top {
    display: block;
  }

  .ref-footer-groups {
    display: block;
    padding-top: 40px;
  }

  .ref-footer-group {
    border-bottom: 1px solid #fff3;
  }

  .ref-footer-group h2 {
    display: none;
  }

  .ref-footer-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    cursor: pointer;
  }

  .ref-footer-group ul {
    padding-bottom: 24px;
  }

  .ref-footer-seal {
    position: static;
    display: grid;
    width: 88px;
    min-height: 77px;
    align-items: center;
    margin: 32px auto;
    transform: none;
  }

  .ref-footer-bottom {
    display: grid;
    gap: 8px;
    margin-top: 0;
    font-size: 15px;
  }
}

#painel:has(.ref-mobile-menu) {
  inset: 0 auto 0 0;
  width: min(390px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
}

#painel[open]:has(.ref-mobile-menu) {
  animation: ref-drawer-in .25s ease-out both;
}

#painel:has(.ref-mobile-menu) .sheet {
  position: relative;
  padding: 67px 20px 20px;
}

#painel:has(.ref-mobile-menu) .sheet-heading {
  align-items: center;
}

#painel:has(.ref-mobile-menu) .sheet-heading h2 {
  font: 700 22px/1.4 var(--body);
  letter-spacing: 0;
}

#painel:has(.ref-mobile-menu) .sheet-heading [data-close] {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
}

.ref-mobile-brand {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 138px;
}

.ref-mobile-item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.ref-mobile-item > a {
  display: block;
  min-height: 54px;
  padding: 16px 50px 16px 0;
  font-weight: 700;
}

.ref-mobile-item summary {
  position: absolute;
  top: 7px;
  right: 0;
  display: grid;
  width: 42px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--wash);
  color: var(--brand);
  list-style: none;
  cursor: pointer;
}

.ref-mobile-item details ul {
  padding: 0 12px 15px;
}

.ref-mobile-item details a {
  display: block;
  padding: 8px 0;
  color: var(--brand);
  font-size: 14px;
}

@keyframes ref-drawer-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.ref-privacy {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 50;
  display: flex;
  width: min(400px, calc(100% - 40px));
  min-height: 214px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 24px #30101b21;
  font: 500 14px/1.45 var(--body);
  animation: ref-privacy-in .3s ease-out both;
  transition: transform .3s ease, opacity .3s ease;
}

.ref-privacy[hidden] {
  display: none;
}

.ref-privacy.is-closing {
  animation: none;
  transform: translateX(100%);
  opacity: 0;
}

.ref-privacy-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref-privacy-heading h2 {
  color: var(--brand);
  font: 700 17px/1.4 var(--body);
  letter-spacing: 0;
  text-wrap: unset;
}

.ref-icon-privacy {
  width: 32px;
  height: 32px;
  color: var(--brand);
  border-radius: 50%;
  background: var(--wash);
}

.ref-icon-privacy::before {
  top: 7px;
  left: 7px;
  width: 18px;
  height: 18px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.ref-icon-privacy::after {
  top: 12px;
  left: 12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 6px 2px currentColor, 2px 7px currentColor;
}

.ref-privacy p > a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ref-privacy-actions {
  display: grid;
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.ref-privacy-actions button {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font: 700 13px/1.3 var(--body);
  transition: background-color .2s ease, color .2s ease;
}

.ref-privacy-actions button:hover {
  background: var(--wash);
}

.ref-privacy-actions button:last-child {
  background: var(--brand-dark);
  color: #fff;
}

.ref-privacy-actions button:last-child:hover {
  background: var(--brand);
}

@keyframes ref-privacy-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
  .ref-privacy {
    min-height: 236px;
  }

  .ref-privacy-heading h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-dropdown, .ref-chevron, .ref-desktop-nav > li > a::after {
    transition: none;
  }

  #painel[open]:has(.ref-mobile-menu), .ref-privacy {
    animation: none;
  }

  .ref-privacy {
    transition: none;
  }
}
