body.fixed {
  overflow: hidden;
  height: 100%;
}

/* Mega menu - 동양생명식 컬럼 드롭다운 */
header.mega_header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
header.mega_header .inner {
  height: 100%;
  max-width: 1200px;
}
header.mega_header .group_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}
header.mega_header .logo_box .link_logo {
  font-size: 20px;
  font-weight: 700;
  color: #1f6f63;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
header.mega_header .gnb_pc {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
  justify-content: center;
  gap: 0;
}
header.mega_header .gnb_pc .gnb_item {
  position: static;
  height: 100%;
}
header.mega_header .gnb_pc .gnb_item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.4px;
  border-bottom: 3px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
}
header.mega_header .gnb_pc .gnb_item:hover > a,
header.mega_header .gnb_pc .gnb_item.on > a,
header.mega_header .gnb_pc .gnb_item > a.active {
  color: #1f6f63;
  border-bottom-color: #1f6f63;
}
header.mega_header #btn_form {
  height: 40px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: #1f6f63;
  border: 1px solid #1f6f63;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
header.mega_header #btn_form:hover {
  background: #fff;
  color: #1f6f63;
}

/* Mega panel */
.mega_panel {
  position: absolute;
  left: 0;
  top: 72px;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  z-index: 499;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  /* 패널 바깥(좌우 여백)은 마우스 통과 → 메인으로 내릴 때 빨리 닫힘 */
  pointer-events: none;
}
header.mega_header.is-mega-open .mega_panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* 실제 상품 목록 영역만 마우스 인식 → 열 간 이동 시 유지 */
header.mega_header.is-mega-open .mega_panel .mega_inner {
  pointer-events: auto;
}
.mega_panel .mega_inner {
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 80px);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 28px 0 32px;
  pointer-events: none;
}
.mega_panel .mega_col {
  padding: 0 14px;
  border-left: 1px solid #eee;
  min-width: 0;
}
.mega_panel .mega_col:first-child {
  border-left: none;
  padding-left: 0;
}
.mega_panel .mega_col:last-child {
  padding-right: 0;
}
.mega_panel .mega_col_title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.mega_panel .mega_col_title:hover {
  color: #1f6f63;
}
.mega_panel .mega_prod_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega_panel .mega_prod_list li {
  margin-bottom: 8px;
}
.mega_panel .mega_prod_list a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #555;
  line-height: 1.45;
  letter-spacing: -0.4px;
  word-break: keep-all;
}
.mega_panel .mega_prod_list a:hover {
  color: #1f6f63;
  text-decoration: underline;
}

/* Mobile toggle */
header.mega_header .menu_wrap {
  display: none;
  width: 24px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
header.mega_header .menu_wrap img {
  width: 100%;
  display: block;
}
header.mega_header .menu_wrap .btn_close {
  display: none;
}
header.mega_header .menu_wrap.toggle-btn .btn_open {
  display: none;
}
header.mega_header .menu_wrap.toggle-btn .btn_close {
  display: block;
}

.gnb_mo_mega {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 498;
}
header.mega_header.on .gnb_mo_mega {
  display: block;
}
.gnb_mo_mega .mo_cat {
  border-bottom: 1px solid #eee;
}
.gnb_mo_mega .mo_cat_btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.gnb_mo_mega .mo_cat_btn::after {
  content: '+';
  font-weight: 400;
  color: #888;
}
.gnb_mo_mega .mo_cat.open .mo_cat_btn::after {
  content: '−';
}
.gnb_mo_mega .mo_cat_btn:hover,
.gnb_mo_mega .mo_cat.open .mo_cat_btn {
  color: #1f6f63;
}
.gnb_mo_mega .mo_prod_list {
  display: none;
  padding: 0 24px 14px;
  list-style: none;
  margin: 0;
}
.gnb_mo_mega .mo_cat.open .mo_prod_list {
  display: block;
}
.gnb_mo_mega .mo_prod_list a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  border-bottom: 1px dashed #f0f0f0;
}
.gnb_mo_mega .mo_prod_list a:hover {
  color: #1f6f63;
}

@media (max-width: 1100px) {
  header.mega_header .gnb_pc .gnb_item > a {
    padding: 0 10px;
    font-size: 13px;
  }
  .mega_panel .mega_inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 0;
  }
  .mega_panel .mega_col {
    border-left: none;
    border-top: 1px solid #eee;
    padding: 16px 12px 0;
  }
  .mega_panel .mega_col:nth-child(-n+4) {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 959px) {
  header.mega_header .gnb_pc,
  header.mega_header #btn_form,
  header.mega_header .mega_panel {
    display: none !important;
  }
  header.mega_header .menu_wrap {
    display: block;
  }
  header.mega_header.is-mega-open .mega_panel {
    display: none !important;
  }
}

