.mega-menu {
  position: static;
}
.mega-menu__content {
  background-color: rgb(var(--color-background));
  position: absolute;
  top: 100%;

  max-width: 1280px;  
  width: 90vw; 
  left: 50%;
  transform: translateX(-50%);
  
  overflow-y: auto;
  padding-bottom: 2rem; 
  padding-top: 2rem;   
  
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.shopify-section-header-sticky .mega-menu__content {
  max-height: calc(100vh - var(--header-bottom-position-desktop, 20rem) - 4rem);
}

.header-wrapper--border-bottom .mega-menu__content {
  border-top: 0;
}

/*.js .mega-menu__content {
  opacity: 0;
  transform: translateY(-1.5rem);
}

.mega-menu[open] .mega-menu__content {
  opacity: 1;
  transform: translateY(0);
}
*/
.mega-menu__list {
  display: grid;
  gap: 1rem 2rem; /* 调整一下间距，使其更紧凑 */
  grid-template-columns: repeat(4, 1fr); /* 关键修改：从6列改为4列 */
  list-style: none;
  padding: 0 1.5rem; /* 在列表两边增加一点内边距，防止内容贴边 */
}
.mega-menu__link {
  color: rgba(var(--color-foreground), 0.75);
  display: block;
  line-height: calc(1 + 0.3 / var(--font-body-scale));
  padding-bottom: 0.6rem;
  padding-top: 0.6rem;
  text-decoration: none;
  transition: -webkit-text-decoration var(--duration-short) ease;
  transition: text-decoration var(--duration-short) ease;
  transition: text-decoration var(--duration-short) ease, -webkit-text-decoration var(--duration-short) ease;
  word-wrap: break-word;

}

#HeaderMenu-gift-finder{
    color: #910F3F;
    display: flex;
    gap: 4px;
}

#HeaderMenu-gift-finder:before {
    content: url(gift-finder-f777936a07.svg);
    width: 20px;
    height: 20px;
}

.header__inline-menu li {
    	padding: 0px 10px;
    }
.mega-menu__link--level-2 {
  font-weight: bold;
}

.header--top-center .mega-menu__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  -moz-column-gap: 0;
       column-gap: 0;
}

.header--top-center .mega-menu__list > li {
  width: 16%;
  padding-right: 2.4rem;
}


.mega-menu__link:hover,
.mega-menu__link--active {
  color: rgb(var(--color-foreground));
  text-decoration: underline;
}

.mega-menu__link--active:hover {
  text-decoration-thickness: 0.2rem;
}

.mega-menu .mega-menu__list--condensed {
  display: block;
}

.mega-menu__list--condensed .mega-menu__link {
  font-weight: normal;
}

/* 确保下拉菜单的层级最高 */
.mega-menu__content {
  z-index: 100;
}