.design-v8.product-page:has(acrescenta-product-experience[data-view=offer]) .site-header {
  position: sticky;
  inset: 0 0 auto;
}

.design-v8 .site-header {
  --navigation-gutter: max(48px, calc((100% - 1280px) / 2));
}

.design-v8:not(.technology-login) .site-header:has(.header-products[open], #navegacao[data-open])::before {
  opacity: 1;
}

.header-products > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 9px;
  margin-inline: -9px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.header-products > summary::-webkit-details-marker { display: none; }
.header-products[open] > summary,
.header-products > summary:hover { color: var(--ac-lime); }

.header-products svg, .header-return svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-products > summary svg { transition: transform 180ms ease; }
.header-products[open] > summary svg { transform: rotate(180deg); }

.header-products-panel {
  position: absolute;
  inset: 100% var(--navigation-gutter) auto auto;
  width: min(670px, calc(100vw - 2 * var(--navigation-gutter)));
  max-height: calc(100dvh - var(--platform-header-height) - 14px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  color: var(--ac-petrol);
  background: var(--ac-cream);
  border: 1px solid #182d342e;
  border-top: 3px solid var(--ac-lime);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 22px 48px #081a2466;
}

.header-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.header-products-heading > p { margin: 0; color: #526a6e; font-size: 13px; font-weight: 650; }
.header-products-panel a { text-decoration: none; }
.header-products-heading > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--ac-lime);
  font-size: 13px;
  font-weight: 750;
}

.header-products-heading > a:hover { background: #c6e660; }
.header-products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-products-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid #182d341a;
  border-radius: 9px;
  background: #fffdf7;
  font-size: 13px;
  line-height: 1.35;
  transition: background 180ms ease, border-color 180ms ease;
}

.header-products-list a:hover, .header-products-list a[aria-current="page"] {
  background: #eaf2cc;
  border-color: #7b934e;
}

.header-products-list strong { font-size: 14px; font-weight: 750; }
.header-products-list a > span { grid-row: 2; color: #475e62; }
.header-products-list svg { grid-column: 2; grid-row: 1 / 3; }
.design-v8 .site-header .header-products-panel a:focus-visible { outline: 2px solid #4f661c; outline-offset: 2px; }
.design-v8 .site-header .menu-toggle > span { transition: transform 180ms ease; }
.design-v8 .site-header .menu-toggle[aria-expanded="true"] > span { transform: rotate(45deg); }
.design-v8 .site-header .header-context-link { max-width: 27ch; text-wrap: balance; }
.catalog-shortcut { display: flex; justify-content: center; margin-top: clamp(18px, 3vw, 36px); }

.technology-login .site-header .header-products > summary {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgb(245 243 235 / .52);
  border-radius: 999px;
  background: rgb(11 33 41 / .66);
  font-size: 13px;
}

.technology-login .site-header #navegacao { flex-direction: row; align-items: center; gap: 10px; }

.technology-login .site-header .header-products-panel {
  --navigation-gutter: 0px;
  top: calc(100% + 10px);
  width: min(670px, 100%);
  border-radius: 14px;
}

.technology-login .site-header .header-return { gap: 5px; }

@media (max-width: 1150px) {
  .design-v8 .site-header { --navigation-gutter: 32px; }
}

@media (max-width: 1000px) {
  .design-v8:not(.technology-login) .site-header #navegacao[data-open] {
    inset-inline: var(--navigation-gutter);
    width: auto;
    max-height: calc(100dvh - var(--platform-header-height) - 14px);
    padding: 14px;
    overscroll-behavior: contain;
  }

  .design-v8:not(.technology-login) .site-header .header-products > summary {
    margin: 0;
    padding-inline: 10px;
    border: 1px solid #f5f3eb40;
  }

  .design-v8:not(.technology-login) .site-header .header-products-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 7px;
    padding: 10px;
    overflow: visible;
    border-radius: 11px;
    box-shadow: none;
  }

  .design-v8:not(.technology-login) .site-header #navegacao[data-open] > a:not(.flow) {
    max-width: none;
    padding-inline: 10px;
  }
}

@media (max-width: 900px) {
  .technology-login .site-header #navegacao { gap: 6px; }
  .technology-login .site-header .header-return { justify-content: center; width: 44px; padding: 0; }
  .technology-login .site-header .header-return > span { display: none; }
}

@media (max-width: 740px) {
  .design-v8 .site-header { --navigation-gutter: 16px; }
  .header-products-list { grid-template-columns: 1fr; }
  .header-products-heading { display: block; margin-bottom: 8px; }
  .header-products-heading > p { display: none; }
  .header-products-list a { min-height: 53px; }
  .technology-login .site-header .header-products-panel { padding: 11px; }
}

@media (max-width: 359px) {
  .technology-login .site-header .header-products > summary { padding-inline: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .header-products[open] > .header-products-panel { animation: products-drawer-in 180ms ease-out both; }
}

body[data-motion-state="paused"] .header-products-panel { animation: none; }

@keyframes products-drawer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
