:root {
/* 핵심 토큰 */

--color-accent: #f68d4c;
--color-accent-down: #d96a25; /* 호버용 더 어두운 주황 */
--color-sub: #0083cb;   
--color-sub-down: #005e90; /* 호버용 어두운 블루 */


--color-sub1: #f68d4c;   
--color-sub2: #0083cb;   
--color-text: #202020; 


--font-family: "Pretendard", sans-serif;
--font-weight-medium: 500; /* Medium */
--font-weight-bold: 700;   /* Bold */
--font-weight-black: 900;  /* Black */

--layout-width: 1200px;    /* 작업 그리드 폭 */
}

@font-face {
font-family: 'Pretendard';
src: url('/fonts/Pretendard-Thin.woff2') format('woff2');
font-weight: 100;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-ExtraLight.woff2') format('woff2');
  font-weight: 200;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Light.woff2') format('woff2');
  font-weight: 300;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-ExtraBold.woff2') format('woff2');
  font-weight: 800;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/fonts/Pretendard-Black.woff2') format('woff2');
  font-weight: 900;
}

.page-top {
padding-top: 230px; /* 플로팅 헤더 높이 */
  }

.all-brands {
  padding: 80px 0;
}

.brand-header {
  text-align: center;
  margin-bottom: 40px;
}

.brand-header h2 {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
}

.brand-header p {
  font-size: 16px;
  color: #666;
}

.brand-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-bottom: 100px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 상단(로고+이름)과 하단(버튼) 분리 */
  align-items: center;
  text-align: center;
  height: 280px; /* 💡 카드 전체 높이 고정 */
  padding: 16px;
  border-radius: 8px;
  box-sizing: border-box;
  border: 2px solid #f8f8f8;
  background: #fff;
  transition: all 0.3s ease;
}

.brand-card.visible{display:block}
.brand-card:hover{border: 2px solid var(--color-accent);}
.brand-thumb{width:100%;aspect-ratio:1/0.7;background:none;
  display:flex;align-items:center;justify-content:center;border-radius:4px;overflow:hidden}
.brand-thumb img{max-width:100%;max-height:100%;object-fit:cover}

.brand-name {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* ✅ 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 40px; /* 줄 높이 * 줄 수 (예: 20px * 2) */
}

.brand-more{text-align:center;margin-top:32px}
.btn-more{padding:10px 28px;background:#1d365c;color:#fff;border:none;
  border-radius:4px;font-weight:700;cursor:pointer}

.brand-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  position: static; /* 기존 position 제거 */
  transform: none;  /* 필요시 제거 */
}

.brand-thumb {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  /* border: 1px solid #e0e0e0; */
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px; /* ✅ 버튼 폭 고정 */
  padding: 6px 12px;
  background: #f2f2f2;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
  margin-bottom: 30px;
}

.brand-btn i {
  margin-right: 6px;
  font-size: 14px;
}

.brand-btn:hover {
  background: #e0e0e0;
}

.category-section {
  margin-bottom: 50px;
}



/* 카테고리 검색 */
.category-search {
  margin: 20px 0;
  text-align: center;
}

#categorySearchInput {
  width: 300px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.category-letter {
  background-color: var(--color-accent);
  color: white;
  padding: 10px;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#categorySearchInput:focus {
  border-color: var(--color-accent);
  outline: none; /* 기본 브라우저 아웃라인 제거 */
}

.category-box {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  grid-template-columns: repeat(3, 1fr); /* 한 줄에 3개 */
  gap: 12px;
  padding: 15px;
  border: 1px solid #eee;
}

.category-item {
  font-size: 15px;
  color: #333;
}

.category-item span {
  color: #888;
  margin-left: 6px;
  font-size: 13px;
}

/* 카테고리 플로팅 */
.category-index {
  position: fixed;
  top: 210px; /* 헤더 아래로 띄우기 */
  left: 20px; /* 화면 왼쪽 끝에서 약간 안쪽으로 */
  z-index: 999;
  background: white;
  border-radius: 6px;
  padding: 10px 8px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
}

.category-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-index a {
  display: flex;
  text-align: center;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-accent);
  background: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  width: 24px;
  height: 24px;
  justify-content: center;
}

.category-index a:hover {
  background: var(--color-accent);
  color: #fff;
}

.category-item {
  margin-bottom: 10px;
  line-height: 1.4;
  
}

.category-item .eng {
  display: block;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-item .kor {
  display: block;
  font-size: 14px;
  color: #777;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* hover 시 자식에게 색상 적용 */
.category-item:hover .eng,
.category-item:hover .kor {
  color: var(--color-accent);
}
/* 카테고리 페이지 종료 */

.laboratory-body{
  padding-top: 230px;
}

/* 연구용품 페이지 */
/* 페이지 상단 배너 및 타이틀 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-banner {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 5px;
  color: var(--color-text);
}
.page-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* 탭 메뉴 */
.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  /* background: var(--color-sub2); */
  background-color: white;
  border: 1px solid var(--color-sub2);
  /* background: #0d3d20; var(--color-sub2) */
  color: var(--color-sub2);
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;

  /* filter: brightness(0.5); */
}

.tab-btn:hover {
  background-color: var(--color-sub2);
  border: 1px solid var(--color-sub2);
  /* background: white; */
  color: white;
  
  filter: brightness(1);
}

.tab-btn.active {
  background: var(--color-sub2);
  color: white;
  font-weight: var(--font-weight-bold);

  filter: brightness(1);
}

/* 탭 콘텐츠 */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* 카테고리 네비게이션 */
.category-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    scroll-margin-top: 160px;
}
.category-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    color: #202020;
    padding: 8px 20px;
    border: 1px solid #efefef;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    text-align: center;
    min-height: 40px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-nav a:hover {
    background: var(--color-sub2);
    border-color: var(--color-sub2);
    color: white;
}

/* 제품 섹션 */
.product-section {
  margin-bottom: 60px;
  scroll-margin-top: 160px;
}
.section-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  border-bottom: 2px solid var(--color-sub2);
  margin-bottom: 30px;
  padding-bottom: 5px;
}

/* 제품 카드 */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.product-card {
  width: 180px;
  text-align: center;
}
.product-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid #efefef;
  border-radius: 4px;
}
.product-card strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.product-card span {
  font-size: 13px;
  color: #666;
}

/* 이벤트 페이지 */
.event-page {
  padding-bottom: 0px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.event-p-card {
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-p-card:hover {
  border: 2px solid var(--color-sub2);
}

.event-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.event-p-card.ended .event-thumb img {
  filter: brightness(0.3);
}

.event-info {
  padding: 16px;
}

.event-title {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
  color: var(--color-text);
}

.event-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.event-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
}

.event-p-card.ongoing .event-status {
  background: #E4F9EC;
  color: var(--color-sub2);
}

.event-p-card.ended .event-status {
  background: #f4f4f4;
  color: #999;
}

.event-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 40px 16px;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  background: #fff;
  border-radius: 4px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  transform: translateY(30px);
  animation: slideUp 0.4s ease forwards;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #000;
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 3px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.modal-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 이벤트 페이지 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: var(--color-sub2);
  color: #fff;
  border-color: var(--color-sub2);
}

.page-btn.active {
  background: var(--color-sub2);
  color: #fff;
  border-color: var(--color-sub2);
}

