/* Shop stays inside the existing Modern Original header. */
.modern-nav .shop-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shop-nav-dropdown > .shop-nav-dropdown__summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  list-style: none;
  white-space: nowrap;
}

.shop-nav-dropdown > .shop-nav-dropdown__summary::-webkit-details-marker { display: none; }
.shop-nav-dropdown > .shop-nav-dropdown__summary::marker { content: ""; }
.shop-nav-dropdown > .shop-nav-dropdown__summary:hover,
.shop-nav-dropdown[aria-current="page"] > .shop-nav-dropdown__summary,
.shop-nav-dropdown > .shop-nav-dropdown__summary[aria-current="page"] {
  color: var(--modern-icon-blue, var(--brand, #2b78a5));
}

.shop-nav-dropdown__chevron {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.shop-nav-dropdown[open] > .shop-nav-dropdown__summary .shop-nav-dropdown__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.shop-nav-dropdown__panel {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 9px);
  right: -12px;
  display: grid;
  width: min(286px, calc(100vw - 32px));
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border, #d6dce1);
  border-radius: var(--modern-radius, 12px);
  background: var(--surface, #fff);
  box-shadow: 0 16px 42px #07162424;
  color: var(--text, #182735);
}

.shop-nav-dropdown__group,
.shop-nav-dropdown__primary { display: grid; gap: 3px; }
.shop-nav-dropdown__group + .shop-nav-dropdown__group { padding-top: 8px; border-top: 1px solid var(--border, #d6dce1); }
.shop-nav-dropdown__heading {
  padding: 3px 10px 5px;
  color: var(--muted, #687681);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.shop-nav-dropdown__panel a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.shop-nav-dropdown__panel a:hover,
.shop-nav-dropdown__panel a:focus-visible {
  outline: none;
  background: var(--soft, #f2f5f7);
  color: var(--modern-icon-blue, var(--brand, #2b78a5));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

/* The header underline is positioned for full-height nav links. */
.modern-nav .shop-nav-dropdown__panel a::after {
  content: none;
}

.shop-nav-dropdown__panel .shop-nav-dropdown__link--featured {
  min-height: 46px;
  justify-content: space-between;
  padding: 10px 13px;
  background: var(--navy, #142d40);
  color: var(--on-dark, #fff);
  font-size: 14px;
}
.shop-nav-dropdown__panel .shop-nav-dropdown__link--featured::before {
  content: "→";
  order: 1;
  color: var(--brand-on-dark, #9fd3ec);
  font-size: 18px;
}
.shop-nav-dropdown__panel .shop-nav-dropdown__link--featured:hover,
.shop-nav-dropdown__panel .shop-nav-dropdown__link--featured:focus-visible {
  background: var(--dark-panel, #203e52);
  color: #fff;
}

.shop-nav-dropdown :is(summary, a):focus-visible {
  outline: 3px solid var(--modern-icon-blue, var(--accent, #3b88b0));
  outline-offset: 3px;
}

/* The existing mobile menu remains the only mobile navigation panel. */
.modern-mobile-links .shop-nav-dropdown {
  position: static;
  display: block;
  width: 100%;
}
.modern-mobile-links .shop-nav-dropdown > .shop-nav-dropdown__summary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
  padding: 0;
}
.modern-mobile-links .shop-nav-dropdown__panel {
  position: static;
  width: auto;
  gap: 4px;
  margin: 0 0 8px;
  padding: 7px;
  border: 1px solid var(--border, #d6dce1);
  border-radius: 8px;
  background: var(--soft, #f4f6f7);
  box-shadow: none;
}
.modern-mobile-links .shop-nav-dropdown__panel a { min-height: 42px; }

@media (prefers-reduced-motion: reduce) {
  .shop-nav-dropdown__chevron { transition: none; }
}
