/* Mega menu + product/category pages */
.product_breadcrumb {
  margin-bottom: 18px;
  font-size: 14px;
  color: #888;
}
.product_breadcrumb a {
  color: #666;
}
.product_breadcrumb a:hover {
  color: var(--brandColor);
}
.product_cta_wrap {
  margin-top: 28px;
}
.product_cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--brandColor);
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}
.product_cta:hover {
  opacity: 0.9;
}

.category_list_sc {
  padding: 40px 0 80px;
}
.category_list_title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2542;
  margin-bottom: 10px;
}
.category_list_desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}
.category_product_list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e5e5e5;
}
.category_product_list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid #e5e5e5;
  color: #222;
  font-size: 16px;
  transition: 0.15s;
}
.category_product_list li a:hover {
  color: var(--brandColor);
  background: #f7f9fc;
}
.category_product_list .parrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #999;
}

/* ===== Full mega menu (전체 보종) ===== */
header {
  position: relative;
}
header .group_header .gnb_list {
  position: static;
}
header .gnb_item {
  position: static;
}
header .gnb_item > a.gnb_top_link {
  display: block;
  padding: 26px 14px;
  font-weight: 600;
  font-size: 17px;
  color: #1f2542;
  white-space: nowrap;
}
header .gnb_item > a.gnb_top_link:hover,
header .gnb_item.is-active > a.gnb_top_link,
header.is-mega-open .gnb_item.has-mega > a.gnb_top_link:hover {
  color: var(--brandColor);
}

.mega_panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  z-index: 400;
  padding: 28px 0 30px;
  max-height: min(480px, 62vh);
  overflow-y: auto;
}
header.is-mega-open .mega_panel,
.mega_panel.is-visible {
  display: block;
}

.mega_panel .mega_inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
}
.mega_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}
.mega_grid.mega_grid_bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  grid-template-columns: repeat(3, 1fr);
}

/* 한 줄: 종신(넓게) + 나머지 보종 — 여유 간격 */
.mega_grid.mega_grid_compact {
  grid-template-columns: 2.35fr 0.95fr 0.95fr 0.95fr 1.05fr 1.15fr;
  gap: 16px 32px;
  align-items: start;
}
.mega_col.is-wide .mega_links.is-multi {
  column-count: 2;
  column-gap: 28px;
}
.mega_col .mega_cat_title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.mega_col.is-highlight .mega_cat_title,
.mega_col .mega_cat_title:hover {
  color: var(--brandColor);
}
.mega_col .mega_links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega_col .mega_links li {
  margin-bottom: 10px;
  break-inside: avoid;
}
.mega_col .mega_links a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  font-weight: 400;
  padding: 0;
  word-break: keep-all;
}
.mega_col .mega_links a:hover {
  color: var(--brandColor);
  text-decoration: underline;
}

/* 구 단일 드롭다운 숨김 (잔여) */
.cat_dropdown {
  display: none !important;
}

/* Mobile mega / accordion */
.gnb_mo .mega_mo_list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gnb_mo .mega_mo_cat > button,
.gnb_mo .mega_mo_cat > a.mega_mo_cat_btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  background: none;
  border: none;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  text-align: left;
}
.gnb_mo .mega_mo_cat > button:after {
  content: "▾";
  font-size: 16px;
  color: #999;
  transition: transform 0.2s;
}
.gnb_mo .mega_mo_cat.is-open > button:after {
  transform: rotate(180deg);
}
.gnb_mo .mega_mo_products {
  display: none;
  padding: 10px 0 18px 8px;
  border-bottom: 1px solid #eee;
}
.gnb_mo .mega_mo_cat.is-open .mega_mo_products {
  display: block;
}
.gnb_mo .mega_mo_products a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: #555;
  line-height: 1.45;
}
.gnb_mo .mega_mo_products a:hover {
  color: var(--brandColor);
}
.gnb_mo .mega_mo_extra {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}
.gnb_mo .mega_mo_extra a {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

@media (max-width: 1200px) {
  .mega_grid.mega_grid_compact {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega_col.is-wide {
    grid-column: span 1;
  }
  .mega_col.is-wide .mega_links.is-multi {
    column-count: 2;
  }
}

@media (max-width: 1100px) {
  .mega_grid,
  .mega_grid.mega_grid_bottom,
  .mega_grid.mega_grid_compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .mega_col.is-wide {
    grid-column: span 2;
  }
}

@media (max-width: 959px) {
  header .group_header .gnb_list {
    display: none;
  }
  .mega_panel {
    display: none !important;
  }
  .category_list_title {
    font-size: 24px;
  }
  .category_product_list li a {
    font-size: 14px;
    padding: 16px 4px;
  }
}

@media (min-width: 960px) {
  .gnb_mo {
    display: none !important;
  }
}