.page-btn.prev, .page-btn.next {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* 브랜드 상세페이지 스타일 */
.detail-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-detail-header .brand-thumb {
  flex: 0 0 auto;  /* 크기 고정 */
  width: 200px;
  height: auto;
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  border: 1px solid #efefef;
}

.detail-header-content {
  padding-top: 30px;
  display: flex;
  align-items: center;
  gap: 40px;   /* 썸네일과 텍스트 사이 여백 */
}

.brand-detail-header .brand-thumb img {
  width: 180px;
}

.brand-info .brand-name {
  font-size: 20px;
  font-weight: bold;

  margin-top: 0px;
  margin-bottom: 0px;
  color: #000;

  display: -webkit-box;
  -webkit-line-clamp: 1;   /* ✅ 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-info .brand-country,
.brand-info .brand-desc {
  margin: 4px 0;
}

.brand-info .brand-country{
  font-size: 20px;
  font-weight: bold;
  color: #666;
}

.brand-info .brand-desc {
 font-size: 16px;
}

.brand-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-accent);
  transition: all 0.3s ease;
}

.brand-link:hover{
  color: var(--color-sub1);
}

.brand-category .section-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.brand-category .product-card {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  width: auto;  /* 고정폭 해제 */
  text-align: left;
  padding: 5px;
  transition: all 0.3s ease;
}

.brand-category .product-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* 한 줄에 6개 */
  column-gap: 10px;     /* 좌우 간격 */
  row-gap: 30px;
}



.brand-category .product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 정사각형 비율 유지 */
  object-fit: contain;   /* 이미지 비율 유지 + 여백 생길 수 있음 */
  border: 0px solid transparent;
}



.product-info {
  padding: 10px;
}

.product-name {
  font-size: 14px;
  /* font-weight: var(--font-weight-bold); */
  font-weight: 400;
  color: #666;
  
}

/* 견적문의 페이지 */
.estimate-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.estimate-section h1 {
  font-size: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-description {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.estimate-form fieldset {
  border: none;
  margin-bottom: 10px;
}

.estimate-form legend {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  border-left: 4px solid var(--color-sub);
  padding-left: 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-row-inline {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row-inline .form-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-row label,
.form-item label {
  font-weight: 500;
  margin-bottom: 5px;
}

.form-row input,
.form-item input,
.form-row textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.required label::after {
  content: '*';
  color: #e74c3c;
  margin-left: 5px;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.submit-btn {
  background-color: var(--color-sub);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--color-sub-down);
}


/* input 공통 포커스 */
input[type=text]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=email]:focus {
  border: 1px solid var(--color-accent);
  outline: none;
}


/* 견적서 모달 */
.estimate-modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;  /* 추가 */
  opacity: 0;          /* 추가 */
  transition: opacity 0.3s ease;
}

.estimate-modal-content {
  background: #fff;
  width: 420px;
  padding: 30px 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.estimate-modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--color-accent);
}

.estimate-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.estimate-modal-close:hover {
  color: #333;
}

#estimateForm label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
}

#estimateForm input[type="text"],
#estimateForm input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#estimateForm button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

#estimateForm button[type="submit"]:hover {
  background: #4a30b8;
}



/* 마이페이지 */
.mypage-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
  }
  .mypage-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
  }
  .mypage-section {
    margin-bottom: 40px;
  }
  .mypage-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 4px;
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
    transition: all 0.3s ease;
  }
  .mypage-info {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
  }
  .mypage-info p {
    margin: 8px 0;
  }
  .mypage-actions a {
    display: inline-block;
    margin: 0px 4px 0px 0;
    padding: 10px 14px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  .mypage-actions a:hover {
    background: var(--color-sub1);
  }
  

.mypage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.mypage-tabs a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}



.mypage-tabs a i {
  font-size: 12px;
}

.mypage-tabs a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.mypage-tabs a.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}


/* 회원정보 버튼 */
 .mypage-actions button {
    display: inline-block;
    margin: 0px 4px 0px 0;
    padding: 10px 14px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }
  .mypage-actions button:hover {
    background: var(--color-sub1);
  }

  /* 마이페이지 01 */
  /* 필터 영역 */
.mypage-filter {
  padding: 0px 0 20px;
}
.mypage-filter form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.mypage-filter input[type="date"],
.mypage-filter select {
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 4px;
}
.mypage-filter button {
  padding: 6px 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
 
}
.mypage-filter button:hover {
  background: var(--color-sub1);
}

.head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* 주문 테이블 */
.mypage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mypage-table th,
.mypage-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}
.mypage-table th {
  background: #f8f8f8;
  font-weight: 600;
  color: #222;
}
.mypage-table td a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}

/* 상태별 강조 */
.mypage-table td.status {
  font-weight: bold;
}
.mypage-table td.status:contains("배송완료") {
  color: #27ae60;
}
.mypage-table td.status:contains("배송중") {
  color: #f39c12;
}
.mypage-table td.status:contains("취소") {
  color: #e74c3c;
}

/* 페이지네이션 */
.mypage-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.mypage-pagination a {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  width: 32px;
  height: 32px;
  text-align: center;
  align-items: baseline;
  line-height: 1.3;
}
.mypage-pagination a.active {
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  border-color: var(--color-accent);
}


