/* ============================================
   PRODUCTS PAGE – products.css
   ============================================ */

/* box */
.cgy-page {
  background: var(--white);
}

.cgy-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* breadcrumb */
.cgy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #A8A29E;
}

.cgy-breadcrumb a {
  color: #A8A29E;
  text-decoration: none;
}

.cgy-breadcrumb a:hover {
  color: var(--black);
}

.cgy-bc-sep {
  color: #A8A29E;
}

.cgy-bc-current {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 21px;
  color: var(--black);
}

/* title */
.cgy-title-row {
  background: var(--gray-1);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cgy-title-row.bottom {
  margin-top: 24px;
  margin-bottom: 0;
}

.cgy-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 44px;
  color: var(--black);
  margin: 0;
}

.cgy-title-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #44474C;
}

.cgy-title-desc h1, .cgy-bottom-article-desc h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 44px;
  color: var(--black);
  margin: 0 0 20px 0;
}

.cgy-title-desc h2, .cgy-title-desc h3, .cgy-title-desc h4, .cgy-title-desc h5, .cgy-bottom-article-desc h2, .cgy-bottom-article-desc h3, .cgy-bottom-article-desc h4, .cgy-bottom-article-desc h5 {
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  color: var(--black);
  margin: 20px 0 20px 0;
}

.cgy-title-desc-wrap {
  display: block;
}

.cgy-title-expand {
  display: none;
}

/* ============================================
  pagination
   ============================================ */
.cgy-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 0;
}

.cgy-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  /* border: 1px solid rgba(0,0,0,0.15); */
  background: var(--white);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, border-color 0.15s;
}

.cgy-page-btn.not-allow-click {
  background-color: #A2A2A2 !important;
  color: #fff !important;
}

.cgy-page-btn:hover {
  border-color: var(--black);
}

.cgy-page-num--active {
  color: var(--black);
  position: relative;
}

.cgy-page-num:hover {
  color: var(--black);
}

.cgy-page-num--active::after {
  position: absolute;
  content: '';
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 5px;
  background-color: var(--black);
}

.cgy-page-prev,
.cgy-page-next {
  border-color: rgba(0, 0, 0, 0.15);
  width: 42px;
  height: 42px;
  background-color: var(--black);
  color: #fff;
}

.cgy-page-prev:hover, .cgy-page-next:hover {
  color: #fff;
}

.cgy-page-ellipsis {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
  padding: 0 4px;
  line-height: 36px;
}

.cgy-bottom-article {
  background-color: rgba(245, 245, 245, 1);
  padding: 40px;
  margin-top: 24px;

}

.cgy-bottom-article-wrapper {
  max-width: var(--container);
  padding: 0 40px;
  margin: 0 auto;
}

.cgy-bottom-article-title {
  font-size: 32px;
  line-height: 44px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cgy-bottom-article-desc {
  font-size: 18px;
  line-height: 1;
  color: rgba(68, 71, 76, 1);
  font-weight: 400;
  line-height: 1.5;
}

/* ============================================
    media (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .cgy-container {
    padding: 0 0 60px;
    display: flex;
    flex-direction: column;
  }

  .cgy-pagination {
    display: flex;
    order: 5;
  }

  /* breadcrumb */
  .cgy-breadcrumb {
    padding: 12px 16px 10px;
    font-size: 12px;
  }

  .cgy-bc-current {
    height: 18px;
  }

  /* title */
  .cgy-title-row {
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: 8px;
    gap: 12px;
  }

  .cgy-title-row.bottom {
    margin-top: 16px;
    margin-bottom: 0;
  }

  .cgy-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.8);
  }

  .cgy-title-desc {
    font-size: 14px;
    color: #44474C;
    ;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cgy-title-desc h1, .cgy-bottom-article-desc h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.8);
    margin: 0 0 15px 0;
  }

  .cgy-title-desc h2, .cgy-title-desc h3, .cgy-title-desc h4, .cgy-title-desc h5, .cgy-bottom-article-desc h2, .cgy-bottom-article-desc h3, .cgy-bottom-article-desc h4, .cgy-bottom-article-desc h5 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.8);
    margin: 15px 0 15px 0;
  }

  .cgy-title-desc-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    align-items: flex-end;
  }

  .cgy-title-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    padding: 0;
    margin-top: 2px;
    transition: transform 0.3s;
  }

  .cgy-title-desc-wrap.is-expanded .cgy-title-desc {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
  }

  .cgy-title-desc-wrap.is-expanded .cgy-title-expand {
    transform: rotate(-90deg);
  }

  .cgy-page-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .cgy-bottom-article-wrapper {
    padding: 0;
  }

  .cgy-bottom-article {
    display: block;
    padding: 10px 24px;
    margin-top: 0;
  }

  .cgy-bottom-article-desc {
    font-size: 14px;
  }
}