/* BASIC css start */
/* 기본 스타일 초기화 및 컨테이너 설정 */
#nanlite-main-container {
  width: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}
#nanlite-main-container a { text-decoration: none; color: inherit; display: block; }
#nanlite-main-container img { width: 100%; height: auto; display: block; }

/* 공통 섹션 타이틀 */
.content-wrapper {
  max-width: 1330px;
  margin: 0 auto;
  padding: 60px 0;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

/* [1] 메인 배너 영역 */
.main-banner-section {
  max-width: 1330px;
  margin: 0 auto;
  padding: 5px 0;
  position: relative;
  box-sizing: border-box;
}
.main-banner-swiper {
  width: 100%;
  height: 570px;
  border-radius: 8px;
  overflow: hidden;
}
.main-banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* 메인 슬라이더 내부 커스텀 내비게이션 컨트롤러 */
.banner-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0,0,0,0.6);
  padding: 8px 24px;
  border-radius: 25px;
}
.banner-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
  transition: opacity 0.2s;
}
.banner-controls button:hover { opacity: 0.7; }
.btn-autoplay-toggle { font-size: 13px !important; }

/* [2] 원형 배너 (128x128px) */
.circle-banner-section { padding: 50px 0; }
.circle-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.circle-item { text-align: center; width: 128px; cursor: pointer; }
.circle-item .img-box {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.circle-item:hover .img-box { border-color: #1DACE3; }
.circle-text { margin-top: 12px; font-size: 14px; font-weight: 500; }

/* [3] 신제품 소개 */
.new-product-section { padding: 40px 0; }
.product-card .img-box {
  width: 100%;
  height: 297px;
  overflow: hidden;
  background-color: #f7f7f7;
}
.product-card .img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: all 0.3s ease-in-out;
}
.product-card:hover .img-box img {
  filter: brightness(1.1);
  opacity: 0.9;
}
.product-card .info-box { padding: 15px 5px; }
.prod-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.prod-desc { font-size: 13px; color: #777; line-height: 1.4; }
.new-prod-pagination { position: relative !important; margin-top: 20px; }

/* [4] MD추천 제품 */
.md-recommend-section { padding: 40px 0; }
.md-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.md-card .img-box { 
  width: 100%; 
  height: 320px; 
  overflow: hidden;
}
.md-card .img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s ease-in-out;
}
.md-card:hover .img-box img {
  transform: scale(1.05);
}
.md-card .info-box { 
  padding: 20px 20px 30px 20px; 
  background: #fff; 
  height: auto;                  
  box-sizing: border-box; 
}
.brand-tag { font-size: 14px; font-weight: 400; color: #575757; display: block; margin-bottom: 8px; }
.md-name { font-size: 28px; font-weight: 600; color: #1DACE3; margin-bottom: 20px; }
.md-desc { font-size: 18px; color: #1f1f1f; line-height: 1.5; }
.md-pagination { position: relative !important; margin-top: 20px; }

/* [5, 8] 공통 띠 배너 디자인 영역 */
.strip-banner-box {
  width: 1330px;
  height: 170px;
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 8px;
}
.strip-banner-box img { width: 100%; height: 100%; object-fit: cover; }
.strip-text-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; padding-left: 60px;
  box-sizing: border-box; z-index: 2;
}
.strip-main-title {
  font-size: 30px;       
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}
.strip-sub-title {
  font-size: 17px;       
  font-weight: 400;
  margin: 0;
}
.bottom-strip-section { display: flex; flex-direction: column; gap: 15px; }

/* 띠배너 글자 색상 제어 */
.strip-text-overlay.color-mid .strip-main-title { color: #111111; }
.strip-text-overlay.color-mid .strip-sub-title  { color: #FFFFFF; }
.strip-text-overlay.color-a .strip-main-title { color: #c6ff31; } 
.strip-text-overlay.color-a .strip-sub-title  { color: #FFFFFF; }
.strip-text-overlay:not(.color-mid):not(.color-a):not(.color-c) .strip-main-title { color: #e2007e; }
.strip-text-overlay:not(.color-mid):not(.color-a):not(.color-c) .strip-sub-title  { color: #111111; }
.strip-text-overlay.color-c .strip-main-title { color: #FFFFFF; } 
.strip-text-overlay.color-c .strip-sub-title  { color: #FFFFFF; }

/* [6] 영상 리뷰 영역 하단 설명 텍스트 */
.review-video-section { padding: 40px 0; }
.video-grid { display: flex; gap: 20px; }
.video-card { flex: 1; }
.video-box {
  position: relative; width: 100%; padding-bottom: 56.25%;
  height: 0; border-radius: 8px; overflow: hidden;
}
.video-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-prod-info { padding: 20px 5px 10px 5px; }
.video-prod-info .prod-name { font-size: 22px; color: #222222; font-weight: 600; margin: 0 0 6px 0; }
.video-prod-info .prod-desc { font-size: 16px; color: #888888; line-height: 1.5; margin: 0; }

/* [7] NEWS 영역 디자인 */
.news-section { padding: 40px 0; }
.news-grid { display: flex; gap: 30px; }
.news-card {
  width: 650px;
  height: 700px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.news-card .img-box { width: 100%; height: 100%; position: relative; }
.news-card .img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s ease-in-out;
}
.news-card:hover .img-box img { transform: scale(1.05); }
.news-gradient-layer {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; 
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  z-index: 2; 
}
.news-text-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 45px; box-sizing: border-box; z-index: 3; }
.news-title { font-size: 30px; font-weight: 700; line-height: 1.4; margin: 0 0 12px 0; color: #ffffff !important; }
.news-desc { font-size: 18px; line-height: 1.5; margin: 0; color: #ffffff !important; opacity: 0.85; }


/* ==========================================================
   제품 팝업 (모달) 스타일시트
   ========================================================== */

/* 1. 검은 오버레이 배경 (기본 숨김 처리) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 활성화되었을 때 클래스 */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 2. 중앙 백그라운드 팝업 컨테이너 */
.modal-container {
  background-color: #fff;
  width: 1100px;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 3. 상단 헤더 영역 */
.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
}
.modal-desc-text {
  font-size: 15px;
  color: #555;
  margin: 0;
  font-weight: 500;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #000;
}

/* 4. 제품 영역 내부 스크롤바 세팅 */
.modal-body {
  padding: 30px 25px;
  overflow-y: auto;
  flex: 1;
}

/* 스크롤바 디자인 커스텀 */
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 5. 제품 리스트 4열 배열 정렬 그리드 */
.modal-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 20px;
}

/* 6. 개별 제품 카드 스타일 */
.modal-product-card {
  border: 1px solid #eef0f2;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}
.modal-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.modal-product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.modal-product-card .img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #fcfcfc;
}
.modal-product-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-product-card .info-box {
  padding: 15px;
}
.modal-product-card .prod-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-product-card .prod-price {
  font-size: 12px;
  color: #a0a0a0;
  font-weight: 400;
  margin: 0;
}

/* 팝업 오픈 시 뒷배경 스크롤 방지용 클래스 */
body.modal-open {
  overflow: hidden;
}
/* BASIC css end */