/* 모달 */
.mypage .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.mypage .modal-content {
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 40px;
  border-radius: 4px;
  width: 700px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.mypage .modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.mypage .modal-content h2,
.mypage .modal-content h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.mypage .modal-content p {
  margin: 8px 0;
}

.mypage .modal-content label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.mypage .modal-content input[type="text"],
.mypage .modal-content input[type="password"],
.mypage .modal-content input[type="email"],
.mypage .modal-content input[type="tel"],
.mypage .modal-content textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.mypage .modal-content textarea {
  resize: vertical;
}

.mypage .modal-content hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.mypage .modal-content button[type="submit"] {
  background-color: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.mypage .modal-content button[type="submit"]:hover {
  background-color: var(--color-sub1);
}

.mypage .modal-content .checkbox-inline {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.mypage-summary-box{
  font-size: 16px;
  margin-top: 6px;
  font-weight: 400;
  margin-left: 4px;
}
.mypage-summary-box span{
  color: var(--color-accent);
  font-weight: 700;
}

/* 문의하기 페이지 */
/* 문의하기 모달 - mypage_02 전용 스타일 */
.mypage .modal-02 {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.mypage .modal-content-02 {
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 40px;
  border-radius: 4px;
  width: 700px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mypage .modal-02.show .modal-content-02 {
  transform: scale(1);
  opacity: 1;
}

.mypage .modal-content-02 h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.mypage .modal-content-02 p {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
}

.mypage .modal-content-02 label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 500;
}

.mypage .modal-content-02 input,
.mypage .modal-content-02 select,
.mypage .modal-content-02 textarea {
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.mypage .modal-content-02 textarea {
  resize: vertical;
}

.mypage .modal-content-02 .email-inputs-02,
.mypage .modal-content-02 .tel-inputs-02 {
  display: flex;
  gap: 10px;
}

.mypage .modal-content-02 .email-inputs-02 input,
.mypage .modal-content-02 .email-inputs-02 select,
.mypage .modal-content-02 .tel-inputs-02 input {
  flex: 1;
}

.mypage .modal-content-02 button[type="submit"] {
  margin-top: 20px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mypage .modal-content-02 button[type="submit"]:hover {
  background-color: var(--color-sub1);
}

.mypage .modal-02 .close-02 {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* 견적서 조회 페이지 */
    .mypage .modal-05 {
      display: none;
      position: fixed;
      z-index: 1000;
      inset: 0;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
    }
    .mypage .modal-content-05 {
      background: #fff;
      padding: 30px;
      border-radius: 8px;
      width: 820px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }
    .mypage .modal-content-05 .close-05 {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 22px;
      font-weight: bold;
      color: #333;
      cursor: pointer;
    }
    .mypage .modal-content-05 .print-area {
      font-family: 'Malgun Gothic', sans-serif;
      font-size: 14px;
    }
    .mypage .modal-content-05 .print-btn {
      margin-top: 20px;
      text-align: right;
    }
    .mypage .modal-content-05 .print-btn button {
      padding: 8px 16px;
      background: var(--color-accent);
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    @media print {
      body *:not(.print-area):not(.print-area *) {
        display: none;
      }
    }



/* 연구실 베스트셀러 섹션 */
.best-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  max-width: 1200px;

  margin-top: 0px;
  margin-bottom: 0px;
}
.best-nav li {
  text-align: center;
}
.best-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 191px;
  height: 35px;
  border-radius: 4px;
  text-decoration: none;
  color: #202020;
  font-weight: 500;
  border: 1px solid #dedede;
  transition: all 0.3s ease;
}

.best-nav .count {
  color: var(--color-accent);
  margin-left: 5px;
  font-weight: 500;
}

.best-product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #efefef;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #fafafa;
  transition: box-shadow 0.3s ease;
}

.best-product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;  /* 왼쪽에서 10px */
  background-color: var(--color-accent);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
  font-weight: bold;
}

.best-nav a:hover {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.best-category {
  margin: 40px 0;
}

.category-title {
  font-size: 20px;
  margin-bottom: 20px;
}
.best-category .category-title span {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-accent);
}

.best-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.best-product-card {
  /* width: auto; */
  border: 1px solid #dedede;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.best-product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
}

.best-product-card .product-name {
  padding: 8px 5px 0;
  font-weight: bold;
  color: #202020;
  font-size: 14px;
  margin-bottom: 4px;
}

.best-product-card .product-desc {
  padding: 0 5px 10px;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.best-product-card .product-name,
.best-product-card .product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-product-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.best-seller-page .line{
  border-bottom: 1px solid var(--color-accent);
  margin: 20px 0;
}


/* 신규 입고 페이지 */
.new-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  max-width: 1200px;

  margin-top: 0px;
  margin-bottom: 0px;
}
.new-nav li {
  text-align: center;
}
.new-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 191px;
  height: 35px;
  border-radius: 4px;
  text-decoration: none;
  color: #202020;
  font-weight: 500;
  border: 1px solid #dedede;
  transition: all 0.3s ease;
}

.new-nav .count {
  color: var(--color-sub1);
  margin-left: 5px;
  font-weight: 500;
}

.new-product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #efefef;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #fafafa;
  transition: box-shadow 0.3s ease;
}

.new-product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;  /* 왼쪽에서 10px */
  background-color: var(--color-sub1);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
  font-weight: bold;
}

.new-nav a:hover {
  border: 1px solid var(--color-sub1);
  color: var(--color-sub1);
}

.new-category {
  margin: 40px 0;
}

.new-category .category-title span {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-sub1);
}

.new-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.new-product-card {
  /* width: auto; */
  border: 1px solid #dedede;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
}

.new-product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
}

.new-product-card .product-name {
  padding: 8px 5px 0;
  font-weight: bold;
  color: #202020;
  font-size: 14px;
  margin-bottom: 4px;
}

.new-product-card .product-desc {
  padding: 0 5px 10px;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.new-product-card .product-name,
.new-product-card .product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-product-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.new-products-page .line{
  border-bottom: 1px solid var(--color-sub1);
  margin: 20px 0;
}

/* 특가상품 페이지 */
/* 네비게이션 */
.sale-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto 20px;
}

.sale-nav li {
  text-align: center;
}

.sale-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 191px;
  height: 35px;
  border-radius: 4px;
  text-decoration: none;
  color: #202020;
  font-weight: 500;
  border: 1px solid #efefef;
  transition: all 0.3s ease;
}

.sale-nav a:hover {
  border: 1px solid var(--color-sub2);
  color: var(--color-sub2);
}

.sale-nav .count {
  font-size: 12px;
  color: var(--color-sub2);
  margin-left: 4px;
}

/* 카테고리 타이틀 */
.sale-category {
  margin: 40px 0;
}

.sale-page .category-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.sale-page .category-title span {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-sub2);
}

/* 상품 그리드 5열 */
.sale-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* 상품 카드 */
.sale-product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #efefef;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  background: #fafafa;
  transition: box-shadow 0.3s ease;
}

.sale-product-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sale-product-card img {
  width: 100%;
  height: auto;
}

.sale-product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-sub2);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
  font-weight: bold;
}

.sale-product-card .product-name {
  padding: 8px 5px 0;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: #202020;
}

.sale-product-card .product-desc {
  padding: 0 5px 10px;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

/* 가격 영역 */
.sale-product-card .product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sale-product-card .original-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 12px;
}

.sale-product-card .sale-price {
  color: var(--color-sub2);
  font-weight: 700;
  font-size: 16px;
}

/* 구분선 */
.sale-page .line {
  border-bottom: 1px solid var(--color-sub2);
  margin: 20px 0;
}


/* 맞춤환경 프로모션 페이지 전용 */
.custom-page .env-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.custom-page .env-section.reverse {
  flex-direction: row-reverse;
}

.custom-page .env-banner {
  flex: 1;
}

.custom-page .env-banner img {
  width: 100%;
  height: auto;
  max-height: 244px;  /* 카드 높이에 맞게 설정 */
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.custom-page .env-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
   height: 100%;  /* 추가 */
}

.custom-page .product-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  /* padding: 12px; */
  background: #f9fbfc;
  text-align: center;
  transition: all 0.3s ease;
}

.custom-page .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-page .product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
  border: 0px none;
}

.custom-page .product-name {
  font-weight: bold;
  margin: 2px 0 5px;
  color: #202020;
}

.custom-page .product-desc {
  font-size: 13px;
  color: #777;
  padding-bottom: 12px;
}

.custom-page .promo-footer {
  text-align: center;
  margin: 80px 0 40px;
}

.custom-page .promo-footer .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 0 10px;
  border: none;
  border-radius: 4px;
  background: var(--color-sub1, #5D3FD3);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.custom-page .promo-footer .btn:hover {
  background: #472fb3;
}


/* 공통 버튼 스타일 (필요시 추가) */
.btn {
display: inline-block;
padding: 12px 20px;
border: none;
border-radius: 4px;
background: var(--color-sub1);
color: #fff;
cursor: pointer;
transition: background 0.3s;
}

#se04 .btn {
margin: 0 auto;
margin-top: 40px;
width: 30%;
display: flex;
padding: 12px 20px;
border: none;
border-radius: 40px;
font-size: 18px;
justify-content: center;
background: var(--color-sub1);
color: #fff;
cursor: pointer;
transition: background 0.3s;
}
#se04 .btn:hover {
  background: var(--color-sub2);
}

