/* ==========================================================================
   DABACO OIL — Modern Premium Header & Navigation
   Visual Direction: Premium FMCG / Editorial Food Brand / Clean / High-end
   Desktop: 78px height, sticky with blur on scroll
   Mobile: 66px height, slide-in offcanvas drawer
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 220ms ease,
              box-shadow 220ms ease,
              border-color 220ms ease;
}

/* The translucent fill + blur live on a pseudo-element: a backdrop-filter on
   .header itself would make it the containing block of the fixed mobile
   drawer/backdrop (drawer collapsed to the 66px header height once scrolled).
   Looks identical, drawer stays full height. */
.header.scrolled {
  background-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--bs-gutter-x, 0.75rem);
}

/* Right zone: navigation, then language, then search (logo is the left zone). */
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.75rem);
  margin-left: auto;
  min-width: 0;
}

/* --- Logo ----------------------------------------------------------------- */
.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.header-logo:hover {
  text-decoration: none;
}

.header-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}

/* --- Desktop Navigation --------------------------------------------------- */
/* 5 editorial items. Inline from 1200px: below that the long VI labels plus
   the action cluster do not fit, so 992–1199 keeps the drawer (toggle). */
.header-nav-wrapper {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.375rem;
  color: #4A4A47;
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-nav-item > a:hover {
  color: #1D1D1B;
  text-decoration: none;
}

.header-nav-item > a[aria-current="page"] {
  color: var(--dabaco-blue);
}

.header-nav-item > a:focus-visible {
  outline: 2px solid var(--dabaco-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Desktop Nav Dropdown ------------------------------------------------ */
.header-nav-item--has-dropdown {
  position: relative;
}

.header-nav-item--has-dropdown > .header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav-chevron {
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  color: #6B7280;
}

.header-nav-item--has-dropdown:hover .header-nav-chevron,
.header-nav-item--has-dropdown:focus-within .header-nav-chevron,
.header-nav-item--has-dropdown.is-open .header-nav-chevron {
  transform: rotate(180deg);
  color: var(--dabaco-orange);
}

.header-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 220ms;
  z-index: 1050;
}

/* Hover bridge: keeps dropdown open when cursor moves from nav item down to menu */
.header-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.header-nav-item--has-dropdown:hover .header-dropdown-menu,
.header-nav-item--has-dropdown:focus-within .header-dropdown-menu,
.header-nav-item--has-dropdown.is-open .header-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.header-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  color: #4A4A47;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 8px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.header-dropdown-item:hover,
.header-dropdown-item:focus-visible {
  background-color: rgba(241, 90, 41, 0.08);
  color: var(--dabaco-orange);
  text-decoration: none;
  transform: translateX(3px);
}

/* --- Header Actions ------------------------------------------------------- */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Search action button */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: #202124;
  cursor: pointer;
  border-radius: 50%;
  transition: all 200ms ease;
  text-decoration: none;
}

.header-search-btn:hover,
.header-search-btn[aria-current="page"] {
  color: var(--dabaco-orange);
  background-color: rgba(241, 90, 41, 0.07);
  border-color: rgba(241, 90, 41, 0.12);
  text-decoration: none;
}

.header-search-btn:focus-visible {
  outline: 2px solid var(--dabaco-blue);
  outline-offset: 2px;
}

/* Contact CTA Button (Header) */

/* --- Hamburger Toggle (Mobile only) --------------------------------------- */
.header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #FAFAFA;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  color: #202124;
  cursor: pointer;
  transition: all 200ms ease;
}

.header-toggle:hover {
  color: var(--dabaco-orange);
  background-color: #FFFFFF;
  border-color: var(--dabaco-orange);
}

/* --- Modern Mobile Drawer ------------------------------------------------- */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 27, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1035;
}

.header.mobile-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: #FFFFFF;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(29, 29, 27, 0.14);
}

.header.mobile-open .mobile-menu {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  color: #202124;
  cursor: pointer;
  transition: all 200ms ease;
}

.mobile-menu-close:hover {
  color: var(--dabaco-orange);
  background: rgba(241, 90, 41, 0.08);
  border-color: var(--dabaco-orange);
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  color: #202124;
  font-weight: 500;
  font-size: var(--fs-body);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 180ms ease;
}

.mobile-menu-arrow {
  color: #9CA3AF;
  transition: transform 180ms ease, color 180ms ease;
}

.mobile-menu-item > a:hover {
  color: var(--dabaco-orange);
  transform: translateX(3px);
}

.mobile-menu-item > a[aria-current="page"] {
  color: var(--dabaco-blue);
}

.mobile-menu-item > a[aria-current="page"] .mobile-menu-arrow {
  color: var(--dabaco-blue);
}

