/* BASIC css start */

.sec_inner{width: 1280px; margin: 0 auto;}



/* 메인 배너 섹션 전용 스코프 */

/* Swiper 로드 전 이미지 세로 나열 방지 */
.main-banner-section .mban-swiper:not(.swiper-initialized) .mban-wrapper {
  display: flex;
  overflow: hidden;
}
.main-banner-section .mban-swiper:not(.swiper-initialized) .mban-slide:not(:first-child) {
  display: none; /* 첫번째 배너만 일단 노출 */
}



.main-banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.main-banner-section * {
  box-sizing: border-box;
}

.main-banner-section .mban-swiper {
  width: 100%;
  height: auto;
  position: relative;
}

.main-banner-section .mban-slide {
  width: 100%;
  position: relative;
}

.main-banner-section .mban-slide a {
  display: block;
  width: 100%;
}

.main-banner-section .mban-img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover;
  display: block;
}

/* ★ 화살표 네비게이션 (평소 숨김 + 작고 흰색 처리) ★ */
.main-banner-section .mban-btn-prev,
.main-banner-section .mban-btn-next {
  color: #ffffff;             /* 화이트 색상 */
  width: 32px;                /* 화살표 전체 영역 크기 감소 */
  height: 32px;
  opacity: 0;                 /* 기본 숨김 */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.main-banner-section .mban-btn-prev {
  left: 20px;
  transform: translateX(-10px);
}

.main-banner-section .mban-btn-next {
  right: 20px;
  transform: translateX(10px);
}

/* Swiper 기본 아이콘 크기 축소 */
.main-banner-section .mban-btn-prev::after,
.main-banner-section .mban-btn-next::after {
  font-size: 18px !important;  /* 화살표 아이콘 크기 자체를 작게 설정 */
  font-weight: bold;
}

/* 마우스 호버 시 화살표 나타남 */
.main-banner-section .mban-swiper:hover .mban-btn-prev,
.main-banner-section .mban-swiper:hover .mban-btn-next {
  opacity: 0.8;
  transform: translateX(0);
}

.main-banner-section .mban-btn-prev:hover,
.main-banner-section .mban-btn-next:hover {
  opacity: 1 !important;
}

/* 하단 도트(페이지네이션) 스타일 */
.main-banner-section .mban-pagination {
  bottom: 20px !important;
}

.main-banner-section .mban-pagination .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.5;
}

.main-banner-section .mban-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
  width: 20px;
  border-radius: 4px;
  transition: width 0.3s ease;
}







/* ==========================================
   메인 베스트 상품 (이미지 18.6% 강제 고정 + 자동 스크롤)
   ========================================== */

.main-best-section {
  width: 100% !important;
  padding: 60px 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.main-best-section * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

.main-best-section .mbest-container {
  width: 100% !important;
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.main-best-section .mbest-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 25px !important;
}

.main-best-section .mbest-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #000000 !important;
  text-transform: uppercase !important;
}

.main-best-section .mbest-view-all {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  text-decoration: none !important;
  letter-spacing: 0.05em !important;
}

/* 1줄 가로 스크롤 컨테이너 */
.main-best-section .mbest-grid-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 1.75% !important; /* 카드 사이 가로 여백 */
  padding-bottom: 15px !important;
  list-style: none !important;
  counter-reset: best-rank !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ★ 핵심: 이미지/카드 너비 18.6% 철통 고정 ★ */
.main-best-section .mbest-grid-item {
  width: 18.6% !important;
  max-width: 18.6% !important;
  min-width: 18.6% !important; /* 최소 크기 제한을 풀고 18.6%로 동일하게 고정 */
  flex: 0 0 18.6% !important;   /* flex 구조에서 18.6% 고정 비율 지정 */
  counter-increment: best-rank !important;
}

.main-best-section .mbest-card-link {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

.main-best-section .mbest-thumb {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  background-color: #f5f5f5 !important;
  overflow: hidden !important;
}

/* 이미지 원본 비율 축소 */
.main-best-section img,
.main-best-section .mbest-thumb img,
.main-best-section .mbest-img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
}

.main-best-section .mbest-rank-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  width: 24px !important;
  height: 24px !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  z-index: 5 !important;
}

.main-best-section .mbest-rank-badge::before {
  content: counter(best-rank) !important;
}

.main-best-section .mbest-soldout-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  padding: 4px 6px !important;
  font-weight: bold !important;
  z-index: 5 !important;
}

.main-best-section .mbest-info-box {
  padding-top: 12px !important;
  width: 100% !important;
}

.main-best-section .mbest-brand-name {
  font-size: 11px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
  color: #000000 !important;
  text-transform: lowercase !important;
}