.btn:hover {
  background: var(--color-sub2);
}

/* 페이지 헤더 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header .page-banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-header .page-title {
  font-size: 2em;
  font-weight: bold;
}

.page-header .page-subtitle {
  font-size: 16px;
  color: #777;
  line-height: 1.5;
}

/* 자료실 페이지 */
.tool-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tool-tab {
  padding: 10px 20px;
  width: 150px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  border-radius: 4px;
  color: #666;
  transition: all 0.3s ease;
}

.tool-tab:hover {
  background: #efefef;
}

.tool-tab.active {
  color: var(--color-sub1);
  border-color: var(--color-sub1);
  font-weight: 700;
}

/* 탭 패널 숨김/활성 */
.tool-panel {
  display: none;
}
.tool-panel.active {
  display: block;
}

/* 목록 기본 스타일 */
.catalog-list, .program-list {
  list-style: none;
  padding: 0;
}

.catalog-list li, .program-list li {
  margin-bottom: 10px;
}

.catalog-list a, .program-list a {
  color: #333;
  text-decoration: none;
}

.catalog-list a:hover, .program-list a:hover {
  text-decoration: underline;
}


/* ===== 카탈로그 자료실 ===== */
.tool-panel .section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  border: none;

  margin-left: 6px;
}

.tool-panel .section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;

  margin-left: 6px;
}

.tool-panel .section-divider {
  width: 100%;
  height: 2px;
  background-color: var(--color-sub1);
  margin-bottom: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap:50px;
  column-gap: 20px;
  margin: 40px 0;
}

.catalog-card {
  text-align: center;
}

.catalog-card p {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  text-align:left;
  padding: 0 10px 0 10px;
}

.catalog-card a {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 200px; /* 카드 높이 고정 */
  border: 1px solid #ddd;
  border-radius: 4px;
}

.catalog-card a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.catalog-card a img.img-hover {
  opacity: 0;
}

.catalog-card a:hover img.img-default {
  opacity: 0;
}

.catalog-card a:hover img.img-hover {
  opacity: 1;
}


/* ===== 장비 프로그램 ===== */
.program-image-container {
  position: relative;
  width: 1200px;
  max-width: 100%;
  height: auto;
}

.program-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 40px;
}

.program-buttons {
  position: absolute;
  bottom: 240px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.program-btn {
  background: var(--color-sub1);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 160px;
  text-align:center;
}

.program-btn:hover {
  background: #002488;
}


/* 게시글 상세페이지 */
.post-detail .post-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-detail .post-meta {
  font-size: 14px;
  color: #888;
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.post-detail .post-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.post-detail .post-content {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.post-detail .post-content img {
  max-width: 100%;
  margin: 20px 0;
}

.post-detail .post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 30px;
}

.post-detail .post-nav a {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.post-detail .post-nav a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* 이벤트 상세페이지 */
.event-detail .event-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.event-detail .event-meta {
  font-size: 14px;
  color: #777;
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.event-detail .event-info {
  /* background: #f9f9f9; */
  padding: 10px 15px;
  border-left: 6px solid var(--color-sub2);
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}

.event-detail .event-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}

.event-detail .event-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.event-detail .event-content img {
  max-width: 25%;
  height: auto;
  display: block;
  margin: 20px 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.event-detail .event-content img:hover{
  transform: translateY(-15px);
}

/* 이동 버튼 */
.event-detail .event-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 30px;
}

.event-detail .event-nav a {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.event-detail .event-nav a:hover {
  background: var(--color-sub2);
  color: #fff;
  border-color: var(--color-sub2);
}

/* 모달 스타일 */
.event-detail .event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.event-detail .event-modal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  position: relative;
}

.event-detail .event-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.event-detail .event-modal .modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.event-detail .event-modal .modal-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.event-detail .event-modal .modal-img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.event-detail .event-modal .modal-desc {
  font-size: 14px;
  color: #555;
}

.event-detail .event-info p{
font-size: 16px;
margin-top: 8px;
}


.event-detail .event-info .event-status {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  color: #fff;
}

.event-detail .event-status.ongoing {
background: #E4F9EC;
color: var(--color-sub2);
}

.event-detail .event-status.ended {
background: #f4f4f4;
color: #999;
}

/* 입점 점포 (셀러) 페이지*/
.store-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 0px;
  /* margin-bottom: 40px; */
}

.store-search {
  margin: 30px 0;
  text-align: center;
}

.store-search input {
  width: 300px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 한 줄에 2개 */
  gap: 20px;
  /* margin-top: 30px; */
}

.store-card {
  display: flex;
  justify-content: space-between; /* 좌우 정렬 */
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.store-logo {
  flex: 0 0 120px;
  margin-right: 20px;
  aspect-ratio: 1 / 1;         /* 정사각형 비율 유지 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;      /* 배경색 있으면 여백 영역 표시됨 */
  transition: all 0.3s ease;
  border-radius: 2px;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  
}

.store-logo:hover {
filter: brightness(0.7);
}


.store-info {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.store-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: bold;
}

.store-info h3 a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-info h3 a:hover {
  color: var(--color-sub1);
}

.store-info p {
margin: 4px 0;
font-size: 14px;
line-height: 1.5;
font-weight: 500;
color: #666;
}

/* 셀러 페이지 */
/* 셀러 상세 페이지 전체 스타일 */
.seller-page .seller-detail {
  padding: 40px 0;
}

/* 브랜드 정보 상단 박스 */
.seller-page .seller-box {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* 변경된 부분 */
  gap: 30px;
  max-width: 1200px;  /* 크기 확장 */
  margin: 40px auto 30px;
  padding: 0 20px;
}

.seller-page .seller-box .logo {
  flex-shrink: 0;
  width: 120px;
}

.seller-page .seller-box .logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.seller-page .seller-info-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: #333;
}

.seller-page .seller-info-text h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
}

/* 카테고리 & 검색 */
.seller-page .seller-categories {
  margin: 30px 0;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.seller-page .category-header strong {
  color: var(--color-accent);
  font-weight: bold;
}

.seller-page .category-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.seller-page .category-list button {
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.seller-page .category-list button:hover {
  /* background: #e0e0e0; */
}

.category-list .count{
  margin-left: 4px;
  color: var(--color-accent);
  font-weight: 500;
}

.category-list button.active {
  background: #5D3FD3;
  color: white;
}

.category-list button.active .count {
  color: white;
}

.seller-page .category-search {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seller-page .search-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.seller-page .category-header {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin-right: auto;
}


.seller-page .category-search input {
  width: 100%;
  max-width: 500px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.seller-page .category-search button {
  padding: 10px 16px;
  background: #5D3FD3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.seller-page .category-search button:hover {
  background: #4a2fb3;
}

/* 상품 목록 */
.seller-page .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.seller-page .product-card {
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fafafa;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s;
  width: 190px;
  margin: 0 auto;
}

.seller-page .product-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seller-page .product-card img {
  width: 100%;
  object-fit: contain;
  border: none;
  margin-bottom: 0;
}

.seller-page .product-name {
  font-size: 14px;
  color: #202020;
  font-weight: 600;
  padding: 12px 0;
  line-height: 1.4;
}

/* 파트너사 페이지네이션 */
.seller-page .page-btn:hover {
  background: var(--color-sub1);
  color: #fff;
  border-color: var(--color-sub1);
}

.seller-page .page-btn.active {
  background: var(--color-sub1);
  color: #fff;
  border-color: var(--color-sub1);
}


/* 제품리스트 페이지 */
 /* 컨테이너 */
  .lm-wrap { max-width: 1200px; margin: 24px auto 96px; padding: 0 16px; }

  /* ---------- 상단 내비 ---------- */
  .lm-catnav { position: sticky; top: 0; z-index: 30; padding: 12px 0;}
 
  .lm-catnav-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;

}

.lm-catnav-link {
display:block; 
align-items:center;
text-align: center;    
padding:8px 6px; 
border-radius:4px;
border: 1px solid var(--color-accent);
background:#fff; color:#666; 
text-decoration:none; 
font-weight:500; 
font-size:13px;
transition: all 0.3s ease;
cursor: pointer;
}

.lm-catnav-link span {
color: #202020;
font-size: 15px;
font-weight: 700;
transition: all 0.3s ease;
}

.lm-catnav-link:hover { 
  background: var(--color-accent);
  color: white;
}

.lm-catnav-link:hover.lm-catnav-link span{
  color: white;
}

.lm-divider { 
border:0; 
border-top:2px solid var(--color-sub); 
margin:16px 0 24px; 
width: 100%;
}

  /* ---------- 섹션 ---------- */
  .lm-section { scroll-margin-top: 80px; margin-top: 30px; margin-bottom: 100px;}
  .lm-section-title {
    display:flex; align-items:baseline; margin: 12px 0 16px;
    font-weight:700; font-size: 24px; letter-spacing:.2px;
  }
  .lm-section-title .lm-initial { color: var(--color-accent); font-size: 32px; line-height:1; }

  /* ---------- 1열 그리드 ---------- */
.lm-grid { 
display:grid;
grid-template-columns: 1fr 1fr; 
gap: 15px;
}

/* 카드: 한 줄에 하나 */
.lm-card {
display:flex; 
gap:4px; 
align-items:center;
background: var(--bg); 
border: 1px solid #f0f0f0;
border-radius: 4px;
transition: all 0.3s ease;
cursor: pointer;
}

  .lm-card:hover {transform: translateY(-5px); }

.lm-thumb { 
width: 220px;      /* 기존 300px → 220px */
min-width: 220px;
height: 220px;
border-radius: 2px; 
overflow: hidden; 
background:none;
display: flex; 
align-items: center; 
justify-content: center; 
}

#se04-01 .lm-thumb { 
min-width: 200px;
min-height: 200px;
border-radius: 2px; 
overflow: hidden; 
background:none;
display: flex; 
align-items: center; 
justify-content: center; 
}

#se04-01 .lm-thumb img{
width:100%;
height:100%; 
}

.lm-thumb img { 
width:90%;
height:90%; 
object-fit:cover; 
display:block; 
}

.lm-card-body { 
display:flex; 
flex-direction:column; 
gap: 6px; 
justify-content:flex-start; 
padding: 20px 10px 20px 0px;
}

#se04-01 .lm-card-body { 
display:flex; 
flex-direction:column; 
gap:6px; 
justify-content:flex-start; 
padding: 20px 15px 20px 0px;
}

#se04-01 .lm-title {
font-size: 18px;
font-weight: 800;
color: #202020;
margin: 0;
}

