/* Stable dropdown navigation across every Cariama page. */
@media (max-width: 980px) {
  body .site-header,
  body .home-header.site-header,
  body .cariama-identity-header.site-header {
    overflow: visible !important;
    z-index: 9999 !important;
  }

  body .site-header.is-open,
  body .home-header.site-header.is-open,
  body .cariama-identity-header.site-header.is-open {
    border-bottom: 1px solid rgba(242, 194, 93, 0.55) !important;
    background: #004f31 !important;
    color: #fff4dc !important;
    box-shadow: 0 18px 48px rgba(0, 49, 29, 0.28) !important;
    backdrop-filter: none !important;
  }

  body .site-header .menu-toggle,
  body .home-header.site-header .menu-toggle,
  body .cariama-identity-header.site-header .menu-toggle {
    display: grid !important;
    place-items: center !important;
    color: #fff4dc !important;
  }

  body .site-header .menu-toggle span,
  body .home-header.site-header .menu-toggle span,
  body .cariama-identity-header.site-header .menu-toggle span,
  body .site-header.is-open .menu-toggle span {
    background: #fff4dc !important;
    opacity: 1 !important;
  }

  body .site-header.is-open .brand strong,
  body .site-header.is-open .brand small,
  body .cariama-identity-header.site-header.is-open .brand strong,
  body .cariama-identity-header.site-header.is-open .brand small {
    color: #fff4dc !important;
    opacity: 1 !important;
  }

  body .site-header .site-nav,
  body .home-header.site-header .site-nav,
  body .cariama-identity-header.site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    right: 12px !important;
    left: 12px !important;
    z-index: 10000 !important;
    display: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d7a33d !important;
    border-top: 4px solid #a93a3d !important;
    border-radius: 0 0 10px 10px !important;
    padding: 6px 14px 10px !important;
    background: #fff7e7 !important;
    box-shadow: 0 24px 58px rgba(0, 49, 29, 0.3) !important;
    color: #004f31 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  body .site-header.is-open .site-nav,
  body .home-header.site-header.is-open .site-nav,
  body .cariama-identity-header.site-header.is-open .site-nav {
    display: grid !important;
    animation: cariama-mobile-dropdown 220ms ease-out both;
  }

  body .site-header .site-nav a,
  body .home-header.site-header .site-nav a,
  body .cariama-identity-header.site-header .site-nav a {
    display: flex !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(0, 79, 49, 0.16) !important;
    padding: 0 10px !important;
    background: transparent !important;
    color: #004f31 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.055em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body .site-header .site-nav a[aria-current="page"] {
    color: #a93a3d !important;
  }

  body .site-header .site-nav a[aria-current="page"]::before {
    order: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7a33d;
    content: "";
  }

  body .site-header .site-nav a:last-child {
    border-bottom: 0 !important;
  }

  body .site-header .site-nav a::after {
    display: none !important;
  }

  /*
   * Mobile header controls stay in the header row in both languages:
   * language selector centered, cart immediately before the menu button.
   * The social/account shortcuts remain available on desktop only.
   */
  body .site-header .home-header-actions,
  body .home-header.site-header .home-header-actions,
  body .cariama-identity-header.site-header .home-header-actions,
  body .site-header.is-open .home-header-actions {
    display: contents !important;
  }

  body .site-header .home-header-actions > .header-icon-link:not(.header-cart-button),
  body .home-header.site-header .home-header-actions > .header-icon-link:not(.header-cart-button),
  body .cariama-identity-header.site-header .home-header-actions > .header-icon-link:not(.header-cart-button) {
    display: none !important;
  }

  body .site-header .header-cart-button,
  body .home-header.site-header .header-cart-button,
  body .cariama-identity-header.site-header .header-cart-button {
    position: absolute !important;
    z-index: 10002 !important;
    top: 50% !important;
    right: 72px !important;
    display: inline-flex !important;
    width: 34px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  body .site-header .header-cart-button > img,
  body .home-header.site-header .header-cart-button > img,
  body .cariama-identity-header.site-header .header-cart-button > img {
    width: 25px !important;
    height: 25px !important;
  }

  body .site-header .header-cart-button > span,
  body .home-header.site-header .header-cart-button > span,
  body .cariama-identity-header.site-header .header-cart-button > span {
    top: 0 !important;
    right: -1px !important;
  }

  body .site-header .cariama-language-switcher,
  body .home-header.site-header .cariama-language-switcher,
  body .cariama-identity-header.site-header .cariama-language-switcher {
    position: absolute !important;
    z-index: 10002 !important;
    top: 50% !important;
    left: 50% !important;
    display: inline-flex !important;
    gap: 6px !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  body .site-header .cariama-language-option,
  body .home-header.site-header .cariama-language-option,
  body .cariama-identity-header.site-header .cariama-language-option {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }

  body .site-header .cariama-language-option img,
  body .home-header.site-header .cariama-language-option img,
  body .cariama-identity-header.site-header .cariama-language-option img {
    width: 22px !important;
    height: 22px !important;
  }

  body .site-header .menu-toggle,
  body .home-header.site-header .menu-toggle,
  body .cariama-identity-header.site-header .menu-toggle {
    position: relative !important;
    z-index: 10003 !important;
    justify-self: end !important;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  body .home-header.site-header,
  body .cariama-identity-header.site-header {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body .site-header .header-cart-button,
  body .home-header.site-header .header-cart-button,
  body .cariama-identity-header.site-header .header-cart-button {
    right: 62px !important;
  }

  body .site-header .cariama-language-option,
  body .home-header.site-header .cariama-language-option,
  body .cariama-identity-header.site-header .cariama-language-option {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
  }

  body .site-header .cariama-language-option img,
  body .home-header.site-header .cariama-language-option img,
  body .cariama-identity-header.site-header .cariama-language-option img {
    width: 20px !important;
    height: 20px !important;
  }
}

@keyframes cariama-mobile-dropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