/* --- Mobile Menu Submenu Accordion ---------------------------------------- */
.mobile-menu-item--has-children {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-menu-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-item__row > .mobile-menu-link {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0.85rem 0.5rem;
  color: #202124;
  font-weight: 500;
  font-size: var(--fs-body);
  text-decoration: none;
  transition: all 180ms ease;
}

.mobile-menu-item__row > .mobile-menu-link:hover {
  color: var(--dabaco-orange);
  text-decoration: none;
}

.mobile-menu-item__row > .mobile-menu-link[aria-current="page"] {
  color: var(--dabaco-blue);
}

.mobile-menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
  flex-shrink: 0;
}

.mobile-menu-toggle-btn:hover {
  color: var(--dabaco-orange);
  background-color: rgba(241, 90, 41, 0.08);
}

.mobile-menu-chevron {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-item.is-open .mobile-menu-chevron,
.mobile-menu-toggle-btn[aria-expanded="true"] .mobile-menu-chevron {
  transform: rotate(180deg);
  color: var(--dabaco-orange);
}

.mobile-submenu-list {
  list-style: none;
  margin: 0.25rem 0.25rem 0.75rem 0.75rem;
  padding: 0.35rem 0.5rem;
  background-color: #F8F9FA;
  border-radius: 10px;
  border-left: 2px solid var(--dabaco-orange);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-submenu-list[hidden] {
  display: none !important;
}

.mobile-submenu-item {
  margin: 0;
  padding: 0;
}

.mobile-submenu-link {
  display: block;
  padding: 0.6rem 0.75rem;
  color: #4A4A47;
  font-size: var(--fs-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 160ms ease;
}

.mobile-submenu-link:hover {
  color: var(--dabaco-orange);
  background-color: rgba(241, 90, 41, 0.08);
  transform: translateX(3px);
  text-decoration: none;
}

/* ==========================================================================
   Language dropdown (compact: local flag + code + chevron).
   The desktop control lives in the topbar and uses the approved orange
   interactive treatment; the mobile drawer keeps its own white-surface styles.
   ========================================================================== */
.lang-flag-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.lang-flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 15px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-light);
}

.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-dd {
  position: relative;
  flex: 0 0 auto;
}

.lang-dd__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 28px;
    padding: 0 0.625rem;
    background-color: var(--dabaco-orange);
    border: none;
    border-radius: var(--radius-xs);
    color: #FFFFFF;
    font-family: inherit;
    font-size: var(--fs-small);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
    --bs-bg-opacity: 0.1;
}

.lang-dd__toggle:hover {
  background-color: var(--dabaco-orange-hover);
  border-color: var(--dabaco-orange-hover);
  color: var(--bg-white);
}

.lang-dd__toggle[aria-expanded="true"] {
  background-color: var(--dabaco-orange-active);
  border-color: var(--dabaco-orange-active);
  color: var(--bg-white);
}

.lang-dd__toggle:focus-visible {
  outline: 2px solid var(--bg-white);
  outline-offset: 2px;
}

.lang-dd__chevron {
  flex: 0 0 auto;
  color: currentColor;
  transition: transform 180ms ease;
}

.lang-dd__toggle[aria-expanded="true"] .lang-dd__chevron {
  transform: rotate(180deg);
}

.lang-dd .dropdown-menu.lang-dd__menu {
  --bs-dropdown-min-width: 11rem;
  --bs-dropdown-padding-x: 0.375rem;
  --bs-dropdown-padding-y: 0.375rem;
  --bs-dropdown-border-radius: var(--radius-sm);
  --bs-dropdown-border-color: var(--border-light);
  --bs-dropdown-box-shadow: var(--shadow-float);
  --bs-dropdown-bg: var(--bg-white);
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  max-width: calc(100vw - 2rem);
  margin: 0;
  overflow-x: hidden;
  z-index: 1050;
  box-shadow: var(--shadow-float);
}

.lang-dd .dropdown-menu.lang-dd__menu.show {
  animation: lang-dd-in 140ms ease-out;
}

@keyframes lang-dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-dd__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  color: var(--text-dark);
  font-size: var(--fs-small);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  text-decoration: none;
}

.lang-dd__item:hover,
.lang-dd__item:focus {
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
}

.lang-dd__item:focus-visible {
  outline: 2px solid var(--dabaco-blue-active);
  outline-offset: -2px;
}

/* Selected language: orange brand fill, contrasting text, check icon. */
.lang-dd .lang-dd__item[aria-current="true"] {
    background-color: var(--dabaco-blue);
    color: var(--bg-white);
    font-weight: 400;
}

.lang-dd .lang-dd__item[aria-current="true"]:hover,
.lang-dd .lang-dd__item[aria-current="true"]:focus {
  background-color: var(--dabaco-orange-hover);
  color: var(--bg-white);
}

.lang-dd .lang-dd__item[aria-current="true"]:focus-visible {
  outline-color: var(--dabaco-blue-active);
  outline-offset: 2px;
}

.lang-dd__check {
  flex: 0 0 auto;
  margin-left: auto;
  color: currentColor;
}

.header-search {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border-radius: 999px;
  margin: 0;
  transition: box-shadow 220ms ease;
}

