/* 전체 보종 메가메뉴 */
.mega_backdrop {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
  z-index: 400;
}

.mega_panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  z-index: 450;
  padding: 36px 0 44px;
}

header.mega_open .mega_panel,
header.mega_open .mega_backdrop {
  display: block;
}

.mega_panel .mega_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.mega_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 20px;
  align-items: start;
}

.mega_col {
  padding: 16px 14px;
  border-radius: 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.mega_col.is_focus {
  background: #e8f4f6;
  box-shadow: inset 0 0 0 1px #c5e3ea;
}

.mega_col .mega_cat {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.mega_col.is_focus .mega_cat {
  color: var(--brandColor);
}

.mega_col .mega_cat:hover {
  color: var(--brandColor);
}

.mega_col .mega_products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega_col .mega_products li {
  margin-bottom: 10px;
}

.mega_col .mega_products a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.mega_col.is_focus .mega_products a {
  color: #333;
}

.mega_col .mega_products a:hover {
  color: var(--brandColor);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 모바일 보종 아코디언 */
.gnb_mo .mo_cat_products {
  display: none;
  list-style: none;
  padding: 8px 0 4px 12px;
  margin: 0;
}

.gnb_mo .mo_cat_item.open .mo_cat_products {
  display: block;
}

.gnb_mo .mo_cat_products a {
  display: block;
  padding: 10px 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #666 !important;
  border-bottom: none !important;
}

.gnb_mo .mo_cat_toggle {
  position: relative;
}

.gnb_mo .mo_cat_toggle::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
}

.gnb_mo .mo_cat_item.open .mo_cat_toggle::after {
  content: "−";
}

/* 상품/카테고리 페이지 */
.product_breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #888;
}

.product_breadcrumb a {
  color: #666;
}

.product_breadcrumb a:hover {
  color: var(--brandColor);
}

.product_breadcrumb .sep {
  color: #ccc;
}

.product_breadcrumb .current {
  color: #222;
  font-weight: 600;
}

.product_text_page {
  width: 100%;
  max-width: 900px;
  margin-left: 0;
}

.related_products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.related_title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.related_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related_list a {
  display: block;
  padding: 12px 16px;
  background: #f7f8fa;
  border-radius: 8px;
  color: #333;
  font-size: 15px;
}

.related_list a:hover,
.related_list a.active {
  background: #e8f4f6;
  color: var(--brandColor);
  font-weight: 600;
}

.category_product_list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category_product_list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  color: #333;
  transition: 0.2s;
}

.category_product_list a:hover {
  border-color: var(--brandColor);
  background: #f3fafb;
}

.category_product_list a strong {
  font-size: 16px;
  color: #111;
}

.category_product_list a span {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  line-height: 1.5;
}

/* 메인 상품 그리드 */
.product_main_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product_main_grid .product_card {
  display: block;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: 0.2s;
  height: 100%;
}

.product_main_grid .product_card:hover {
  border-color: var(--brandColor);
  box-shadow: 0 8px 20px rgba(31, 111, 139, 0.12);
}

.product_main_grid .product_card .cat_label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brandColor);
  margin-bottom: 10px;
}

.product_main_grid .product_card .title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.4;
  word-break: keep-all;
}

.product_main_grid .product_card .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  word-break: keep-all;
}

.product_main_grid .product_card .plus {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brandColor);
}

@media (max-width: 1100px) {
  .mega_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 959px) {
  .mega_panel,
  .mega_backdrop {
    display: none !important;
  }

  .product_main_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 586px) {
  .product_main_grid {
    grid-template-columns: 1fr;
  }

  .mega_backdrop {
    top: 70px;
  }
}

/* ===== 서브페이지 리뉴얼 ===== */
.sub_renew {
  margin-top: 75px;
  background: #f6f7fb;
}

.sub_renew .sub_hero {
  background: #fff;
  border-bottom: 1px solid #e8ebf2;
  padding: 36px 0 28px;
}

.sub_renew .product_breadcrumb {
  margin-bottom: 18px;
}

.sub_hero_label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f4f6;
  color: var(--brandColor);
  font-size: 13px;
  font-weight: 800;
}

.sub_hero_title {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: keep-all;
}

.sub_hero_desc {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  word-break: keep-all;
}

.sub_hero_more {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
  color: #777;
  word-break: keep-all;
}

.sub_hero_meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: #777;
}

.sub_hero_meta strong {
  color: var(--brandColor);
  font-weight: 800;
}