@media (max-width: 586px) {
  header.mega_header {
    height: 64px;
  }
  header.mega_header .logo_box .link_logo {
    font-size: 17px;
  }
  .gnb_mo_mega,
  header.mega_header.on .gnb_mo_mega {
    top: 64px;
    max-height: calc(100vh - 64px);
  }
}

/* Product page */
.product_page {
  padding-top: 72px;
}
.product_page .sub_sc_top {
  padding: 40px 0 20px;
}
.product_page .product_hero {
  padding: 50px 0 30px;
}
.product_page .product_badge {
  display: inline-block;
  padding: 6px 12px;
  background: #e8f1fc;
  color: #1f6f63;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 14px;
}
.product_page .product_title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.35;
  word-break: keep-all;
  margin-bottom: 12px;
}
.product_page .product_summary {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
}
.product_page .product_body {
  padding: 20px 0 60px;
}
.product_page .product_body .content_box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  line-height: 1.8;
  color: #333;
  font-size: 15px;
}
.product_page .product_body .content_box p {
  margin-bottom: 14px;
}
.product_page .product_body .content_box p:last-child {
  margin-bottom: 0;
}
.product_page .related_box {
  margin-top: 28px;
  padding: 24px;
  background: #f7f9fc;
  border-radius: 12px;
}
.product_page .related_box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product_page .related_box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.product_page .related_box a {
  font-size: 13px;
  color: #1f6f63;
}
.product_page .related_box a:hover {
  text-decoration: underline;
}

.category_page {
  padding-top: 72px;
}
.category_page .sub_sc_top {
  padding: 28px 0 32px;
}
.category_page .sub_sc_top .bohum_logo {
  margin-bottom: 8px;
}
.category_page .sub_sc_top .bohumSwiper {
  padding: 4px 0;
}
.category_page .sub_sc_top .form_area {
  margin-top: 12px;
}
.category_page .cat_hero {
  padding: 36px 0 12px;
}
.category_page .cat_hero h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}
.category_page .cat_hero p {
  margin-top: 10px;
  color: #666;
  font-size: 15px;
}
.category_page .product_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 16px 0 70px;
  list-style: none;
  margin: 0;
}
.category_page .product_grid a {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 140px;
  padding: 32px 30px;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  background: #fff;
  transition: 0.2s;
}
.category_page .product_grid a:hover {
  border-color: #1f6f63;
  box-shadow: 0 6px 20px rgba(31,111,99,0.12);
}
.category_page .product_grid .p_icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f8f6;
  border-radius: 18px;
}
.category_page .product_grid .p_icon img {
  width: 48px;
  height: 48px;
  display: block;
}
.category_page .product_grid .p_text {
  display: block;
  min-width: 0;
  flex: 1;
}
.category_page .product_grid .p_name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  word-break: keep-all;
  line-height: 1.35;
}
.category_page .product_grid .p_desc {
  display: block;
  font-size: 15px;
  color: #666;
  line-height: 1.55;
  word-break: keep-all;
}

@media (max-width: 767px) {
  .product_page,
  .category_page {
    padding-top: 64px;
  }
  .product_page .product_title {
    font-size: 22px;
  }
  .category_page .product_grid {
    grid-template-columns: 1fr;
  }
  .product_page .product_body .content_box {
    padding: 20px;
  }
}

/* Main product section */
.sc_products .product_cat_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sc_products .product_cat_grid > li {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px 18px;
  background: #fff;
}
.sc_products .product_cat_grid .cat_name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #1f6f63;
  margin-bottom: 6px;
}
.sc_products .product_cat_grid .cat_name:hover {
  text-decoration: underline;
}
.sc_products .product_cat_grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sc_products .product_cat_grid ul a {
  display: block;
  font-size: 12px;
  color: #555;
  line-height: 1.45;
  padding: 4px 0;
  word-break: keep-all;
}
.sc_products .product_cat_grid ul a:hover {
  color: #1f6f63;
}

@media (max-width: 959px) {
  .sc_products .product_cat_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 586px) {
  .sc_products .product_cat_grid {
    grid-template-columns: 1fr;
  }
}