.header-search__field {
  display: flex;
  align-items: center;
  width: var(--hs-w, 200px);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-width 260ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 200ms ease,
              visibility 0s linear 260ms;
}

.header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 0.25rem 0 0.125rem;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--do-text, #24302A);
  font-family: inherit;
  font-size: var(--fs-small);
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.header-search__input::placeholder {
  color: var(--do-text-muted, #68736C);
  opacity: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.header-search__input::-webkit-search-cancel-button,
.header-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.header-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--do-text-muted, #68736C);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.header-search__clear[hidden] {
  display: none;
}

.header-search__clear:hover {
  background-color: rgba(36, 48, 42, 0.07);
  color: var(--do-text, #24302A);
}

.header-search__clear:focus-visible {
  outline: 2px solid var(--dabaco-blue);
  outline-offset: 1px;
}

.header-search.is-open .header-search__field {
  max-width: var(--hs-w, 200px);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.header-search.is-open .header-search-btn {
  background-color: transparent;
  border-color: transparent;
}

/* >=1200px: enough room, the nav simply glides left as the field grows. */

/* <1200px (drawer range incl. tablets): the field is its own row directly under
   the header bar. It overlays the page (absolute against the sticky .header),
   so nothing below moves and --header-height consumers are unaffected. */

.mobile-menu-lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--do-border, #DDD8CC);
  list-style: none;
}

.mobile-menu-lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  color: var(--text-dark);
  font-size: var(--fs-body);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.mobile-menu-lang-switcher__item:hover,
.mobile-menu-lang-switcher__item:focus {
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
}

.mobile-menu-lang-switcher__item:focus-visible {
  outline: 2px solid var(--dabaco-blue-active);
  outline-offset: -2px;
}

.mobile-menu-lang-switcher__item[aria-current="true"],
.mobile-menu-lang-switcher__item[aria-current="true"]:hover,
.mobile-menu-lang-switcher__item[aria-current="true"]:focus {
  background-color: var(--dabaco-blue-active);
  color: var(--bg-white);
  font-weight: var(--font-weight-semibold);
}

.mobile-menu-lang-switcher__item[aria-current="true"]:focus-visible {
  outline-color: var(--bg-white);
}

.mobile-menu-lang-switcher__label {
  flex: 1 1 auto;
}

.mobile-menu-lang-switcher__check {
  flex: 0 0 auto;
  color: currentColor;
}

/* ==========================================================================
   Top bar (2026-10-06) — thin info strip ABOVE the sticky main header.
   Not sticky (it scrolls away), so the main header, --header-height and every
   sticky/scroll-margin offset are untouched. Contact and desktop language control.
   Height: 34px (>=768), 30px (<768). No shadow, gradient or animation.
   ========================================================================== */
.topbar {
    position: relative;
    z-index: 1045;
    overflow: visible;
    background-color: var(--dabaco-blue);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--fs-small); /* 12.5px */
    line-height: 1;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: calc(var(--topbar-height, 31px) - 1px); /* 30px mobile / 34px from 768px; -1px = the border */
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--bs-gutter-x, 0.75rem); /* same gutters as Bootstrap container and .header-inner */
  overflow: visible;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.topbar-inner > .lang-dd,
.topbar-actions {
  margin-left: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar .topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 3px;
  line-height: 1;
}

.topbar .topbar-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}

.topbar-social-link svg {
  display: block;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.28);
  display: inline-block;
}

.topbar-label {
  color: var(--bg-white);
}

.topbar a {
  color: var(--bg-white);
  font-weight: 400;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--bg-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar a:focus-visible {
  outline: 2px solid var(--bg-white);
  outline-offset: 2px;
  border-radius: 3px;
}

/* The desktop topbar and its desktop dropdown are mutually exclusive with
   the mobile header/drawer treatment at the existing 1200px split. */

/* Email yields below desktop; the hotline stays (tablet / mobile). */
.lang-dd__menu li a {
    color: var(--text-dark);
}

    .lang-dd__menu li a:hover {
        color: var(--text-dark);
    }

.header-dropdown-menu,
.header-dropdown-list {
  overflow: visible;
}

.header-dropdown-entry {
  position: relative;
}

.header-flyout {
  position: absolute;
  left: calc(100% + 0.35rem);
  top: -8px;
  min-width: 240px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 220ms;
  z-index: 1051;
}

.header-flyout::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -18px;
  width: 18px;
}

.header-dropdown-entry--has-products:hover > .header-flyout,
.header-dropdown-entry--has-products:focus-within > .header-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.header-flyout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-flyout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  color: #4A4A47;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 8px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.header-flyout-item:hover,
.header-flyout-item:focus-visible {
  background-color: rgba(241, 126, 33, 0.08);
  color: var(--dabaco-orange);
  text-decoration: none;
}

.header-dropdown-entry > .header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-dropdown-caret {
  margin-left: auto;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .header-flyout,
  .header-flyout-item {
    transition: none;
  }
}