.lm-badge { display:inline-block; font-size:11px; font-weight:700; color:#fff; background:#3b82f6; padding:4px 8px; border-radius:999px; }
.lm-title { 
font-size:16px; 
font-weight:800; 
color: #202020;
margin:0; }
.lm-sub { 
font-size:14px; 
font-weight: 600;
color: #666;
margin:0; }
.lm-meta { margin-top:6px; font-size:12px; color:#8b8e98; }


/* 각 페이지 별 섹션 패딩 */
.best-seller-page,
.promotion-page,
.special-deals-page,
.laboratory-page,
.all-brands,
.category-section,
.custom-page,
.brand-detail-header,
.brand-detail,
.new-products-page,
.sale-page,
.custom-page,
.tool-page,
.seller-page {
  padding: 0;
}


/* ===========================
로그인 페이지
Login Page (Celltec)
- HTML과 선택자 1:1 매칭
- 중복 제거 / 접근성 & 반응형 정돈
=========================== */

/* 프레임 */
#login-section .celltec-login{
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #e7e7e7;
  border-radius: 6px;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

/* 타이포 */
#login-section .login-title{
  margin: 0 0 10px;
  text-align:center;
  font-weight: 600;
  font-size: 30px;
}
#login-section .login-desc{
  text-align:center;
  color:#7f8a96;
  margin-bottom: 28px;
  line-height:1.7;
  font-size:15px;
}

/* 폼 레이아웃 (기본 3열: 라벨 / 필드 / 버튼) */
#login-section .login-form .row{
  display:grid;
  grid-template-columns: 1fr;  /* ← 추가 */
  gap: 16px;
  align-items:start;               /* 라벨 상단 맞춤 */
  margin-bottom:14px;
}

/* 아이디 저장 */
#login-section .login-form label{
justify-self:end;
padding-top:16px;
color:#2b2b2b;
font-weight: var(--font-weight-bold, 700);
}

/* 아이디,패스워드 찾기 */
#login-section .link{
justify-self:end;
padding-top:16px;
color:#2b2b2b;
font-weight: var(--font-weight-bold, 700);
}

/* 입력 필드 */
#login-section .login-form .field input{
  width:100%;
  height:48px;
  padding: 0 14px;
  border:1px solid #d9dee5;
  border-radius:4px;
  background:#fafafa;
  font-size:15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#login-section .login-form .field input::placeholder{ color:#a8b0b8; }
#login-section .login-form .field input:focus{
  outline:none;
  background:#fff;
  border-color: var(--color-sub, #0083cb);
  box-shadow:0 0 0 3px rgba(0,131,203,.14);
}

/* 기본 버튼 */
#login-section .btn-primary{
  height:48px;
  width: 100%;
  padding: 8px;
  background: var(--color-sub, #0083cb);
  color:#fff;
  border:0;
  border-radius:4px;
  font-weight: var(--font-weight-bold, 700);
  font-size:17px;
  cursor:pointer;
  box-shadow: 0 6px 14px rgba(0,131,203,.18);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
#login-section .btn-primary:hover{ 
  background: var(--color-sub-down, #0070ad);
  box-shadow: 0 8px 18px rgba(0,131,203,.24);
}
#login-section .btn-primary:active{ transform: translateY(1px); }

/* 아이디 줄에 있는 버튼 세로 정렬 (기본 컴팩트) */
#login-section .login-form.variant--compact .id-row .btn-primary{
  align-self:start;
}

/* 메타 라인 (아이디 저장 / 찾기 링크) */


#login-section .login-form .row.row-meta .meta{
  margin-top: 20px;
display: flex;
flex-wrap: nowrap;
gap: 18px 22px;
align-items: center;
color: #87919b;
font-size: 14px;
flex-direction: row;
justify-content: center;
}

