/* BASIC css start */
/*공통 css*/
section {padding: 0 20px;} 
section.no_p {padding:0; } 
section .sectionTit {position:relative; } 
section .sectionTit h2 {margin: 40px 0 20px;font-size: 20px;font-weight:500;line-height: 24px;} 
section .sectionTit a {position:absolute;top:0;right:0;line-height:21px;font-size:12px;font-weight: 400;color: #656565;} 
section .sectionTit a img {vertical-align:middle;margin-left:2px;margin-top: -3px; } 

/*메인 슬라이더*/
.mainSlider ul li img {width:100%; } 
.mainSlider .swiper-pagination {bottom:10px;left:auto;right:10px;width:46px;background:rgba(0,0,0,0.4);color:#fff;line-height:20px;border-radius:10px; } 
.mainSlider .thinBan a {position:relative;display:block;font-size: 14px;font-weight: 500;color:#fff;line-height: 40px;padding: 0 46px 0 20px;background:var(--main_color_01);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;} 
.mainSlider .thinBan a img {position:absolute;top: 50%;right: 20px;transform: translateY(-50%);} 

/* 첫 번째 슬라이드: 어두운 그라데이션 오버레이 제거 */
.mainSlider .swiper-slide .mainSlideLink.noOverlay::after{
  content:none;
}


/*추석*/

.cb-decor {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
    container-type: inline-size; z-index: 3;
  }

  .cb-star {
    position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
    animation: cb-twinkle var(--t, 3.2s) ease-in-out var(--d, 0s) infinite;
    filter: drop-shadow(0 0 6px rgba(255, 226, 130, .9));
  }
  .cb-star--g { fill: #ffd75e; }
  .cb-star--w { fill: #fff; filter: drop-shadow(0 0 6px rgba(210, 225, 255, .95)); }
  @keyframes cb-twinkle {
    0%, 100% { opacity: .15; transform: scale(.5) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.25) rotate(45deg); }
  }

  .cb-shoot {
    position: absolute; left: var(--x); top: var(--y); width: 14cqw; height: .3cqw; border-radius: 99px; opacity: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff 85%);
    transform-origin: right center; rotate: 26deg;
    animation: cb-shoot 7s ease-in var(--d, 0s) infinite;
  }
  .cb-shoot::after {
    content: ""; position: absolute; right: -.3cqw; top: 50%; width: 1cqw; height: 1cqw; margin-top: -.5cqw;
    border-radius: 50%; background: #fff; box-shadow: 0 0 1.2cqw .4cqw rgba(255,226,130,.9);
  }
  @keyframes cb-shoot {
    0%   { opacity: 0; translate: 0 0; }
    3%   { opacity: 1; }
    14%  { opacity: 0; translate: 20cqw 11cqw; }
    100% { opacity: 0; translate: 20cqw 11cqw; }
  }



  .cb-rabbit-pair {
    position: absolute; left: 50%; bottom: 5%; width: 20%; height: auto; display: block;
    transform-origin: 50% 100%;
    animation: cb-hop-pair 1.15s cubic-bezier(.45, 0, .55, 1) infinite;
    filter: drop-shadow(0 10px 10px rgba(6,20,80,.35));
  }
  @keyframes cb-hop-pair {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1.05, .93) rotate(0deg); }
    14%      { transform: translateX(-50%) translateY(0) scale(.96, 1.06) rotate(0deg); }
    50%      { transform: translateX(-50%) translateY(-5.5cqw) scale(1, 1) rotate(-2deg); }
    86%      { transform: translateX(-50%) translateY(0) scale(.97, 1.04) rotate(0deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .cb-star { animation: none; opacity: 1; }
    .cb-shoot { display: none; }
    .cb-rabbit-pair { animation: none; }
  }


/*신상품*/
.newProduct {overflow:hidden; } 
.newProduct .swiper {overflow: visible; } 

/*핫한 키워드*/
.hotKeyWord .keywordTabBtn {margin: 0 -20px 15px;padding: 0 20px;} 
.hotKeyWord .keywordTabBtn ul li {display:block;width:auto;font-size:13px;line-height:28px;padding:0 13px;border:1px solid #ededed;color:#999;border-radius:14px; } 
.hotKeyWord .keywordTabBtn ul li.swiper-slide-thumb-active {background:#121212;border:1px solid #121212;color:#fff; } 
.hotKeyWord .keywordTabCon {margin: 0 -20px;} 
.hotKeyWord .keywordTabCon .goodsList {padding: 0 20px;} 
.hotKeyWord .goodsList ul li .textWrap .goodsName {overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } 
.hotKeyWord .goodsList ul li .textWrap .goodsSubName {display:none; } 
.hotKeyWord .goodsList ul li .textWrap .goodsPrice {padding-top:0; } 
.hotKeyWord .goodsList ul li .textWrap .goodsPrice .c_price {/* display:none; */}
.hotKeyWord .goodsList.swiper {padding-bottom:40px; } 
.hotKeyWord .swiper .swiper-pagination {top:auto;bottom:0;left:50%;width:160px;height:1px;margin-left:-80px;background:#e6e6e6; } 
.hotKeyWord .swiper .swiper-pagination {top:auto;bottom:40px;left:50%;width:160px;height:2px;margin-left:-80px;background:#e6e6e6;border-radius:1px; } 
.hotKeyWord .swiper .swiper-pagination-progressbar-fill {background:#121212;border-radius: 1px; } 


/* 지금이 득템 찬스 */
.nowChanceProduct {overflow:hidden; padding-bottom:40px;}
.nowChanceProduct .swiper {overflow:visible;}

/* 배너 */
.nowChanceProduct .chanceBan{
  position:relative;          /* 기준점 */
  border-radius:10px;
  overflow:hidden;
  margin-bottom:12px;
}

.nowChanceProduct .chanceBan img{
  display:block;
  width:100%;
}

/* 텍스트 레이어 */
.nowChanceProduct .chanceBan .chanceTxt{
  position:absolute;
  left:16px;
  bottom:16px;
  z-index:2;
  color:#fff;
  pointer-events:none;        /* 클릭 방해 X */
}

/* 두 줄 동일하게 크게 */
.nowChanceProduct .chanceBan .chanceTxt strong,
.nowChanceProduct .chanceBan .chanceTxt span{
  display:block;
  font-size:18px;
  font-weight:700;
  line-height:1.25;
  margin-top:0;
  letter-spacing:-0.01em;
}

/* 가독성용 그라데이션 */
.nowChanceProduct .chanceBan::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
  );
  z-index:1;
}


/*구매가 많은 인기상품*/
.hotSellProduct {overflow:hidden; } 
.hotSellProduct .goodsList ul li .textWrap .goodsPrice .c_price {display:none; } 
.hotSellProduct .swiper {padding-bottom:40px;overflow:visible; } 
.hotSellProduct .swiper .swiper-pagination {top:auto;bottom:0;left:50%;width:160px;height:1px;margin-left:-80px;background:#e6e6e6; } 
.hotSellProduct .swiper .swiper-pagination {top:auto;bottom:40px;left:50%;width:160px;height:2px;margin-left:-80px;background:#e6e6e6;border-radius:1px; } 
.hotSellProduct .swiper .swiper-pagination-progressbar-fill {background:#121212;border-radius: 1px; } 

/*진행중인 이벤트*/
.nowEvent {overflow:hidden;padding-bottom:40px; } 
.nowEvent .swiper {overflow:visible;; } 
.nowEvent .swiper-slide {border-radius:10px;overflow:hidden; } 
.nowEvent .swiper-slide img {width:100%; } 
.nowEvent .swiper-pagination {bottom:10px;left:auto;right:10px;width:46px;background:rgba(0,0,0,0.4);color:#fff;line-height:20px;border-radius: 10px; } 


/*  구매가 많은 인기상품 깨짐(2열로 떨어짐) 강제 수정 */
.hotSellProduct .goodsList.grid_3 ul,
.hotSellProduct .goodsList.grid_3 li{
  margin:0;
  padding:0;
  list-style:none;
}

.hotSellProduct .goodsList.grid_3 .swiper-slide{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:16px 12px;              /* 세로 16 / 가로 12 간격 */
  align-items:stretch;
}

/* float 기반(.fl) 무력화 */
.hotSellProduct .goodsList.grid_3 .swiper-slide > li{
  float:none !important;
  width: calc((100% - 24px) / 3) !important; /* 3열: (gap 12*2=24) */
  box-sizing:border-box;
}

/* 이미지/텍스트가 폭을 밀어내서 깨지는 것 방지 */
.hotSellProduct .goodsList.grid_3 .swiper-slide > li a{
  display:block;
  min-width:0;
}

.hotSellProduct .goodsList.grid_3 .swiper-slide > li .imgWrap img{
  width:100%;
  height:auto;
  display:block;
}


/* 메인 슬라이더: 링크를 기준점으로 */
.mainSlider .swiper-slide .mainSlideLink{
  position:relative;
  display:block;
}

/* 이미지 기본 */
.mainSlider .swiper-slide img{
  width:100%;
  display:block;
}

/* 텍스트 레이어 */
.mainSlider .mainSlideTxt{
  position:absolute;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:2;
  color:#fff;
  pointer-events:none; /* 링크 클릭 방해 안 하게 */
  text-align:center;   /* 이미지처럼 가운데 정렬 원하면 */
}

/* 윗줄(큰 글씨) */
.mainSlider .mainSlideTxt strong{
  display:block;
  font-size:18px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:-0.02em;
}

/* 아랫줄(작은 글씨) */
.mainSlider .mainSlideTxt span{
  display:block;
  margin-top:6px;
  font-size:12px;
  font-weight:400;
  line-height:1.3;
  opacity:0.95;
  letter-spacing:-0.02em;
}

/* 가독성 그라데이션(아래쪽만 어둡게) */
.mainSlider .swiper-slide .mainSlideLink::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.18) 35%,
    rgba(0,0,0,0) 65%
  );
}


/* 인스타 공통 */
.instaSection{
  width: 100%;
}

/* 모바일은 그냥 100% */
.instaSection.mobile{
  padding: 0;
}

/* 안전장치 */
.instaSection.mobile .lightwidget-widget{
  width: 100%;
  border: 0;
}



/* ===== Mobile Shorts (no horizontal scroll safe) ===== */

/* 전역에서 1px 튐 방지용(다른 섹션에도 안전) */
html, body{
  overflow-x:hidden;
}
#mShorts, #mShorts *{
  box-sizing:border-box;
}

/* 풀폭 배경이 필요하면 여기서 처리 (가로스크롤 방지 정석) */
.mShorts{
  width:100vw;
  margin-left:calc(50% - 50vw);
  background:#f4f4f4;
  overflow:hidden;
}

/* 전역 section padding(0 20px) 무력화: 내부에서만 패딩 줌 */
.mShorts.no_p{ padding:0 !important; }
.mShorts__inner{
  padding:26px 16px 24px; /* 화면 안에서만 */
  max-width:520px;        /* 모바일 전용 느낌 */
  margin:0 auto;
}

/* 타이틀 */
.mShorts__title{
  text-align:center;
  font-size:20px;
  font-weight:800;
  margin-bottom:25px;
  letter-spacing:-0.02em;
}

/* 뷰포트: 여기서 클립 */
.mShorts__viewport{
  width:100%;
  overflow:hidden;
  touch-action:pan-y;
}

/* 트랙: 카드들이 좌우로 움직임 */
.mShorts__track{
  display:flex;
  gap:12px;
  align-items:flex-start;
  will-change:transform;
  transition:transform 260ms ease;
  padding:0 10px; /* 좌우 살짝 여백 */
}

/* 카드 크기: “너무 큼” 해결 (모바일에서 작게) */
.mShorts__slide{
  flex:0 0 auto;
  width: 72vw;           /* 화면 대비 작게 */
  max-width: 300px;      /* 최대 폭 제한 */
  user-select:none;
  opacity:.38;
  transform:scale(.96);
  transform-origin:center top;
  transition:opacity 220ms ease, transform 220ms ease;
}

.mShorts__slide.is-active{
  opacity:1;
  transform:scale(1);
}

/* 영상 영역 */
.mShorts__stage{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#e9e9e9;
  aspect-ratio: 9 / 16;
}

/* iframe */
.mShorts__iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* 탭/드래그 이벤트 받는 레이어 */
.mShorts__tapLayer{
  position:absolute;
  inset:0;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  cursor:grab;
  z-index:5;
}
.mShorts__tapLayer:active{ cursor:grabbing; }

/* 상품 정보 박스 */
.mShorts__info{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:6;

  display:flex;
  align-items:center;
  gap:10px;

  text-decoration:none;
  color:#111;

  background:rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius:12px;
  padding:10px 12px;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

/* 썸네일 */
.mShorts__thumb{
  width:42px;
  height:42px;
  border-radius:10px;
  overflow:hidden;
  flex:0 0 auto;
  background:#eee;
}
.mShorts__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 텍스트 */
.mShorts__meta{
  min-width:0;
  flex:1 1 auto;
  display:block;
}
.mShorts__name{
  display:block;
  font-weight:800;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mShorts__priceRow{
  display:flex;
  gap:6px;
  align-items:baseline;
  margin-top:6px;
  white-space:nowrap;
}
.mShorts__origin{
  font-size:11px;
  color:#999;
  text-decoration:line-through;
}
.mShorts__rate{
  font-size:11px;
  font-weight:900;
  color:#e24444;
}
.mShorts__sale{
  font-size:13px;
  font-weight:900;
  color:#111;
}

/* 힌트 */
.mShorts__hint{
  text-align:center;
  font-size:12px;
  color:#777;
  margin-top:10px;
}


.mainSlider .mainSlideBadge{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mainSlider .badgeTag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  color: #121212;
  font-size: 11px;
  font-weight: 700;
}
.mainSlider .badgePeriod{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

/* 더 작은 폰(초소형) */
@media (max-width: 360px){
  .mShorts__slide{ width: 76vw; max-width: 290px; }
  .mShorts__inner{ padding:22px 14px 22px; }
}



/* BASIC css end */

