@charset "UTF-8";
/* 메가메뉴와 장바구니 레이어 (common/megaMenu.jsp) */

#agn .agn-flyout {
  position: absolute;
  top: var(--agn-height);
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  background: var(--agn-bg-open);
  transition: max-height 0.32s var(--agn-ease), visibility 0.32s step-end;
}

#agn .agn-flyout.is-open {
  max-height: 720px;
  visibility: visible;
  transition: max-height 0.32s var(--agn-ease), visibility 0s;
}

#agn .agn-flyout-content {
  display: flex;
  gap: 0;
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 22px 84px 50px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.24s var(--agn-ease), transform 0.24s var(--agn-ease);
}

#agn .agn-flyout.is-open .agn-flyout-content {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

#agn .agn-group {
  min-width: 128px;
  padding-right: 44px;
}

#agn .agn-group-elevated {
  min-width: 260px;
  padding-right: 88px;
}

#agn .agn-group-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--agn-muted);
}

#agn .agn-group-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: #333336;
}

#agn .agn-group-list-elevated a {
  padding: 3px 0 7px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
}

#agn .agn-group-list-more:not(:empty) {
  margin-top: 14px;
}

#agn .agn-group-list a:hover {
  color: var(--agn-text-strong);
}

/* 장바구니 레이어 */
#agn .agn-bag-content {
  display: block;
}

#agn .agn-bag-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
  color: #333336;
}

/* 담긴 제품이 있을 때: 제목 + 장바구니 확인 버튼, 제품 사진·이름 목록 */
#agn .agn-bag-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
#agn .agn-bag-title-has { margin: 0; }
#agn .agn-bag-review { padding: 9px 16px; border-radius: 980px; background: #0071e3; color: #fff; font-size: 14px; font-weight: 400; text-decoration: none; }
#agn .agn-bag-review:hover { background: #0077ed; color: #fff; }
#agn .agn-bag-products { margin: 0 0 44px; padding: 0; list-style: none; }
#agn .agn-bag-products a { display: flex; align-items: center; gap: 22px; padding: 8px 0; font-size: 12px; font-weight: 600; color: #333336; text-decoration: none; }
#agn .agn-bag-products a:hover { color: #0066cc; }
#agn .agn-bag-thumb { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: none; }
#agn .agn-bag-thumb img { max-width: 64px; max-height: 64px; object-fit: contain; }
#agn .agn-bag-more-items { margin: -30px 0 40px; font-size: 12px; }
#agn .agn-bag-more-items a { color: #0066cc; }

#agn .agn-bag-shop {
  margin-bottom: 40px;
  font-size: 14px;
}

#agn .agn-bag-shop a {
  color: #0066cc;
  text-decoration: underline;
}

#agn .agn-bag-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #333336;
}

#agn .agn-bag-links a:hover {
  color: #0066cc;
}

#agn .agn-bag-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 833px) {
  #agn .agn-flyout-content {
    flex-direction: column;
    gap: 32px;
    padding: 24px 48px 48px;
  }

  #agn .agn-group,
  #agn .agn-group-elevated {
    min-width: 0;
    padding-right: 0;
  }

  /* 작은 화면에서는 메뉴 이름을 누르면 해당 메뉴 페이지로 바로 이동 */
  #agn .agn-flyout:not(.agn-flyout-search):not(.agn-flyout-bag) {
    display: none;
  }
}