/* 체크박스 커스텀 */
#login-section .chk{ display:flex; align-items:center; gap:8px; }
#login-section .chk input{
  appearance:none;
  width:18px; height:18px;
  border:1.5px solid #b8c2cc;
  border-radius:2px; background:#fff;
  position:relative; cursor:pointer;
}
#login-section .chk input:checked{
  border-color: var(--color-sub, #0083cb);
  background: var(--color-sub, #0083cb);
}

/* 체크박스 */
#login-section .chk input:checked::after{
  content:"";
  position:absolute; left:4px; top:2px;
  width:6px; height:6px;
  border:2px solid #fff;
  border-top:none; border-left:none;
  transform:rotate(45deg);
}




#login-section .link:hover{ color: var(--color-sub, #0083cb); text-decoration:underline; }

/* 가입 유도 영역 */
#login-section .register-cta{
  margin-top:24px;
  text-align:center;
}
#login-section .register-cta .small{
  color:#6b7680; line-height:1.6; margin-bottom:12px;
}
#login-section .btn-ghost{
min-width:160px; padding:11px 18px;
border:1px solid #d9dee5;
background:#f5f7fa; color:#454c53;
border-radius:4px;
font-weight: var(--font-weight-bold, 700);
text-decoration:none;
transition: border-color .2s, background .2s;
}

#login-section .btn-ghost:hover{ background:#eef2f6; border-color:#c7d1dc; }

/* ===========================
   Variant 2) Tall Button
   - 버튼이 아이디+비번 두 줄을 세로로 커버
   =========================== */
#login-section .login-form.variant--tallbtn{
  display:grid;
  grid-template-columns: 110px 1fr 150px;
  gap:16px;
}
#login-section .login-form.variant--tallbtn .row{ display:contents; }
#login-section .login-form.variant--tallbtn .id-row label   { grid-column:1; }
#login-section .login-form.variant--tallbtn .id-row .field  { grid-column:2; }
#login-section .login-form.variant--tallbtn .id-row .btn-primary{
  grid-column:3;
  grid-row:1 / span 2;
  height:auto;
  align-self:stretch;
}
#login-section .login-form.variant--tallbtn .row:nth-of-type(2) label  { grid-column:1; }
#login-section .login-form.variant--tallbtn .row:nth-of-type(2) .field { grid-column:2; }
#login-section .login-form.variant--tallbtn .row.row-meta label        { grid-column:1; }
#login-section .login-form.variant--tallbtn .row.row-meta .meta        { grid-column:2 / span 2; }

/* 상태 스타일 (필요 시) */
#login-section .input-error{ border-color:#e35b5b !important; background:#fff8f8 !important; }
#login-section .help-error{ color:#d84c4c; font-size:12px; margin-top:6px; }

/* 회원가입 페이지 */
/* 프레임 */
#join-section .celltec-join{
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #e7e7e7;
  border-radius: 6px;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

/* 타이틀 */
.join-title{
  text-align:center;
  font-weight:600;
  font-size:30px;
  margin:0 0 10px;
}
.join-desc{
  text-align:center;
  color:#7f8a96;
  line-height:1.7;
  font-size:15px;
  margin-bottom:28px;
}

