/* ========================================
   SHOP_SW1 - 쇼핑몰 상품 카테고리 스와이퍼
   ======================================== */

/* === 관리자 뱃지 === */
.SHOP_SW1 .sw_shop_badge {
  position: absolute;
  top: -8px;
  left: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.SHOP_SW1.admin_div:hover .sw_shop_badge { opacity: 1; }

/* === 헤더 (제목 + 더보기) : sub_stit_box 기준 absolute === */

/* ★ sw_bbs1_header(sub_stit_box) = 더보기/데코라인 위치 기준점 */
.SHOP_SW1 .sw_bbs1_header {
  position: relative;
}

/* hymore_wrap 기본 위치 (MORE 스타일 사용 시) */
.SHOP_SW1 .sw_bbs1_header .hymore_wrap {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* 데코 라인 (타이틀 ↔ 더보기 사이 수평선) */
.SHOP_SW1 .sw_bbs1_header[data-deco-line]::after {
  content: '';
  position: absolute;
  left: var(--dl-left, 30%);
  right: var(--dl-right, 70px);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  height: var(--dl-h, 1px);
  background: var(--dl-color, #ddd);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* 데코 도트 */
.SHOP_SW1 .sw_bbs1_header[data-deco-dot]::before {
  content: '';
  position: absolute;
  width: var(--dl-dot-size, 4px);
  height: var(--dl-dot-size, 4px);
  border-radius: 50%;
  background: var(--dl-dot-color, #222);
  left: var(--dl-left, 30%);
  top: var(--dl-top, auto);
  bottom: var(--dl-bottom, auto);
  transform: translate(var(--dl-dot-x, -6px), var(--dl-dot-y, 0px));
  z-index: 2;
  pointer-events: none;
}
/* 데코 라인 모바일 숨김 */
@media (max-width: 768px) {
  .SHOP_SW1 .sw_bbs1_header[data-deco-line-mo-hide]::after,
  .SHOP_SW1 .sw_bbs1_header[data-deco-line-mo-hide]::before { display: none !important; }
}

/* ================================================
   더보기 위치 프리셋 (data-more-pos) - sw_bbs1_header 기준
   ================================================ */

/* 제목 밑 */
.SHOP_SW1 .sw_bbs1_header[data-more-pos="below"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[data-more-pos="below"] .hymore_wrap {
  position: static;
  margin-top: clamp(8px, calc(0.47vw + 6.5px), 14px);
}

/* 우측 상단 */
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_top"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_top"] .hymore_wrap {
  top: 0;
  bottom: auto;
}

/* 우측 중앙 */
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_center"] .hymore_wrap {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_center"] .sw_bbs1_more:hover .sw_more_circle {
  transform: translateX(2px);
}

/* 우측 하단 (기본과 동일하지만 명시) */
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_bottom"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[data-more-pos="right_bottom"] .hymore_wrap {
  right: 0;
  bottom: 0;
  top: auto;
}

/* 커스텀 오프셋 (CSS변수 오버라이드) - header 기준 */
.SHOP_SW1 .sw_bbs1_header[style*="--mt"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[style*="--mt"] .hymore_wrap {
  top: var(--mt, auto);
}
.SHOP_SW1 .sw_bbs1_header[style*="--mr"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[style*="--mr"] .hymore_wrap {
  right: var(--mr, 0);
}
.SHOP_SW1 .sw_bbs1_header[style*="--mb"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[style*="--mb"] .hymore_wrap {
  bottom: var(--mb, auto);
}
.SHOP_SW1 .sw_bbs1_header[style*="--ml"] .sw_bbs1_more,
.SHOP_SW1 .sw_bbs1_header[style*="--ml"] .hymore_wrap {
  left: var(--ml, auto);
}

/* === 탭 공통 === */
.SHOP_SW1 .sw_shop_tabs {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(16px, calc(1.09vw + 12.5px), 30px);
  float: left;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
}
.SHOP_SW1 .sw_tab {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  background: #fff;
  color: #666;
  font-size: var(--tab-font-size, 14px);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.SHOP_SW1 .sw_tab:hover {
  border-color: #999;
  color: #333;
}
.SHOP_SW1 .sw_tab.on {
  background: var(--tab-active-color, #222);
  border-color: var(--tab-active-color, #222);
  color: #fff;
}

/* --- 탭 underline 스타일 --- */
.SHOP_SW1 .tab-underline {
  gap: 0;
  border-bottom: 2px solid #e8e8e8;
}
.SHOP_SW1 .tab-underline .sw_tab {
  padding: 10px 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #999;
  font-weight: 500;
  position: relative;
}
.SHOP_SW1 .tab-underline .sw_tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.25s;
}
.SHOP_SW1 .tab-underline .sw_tab:hover {
  border-color: transparent;
  color: #555;
  background: transparent;
}
.SHOP_SW1 .tab-underline .sw_tab.on {
  background: transparent;
  border-color: transparent;
  color: var(--tab-active-color, #222);
  font-weight: 700;
}
.SHOP_SW1 .tab-underline .sw_tab.on::after {
  background: var(--tab-active-color, #222);
}

/* --- 탭 위치: 타이틀 우측 --- */
.SHOP_SW1 .has-tabs-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
}
.SHOP_SW1 .has-tabs-right .sw_shop_tabs {
  flex: 1;
  justify-content: flex-end;
  margin-bottom: 0;
  float: none;
  width: auto;
  flex-wrap: wrap;
}
.SHOP_SW1 .has-tabs-right .tab-underline {
  border-bottom: none;
}
.SHOP_SW1 .has-tabs-right .tab-underline .sw_tab::after {
  bottom: 0;
}

/* === 스와이퍼 래퍼 === */
.SHOP_SW1 .sw_shop_swiper_wrap {
  position: relative;
  float: left;
  width: 100%;
}
.SHOP_SW1 .sw_shop_tab_area {
  float: left;
  width: 100%;
}
.SHOP_SW1 .sw_shop_panel {
  float: left;
  width: 100%;
}
.SHOP_SW1 .sw_shop_panel[hidden] { display: none; }

/* === 상품 카드 === */
.SHOP_SW1 .sw_shop_card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.SHOP_SW1 .sw_shop_img {
  position: relative;
  overflow: hidden;
  border-radius: clamp(8px, calc(0.63vw + 6px), 16px);
  background: #f5f5f5;
}
.SHOP_SW1 .sw_shop_img_in {
  width: 100%;
  aspect-ratio: var(--thumb-ratio, 1/1);
  overflow: hidden;
}
.SHOP_SW1 .sw_shop_img_in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* === 호버 효과 === */
.SHOP_SW1.hover-scale .sw_shop_card:hover .sw_shop_img_in img {
  transform: scale(1.06);
}
.SHOP_SW1.hover-shadow .sw_shop_card:hover .sw_shop_img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.SHOP_SW1.hover-both .sw_shop_card:hover .sw_shop_img_in img {
  transform: scale(1.06);
}
.SHOP_SW1.hover-both .sw_shop_card:hover .sw_shop_img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ========================================
   엑티브 슬라이드 효과
   ======================================== */
.SHOP_SW1.has-active-effect .content-swiper {
  overflow: visible;
}
.SHOP_SW1.has-active-effect .layout-inner .content-swiper {
  overflow: visible;
}
.SHOP_SW1.has-active-effect .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}
.SHOP_SW1.has-active-effect .swiper-slide:not(.swiper-slide-active) {
  transform: scale(var(--inactive-scale, 1));
  opacity: var(--inactive-opacity, 1);
  filter: var(--inactive-filter, none);
}
.SHOP_SW1.has-active-effect .swiper-slide:not(.swiper-slide-active):hover {
  opacity: 1;
  filter: none;
}
.SHOP_SW1.has-active-effect .swiper-slide-active {
  transform: scale(var(--active-scale, 1));
  z-index: 2;
}

/* ========================================
   라벨(뱃지) 위치 6방향
   ======================================== */
.SHOP_SW1 .sw_shop_badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 2;
}
.SHOP_SW1 .sw_shop_badges .sit_icon {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.SHOP_SW1 .sw_shop_badges .shop_icon {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.SHOP_SW1 .shop_icon_1 { background: #ff4757; }
.SHOP_SW1 .shop_icon_2 { background: #2ed573; }
.SHOP_SW1 .shop_icon_3 { background: #1e90ff; }
.SHOP_SW1 .shop_icon_4 { background: #ffa502; }
.SHOP_SW1 .shop_icon_5 { background: #ff6b81; }
.SHOP_SW1 .sw_shop_discount_badge {
  background: #ff2d55;
}

/* 이미지 위 라벨: 절대 위치 */
.SHOP_SW1 .sw_shop_img > .sw_shop_badges {
  position: absolute;
}
/* 좌상 (기본) */
.SHOP_SW1 .lbl-img_tl { top: 8px; left: 8px; }
/* 우상 */
.SHOP_SW1 .lbl-img_tr { top: 8px; right: 8px; left: auto; justify-content: flex-end; }
/* 좌하 */
.SHOP_SW1 .lbl-img_bl { bottom: 8px; left: 8px; top: auto; }
/* 우하 */
.SHOP_SW1 .lbl-img_br { bottom: 8px; right: 8px; top: auto; left: auto; justify-content: flex-end; }

/* 텍스트 영역 라벨: 흐름 내 배치 */
.SHOP_SW1 .lbl-txt {
  position: static;
  margin-bottom: 6px;
}
/* txt_bottom → 순서 반전용 */
.SHOP_SW1 .sw_shop_info > .lbl-txt:last-child,
.SHOP_SW1 .sw_shop_overlay_info > .lbl-txt:last-child {
  margin-bottom: 0;
  margin-top: 6px;
  order: 99;
}

/* ========================================
   위시리스트 / 장바구니 아이콘
   ======================================== */
/* 버튼 기본 외형 */
.SHOP_SW1 .sw_shop_wish_btn,
.SHOP_SW1 .sw_shop_cart_btn,
.SHOP_SW1 .sw_shop_detail_btn {
  position: absolute;
  z-index: 4;
  width: var(--icon-size, 36px);
  height: var(--icon-size, 36px);
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: calc(var(--icon-size, 36px) * 0.5);
  transition: all 0.25s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}
.SHOP_SW1 .sw_shop_card:hover .sw_shop_wish_btn,
.SHOP_SW1 .sw_shop_card:hover .sw_shop_cart_btn,
.SHOP_SW1 .sw_shop_card:hover .sw_shop_detail_btn {
  opacity: 1;
  pointer-events: auto;
}
.SHOP_SW1 .sw_shop_wish_btn:hover { color: #ff2d55; background: #fff; }
.SHOP_SW1 .sw_shop_cart_btn:hover { color: #222; background: #fff; }
.SHOP_SW1 .sw_shop_detail_btn:hover { color: #222; background: #fff; }

/* 개별 위치 (래퍼 없을 때 fallback) */
.SHOP_SW1 .sw_shop_wish_btn { bottom: 10px; right: 10px; }
.SHOP_SW1 .sw_shop_cart_btn { bottom: 10px; right: 52px; }
.SHOP_SW1 .sw_shop_img:not(:has(.sw_shop_wish_btn)) .sw_shop_cart_btn { right: 10px; }

/* === 아이콘 래퍼 (sw_shop_icon_wrap) === */
.SHOP_SW1 .sw_shop_icon_wrap {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  /* 기본: 우하 */
  bottom: 10px;
  right: 10px;
}
.SHOP_SW1 .sw_shop_card:hover .sw_shop_icon_wrap {
  opacity: 1;
  pointer-events: auto;
}
/* 래퍼 내부 버튼: static + 항상 표시 */
.SHOP_SW1 .sw_shop_icon_wrap .sw_shop_wish_btn,
.SHOP_SW1 .sw_shop_icon_wrap .sw_shop_cart_btn,
.SHOP_SW1 .sw_shop_icon_wrap .sw_shop_detail_btn {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/* --- 아이콘 위치 변형 (icon-pos-*) --- */
.SHOP_SW1.icon-pos-tl .sw_shop_img > .sw_shop_icon_wrap { top: 10px; left: 10px; bottom: auto; right: auto; }
.SHOP_SW1.icon-pos-tr .sw_shop_img > .sw_shop_icon_wrap { top: 10px; right: 10px; bottom: auto; }
.SHOP_SW1.icon-pos-bl .sw_shop_img > .sw_shop_icon_wrap { bottom: 10px; left: 10px; right: auto; }
.SHOP_SW1.icon-pos-br .sw_shop_img > .sw_shop_icon_wrap { bottom: 10px; right: 10px; }
.SHOP_SW1.icon-pos-cc .sw_shop_img > .sw_shop_icon_wrap {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  bottom: auto; right: auto;
}

/* --- 오버레이 내부 아이콘 (중앙+오버레이 모드) --- */
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap {
  position: static;
  opacity: 1;
  pointer-events: auto;
  justify-content: inherit;
  margin-bottom: 10px;
  z-index: auto;
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_wish_btn,
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_cart_btn,
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_detail_btn {
  position: static;
  opacity: 1;
  pointer-events: auto;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_wish_btn:hover { color: #ff2d55; background: rgba(255,255,255,0.4); }
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_cart_btn:hover { color: #fff; background: rgba(255,255,255,0.4); }
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_icon_wrap .sw_shop_detail_btn:hover { color: #fff; background: rgba(255,255,255,0.4); }

/* ========================================
   상품 정보 (일반 모드)
   ======================================== */
.SHOP_SW1 .sw_shop_info {
  padding: clamp(8px, calc(0.63vw + 6px), 14px) 2px 0;
  display: flex;
  flex-direction: column;
}
.SHOP_SW1 .sw_shop_name {
  font-size: clamp(13px, calc(0.16vw + 12.5px), 15px);
  font-weight: 500;
  color: #333;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.SHOP_SW1 .sw_shop_desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.SHOP_SW1 .sw_shop_price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.SHOP_SW1 .sw_shop_sale_price {
  font-size: clamp(15px, calc(0.31vw + 14px), 19px);
  font-weight: 700;
  color: #111;
}
.SHOP_SW1 .sw_shop_origin_price {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

/* ========================================
   텍스트 오버레이 모드
   ======================================== */
.SHOP_SW1 .sw_shop_overlay_info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--overlay-padding, 50px 14px 14px);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.SHOP_SW1 .sw_shop_overlay_info a,
.SHOP_SW1 .sw_shop_overlay_info button {
  pointer-events: auto;
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_name {
  color: #fff;
  -webkit-line-clamp: 1;
  margin-bottom: 4px;
  font-size: var(--overlay-name-size, clamp(13px, calc(0.16vw + 12.5px), 15px));
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  font-size: var(--overlay-desc-size, 12px);
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_sale_price {
  color: #fff;
  font-size: var(--overlay-price-size, clamp(14px, calc(0.31vw + 13px), 17px));
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_origin_price {
  color: rgba(255,255,255,0.5);
}
.SHOP_SW1 .sw_shop_overlay_info .sw_shop_badges .shop_icon {
  font-size: 10px;
  padding: 2px 6px;
}

/* --- 오버레이 텍스트 정렬 --- */
.SHOP_SW1.overlay-align-left .sw_shop_overlay_info { align-items: flex-start; text-align: left; }
.SHOP_SW1.overlay-align-right .sw_shop_overlay_info { align-items: flex-end; text-align: right; }
.SHOP_SW1.overlay-align-right .sw_shop_overlay_info .sw_shop_price { justify-content: flex-end; }
.SHOP_SW1.overlay-align-center .sw_shop_overlay_info {
  top: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.35);
  padding: var(--overlay-padding, 14px);
}
.SHOP_SW1.overlay-align-center .sw_shop_overlay_info .sw_shop_price { justify-content: center; }
.SHOP_SW1.overlay-align-center .sw_shop_overlay_info .sw_shop_icon_wrap { justify-content: center; }

/* 호버시만 오버레이 */
.SHOP_SW1 .txt-hover .sw_shop_overlay_info {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.SHOP_SW1 .txt-hover .sw_shop_card:hover .sw_shop_overlay_info {
  opacity: 1;
}
/* 항상 오버레이 */
.SHOP_SW1 .txt-always .sw_shop_overlay_info {
  opacity: 1;
}

/* ========================================
   페이징 공통
   ======================================== */
.SHOP_SW1 .paging-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--sw-nav-gap, clamp(16px, calc(1.09vw + 12.5px), 30px));
  float: left;
  width: 100%;
}
.SHOP_SW1 .btn-wrap {
  display: flex;
  gap: var(--sw-arrow-gap, 8px);
  flex-shrink: 0;
}
.SHOP_SW1 .btn-prev,
.SHOP_SW1 .btn-next {
  width: var(--sw-arrow-size, 36px);
  height: var(--sw-arrow-size, 36px);
  border-radius: var(--sw-arrow-radius, 50%);
  border: var(--sw-arrow-border-width, 1px) solid var(--sw-arrow-border-color, #ddd);
  background: var(--sw-arrow-bg, #fff);
  color: var(--sw-arrow-color, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--sw-arrow-icon-size, 18px);
  transition: all 0.2s;
  flex-shrink: 0;
  opacity: var(--sw-arrow-opacity, 1);
  padding: var(--sw-arrow-padding, 0);
}
.SHOP_SW1 .btn-prev i,
.SHOP_SW1 .btn-next i {
  line-height: 1;
  display: block;
}
.SHOP_SW1 .btn-prev i { transform: translate(-1px, -1px); }
.SHOP_SW1 .btn-next i { transform: translate(1px, -1px); }
.SHOP_SW1 .btn-prev:hover,
.SHOP_SW1 .btn-next:hover {
  border-color: var(--sw-arrow-border-color-hover, #999);
  color: var(--sw-arrow-color-hover, #222);
  background: var(--sw-arrow-bg-hover, var(--sw-arrow-bg, #fff));
}
.SHOP_SW1 .swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- ◁▷ + 바 (arrows_bar) --- */
.SHOP_SW1 .paging-arrows_bar .swiper-pagination {
  position: relative;
  flex: 1;
  height: 3px;
  background: #eee;
  border-radius: 2px;
}
.SHOP_SW1 .swiper-pagination-progressbar-fill {
  background: var(--sw-nav-active-color, #222);
  border-radius: 2px;
}

/* --- 도트 공통 (bullets) --- */
.SHOP_SW1 .paging-arrows_dots .swiper-pagination,
.SHOP_SW1 .paging-dots_only .swiper-pagination,
.SHOP_SW1 .paging-arrows_dots_inline .swiper-pagination {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
  background: transparent;
  width: auto;
}
.SHOP_SW1 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
}
.SHOP_SW1 .swiper-pagination-bullet-active {
  background: var(--sw-nav-active-color, #222);
  width: 24px;
  border-radius: 4px;
}

/* --- ◁▷ + 도트 (arrows_dots) --- */
.SHOP_SW1 .paging-arrows_dots .swiper-pagination {
  flex: 1;
}

/* --- 도트만 (dots_only) --- */
.SHOP_SW1 .paging-dots_only .swiper-pagination {
  flex: 0 1 auto;
}
.SHOP_SW1 .paging-dots_only.dots-center { justify-content: center; }
.SHOP_SW1 .paging-dots_only.dots-left { justify-content: flex-start; }
.SHOP_SW1 .paging-dots_only.dots-right { justify-content: flex-end; }

/* --- ◁ · · · ▷ (arrows_dots_inline) --- */
.SHOP_SW1 .paging-arrows_dots_inline {
  justify-content: center;
  gap: 16px;
}
.SHOP_SW1 .paging-arrows_dots_inline .swiper-pagination {
  flex: 0 1 auto;
}
.SHOP_SW1 .paging-arrows_dots_inline .btn-prev,
.SHOP_SW1 .paging-arrows_dots_inline .btn-next {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

/* === 화살표 바깥쪽 모드 === */
.SHOP_SW1 .arrows-outer {
  --arrow-size: var(--sw-arrow-size, 44px);
  --arrow-gap: 12px;
  --arrow-offset: calc(var(--arrow-size) + var(--arrow-gap));
}
.SHOP_SW1:has(.arrows-outer) .contentContainer { overflow: visible; }
.SHOP_SW1 .arrows-outer .btn-wrap {
  position: absolute;
  top: 0;
  left: calc(var(--arrow-offset) * -1);
  width: calc(100% + var(--arrow-offset) * 2);
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 5;
}
.SHOP_SW1 .arrows-outer .btn-prev,
.SHOP_SW1 .arrows-outer .btn-next {
  position: absolute;
  width: var(--arrow-size);
  height: var(--arrow-size);
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.SHOP_SW1 .arrows-outer .btn-prev { left: 0; }
.SHOP_SW1 .arrows-outer .btn-next { right: 0; }
.SHOP_SW1 .arrows-outer.arrows-vcenter .btn-prev,
.SHOP_SW1 .arrows-outer.arrows-vcenter .btn-next {
  top: 50%;
  transform: translateY(-50%);
}
.SHOP_SW1 .arrows-outer.arrows-vtop .btn-prev,
.SHOP_SW1 .arrows-outer.arrows-vtop .btn-next {
  top: 0;
}
.SHOP_SW1 .arrows-outer .paging-wrap {
  position: static;
  justify-content: center;
}
.SHOP_SW1 .arrows-outer .paging-arrows_bar .swiper-pagination {
  max-width: 200px;
  margin: 0 auto;
}

/* ========================================
   슬라이드 레이아웃 모드
   ======================================== */
/* full: 기본 */
/* inner: overflow hidden */
.SHOP_SW1 .layout-inner .content-swiper {
  overflow: hidden;
}
/* right: 우측 확장 */
.SHOP_SW1:has(.layout-right) {
  overflow-x: clip;
}
.SHOP_SW1 .layout-right {
  overflow: visible;
}
.SHOP_SW1 .layout-right .content-swiper {
  overflow: visible;
  width: calc(100vw - var(--sw-left, 0px));
  max-width: none;
}

/* === Swiper 초기화 전 레이아웃 (슬라이드 100% 방지) === */
.SHOP_SW1 .content-swiper:not(.swiper-initialized) {
  overflow: hidden;
}
.SHOP_SW1 .content-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: var(--sw-gap, 20px);
}
.SHOP_SW1 .content-swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
  width: calc((100% - var(--sw-gap, 20px) * (var(--slides-pc, 4) - 1)) / var(--slides-pc, 4));
}
@media screen and (max-width: 1023px) {
  .SHOP_SW1 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 20px), 20px) * (var(--slides-tablet, 3) - 1)) / var(--slides-tablet, 3));
  }
}
@media screen and (max-width: 767px) {
  .SHOP_SW1 .content-swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - min(var(--sw-gap, 15px), 15px) * (var(--slides-mo, 2) - 1)) / var(--slides-mo, 2));
  }
}

/* === 빈 상태 === */
.SHOP_SW1 .empty_li {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 14px;
}

/* === 로딩 스피너 === */
.SHOP_SW1 .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #888;
  border-radius: 50%;
  margin: 40px auto;
  animation: shopsw1_spin 0.7s linear infinite;
}
@keyframes shopsw1_spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   반응형
   ======================================== */
@media screen and (max-width: 768px) {
  .SHOP_SW1 .sw_shop_tabs {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .SHOP_SW1 .sw_shop_tabs::-webkit-scrollbar { display: none; }
  .SHOP_SW1 .sw_tab {
    padding: 6px 16px;
    font-size: 13px;
  }
  .SHOP_SW1 .tab-underline {
    gap: 0;
  }
  .SHOP_SW1 .tab-underline .sw_tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  /* 모바일: 우측 탭 → 아래로 전환 */
  .SHOP_SW1 .has-tabs-right .sw_shop_tabs {
    flex: 0 0 100%;
    order: 10;
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 0;
  }

  /* 모바일: 바깥 화살표 → inner로 강제 전환 */
  .SHOP_SW1 .arrows-outer .btn-wrap {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    gap: 8px;
    pointer-events: auto;
  }
  .SHOP_SW1 .arrows-outer .btn-prev,
  .SHOP_SW1 .arrows-outer .btn-next {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
    box-shadow: none;
  }
  /* 모바일: 페이징 inner 100% */
  .SHOP_SW1 .paging-wrap {
    width: 100%;
    gap: 10px;
  }
  .SHOP_SW1 .paging-arrows_bar .swiper-pagination {
    flex: 1;
  }

  .SHOP_SW1 .sw_shop_discount_badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .SHOP_SW1 .sw_shop_badges .shop_icon {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* 모바일: 위시/장바구니/확대보기 항상 표시 */
  .SHOP_SW1 .sw_shop_wish_btn,
  .SHOP_SW1 .sw_shop_cart_btn,
  .SHOP_SW1 .sw_shop_detail_btn {
    opacity: 1;
    pointer-events: auto;
    width: var(--icon-size, 30px);
    height: var(--icon-size, 30px);
    font-size: 15px;
  }
  .SHOP_SW1 .sw_shop_icon_wrap {
    opacity: 1;
    pointer-events: auto;
  }

  /* 모바일 더보기 위치 프리셋 (data-more-pos-mo) - sw_bbs1_titles 기준 */
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="below"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="below"] .hymore_wrap {
    position: static;
    margin-top: 8px;
  }
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_top"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_top"] .hymore_wrap {
    top: 0; bottom: auto;
  }
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_center"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_center"] .hymore_wrap {
    top: 50%; bottom: auto; transform: translateY(-50%);
  }
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[data-more-pos-mo="right_bottom"] .hymore_wrap {
    right: 0; bottom: 0; top: auto;
  }

  /* 모바일 커스텀 오프셋 - titles 기준 */
  .SHOP_SW1 .sw_bbs1_header[style*="--mt-mo"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[style*="--mt-mo"] .hymore_wrap {
    top: var(--mt-mo) !important;
  }
  .SHOP_SW1 .sw_bbs1_header[style*="--mr-mo"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[style*="--mr-mo"] .hymore_wrap {
    right: var(--mr-mo) !important;
  }
  .SHOP_SW1 .sw_bbs1_header[style*="--mb-mo"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[style*="--mb-mo"] .hymore_wrap {
    bottom: var(--mb-mo) !important;
  }
  .SHOP_SW1 .sw_bbs1_header[style*="--ml-mo"] .sw_bbs1_more,
  .SHOP_SW1 .sw_bbs1_header[style*="--ml-mo"] .hymore_wrap {
    left: var(--ml-mo) !important;
  }
}

@media screen and (max-width: 480px) {
  .SHOP_SW1 .sw_shop_name {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
  .SHOP_SW1 .sw_shop_sale_price {
    font-size: 15px;
  }
  .SHOP_SW1 .sw_shop_origin_price {
    font-size: 11px;
  }
  .SHOP_SW1 .sw_shop_overlay_info {
    padding: var(--overlay-padding, 30px 10px 10px);
  }
  .SHOP_SW1.overlay-align-center .sw_shop_overlay_info {
    padding: var(--overlay-padding, 10px);
  }
  .SHOP_SW1 .sw_shop_overlay_info .sw_shop_name {
    font-size: var(--overlay-name-size, 12px);
  }
  .SHOP_SW1 .sw_shop_overlay_info .sw_shop_sale_price {
    font-size: var(--overlay-price-size, 13px);
  }
}