.main-best-section .mbest-item-name {
  font-size: 12px !important;
  color: #222222 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

.main-best-section .mbest-price-box {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.main-best-section .mbest-discount-rate {
  color: #ff0000 !important;
  font-weight: 800 !important;
}

.main-best-section .mbest-price-sale { color: #000000 !important; }
.main-best-section .mbest-price-origin { color: #999999 !important; text-decoration: line-through !important; font-weight: 400 !important; }
.main-best-section .mbest-price-sell { color: #000000 !important; }
.main-best-section .mbest-price-soldout { color: #e53935 !important; }

/* 얇은 스크롤바 */
.main-best-section .mbest-grid-list::-webkit-scrollbar {
  height: 4px !important;
}

.main-best-section .mbest-grid-list::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 2px !important;
}

.main-best-section .mbest-grid-list::-webkit-scrollbar-thumb {
  background: #111111 !important;
  border-radius: 2px !important;
}

/* 반응형 */
@media (max-width: 1024px) {
  .main-best-section .mbest-grid-item {
    width: 31.3% !important;
    max-width: 31.3% !important;
    min-width: 31.3% !important;
    flex: 0 0 31.3% !important;
  }
}
@media (max-width: 640px) {
  .main-best-section .mbest-grid-item {
    width: 48% !important;
    max-width: 48% !important;
    min-width: 48% !important;
    flex: 0 0 48% !important;
  }
}

/* 마우스 드래그용 커서 스타일 추가 */
.main-best-section .mbest-grid-list {
  cursor: grab !important;
  user-select: none !important; /* 드래그 시 텍스트/이미지 파란색 선택 방지 */
}

.main-best-section .mbest-grid-list.active {
  cursor: grabbing !important; /* 마우스 누르고 있을 때 손아귀 모양 */
}

/* 드래그 도중 클릭 이벤트 꼬임 방지 */
.main-best-section .mbest-grid-list img {
  pointer-events: none !important;
}




/* 중간 배너 스타일 */
.middle-banner-section {
  width: 100%;
  margin: 40px 0; /* 위아래 여백 (원하시는 대로 조절 가능) */
  background-color: #f9f9f9;
}

.mbanner-container {
  width: 100%;
  max-width: 1920px; /* 최대 1920px 제한 */
  margin: 0 auto;
}

.mbanner-link {
  display: block;
  width: 100%;
  overflow: hidden;
}

.mbanner-img {
  display: block;
  width: 100%;
  height: auto; /* 화면 줄어듦에 따라 세로 높이가 비율에 맞게 자동 조절됨 */
  object-fit: cover;
}







/* ==========================================
   신상품(NEW PRODUCT) 진열 (가로 4개 고정 + 비율 유지)
   ========================================== */

.main-new-section {
  width: 100% !important;
  padding: 60px 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
  background-color: #ffffff !important;
}

.main-new-section * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

.main-new-section .mnew-container {
  width: 100% !important;
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.main-new-section .mnew-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 25px !important;
}

.main-new-section .mnew-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #000000 !important;
  text-transform: uppercase !important;
}

.main-new-section .mnew-view-all {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  text-decoration: none !important;
  letter-spacing: 0.05em !important;
}

/* 4열 그리드 리스트 (총 20개 진열) */
.main-new-section .mnew-grid-list {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* 가로 4개 철통 고정 */
  gap: 40px 20px !important; /* 행 간격 40px, 열 간격 20px */
  list-style: none !important;
  width: 100% !important;
  align-items: start !important;
}

/* 카드 아이템 폭 설정 */
.main-new-section .mnew-grid-item {
  width: 100% !important;
  min-width: 0 !important;
}

.main-new-section .mnew-card-link {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

.main-new-section .mnew-thumb {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  background-color: #f5f5f5 !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

/* 이미지 원본 비율 축소 및 잘림 방지 */
.main-new-section img,
.main-new-section .mnew-thumb img,
.main-new-section .mnew-img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* 아이콘 영역 (상품명 위로 분리 배치) */
.main-new-section .mnew-icon-box {
  display: flex !important;
  gap: 4px !important;
  margin-bottom: 6px !important;
  flex-wrap: wrap !important;
}

.main-new-section .mnew-soldout-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  padding: 4px 6px !important;
  font-weight: bold !important;
  z-index: 5 !important;
}

.main-new-section .mnew-info-box {
  padding-top: 4px !important;
  width: 100% !important;
}

/* 상품명 (위로 이동) */
.main-new-section .mnew-item-name {
  font-size: 14px !important;
  color: #222222 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 서브네임/브랜드명 (상품명 아래로 이동) */
.main-new-section .mnew-sub-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom:6px !important;
  color: #888888 !important;
}

.main-new-section .mnew-price-box {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
}

.main-new-section .mnew-discount-rate {
  color: #ff0000 !important;
  font-weight: 800 !important;
}

.main-new-section .mnew-price-sale { color: #000000 !important; }
.main-new-section .mnew-price-origin { color: #999999 !important; text-decoration: line-through !important; font-weight: 400 !important; }
.main-new-section .mnew-price-sell { color: #000000 !important; }
.main-new-section .mnew-price-soldout { color: #e53935 !important; }

/* 드래그 방지 및 안정성 */
.main-new-section img {
  pointer-events: none !important;
}

/* 반응형 (화면 줄어들 때 3개, 2개로 자동 변경) */
@media (max-width: 1400px) {
  .main-new-section .mnew-grid-list {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .main-new-section .mnew-grid-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px 12px !important;
  }
}
/* BASIC css end */