/* 단계 표시 */
.join-steps{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:30px;
}
.join-steps .step{
  padding:10px 18px;
  border-radius:50px;
  background:#e0e4ea;
  color:#868e96;
  font-weight:500;
  font-size:15px;
}
.join-steps .step.active{
  background:var(--color-sub, #0083cb);
  color:#fff;
}

/* 약관 박스 */
.terms-block{
  margin-bottom:36px;
}
.terms-title{
  font-size:18px;
  font-weight:600;
  margin-bottom:10px;
  color:#2b2b2b;
}
.terms-box{
  border:1px solid #d9dee5;
  border-radius:4px;
  background:#fafafa;
  height:150px;
  overflow-y:auto;
  padding:14px;
  font-size:14px;
  line-height:1.6;
  color:#444;
}
.chk{
  display:flex;
  align-items:center;
  gap:8px;
  color:#555;
  font-size:14px;
}
.chk input{
  appearance:none;
  width:18px; height:18px;
  border:1.5px solid #b8c2cc;
  border-radius:2px; background:#fff;
  position:relative; cursor:pointer;
}
.chk input:checked{
  border-color: var(--color-sub, #0083cb);
  background: var(--color-sub, #0083cb);
}
.chk input:checked::after{
  content:"";
  position:absolute;
  left:4px; top:1px;
  width:6px; height:10px;
  border:2px solid #fff;
  border-top:none; border-left:none;
  transform:rotate(45deg);
}

/* 버튼 영역 */
.join-btns{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:24px;
}
.btn-primary{
  min-width:160px;
  height:48px;
  background:var(--color-sub, #0083cb);
  color:#fff;
  border:0;
  border-radius:4px;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
}
.btn-primary:hover{
  background:var(--color-sub-down, #0070ad);
}
.btn-ghost{
  min-width:160px;
  height:48px;
  border:1px solid #d9dee5;
  background:#f5f7fa;
  color:#454c53;
  border-radius:4px;
  font-weight:600;
  cursor:pointer;
}
.btn-ghost:hover{
  background:#eef2f6;
  border-color:#c7d1dc;
}

/* 회원가입 2번째 페이지 */
/* ========== Join Complete ========== */
#join-section .celltec-join{
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #e7e7e7;
  border-radius: 6px;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
#join-section .join-title{
  text-align:center; font-weight:600; font-size:30px; margin:0 0 10px;
}
#join-section .join-desc{
  text-align:center; color:#7f8a96; line-height:1.7; font-size:15px; margin-bottom:28px;
}
#join-section .join-steps{
  display:flex; justify-content:center; gap:12px; margin-bottom:30px;
}
#join-section .join-steps .step{
  padding:10px 18px; border-radius:50px; background:#e0e4ea; color:#868e96; font-weight:500; font-size:15px;
}
#join-section .join-steps .step.active{
  background:var(--color-sub, #0083cb); color:#fff;
}

/* 완료 카드 */
.complete-card{
  border:1px solid #e6ebf1; border-radius:4px; background:#f9fbfd;
  padding:28px; text-align:center;
}
.complete-icon{
  width:66px; height:66px; margin:0 auto 10px;
  border-radius:50%; display:grid; place-items:center;
  background:rgba(0,131,203,.12); color:var(--color-sub, #0083cb); font-size:30px;
}
.complete-title{ font-size:22px; font-weight:700; margin:8px 0 6px; color:#222; }
.complete-sub{ color:#6b7680; margin-bottom:18px; }

/* 요약 */
.complete-summary{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px 16px;
  max-width:560px; margin:0 auto 18px; text-align:left; list-style:none; padding:0;
}
.complete-summary .k{ color:#7a8696; }
.complete-summary .v{ color:#1f2937; font-weight:600; }
.complete-summary li{
  display:grid; grid-template-columns: 120px 1fr; gap:10px;
  padding:10px 12px; background:#fff; border:1px solid #e6ebf1; border-radius:4px;
}

/* 안내 */
.notice-box{
  display:flex; gap:12px; align-items:flex-start;
  max-width: 720px; margin: 8px auto 18px; text-align:left;
  background:#fff; border:1px dashed #cfe6f7; border-radius:4px; padding:14px 16px;
}
.notice-box i{ color:var(--color-sub, #0083cb); font-size:18px; margin-top:2px; }
.notice-box .txt strong{ display:block; margin-bottom:4px; color:#223; }
.notice-box .txt p{ color:#4b5563; line-height:1.6; }
.notice-box .txt em{ font-style:normal; color:#0e78c9; font-weight:600; }

/* 버튼 */
.complete-btns{ display:flex; justify-content:center; gap:10px; margin-top:8px; }

.btn-primary{
  display: flex;
  min-width:160px; 
  height:48px; 
  background:var(--color-sub, #0083cb); 
  color:#fff;
  border:0; 
  border-radius:4px; 
  font-size:14px; 
  font-weight:700; 
  cursor:pointer;
  box-shadow: 0 6px 14px rgba(0,131,203,.18);

  justify-content: center;
  align-items: center;
}
.btn-primary:hover{ background:var(--color-sub-down, #0070ad); }

.btn-ghost{
display: flex;
font-size: 14px;
align-items: center;
justify-content: center;
min-width:160px; 
height:48px; 
border:1px solid #d9dee5; 
background:#f5f7fa; 
color:#454c53;
border-radius:4px; 
font-weight:700; 
cursor:pointer;
}

.btn-ghost:hover{ background:#eef2f6; border-color:#c7d1dc; }

.auto-redirect{ color:#7a8696; margin-top:10px; }
/* ============== Celltec Join Step1 (ctj-*) ============== */

/* 프레임 */
.ctj .ctj-frame{
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid #e7e7e7;
  border-radius: 6px;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  box-sizing: border-box;
}

/* 타이틀/설명 */
.ctj .ctj-title{
  margin:0 0 10px;
  text-align:center;
  font-weight:700;
  font-size:30px;
}
.ctj .ctj-desc{
  text-align:center;
  color:#7f8a96;
  line-height:1.7;
  font-size:15px;
  margin-bottom:28px;
}

/* 단계 네비 */
.ctj .ctj-steps{
  display:flex; justify-content:center; gap:12px;
  list-style:none; padding:0; margin:0 0 30px;
}
.ctj .ctj-steps__item{
  padding:10px 18px; border-radius:999px;
  background:#e0e4ea; color:#868e96; font-weight:600; font-size:15px;
}
.ctj .ctj-steps__item--active{ background:#0083cb; color:#fff; }
.ctj .ctj-steps__item--done{ background:#cfd7df; color:#fff; }

/* 섹션 타이틀바 */
.ctj .ctj-sectionbar{
  display:flex; align-items:center; gap:12px;
  padding-bottom:10px; border-bottom:1px solid #dfe5ec; margin-bottom:8px;
}
.ctj .ctj-sectionbar__title{ font-size:20px; font-weight:800; color:#2b2b2b; }
.ctj .ctj-sectionbar__hint{ font-size:13px; color:#9099a4; }

/* 폼 레이아웃 */
.ctj .ctj-form{ margin-top:8px; }
.ctj .ctj-row{
  display: grid;
  
  /* 라벨 / 필드 / 도움말 */
  /* grid-template-columns: 160px 1fr 260px; */

  gap: 14px 16px;
  align-items: center;
  padding: 8px 0;
}
.ctj .ctj-row--stack{ align-items: start; }
.ctj .ctj-label{
  align-self: start;
  font-weight:700; color:#2b2b2b; font-size:14px;
}
.ctj .ctj-req{ color:#e14a4a; margin-left:4px; }

.ctj .ctj-field{ width:100%; }
.ctj .ctj-field--inline{ display:flex; gap:8px; align-items:center; }
.ctj .ctj-field--block{ display:block; }
.ctj .ctj-input,
.ctj .ctj-select,
.ctj textarea.ctj-input{
  width:100%; min-height:42px; padding:10px 12px;
  border:1px solid #d9dee5; border-radius:4px; background:#fafafa;
  font-size:14px; box-sizing:border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ctj .ctj-input:focus,
.ctj .ctj-select:focus,
.ctj textarea.ctj-input:focus{
  outline:none; background:#fff;
  border-color:#0083cb; box-shadow:0 0 0 3px rgba(0,131,203,.14);
}

/* 도움문구 */
.ctj .ctj-help{ color:#7c8794; font-size:13px; line-height:1.5; margin:0; }

/* 전화, 이메일 */
.ctj .ctj-phone{ display:flex; gap:8px; align-items:center; }
.ctj .ctj-dash{ color:#9aa3ac; }
.ctj .ctj-email{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.ctj .ctj-at{ padding:0 4px; color:#87919b; }

/* 라디오/체크 공통(크기 20px) */
.ctj input.ctj-radio,
.ctj input.ctj-checkbox{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  width:20px; height:20px; margin:0;
  border:1.8px solid #b8c2cc; background:#fff;
  border-radius:50%; /* 기본: 라디오 */
  position:relative; cursor:pointer; transition:all .2s ease;
}
.ctj input.ctj-checkbox{ border-radius:2px; }
.ctj input.ctj-radio:hover, .ctj input.ctj-checkbox:hover{ border-color:#0083cb; }
.ctj input.ctj-radio:focus-visible, .ctj input.ctj-checkbox:focus-visible{ box-shadow:0 0 0 3px rgba(0,131,203,.2); outline:none; }
.ctj input.ctj-radio:checked{ background:#0083cb; border-color:#0083cb; }
.ctj input.ctj-radio:checked::after{
  content:""; position:absolute; left:5px; top:5px; width:8px; height:8px; border-radius:50%; background:#fff;
}
.ctj input.ctj-checkbox:checked{ background:#0083cb; border-color:#0083cb; }
.ctj input.ctj-checkbox:checked::after{
  content:""; position:absolute; left:4px; top:4px; width:6px; height:6px;
  border:2px solid #fff; border-top:none; border-left:none; transform:rotate(45deg);
}

/* 라벨 묶음 */
.ctj .ctj-check{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.ctj .ctj-options{ display:flex; flex-wrap:wrap; gap:18px 22px; }
.ctj .ctj-options--grow{ align-items:center; }
.ctj .ctj-option{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none; font-size:15px; color:#2b2b2b; }
.ctj .ctj-group{ margin-bottom:18px; }
.ctj .ctj-group__title{ margin:10px 0 6px; font-weight:800; color:#2b2b2b; }

/* 구분선 */
.ctj .ctj-divider{ margin:24px 0; border:0; border-top:1px solid #e6ebf1; }

/* 버튼 */
.ctj .ctj-actions{ display:flex; justify-content:center; gap:10px; margin-top:8px; }
.ctj .ctj-btn{
  display:inline-flex; justify-content:center; align-items:center;
  min-width:180px; height:48px; padding:0 18px; border-radius:4px;
  font-weight:800; font-size:16px; cursor:pointer; text-decoration:none;
  transition:background .2s, box-shadow .2s, transform .06s;
}
.ctj .ctj-btn--primary{ color:#fff; background:#0083cb; box-shadow:0 6px 14px rgba(0,131,203,.18); border:none; }
.ctj .ctj-btn--primary:hover{ background:#0070ad; box-shadow:0 8px 18px rgba(0,131,203,.24); }
.ctj .ctj-btn--primary:active{ transform:translateY(1px); }
.ctj .ctj-btn--ghost{ color:#454c53; background:#f5f7fa; border:1px solid #d9dee5; }
.ctj .ctj-btn--ghost:hover{ background:#eef2f6; border-color:#c7d1dc; }
.ctj .ctj-btn--inline{
  height:42px; padding:0 12px; border:none; border-radius:4px;
  background:#8a93a0; color:#fff; font-weight:700; cursor:pointer;
}
.ctj .ctj-btn--inline:hover{ background:#7a8390; }

/* 가변 입력 폭 */
.ctj .ctj-input--flex{ flex:1; min-width:220px; }


.pagination .current-page { font-weight:700; background:#f7f7f7; }

/* 자료실 페이지 스타일 */
.table-wrapper {
  margin: 20px 0;
  margin-top: 0;
  overflow-x: auto;
}

/* 자료실 표 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 셀 고정폭 */
  font-size: 14px;
}

/* 헤더 */
.data-table thead th {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 12px 8px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* 본문 */
.data-table tbody td {
  border: 1px solid #ddd;
  padding: 12px 20px;
  text-align: center;
  vertical-align: middle;
}

/* 자료명은 왼쪽 정렬 */
.data-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: #222;
}

/* 다운로드 버튼 */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-accent);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.btn-download:hover {
  background-color: var(--color-accent-down);
  transform: translateY(-1px);
}
.btn-download i {
  font-size: 13px;
}

.doc-tabs {
  display: flex;
  gap: 6px;
  margin: 0px 0;
}
.doc-tabs .tab {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #fafafa;
  text-decoration: none;
  color: #a0a0a0;
  border-radius: 6px 6px 0 0;
}
.doc-tabs .tab.active {
  background: #fff;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 2px solid #fff;
}

#list-page{
  margin: 30px auto;
}

/* 공지사항 페이지 */
/* ===========================
   Notice List (scoped to #list-page)
   =========================== */
#list-page { --accent: #0083cb; --border:#e6ebf1; --text:#222; --muted:#6b7680; }

/* 테이블 래퍼: 가로 스크롤/모서리/그림자 */
#list-page .table-wrapper{
  /* margin-top: 10px; */
  /* background:#fff; */
  /* border:1px solid var(--border); */
  overflow:auto;             /* 작은 화면에서 스크롤 */
}

/* 표 기본 */
#list-page .notice-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;        /* 제목 열 자동 줄바꿈 + 너비 컨트롤 */
  font-size:15px;
  color:var(--text);
}

/* 헤더 */
#list-page .notice-table thead th{
  background:linear-gradient(0deg, #f6f9fc, #f6f9fc);
  color:#394150;
  font-weight:700;
  padding:14px 12px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
  position:sticky; top:0; z-index:1; /* 스크롤시 헤더 고정 */
}

/* 바디 셀 */
#list-page .notice-table tbody td{
  padding:14px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
  text-align:center;
  word-wrap:break-word;
  word-break:keep-all;
}

/* 열 정렬/너비 조정 */
#list-page .notice-table thead th:nth-child(1),
#list-page .notice-table tbody td:nth-child(1){ width:80px; }
#list-page .notice-table thead th:nth-child(3),
#list-page .notice-table tbody td:nth-child(3){ width:110px; }
#list-page .notice-table thead th:nth-child(4),
#list-page .notice-table tbody td:nth-child(4){ width:120px; }
#list-page .notice-table thead th:nth-child(5),
#list-page .notice-table tbody td:nth-child(5){ width:90px; }

/* 제목 열: 좌측 정렬 + 말줄임 보조 */
#list-page .notice-table thead th:nth-child(2),
#list-page .notice-table tbody td:nth-child(2){ text-align:left; }
#list-page .notice-table tbody td:nth-child(2) a{
  display:inline-block;
  max-width:100%;
  color:#174a7e;
  text-decoration:none;
}
#list-page .notice-table tbody td:nth-child(2) a:hover{
  text-decoration:underline;
}

/* 행 상태 */
#list-page .notice-table tbody tr:nth-child(even){ background:#fafcff; }
#list-page .notice-table tbody tr:hover{ background:#f3f8ff; }

/* 페이지네이션 */
#list-page .pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:16px 0 4px;
  user-select:none;
}
#list-page .pagination button,
#list-page .pagination .current-page{
  display:flex;
  justify-content:center;
  align-items:center;
  width:36px; height:36px;
  border:1px solid #ccd6e0;
  background:#fff;
  color:#334155;
  border-radius:2px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  transition:background .2s, border-color .2s, color .2s, transform .06s;
}
#list-page .pagination button:hover{
  background:#f2f7fc; border-color:#b7c6d6;
}
#list-page .pagination .current-page{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  cursor:default;
}
#list-page .pagination .first-page,
#list-page .pagination .prev-page,
#list-page .pagination .next-page,
#list-page .pagination .last-page{
font-size:18px;
padding-bottom:2px;
}

#list-page .pagination .is-disabled{
opacity:.45; cursor:not-allowed;
}

/* 게시글 상세페이지 */
/* ===============================
   Notice View (scoped: .nv-*)
   =============================== */
.nv { --border:#e6ebf1; --head:#eef0f2; --text:#1f2937; --muted:#6b7680; --radius:10px; }

.nv .nv-frame{
  max-width: 850px;
  margin: 50px auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

/* 메타 테이블 (첨부 이미지처럼 옅은 회색 헤더 느낌) */
.nv .nv-meta{
  border:1px solid var(--border);
  /* border-radius: var(--radius); */
  background:#fff;
  margin-bottom:18px;
}
.nv .nv-meta-table{
  width:100%;
  border-collapse:collapse;
  table-layout: fixed;
  font-size:16px;
  color:var(--text);
}
.nv .nv-meta-table th{
  background:#eceff1;                 /* 스크린샷 같은 옅은 회색 헤더 */
  color:#374151;
  padding:12px 14px;
  text-align:center;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.nv .nv-meta-table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  background:#fff;
  word-break:break-word;
}
.nv .nv-meta-table tr:last-child th,
.nv .nv-meta-table tr:last-child td{ border-bottom:none; }

/* 본문 */
.nv .nv-body{
  border:1px solid var(--border);
  /* border-radius: var(--radius); */
  background:#fff;
  padding:22px;
  color:var(--text);
  line-height:1.8;
  font-size: 14px;
}
.nv .nv-body p{ margin:0 0 14px; }
.nv .nv-body img{
  max-width:100%; height:auto; display:block; margin:12px auto;
  border-radius:6px;
}

/* 버튼 */
.nv .nv-actions{
  display:flex; justify-content:center; gap:10px;
  margin-top:18px;
}
.nv .nv-btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:140px; height:44px; padding:0 16px;
  border-radius:4px; text-decoration:none;
  font-weight:700; font-size:15px; cursor:pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nv .nv-btn--ghost{
  border:1px solid #d9dee5; background:#f5f7fa; color:#374151;
}
.nv .nv-btn--ghost:hover{
  background:#eef2f6; border-color:#c7d1dc;
}

/* ===== Notice View Pagination ===== */
.nv-paging {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.nv-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ccd6e0;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.nv-page:hover {
  background: #f2f7fc;
  border-color: #b7c6d6;
}

.nv-page--current {
  background: #0083cb;
  border-color: #0083cb;
  color: #fff;
  cursor: default;
}