.oa-product-nav {
  position: relative;
}

.oa-product-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  padding: 0.35rem 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.oa-product-nav__trigger:hover,
.oa-product-nav__trigger[aria-expanded="true"] {
  color: #fff;
}

.oa-product-nav__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 180ms ease;
}

.oa-product-nav__trigger[aria-expanded="true"] .oa-product-nav__chevron {
  transform: translateY(0.08rem) rotate(225deg);
}

.oa-product-nav__panel {
  position: fixed;
  z-index: 100;
  top: 5.25rem;
  left: 50%;
  width: min(50rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 1px solid rgba(210, 195, 152, 0.23);
  border-radius: 0.85rem;
  background: rgba(17, 17, 16, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.4rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.oa-product-nav[data-open="true"] .oa-product-nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.oa-product-nav__panel::before {
  position: absolute;
  top: -0.65rem;
  left: 0;
  width: 100%;
  height: 0.7rem;
  content: "";
}

.oa-product-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
}

.oa-product-nav__item {
  display: flex;
  min-height: 5.05rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  color: #f4f0e8;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.oa-product-nav__item:hover,
.oa-product-nav__item:focus-visible,
.oa-product-nav__item[aria-current="page"] {
  background: rgba(163, 145, 97, 0.13);
  color: #fff;
}

.oa-product-nav__item:focus-visible,
.oa-product-nav__trigger:focus-visible,
.oa-mobile-products__trigger:focus-visible,
.oa-mobile-products a:focus-visible {
  outline: 2px solid #d2c398;
  outline-offset: 3px;
}

.oa-product-nav__item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.oa-product-nav__item-copy {
  color: #aaa69c;
  font-size: 0.68rem;
  line-height: 1.45;
}

.oa-product-nav__badge {
  flex: 0 0 auto;
  color: #c9b882;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oa-mobile-products {
  width: min(22rem, calc(100vw - 3rem));
  margin-top: -1.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.oa-mobile-products[hidden] {
  display: none;
}

.oa-mobile-products__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  padding: 0.8rem 0.5rem;
  color: #d2c398;
  background: transparent;
  font: 400 1.8rem/1.25 "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.oa-product-header .oa-mobile-products {
  width: min(100%, 24rem);
  margin: 0;
}

.oa-product-header .oa-mobile-products__trigger {
  justify-content: center;
  color: #f2efe8;
  font: 400 1.65rem/1.25 "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}

.oa-mobile-products__list {
  display: grid;
  gap: 0.1rem;
  max-height: min(44svh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 0.55rem;
}

.oa-mobile-products__list[hidden] {
  display: none;
}

.oa-mobile-products__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.68rem 0.55rem;
  border-radius: 0.35rem;
  color: #e8e5de;
  font: 500 0.72rem/1.4 Inter, sans-serif;
  text-align: left;
  text-decoration: none;
}

.oa-mobile-products__list a:hover,
.oa-mobile-products__list a[aria-current="page"] {
  background: rgba(163, 145, 97, 0.13);
  color: #fff;
}

@media (max-width: 767px) {
  .oa-product-nav__desktop-panel {
    display: none !important;
  }

  #mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #oa-mobile-menu .oa-mobile-products__list a:last-child {
    width: auto;
    padding: 0.68rem 0.55rem;
    border-radius: 0.35rem;
    color: #e8e5de;
    background: transparent;
    font: 500 0.72rem/1.4 Inter, sans-serif;
    letter-spacing: normal;
    text-transform: none;
  }

  #mobile-menu > div {
    max-height: 100svh;
    overflow-y: auto;
    padding-block: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .oa-product-nav__panel {
    width: min(42rem, calc(100vw - 2rem));
  }

  .oa-product-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-product-nav__trigger,
  .oa-product-nav__chevron,
  .oa-product-nav__panel,
  .oa-product-nav__item {
    transition-duration: 0.01ms;
  }
}