.sub_hero_actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sub_btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brandColor);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sub_btn_ghost {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.sub_cat_tabs {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub_cat_tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #444;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sub_cat_tab.active,
.sub_cat_tab:hover {
  background: var(--brandColor);
  color: #fff;
}

.sub_body {
  padding: 40px 0 70px;
}

.sub_form_section {
  padding: 0 0 8px;
  background: #f6f7fb;
}

.sub_form_hr {
  border: 0;
  border-top: 1px solid #e5e8ef;
  margin: 28px 0 24px;
}

.sub_form_wrap {
  background: #fff;
  border: 1px solid #e7eaf1;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.sub_form_head {
  margin-bottom: 16px;
}

.sub_form_title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

.sub_form_desc {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.sub_renew .sub_form_wrap .form_area {
  margin: 0;
  width: 100%;
  min-width: 0;
  flex-shrink: 1;
}

.sub_renew .sub_form_wrap .form_area ul {
  grid-template-columns: repeat(2, 1fr);
}

.sub_renew .sub_form_wrap .form_area ul li:last-child {
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .sub_renew .sub_form_wrap .form_area ul {
    grid-template-columns: 1fr;
  }
}

.sub_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.sub_section_title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #111;
}

.sub_section_desc {
  margin: 0 0 22px;
  font-size: 15px;
  color: #666;
}

.sub_product_grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sub_product_card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e7eaf1;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.sub_product_card:hover {
  border-color: var(--brandColor);
  box-shadow: 0 10px 24px rgba(31, 111, 139, 0.12);
  transform: translateY(-2px);
}

.sub_product_card.is_current {
  border-color: var(--brandColor);
  background: #f3fafb;
}

.sub_product_badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f4f6;
  color: var(--brandColor);
  font-size: 12px;
  font-weight: 800;
}

.sub_product_name {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  line-height: 1.4;
  word-break: keep-all;
  text-decoration: none;
}

.sub_product_desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  word-break: keep-all;
  flex: 1;
}

.sub_product_more {
  font-size: 13px;
  font-weight: 800;
  color: var(--brandColor);
}

.sub_side_box {
  background: #fff;
  border: 1px solid #e7eaf1;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}

.sub_side_title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #111;
}

.sub_side_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub_side_list li {
  position: relative;
  padding: 0 0 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  word-break: keep-all;
}

.sub_side_list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brandColor);
  font-weight: 900;
}

.sub_side_links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub_side_links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sub_side_links a:last-child {
  border-bottom: none;
}

.sub_side_links a span {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.sub_side_links a.active,
.sub_side_links a:hover {
  color: var(--brandColor);
}

.product_detail_card {
  background: #fff;
  border: 1px solid #e7eaf1;
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 28px;
}

.product_detail_body {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.product_detail_body p {
  margin: 0 0 14px;
}

.product_detail_body .lead_desc {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.product_detail_body .detail_h {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 900;
  color: #111;
}

.product_detail_body .detail_points,
.product_detail_body .detail_checks {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.product_detail_body .detail_points li,
.product_detail_body .detail_checks li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid #f1f3f7;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  word-break: keep-all;
}

.product_detail_body .detail_points li:last-child,
.product_detail_body .detail_checks li:last-child {
  border-bottom: none;
}

.product_detail_body .detail_points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--brandColor);
  font-weight: 900;
}

.product_detail_body .detail_checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--brandColor);
  font-size: 12px;
  font-weight: 900;
}

.product_detail_body .detail_note {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f7f8fc;
  border-radius: 10px;
  font-size: 14px;
}

.product_info_table {
  margin-top: 22px;
  border-top: 1px solid #eee;
}

.info_row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info_label {
  font-size: 13px;
  font-weight: 800;
  color: #777;
}

.info_value {
  font-size: 14px;
  color: #222;
  word-break: keep-all;
}

.product_notice {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f7f8fc;
  border-radius: 10px;
}

.product_notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.related_products .related_title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

.related_grid {
  margin-top: 0;
}

@media (max-width: 959px) {
  .sub_layout {
    grid-template-columns: 1fr;
  }
  .sub_product_grid {
    grid-template-columns: 1fr;
  }
  .sub_hero_title {
    font-size: 28px;
  }
  .sub_renew {
    margin-top: 70px;
  }
}

@media (max-width: 586px) {
  .sub_hero_title {
    font-size: 24px;
  }
  .product_detail_card {
    padding: 22px 18px;
  }
  .info_row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
