/*
 * main-new(V2 메인) 전용 CSS.
 *
 * ch.eqlstore.com의 ui_common.css가 renewal.eqlstore.com(디자인 소스)의 최신
 * 버전보다 약 1,300줄 뒤처져 있어(2025-08 확인 시점), 새 메인 개편에 필요한
 * .main_header.blur_header / .header_top / .header_tab / .tab_style1 등의
 * 스타일이 빠져 있다. 그 규칙들을 renewal.eqlstore.com/EQL/MO/ia/assets/css/
 * ui_common.css (672~873줄, "메인 개편" 섹션)에서 그대로 가져왔다.
 *
 * V1(기존 ma_main 없는 페이지, 또는 main_header.blur_header 구조가 없는 V1
 * /main)에는 전혀 매칭되지 않는 선택자들이라 안전하다. ui_common.css 자체는
 * 건드리지 않고 완전히 분리된 파일로 관리한다 — @import는 병렬 로드를 막는
 * 성능 손해가 있어 쓰지 않고, app.html에 별도 <link>로 로드한다.
 *
 * 앞으로 V2 메인 관련 CSS 수정/추가는 이 파일에서만 한다.
 */

/* 상품 썸네일 비율(3:4) — 퍼블 list.css는 `.product_info .thumb_area`가 133.33%인데 ch list.css(V1과
   공용)는 133%라 썸네일 높이가 0.5px 모자랐다(2026-10-02 QA 111번). 공용 list.css는 V1에도 쓰여
   건드리지 않고 V2(`.ma_main`)에서만 퍼블 값으로 맞춘다.
   구체성을 원래 규칙과 같은 (0,2,0)으로 맞춰(`:where`) `.main_div .view_more_resize .thumb_area`(0)
   같은 더 구체적인 퍼블 규칙이 계속 이기게 하고, 퍼블에서 따로 값을 주는 `.product_list`(133.742%)·
   `.brand_list`(0) 카드는 아예 제외한다. */
:where(.ma_main) .product_info:where(:not(:is(.product_list, .brand_list))) .thumb_area {
	padding-bottom: 133.33%;
}

/* 메인 개편 헤더(검색+Cart+탭바) */
/* 퍼블은 공통 `.wrap header`에 준다 — V1 헤더는 건드리지 않도록 여기서만 준다 */
.ma_main .main_header.blur_header {
	letter-spacing: 0;
}
.ma_main .main_header.blur_header {
	height: auto;
	top: 0;
	padding: 0;
	flex-direction: column;
	border: none;
	transition: padding 0.2s 0.3s, padding-top 0s 0s, transform 0.4s;
}
.ma_main .main_header.blur_header > div {
	width: 100%;
	background: var(--bg-color-white);
}
.ma_main .main_header.blur_header .header_top {
	display: flex;
	padding: 0 20px;
	transition: padding 0.2s 0.3s;
	gap: 15px;
}
.ma_main .main_header.blur_header .header_top .input_clear {
	width: 100%;
}
.ma_main .main_header.blur_header .header_top .ico_search {
	width: 18px;
	height: 18px;
	top: 11px;
	left: 0;
	background: var(--bg-color-black);
	mask: url(../image/icon/ico_search_18.svg) 0 0/100% no-repeat;
	visibility: visible;
}
.ma_main .main_header.blur_header .header_top .ico_search:before {
	display: none;
}
.ma_main .main_header.blur_header .header_top input {
	height: 40px;
	padding: 0 0 0 23px;
	border: none;
	background: none;
	font-weight: 400;
	letter-spacing: inherit;
	/* 검색 이동용 readonly(QA 122번) 때문에 form.css `input[readonly]`의 글자 채움색(#999)이 문구 색을 덮었다.
	   아래 placeholder·글자색이 그대로 보이도록 풀어 준다. */
	-webkit-text-fill-color: currentColor;
}
/* Search 문구는 비활성 탭과 같은 색(피그마 수정요청 10/21 "탭 비활성화 컬러와 동일함"). 예전엔 입력창
   전체에 opacity .5를 줘 검정 문구가 비활성 탭(#767676)보다 옅게 보였다 — opacity를 빼고 색을 직접 준다.
   검정 헤더의 비활성 탭 색(흰색 50%)은 아래 `.black` 규칙이 맞춘다. */
.ma_main .main_header.blur_header .header_top input::placeholder {
	font-size: 13px;
	color: var(--txt-color-gray03);
}
.ma_main .main_header.blur_header a.button.cart {
	display: flex;
	width: auto;
	height: auto;
	margin: 0;
	background: none !important;
	font-weight: 500;
	font-size: 13px;
	line-height: 40px;
	white-space: nowrap;
	color: var(--txt-color);
	gap: 5px;
	align-items: center;
	text-indent: 0;
}
.ma_main .main_header.blur_header .button.cart .count {
	position: static;
	min-width: 18px;
	padding: 0 6px;
	font-size: 10px;
	color: var(--txt-color-white);
	z-index: 1;
}
.ma_main .main_header.blur_header .header_tab {
	position: relative;
	z-index: 5;
}
.ma_main .main_header.blur_header .tab_style1 {
	width: 100%;
	padding: 0 20px;
	transition: padding 0.2s 0.3s;
	gap: 24px;
}
.ma_main .main_header.blur_header .tab_btn {
	height: 40px;
	margin: 0;
	padding: 0;
	font-weight: 400;
	font-size: 13px;
	line-height: 40px;
	color: var(--txt-color-gray03);
	letter-spacing: inherit;
}
.ma_main .main_header.blur_header .tab_btn i {
	width: 4px;
	height: 4px;
	top: 11px;
	right: -6px;
}
.ma_main .main_header.blur_header .tab_btn.is_active {
	/* 퍼블(ui_common.css)은 활성 탭을 500으로 굵게 한다. 이 규칙이 없어 위 .tab_btn의
	   400이 그대로 적용돼 활성 탭이 굵지 않았다(2026-09-30 QA 지적). */
	font-weight: 500;
	color: var(--txt-color);
}
.ma_main .main_header.blur_header .tab_btn.is_active:after {
	display: none;
}
.ma_main .main_header.blur_header .tab_cont_box {
	margin-left: 0;
}
.ma_main .main_header.blur_header .tab_depth_box,
.ma_main .main_header.blur_header .search_filter_wrap {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translate(-50%, 0);
}
.ma_main .main_header.blur_header .search_filter_wrap .select_wrap {
	margin-top: 0;
}
.ma_main .main_header.blur_header .search_filter_wrap .select_wrap:before {
	background: none;
}
/* header.black */
.ma_main .main_header.blur_header.black {
	position: fixed;
	background: transparent;
	/* 기존 공용 규칙(.wrap header.main_header{z-index:99}, ui_custom.css)보다
	   위에 있어야 하는데, 재사용 중인 MoreNavigate의 sticky 앵커바가
	   z-index:500이라 99로는 뒤로 밀려 가려진다. main-new 전용으로 더 높여준다. */
	z-index: 600;
}
.ma_main .main_header.blur_header.black .tab_style1 {
	box-shadow: none;
}
.ma_main .main_header.black:not(.is_active) {
	top: calc(var(--safeTop));
	padding: 0 16px;
	padding-top: calc(16px - min(var(--safeTop), 16px));
	gap: 2px;
}
.ma_main .main_header.black:not(.is_active) .header_top {
	padding: 0 16px;
	background: var(--bg-color-black);
}
.ma_main .main_header.black:not(.is_active) .tab_style1 {
	padding: 0 16px;
}
.ma_main .main_header.black:not(.is_active) .header_top .ico_search {
	background: var(--bg-color-white);
}
.ma_main .main_header.black:not(.is_active) .header_top input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}
/* 2026-09-16 — 퍼블 원본도 placeholder만 흰색으로 바꾸고 실제 입력한
   글자색은 안 바꿔서(기본 어두운 --txt-color) 검정 헤더 위에서 타이핑한
   글자가 안 보이는 건 퍼블에도 있는 문제였다(라이브 CSSOM 대조로 확인).
   사용자 요청으로 V2에서만 입력 글자도 흰색으로 고친다. */
.ma_main .main_header.black:not(.is_active) .header_top input {
	color: var(--txt-color-white);
}
.ma_main .main_header.black:not(.is_active) .button.cart {
	color: var(--txt-color-white);
}
.ma_main .main_header.black:not(.is_active) .header_tab {
	background: var(--bg-color-black);
}
.ma_main .main_header.black:not(.is_active) .header_tab:before,
.ma_main .main_header.black:not(.is_active) .header_tab:after {
	content: '';
	position: absolute;
	width: 20px;
	height: 100%;
	top: 0;
	z-index: 1;
}
.ma_main .main_header.black:not(.is_active) .header_tab:before {
	left: 0;
	background: linear-gradient(90deg, rgba(0,0,0,1), rgba(0,0,0,0));
}
.ma_main .main_header.black:not(.is_active) .header_tab:after {
	right: 0;
	background: linear-gradient(270deg, rgba(0,0,0,1), rgba(0,0,0,0));
}
.ma_main .main_header.black:not(.is_active) .tab_btn {
	color: rgba(255,255,255,0.5);
}
.ma_main .main_header.black:not(.is_active) .tab_btn.is_active {
	color: var(--txt-color-white);
}
.ma_main .main_header.black .tab_depth_box {
	margin: 0 0;
}
/* header scroll */
.ma_main .main_header.blur_header.black.is_active {
	background: rgba(255,255,255,0.8);
	-webkit-backdrop-filter: blur(80px);
	backdrop-filter: blur(80px);
}
/* 2026-10-19 — 스크롤 상태(is_active)의 헤더는 노치(상태바) 영역만큼 위를 비워 둬야 한다.
   10/14 퍼블 반영(`.header_top` padding `var(--safeTop) 20px 0` → `0 20px`, 커밋 2e08612)으로 이 여백이
   사라져, 앱(iOS)에서 스크롤하면 탭 줄이 상태바와 겹쳤다(QA 공통 2번). 퍼블은 safeTop이 0인 데스크톱
   기준이라 이 상태를 몰랐다. 스크롤 전(:not(.is_active))은 위 `top: var(--safeTop)`로 이미 처리돼 있다.
   헤더 자체에 padding-top을 줘서 상태바 뒤도 같은 반투명 블러 배경으로 채운다. 웹은 safeTop이 0이라 변화 없다. */
.ma_main .main_header.blur_header.black.is_active {
	padding-top: var(--safeTop);
}
/* 같은 문제가 검정이 아닌 헤더(베스트·이벤트·브랜드/기획전 등 `overlayHeader=false` 탭)에도 있다.
   이 헤더는 스크롤 전후 모두 `position: sticky; top: 0`(ui_common.css `.wrap header`)에 흰 배경이라
   노치 높이만큼 위를 비워 두면 상태바 뒤도 흰 배경으로 채워진다. `.ma_main`(V2 전용) 안에서만 걸려
   V1 헤더에는 닿지 않고, 웹은 safeTop이 0이라 변화 없다. */
.ma_main .main_header.blur_header:not(.black) {
	padding-top: var(--safeTop);
}
.ma_main .main_header.blur_header.black.is_active > div {
	background: transparent;
}
.scroll_down .ma_main .main_header.blur_header.is_active {
	transform: translate(0, -40px);
}
.scroll_down .ma_main .main_header.blur_header.is_active .header_top {
	opacity: 0;
}
.ma_main.main_new .container {
	margin-top: 0;
	/* 피그마 수정요청(10/16) "하단 여백 누락" — 타일 탭은 V1 규칙(`.ma_main .container {padding:0}`)
	   때문에 마지막 코너 아래가 24px뿐이라 푸터에 붙어 보였다. 기획전·베스트·이벤트 탭(아래
	   container--v1-embed)과 같은 80px을 준다. 그 탭들은 아래 규칙이 padding 전체를 다시 정한다. */
	padding-bottom: 80px;
}
/* 2026-09-16 — 기획전 탭(EventContent)은 원본 /event/{idx}와 똑같은 좌우
   여백(20px)이 있어야 하는데, list.css의 V1 전용 규칙
   `.ma_main .container { padding: 0; }`이 자손 선택자라 컴포넌트 경계를
   가리지 않고 여기까지 그대로 적용돼 버렸다(사용자 확인 스크린샷 대조 —
   임베드된 화면만 여백 없이 화면 전체로 퍼져 있었음). 원래 padding을
   되돌린다 — 타일 탭(TileRenderer)은 계속 0을 쓴다.
   2026-09-17 — 베스트 탭(MainBestTab/MainBestList, 둘 다 V1 그대로 재사용)
   도 같은 문제라 여기 포함시켰다 — V1 `routes/main/+page.svelte`에서는
   이 컴포넌트들이 20px 패딩을 주는 `.container` 안에서 그려진다. */
.ma_main.main_new .container.container--v1-embed {
	padding: 0 20px 80px;
}
/* 2026-09-29 QA(베스트 47번) — 베스트 목록은 좌우 20px 컨테이너 패딩을 더하면
   안 된다. 퍼블(EQL_MO_MA_101_v2.html)은 `.product_list.unfold` 자체 패딩만으로
   카드가 x=20에서 시작하는데, 여기에 컨테이너 20px이 겹쳐 x=40으로 밀리고
   썸네일이 작아졌다(실측: 퍼블 20 / 이전 40). 아래 여백(80px)만 유지한다. */
.ma_main.main_new .container.container--v1-embed.container--flush {
	padding: 0 0 80px;
}
/* 2026-09-17 — V1 `main/+page.svelte`는 `.tab_style1 + .tab_cont_box
   .tab_cont_inner{padding:40px 0 0 0}`(list.css)로 탭바 바로 아래
   콘텐츠에 상단 40px 여백을 준다. 그 선택자는 `.tab_style1`과
   `.tab_cont_box`가 실제 형제일 때만 걸리는데, main-new는 헤더(탭바)와
   본문(.container)이 분리돼 있어 매칭되지 않는다 — 베스트/이벤트 탭에서
   콘텐츠가 탭바에 바로 붙어 나왔다(사용자 지적, 퍼블 대조로 확인).
   같은 값을 직접 준다. */
.ma_main.main_new .v2-legacy-list {
	padding-top: 20px;
}
/* 2026-09-30 QA(베스트 101번, 좌 STG / 우 퍼블) — 퍼블 실측(375px, 헤더 하단 기준 첫 카드까지):
   베스트 20px(`.product_list.unfold`의 margin 20px만), 이벤트 20px(`.tab_cont_inner` padding
   20px). 위 40px은 V1 메인(`list.css`)의 값을 그대로 가져온 것이라 둘 다 20px 더 넓었다.
   베스트는 목록 자체가 위쪽 20px margin을 이미 갖고 있어 여기서는 더하지 않는다. */
.ma_main.main_new .v2-legacy-list.v2-legacy-list--best {
	padding-top: 0;
}
/* 2026-10-23 QA 206번 — 컴포넌트 CSS(`.tpl_navigator.is_sticky.svelte-xxx.svelte-xxx`, top 50px)와 우선순위가
   같아 나중에 붙은 쪽이 이겼다. 다른 탭을 거쳐 기획전 탭에 오면 Vite가 컴포넌트 CSS를 이 파일 뒤에 한 번 더 붙여서
   (SSR 링크는 상대경로라 같은 파일로 못 알아본다) 네비게이터가 헤더 밑에 가려졌다. `.main_new`를 붙여 순서와
   상관없이 이기게 한다. */
.ma_main.main_new .template_wrap .tpl_navigator.is_sticky {
	top: calc(var(--safeTop) + 40px);
	/* 2026-10-21 QA 196번 — 컴포넌트 기본값(500)이면 붙기 전 화면 아래쪽에 있을 때 하단 GNB(100)와 툴팁을
	   덮는다. 퍼블(brand_template.css)은 90이다 — 헤더(600) 아래, GNB 아래에 둔다. */
	z-index: 90;
	transition: transform 0s;
}
.ma_main .template_wrap .tpl_navigator.is_sticky.on {
	transition: transform 0.4s;
}
.scroll_up .ma_main .template_wrap .tpl_navigator.is_sticky:not(.on) {
	top: calc(var(--safeTop) + 80px);
}
.scroll_up .ma_main .template_wrap .tpl_navigator.is_sticky.on {
	transform: translate(0, 40px);
}

/*
 * 하단 GNB(내비게이션 바) 리뉴얼 스타일("260805 GNB 전체 수정").
 * ch.eqlstore.com의 Dockbar.svelte(전역, 모든 페이지 공통)는 이 blur_gnb
 * 클래스를 전혀 쓰지 않으므로, 아래 규칙은 main-new 전용 GNB에만 매칭되고
 * V1의 실제 하단 내비게이션에는 영향이 없다. Dockbar.svelte 자체는 건드리지
 * 않고, main-new는 자체 GNB 마크업을 별도로 렌더링한다.
 */
.gnb.blur_gnb {
	height: 56px;
	border: none !important;
	background: rgba(255,255,255,0.8);
	-webkit-backdrop-filter: blur(80px);
	backdrop-filter: blur(80px);
}
.gnb.blur_gnb ul {
	padding-top: 9px;
}
.gnb.blur_gnb ul li {
	position: relative;
}
/*
 * 주의: ch.eqlstore.com의 기존 nav.gnb ul li a.btn_home 등(ui_common.css
 * 609~660줄, 구버전 GNB용)이 이미 있는데, CSS 명시도가 아래 .gnb.blur_gnb
 * ul a 보다 더 높다(요소 선택자 개수가 더 많음: nav+ul+li+a 4개 vs ul+a 2개).
 * 그래서 구버전 png 배경 아이콘이 새 svg 아이콘 위에 같이 그려져 깨져 보였다.
 * .btn_home 등 클래스 3개 조합으로 명시도를 올려 구버전 규칙을 확실히 덮는다.
 */
.gnb.blur_gnb ul a:before {
	opacity: 0.5;
}
.gnb.blur_gnb .btn_home,
.gnb.blur_gnb .btn_category,
.gnb.blur_gnb .btn_discover,
.gnb.blur_gnb .btn_equal,
.gnb.blur_gnb .btn_my {
	width: 44px !important;
	background-image: none !important;
	background-color: transparent !important;
	background-size: auto !important;
}
.gnb.blur_gnb ul a {
	position: relative;
	width: 44px;
	height: 38px;
	padding-top: 30px;
	background: none;
	text-indent: 0;
	font-weight: 400;
	font-size: 8px;
	line-height: 8px;
	letter-spacing: -0.24px;
	color: rgba(0,0,0,.5);
}
.gnb.blur_gnb ul a:before,
.gnb.blur_gnb ul a:after {
	content: '';
	position: absolute;
	width: 26px;
	height: 26px;
	top: 0;
	left: 50%;
	margin-left: -13px;
}
.gnb.blur_gnb .btn_home:before{
	background: url(../image/icon/ico_home_26.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_category:before{
	background: url(../image/icon/ico_category_26.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_discover:before{
	background: url(../image/icon/ico_discover_26.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_equal:before{
	background: url(../image/icon/ico_equal_26.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_my:before{
	background: url(../image/icon/ico_my_26.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_home:after{
	background: url(../image/icon/ico_home_26_on.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_category:after{
	background: url(../image/icon/ico_category_26_on.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_discover:after{
	background: url(../image/icon/ico_discover_26_on.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_equal:after{
	background: url(../image/icon/ico_equal_26_on.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb .btn_my:after{
	background: url(../image/icon/ico_my_26_on.svg) 0 0/100% no-repeat;
}
.gnb.blur_gnb ul a:after {
	opacity: 0;
}
/* 2026-10-29 퍼블(ab228ee) "MO GNB active 수정" 반영 — 활성 탭 텍스트를 굵게(700)·--txt-color(검정)로. */
.gnb.blur_gnb ul a.is_active {
	font-weight: 700;
	color: var(--txt-color);
}
.gnb.blur_gnb ul a.is_active:before {
	opacity: 0;
}
.gnb.blur_gnb ul a.is_active:after {
	opacity: 1;
}
.gnb .gnb_desc {
	position: absolute;
	left: 50%;
	bottom: 100%;
	margin-bottom: 4px;
	padding: 5px 8px;
	background: var(--bg-color-point);
	transform: translate(-50%, 0);
	font-weight: 400;
	font-size: 11px;
	line-height: 14px;
	color: var(--txt-color-white);
	white-space: nowrap;
}
.gnb .gnb_desc:before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	top: 100%;
	left: 50%;
	margin-left: -3px;
	border: 1px solid var(--bg-color-point);
	border-width: 4px 3px;
	border-color: var(--bg-color-point) transparent transparent transparent;
}

/*
 * "투데이/우먼/맨/라이프" 탭(main_div 타일 시스템) 전용 CSS 통째 이식.
 * ch.eqlstore.com의 ui_common.css에는 이 구간 전체(.main_div, .main_coupon_wrap,
 * .main_banner_wrap, .main_mostview_wrap, .main_div.brand_l, .main_div.issue_*,
 * .carousel_keyword_wrap, .main_div.recom_keyword, .main_div.brand_s,
 * .brand_recom_wrap, .main_banner_list 등)가 통째로 빠져 있었다(renewal.eqlstore.com
 * 쪽 ui_common.css 986~2051줄, 2025-08 확인 시점 기준 ch 쪽엔 전무).
 * 전부 새 클래스라 V1에는 매칭되지 않는다 — ui_common.css 자체는 안 건드림.
 */
.ma_main.main_new .tab_cont.is_active .main_swiper_top.swiper {
	padding-bottom: 0;
}
/* main 코너 */
/* 공통 */
.main_div {
	padding: 56px 0 24px;
	font-weight: 400;
	--mainPadding: 16px;
}
.main_div .tit_wrap {
	position: relative;
	margin-bottom: 24px;
	padding: 0 var(--mainPadding);
}
.main_div .tit_wrap .tit_type1 {
	padding-right: 40px;
	padding-bottom: 0;
	font-weight: inherit;
	font-size: min(7.12vw, 28px);
	line-height: 1.14;
	letter-spacing: -0.28px;
}
.main_div .tit_wrap .tit_type2,
.main_div .tit_wrap .sub_tit {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	word-break: break-all;
}
.main_div .tit_wrap .tit_type2 {
	padding-right: 50px;
	padding-bottom: 0;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
}
.main_div .tit_wrap .sub_tit {
	font-size: 12px;
	line-height: 16px;
	color: var(--txt-color-gray03);
}
.main_div .tit_wrap .tit_type1 + .sub_tit {
	margin-top: 8px;
}
.main_div .tit_wrap .tit_type2 + .sub_tit {
	margin-top: 4px;
}
.main_div .tit_wrap .tit_btn {
	position: absolute;
	top: 0;
	right: var(--mainPadding);
	font-weight: inherit;
	font-size: 12px;
	line-height: 16px;
}
.main_div .tit_wrap .tooltip {
	position: absolute;
	top: 1px;
	right: var(--mainPadding);
}
.main_div .tit_wrap .btn_tit_info {
	display: block;
	width: 18px;
	height: 18px;
}
.main_div .tit_wrap .btn_tit_info:before {
	content: '';
	display: block;
	height: 100%;
	background: url(../image/icon/ico_tooltip_18.svg) 0 0/100%;
}
.main_div .tit_wrap .tooltip_body {
	min-width: auto;
	margin-top: 6px;
	padding: 19px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}
.main_div .main_top_desc {
	margin-bottom: var(--mainPadding);
	font-size: 12px;
	line-height: 16px;
}
.main_div .badge_wrap [class^='badge_s'] {
	padding: 0 6px;
	line-height: 19px;
}
.main_div .rank_icon {
	display: inline-flex;
	height: 14px;
	font-size: 11px;
	line-height: 14px;
	gap: 2px;
}
.main_div .rank_icon:after {
	font-size: 8px;
	line-height: 16px;
}
.main_div .rank_icon.down:after {
	content: '▼';
}
.main_div .rank_icon.up {
	color: var(--txt-point);
}
.main_div .rank_icon.up:after {
	content: '▲';
}
.main_div .rank_icon.new {
	font-weight: 400;
	font-size: 10px;
	font-family: 'Pretendard';
}
.main_div .product_info.swiper .thumb_area .badge_wrap {
	top: 0;
	bottom: auto;
}
.main_div .product_info .info_area {
	margin-top: 8px;
	padding-right: 8px;
}
/* 아래 카드 규칙 6곳(info_area 패딩·brand 간격·price_wrap 줄높이·normal·목록형 가격 14px)은
   퍼블 ui_common.css의 최신값과 맞춘다(2026-09-29 퍼블 대조, 키워드 그리드 2번 — 카드가
   퍼블 234px인데 226px로 8px 짧았다). 퍼블 CSS 전체를 셀렉터 단위로 대조해 어긋난 건
   이 6곳뿐이었다. */
.main_div .product_info .info_area .brand {
	margin-bottom: 2px;
	padding-right: 0;
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: -0.15px;
}
.main_div .product_info .info_area .product {
	margin-top: 0;
	padding-right: 0;
	-webkit-line-clamp: 1;
	line-height: 16px;
	letter-spacing: -0.15px;
	color: var(--txt-color-gray);
}
.main_div .product_info .info_area .badge_auto_list {
	margin-top: 4px;
}
.main_div .product_info .price_wrap {
	margin-top: 4px;
	line-height: 18px;
	font-weight: 500;
}
.main_div .product_info .price_wrap .normal {
	font-size: 12px;
	line-height: 16px;
}
.main_div .product_info.product_list .link_wrap .price_wrap .discount {
	font-size: 14px;
}
.main_div .product_info.product_list .link_wrap .price_wrap .current {
	font-size: 14px;
}
.main_div .swiper_type13 .pagination {
	margin-top: var(--mainPadding);
	text-align: center;
	font-size: 0;
	line-height: 0;
	--swiper-pagination-bullet-size: 6px;
	--swiper-pagination-bullet-horizontal-gap: 3px;
	/* 활성 점 색을 검정으로 고정한다(퍼블은 librarys.css의 --swiper-theme-color:#000).
	   이벤트 컴포넌트가 import하는 `swiper/css`가 :root에 #007aff(파랑)를 다시
	   선언해, 빌드 후 CSS 순서에 따라 점이 파랗게 나왔다(2026-09-29 QA 지적, 66번 —
	   로컬 dev에선 순서가 달라 재현되지 않는다). 비활성 점은 기본값(검정 20%) 그대로. */
	--swiper-pagination-color: var(--bg-color-black, #000);
}
.main_div .link_wrap .info_area.contents {
	position: absolute;
	display: flex;
	inset: auto 0 0;
	margin: 0;
	padding: var(--mainPadding);
	flex-direction: column;
	color: var(--txt-color-white);
}
.main_div .link_wrap .info_area.contents .cont_tit {
	display: -webkit-box;
	padding-right: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-weight: 400;
	font-size: min(7.12vw, 28px);
	line-height: 1.14;
	letter-spacing: -0.14px;
	word-break: keep-all;
	color: inherit;
	overflow: hidden;
}
.main_div .link_wrap .info_area.contents .cont_subtit {
	display: -webkit-box;
	margin-top: 8px;
	padding-right: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
}
.main_div .swiper .swiper-slide.view_more_resize {
	width: 80px;
}
.main_div .swiper .view_more_resize .thumb_area {
	background: none;
}
.main_div .swiper .go_more {
	font-size: 11px;
	line-height: 12px;
}
.main_div .swiper_type12 {
	padding: 0 var(--mainPadding);
}
.main_div .swiper_type12 .swiper-slide {
	width: calc((100vw - 32px) * 0.41);
}
.main_div .swiper_type12 .view_more_resize .thumb_area {
	height: calc((100vw - 32px) * 0.41 * 1.33);
}
/* 쿠폰 */
.main_coupon_wrap {
	padding: 0 var(--mainPadding);
}
.main_coupon_wrap .main_top_desc {
	color: var(--txt-point);
}
.main_coupon_wrap .coupon_con {
	display: grid;
	align-items: end;
}
.main_coupon_wrap .coupon_con .couopn_img {
	grid-area: 1/1;
}
.main_coupon_wrap .coupon_con .couopn_img img {
	display: block;
}
.main_coupon_wrap .coupon_con .coupon_list {
	display: grid;
	grid-area: 1/1;
	gap: 4px;
}
.main_coupon_wrap .coupon_con.has_img .coupon_list {
	padding: var(--mainPadding);
}
.main_coupon_wrap .coupon_list .coupon_down {
	height: 44px;
	padding: 0 53px 0 20px;
	background: var(--bg-color-black) url(../image/icon/ico_download.svg) right 20px top 50%/18px no-repeat;
	font-weight: inherit;
	font-size: 14px;
	color: var(--txt-color-white);
	text-align: left;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.main_coupon_wrap .btn_sub_m {
	width: 100%;
	margin-top: 16px;
	border-color: var(--line-color-gray01);
}
.main_coupon_wrap .coupon_txt {
	margin-top: 24px;
	font-size: 12px;
	line-height: 16px;
}
.main_coupon_wrap .coupon_date {
	margin-bottom: 4px;
}
/* 설명문구(nbo 에디터의 정의 목록 `<dl><dt>기간</dt><dd>…</dd></dl>`)는 nbo 편집 화면처럼 제목(dt)과 내용(dd)을
   한 줄에 놓는다 — 기본 블록 배치로 두면 두 줄로 쌓인다(QA 203). 제목은 굵게·줄바꿈 없이, 내용은 남은 폭에서 줄바꿈 */
.main_coupon_wrap .coupon_date dl {
	display: grid;
	grid-template-columns: minmax(auto, max-content) minmax(0, 1fr);
	gap: 0 12px;
}
.main_coupon_wrap .coupon_date dt {
	white-space: nowrap;
	font-weight: 700;
}
.main_coupon_wrap .coupon_date dd {
	margin: 0;
}
.main_coupon_wrap .coupon_notice .notice_btn {
	position: relative;
	padding-right: 17px;
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
}
.main_coupon_wrap .coupon_notice .notice_btn:after {
	content: '';
	position: absolute;
	width: 15px;
	height: 15px;
	right: 0;
	top: 0;
	background: url(../image/icon/ico_more.png) 100% 0/15px no-repeat;
}
.main_coupon_wrap .coupon_notice .notice_list {
	margin-top: 4px;
	color: var(--txt-color-gray);
	display: none;
}
.main_coupon_wrap .coupon_notice .notice_list li {
	padding-left: 8px;
	text-indent: -8px;
}
.main_coupon_wrap .coupon_notice .notice_btn.active:after {
	transform: rotate(180deg);
}
.main_coupon_wrap .coupon_notice .notice_btn.active ~ ul {
	display: block;
}
/* 마케팅 */
.main_banner_wrap {
	padding: 0 var(--mainPadding);
}
.main_banner_wrap .swiper_type14 {
	height: 90px;
}
.main_banner_wrap .swiper_type14 a {
	position: relative;
	display: block;
	height: 100%;
	padding: 25px 20px;
	background: #f4f4f4;
	overflow: hidden;
}
.main_banner_wrap .swiper_type14 a img {
	position: absolute;
	height: 100%;
	top: 0;
	left: 0;
	object-fit:cover;
}
.main_banner_wrap .swiper_type14 a:has(.banner_txt) img {
	width: auto;
	left: 50%;
	translate: -50% 0;
}
.main_banner_wrap .swiper_type14 .banner_txt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	white-space: nowrap;
}
.main_banner_wrap .swiper_type14 .banner_txt .banner_tit {
	font-weight: 500;
	font-size: 16px;
	line-height: 22px;
	text-overflow: ellipsis;
	overflow: hidden;
}
.main_banner_wrap .swiper_type14 .banner_txt .banner_desc {
	opacity: .5;
	font-size: 12px;
	line-height: 16px;
	text-overflow: ellipsis;
	overflow: hidden;
}
.main_banner_wrap .swiper_type14 a.darkmode {
	background: var(--bg-color-black);
}
.main_banner_wrap .swiper_type14 .darkmode .banner_txt {
	color: var(--txt-color-white);
}
/* 숫자형 인디케이터("1/5"). 2026-09-22에 클릭 가능한 점으로 잘못 구현된
   걸 통째로 지웠는데, 퍼블(ui_common.css)엔 이 숫자형이 있어야 한다
   (2026-09-28 QA 18번, 퍼블 대조로 확인). */
.main_banner_wrap .swiper_type14 .pagination {
	position: absolute;
	width: auto;
	right: 12px;
	bottom: 8px;
	left: auto;
	font-size: 10px;
	line-height: 20px;
	z-index: 1;
}
.main_banner_wrap .swiper_type14:has(.swiper-slide-active .darkmode) .pagination {
	color: var(--txt-color-white);
}
/* 많이 본 상품 */
.main_mostview_wrap .main_top_desc {
	padding: 0 var(--mainPadding);
	color: var(--txt-color-gray);
}
.main_mostview_wrap ul.product_list.product_info {
	display: grid;
	margin: 0;
	padding: 0 var(--mainPadding);
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--mainPadding) 4px;
}
.main_mostview_wrap ul.product_list > li {
	width: 100%;
	grid-column: span 2;
}
.main_mostview_wrap .product_list > li:nth-child(1),
.main_mostview_wrap .product_list > li:nth-child(2) {
	grid-column: span 3;
}
.main_mostview_wrap .prd_rank {
	display: flex;
	margin-top: 4px;
	font-weight: 500;
	gap: 6px;
	align-items: center;
}
.main_mostview_wrap .prd_rank .rank {
	font-size: 20px;
	line-height: 27px;
}
.main_mostview_wrap .prd_rank .rank_icon {
	flex-direction: row-reverse;
}
.main_mostview_wrap .product_info .info_area {
	margin-top: 4px;
}
/* 브랜드 추천 */
.brand_l .brand_img {
	position: relative;
	display: block;
	aspect-ratio: 100 / 66.7;
}
.brand_l .brand_img:before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.2);
}
.brand_l .brand_img img {
	height: 100%;
	object-fit: cover;
}
.brand_l .brand_img .brand_tit {
	position: absolute;
	display: -webkit-box;
	width: 100%;
	top: 50%;
	left: 0;
	padding: 0 var(--mainPadding);
	font-weight: 400;
	font-size: min(7.12vw, 28px);
	line-height: 1.14;
	letter-spacing: 0.084px;
	word-break: auto-phrase;
	color: var(--txt-color-white);
	text-align: center;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transform: translate(0, -50%);
	overflow: hidden;
}
.main_div.brand_l .swiper {
	margin: 0;
	padding: 0 var(--mainPadding);
}
.brand_l .swiper .swiper-slide {
	width: 90.85%;
}
.brand_l .swiper .product_list.row {
	display: flex;
	flex-wrap: wrap;
	/* 상품 행 사이 4px(피그마 수정요청 10/16 "갭 4px", 퍼블 row-gap: 4px) */
	gap: 4px 0;
	margin-top: 4px;
	padding: 0;
}
.brand_l .swiper .product_list.row > li {
	width: 100%;
	margin: 0;
}
.brand_l .swiper .product_list.row .link_wrap {
	display: flex;
	gap: 12px;
}
.brand_l .swiper .product_list.row .thumb_area {
	width: 64px;
	margin: 0;
	padding-bottom: 86px;
	flex-shrink: 0;
}
.brand_l .swiper .product_list.row .info_area {
	display: flex;
	flex-direction: column;
	padding: 8px 8px 0 0;
}
.brand_l .swiper .product_list.row .info_area .product {
	-webkit-line-clamp: 2;
	color: var(--txt-color);
}
/* 이슈 캐러셀(싱글컬럼) */
.issue_single .thumb_img_swiper {
	padding: 0 var(--mainPadding);
}
.issue_single .thumb_control_swiper {
	height: 72px;
	margin-top: 24px;
}
.issue_single .thumb_control_swiper .swiper-slide {
	width: 56px;
	padding: 2px;
	border: 2px solid transparent;
	overflow: hidden;
}
.issue_single .thumb_control_swiper .swiper-slide img {
	height: 100%;
}
.issue_single .thumb_control_swiper .swiper-slide:before {
	content: '';
	position: absolute;
	inset: 2px;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	/* background: var(--bg-color-gray02) url('../image/common/no_thum.png') 50% 50%/100px no-repeat; */
}
.issue_single .thumb_control_swiper .swiper-slide-active {
	border-color: var(--line-color);
}
.issue_single .thumb_control_swiper .swiper-slide-active:before {
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
}
/* 이슈 숏컷배너(캐러셀-리스트) */
.main_div.issue_shortcut .swiper {
	margin: 0;
	padding: 0 var(--mainPadding);
}
.main_div.issue_shortcut .swiper ~ .swiper {
	margin-top: 24px;
}
.issue_shortcut .swiper .swiper-slide div {
	aspect-ratio: 1 / 1;
}
.issue_shortcut .swiper img {
	height: 100%;
	object-fit: cover;
}
.issue_shortcut .swiper span {
	display: block;
	margin-top: 12px;
	font-size: 12px;
	line-height: 16px;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.issue_shortcut .shortcut_swiper1 .swiper-slide {
	width: calc((100vw - 32px) * 0.405);
}
.issue_shortcut .shortcut_swiper2 .swiper-slide {
	width: calc((100vw - 32px) * 0.205);
}
/* 이슈 리스트형(캐러셀) */
.main_div.issue_list .swiper {
	margin: 0;
	padding: 0 var(--mainPadding);
}
.issue_list .swiper .swiper-slide {
	width: calc((100vw - 32px) * 0.908);
}
.issue_list .link_wrap .info_area.contents {
	right: 0;
	margin-right: var(--mainPadding);
	z-index: 1;
}
.issue_list .swiper-slide:has(.contents_prd) .info_area.contents {
	right: 97px;
}
.main_div.issue_list .info_area.contents .cont_tit {
	-webkit-line-clamp: 3;
}
.issue_list .contents_prd {
	position: absolute;
	display: grid;
	width: 97px;
	height: 129px;
	right: var(--mainPadding);
	bottom: var(--mainPadding);
	grid-template: 1fr 1fr / 1fr 1fr;
	gap: 1px;
}
.issue_list .contents_prd > div {
	position: relative;
	min-height: 0;
	/* 연관상품 이미지가 없거나 깨졌을 때 상품 기본 이미지가 보이도록 깐다 */
	background: var(--bg-color-gray02) url('../image/common/no_thum.png') 50% 50%/100% no-repeat;
}
.issue_list .contents_prd img {
	height: 100%;
	object-fit: cover;
}
.issue_list .contents_prd .prd_num {
	position: absolute;
	display: flex;
	inset: 0;
	background: rgba(0,0,0,0.4);
	justify-content: center;
	align-items: center;
	font-size: 12px;
	line-height: 16px;
	color: var(--txt-color-white);
}
.wrap .modal_bottomsheet .modal_content.issue_prd_list {
	padding-top: 0;
}
.modal_bottomsheet .issue_prd_list .tit_type1 {
	padding-bottom: 12px;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
}
.modal_bottomsheet .issue_prd_list .product_list {
	margin-top: 0;
}
/* 연관 상품 바텀시트의 브랜드명·상품명 사이 2px(피그마 수정요청 10/16). 바텀시트는 .main_div 밖에 그려져
   `.main_div .product_info .info_area .brand {margin-bottom:2px}`가 걸리지 않아 두 줄이 붙어 있었다
   (퍼블은 같은 값을 `.main_new .product_info .info_area .brand`로 준다). */
.modal_bottomsheet .issue_prd_list .product_info .info_area .brand {
	margin-bottom: 2px;
}
.modal_bottomsheet .issue_prd_list .product_info.product_list.row .product {
	color: var(--txt-color);
	opacity: 0.5;
}
.modal_bottomsheet .issue_prd_list .product_info.product_list.row .normal {
	color: var(--txt-color);
	opacity: 0.3;
}
/* 상품추천(캐러셀) */
.main_div.recom_prd .product_info .info_area .product {
	-webkit-line-clamp: 2;
}
/* 타임특가 */
.main_div.timesale_warp .timer {
	padding: 0 var(--mainPadding);
	font-weight: 400;
	line-height: 32px;
	letter-spacing: -0.28px;
}
.main_div.timesale_warp .time_prd_list_wrap {
	margin: var(--mainPadding) 0 0;
	padding: 0;
}
/* 탭 바깥 래퍼 — 퍼블 원본(icon_btn_etc.css)에도 있는데 이 파일엔 없었다
   (2026-09-14 실측). 이게 없으면 `.tab_style7.scroll`이 뷰포트보다 넓어질 때
   이 안에서만 가로 스크롤되지 않고 body 전체가 가로로 밀린다(스크롤바만
   숨기고 overflow는 살려 스와이프는 그대로 된다). */
.tab_wrap {
	margin-bottom: 16px;
	overflow: auto hidden;
}
.tab_wrap::-webkit-scrollbar {
	display: none;
}
/* 스크롤형 탭(tab_style7) — 퍼블 원본(icon_btn_etc.css)에만 있고 이 파일엔
   빠져 있었다(2026-09-14 실측, BR_BN 탭이 그리드 없이 줄바꿈되던 원인).
   K_K·T_D·R_D·자동추천 브랜드 등도 이 클래스를 쓰므로 함께 고쳐진다.
   `--cols`는 각 컴포넌트가 인라인 스타일로 탭 개수를 지정해야 한다
   (예: `style="--cols: {tabs.length}"`). */
.tab_style7 {
	display: grid;
	padding: 0 16px;
	gap: 8px 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tab_style7.scroll {
	width: max-content;
	min-width: 100%;
	grid-template-columns: repeat(var(--cols), minmax(0, calc((100vw - 32px) * 0.3047)));
}
.tab_style7 .tab_btn {
	height: 28px;
	padding: 0 8px;
	background: var(--bg-color-white);
	font-weight: 400;
	font-size: 12px;
	text-align: left;
	color: var(--txt-color-gray03);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.tab_style7 .tab_btn.is_active {
	background: var(--bg-color-black);
	color: var(--txt-color-white);
}
.main_div.timesale_warp .tab_style7 .is_active {
	background: var(--bg-color-point);
}
.main_div.timesale_warp .product_info .info_area .product {
	-webkit-line-clamp: 2;
}
/* 키워드 추천(캐러셀 형 키워드) */
.main_div .carousel_keyword_wrap {
	margin: 0;
	padding: 0;
}
/* 키워드 그리드 카드의 정보 영역 간격 — 퍼블은 list.css의 `.carousel_keyword_wrap
   .product_info .info_area{margin-top:12px}`/`.price_wrap{margin-top:5px}`가 뒤에 로드돼
   `.main_div .product_info …`(8px/4px)를 이긴다. ch는 이 파일이 list.css보다 뒤에 로드돼
   순서가 뒤집혀 있어(8px/4px가 이김) 카드가 퍼블(234px)보다 짧았다(2026-09-29 퍼블
   대조). 특이도를 한 단계 올려 퍼블의 실제 적용값으로 맞춘다. */
.main_div .carousel_keyword_wrap .product_info .info_area {
	margin-top: 12px;
}
.main_div .carousel_keyword_wrap .product_info .price_wrap {
	margin-top: 5px;
}
.recom_keyword ul.product_list.product_info {
	display: grid;
	margin: 0;
	padding: 0 var(--mainPadding);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mainPadding) 4px;
}
.recom_keyword ul.product_list > li {
	width: 100%;
}
.main_div.recom_keyword .product_info .price_wrap .normal {
	display: block;
}
/* 키워드 추천 */
.recom_keyword .tab_style4 {
	margin-bottom: 24px;
	padding: 0 var(--mainPadding);
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px 6px;
}
.main_div.recom_keyword .tab_style4 .tab_sbtn {
	border: none;
}
.recom_keyword .tab_style4 .tab_sbtn span {
	font-weight: 400;
	font-size: min(7.12vw, 28px);
	line-height: 1.14;
	letter-spacing: -0.28px;
	text-transform: none;
	color: #797979;
}
.recom_keyword .tab_style4 .tab_sbtn:not(:last-child) span:after {
	content: ',';
}
.recom_keyword .tab_style4 .tab_sbtn.is_active span {
	color: var(--txt-color);
}
.main_div.recom_keyword .tab_scont_box {
	padding: 0;
}
.ma_main .tab_cont .tab_cont_inner .main_div.recom_keyword .tab_scont .tab_cont_inner {
	margin: 0;
	padding: 0;
}
.recom_keyword .swiper_type15 {
	padding: 0 var(--mainPadding);
}
.recom_keyword .swiper_type15 .swiper-slide {
	width: calc((100vw - 32px) * 0.235);
	flex-direction: column;
	gap: 12px;
}
.recom_keyword .swiper_type15 .swiper-slide.view_more {
	width: 80px !important;
	height: auto;
	justify-content: center;
}
/* 브랜드 캐러셀 s */
.main_div.brand_s .swiper_type16 {
	margin: 0;
	padding: 0 var(--mainPadding);
}
.brand_s .swiper_type16 .swiper-slide {
	width: calc((100vw - 32px) * 0.405);
}
.brand_s .swiper_type16 .thumb_area {
	padding-bottom: 133.56%;
}
.brand_s .swiper_type16 .info_area {
	margin-top: 12px;
}
.brand_s .swiper_type16 .info_area .cont_tit a {
	font-size: 12px;
	line-height: 16px;
	color: var(--txt-color);
}
/* 개인화 */
/* 크로스셀링 */
.main_div .recom_wrap .product_info.row {
	margin-bottom: 16px;
	padding: 0 var(--mainPadding);
}
.main_div .recom_wrap .product_info.row .thumb_area {
	width: 56px;
	padding-bottom: 75px;
}
.main_div .recom_wrap .product_info.row .info_area {
	padding-top: 8px;
}
.main_div .recom_wrap .product_info.row .product {
	font-weight: 400;
}
.main_div .recom_wrap .product_info.row .badge_auto_list {
	margin-top: 6px;
}
.main_div .recom_wrap .product_info.row .badge_auto_list li {
	height: 18px;
	padding: 0 8px;
	line-height: 16px;
}
.main_div.cross_elling .product_info .info_area .product {
	-webkit-line-clamp: 2;
}
/* 브랜드 */
.main_div .tit_wrap .tit_type2 .brand_img {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	margin-right: 5px;
	vertical-align: top;
	overflow: hidden;
}
.main_div .tit_wrap .tit_type2 .brand_img img {
	display: block;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.brand_recom_wrap .brand_list {
	margin-bottom: var(--mainPadding);
	padding: 0 var(--mainPadding);
}
.brand_recom_wrap .swiper_type12 .swiper-slide {
	width: calc((100vw - 32px) * 0.305);
}
.brand_recom_wrap .swiper_type12 a ~ a {
	margin-top: var(--mainPadding);
}
.brand_recom_wrap .swiper_type12 .info_area {
	height: 68px;
}
/* 품절임박 */
.main_div.low_stock .product_info .info_area .product {
	-webkit-line-clamp: 2;
}
/* 재입고 */
.main_div.restock .product_info .info_area .product {
	-webkit-line-clamp: 2;
}
/* 판매예정 */
.main_div.coming .swiper_type12 {
	height: calc((100vw - 32px) * 0.887 + 40px);
	padding-right: calc((100vw - 32px) * 0.335 + 16px);
}
.main_div.coming .swiper_type12 .swiper-slide {
	width: calc((100vw - 32px) * 0.665);
}
.main_div.coming .swiper_type12 .swiper-slide .link_wrap {
	width: 100%;
	transition: width .2s;
}
.main_div.coming .swiper_type12 .swiper-slide .button_equal {
	margin-right: 0;
	transition: margin .2s;
}
.main_div.coming .swiper_type12 .swiper-slide:not(.swiper-slide-active) .link_wrap {
	width: 75%;
}
.main_div.coming .swiper_type12 .swiper-slide:not(.swiper-slide-active) .button_equal {
	margin-right: 25%;
}


/* 메인 브랜드탭 */
/* 신규 브랜드 소개 */
.brand_new_wrap .brand_top {
	margin-bottom: var(--mainPadding);
	padding: 0 var(--mainPadding);
}
.brand_new_wrap .brand_top .brand_img {
	position: relative;
} 
.brand_new_wrap .brand_top .brand_img a {
	display: block;
	aspect-ratio: 361 / 240;
	background: var(--bg-color-gray02) url('../image/common/no_thum.png') 50% 50%/100% no-repeat;
}
/* 히어로는 이미지 비율과 상관없이 361:240 박스를 유지한다(2026-10-07 QA 128번). 퍼블 CSS는 박스(a)의
   비율만 정하고 img는 제한하지 않아, 퍼블이 쓴 722×480 더미가 아닌 정사각형(722×722) 같은 이미지가
   오면 박스가 이미지를 따라 361×361로 커졌다 — 이미지 없는 브랜드(361×240)와도 크기가 어긋났다.
   img를 박스에 채워 넘치는 부분은 자른다(퍼블에서 못 본 규칙이라 퍼블 값은 바꾸지 않고 덧붙인다). */
.brand_new_wrap .brand_top .brand_img a img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.brand_new_wrap .brand_top .button_equal {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 0;
	color: transparent;
}
.brand_new_wrap .brand_top .brand_txt {
	margin-top: 16px;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
}
.brand_new_wrap .brand_top .toggle_txt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: none;
	text-overflow: ellipsis;
	overflow: hidden;
}
.brand_new_wrap .brand_top .toggle_txt.show_more {
	height: 32px;
	-webkit-line-clamp: 2;
}
.brand_new_wrap .brand_top .btn_more {
	display: flex;
	height: 16px;
	margin-top: 8px;
	font-weight: 400;
	font-size: 12px;
}
.brand_new_wrap .brand_top .btn_more:before {
	content: '접기';
}
.brand_new_wrap .brand_top .btn_more:after {
	content: '';
	width: 15px;
	height: 15px;
	margin-left: 2px;
	transform: rotate(180deg);
	background: url('../image/icon/ico_more.svg') right 0px top 50% no-repeat;
}
.brand_new_wrap .toggle_txt.show_more ~ .btn_more:before {
 content: '더보기';
}
.brand_new_wrap .toggle_txt.show_more ~ .btn_more:after {
	transform: rotate(0deg);
}
.brand_new_wrap .swiper_type12 .swiper-slide {
	width: calc((100vw - 32px) * 0.305);
}
.brand_new_wrap .swiper_type12 .info_area .product {
	color: var(--txt-color);
}
/* 브랜드 랭킹 공통 */
.main_div .brand_list .rank {
	width: 10px;
	margin-right: 8px;
	font-weight: 700;
}
.main_div .brand_list .info_area {
	width: auto;
	min-width: 0;
	margin-top: 0;
	gap: 2px;
}
.main_div .brand_list.product_info .info_area .brand {
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
}
.main_div .brand_list.product_info .info_area .product {
	font-weight: 400;
	color: var(--txt-color-gray03);
}
/* 브랜드 이퀄 */
.brand_equal .brand_list {
	row-gap: var(--mainPadding);
}
.brand_equal .brand_list li {
	padding: 0 var(--mainPadding);
}
.brand_equal .brand_list .equal_area {
	display: flex;
	width: 36px;
	margin-left: 6px;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}
/* 브랜드 검색순위 */
.brand_search .main_top_desc {
	padding: 0 var(--mainPadding);
	color: var(--txt-color-gray);
}
.brand_search .brand_list {
 row-gap: 24px;
}
.brand_search .brand_list.product_info li {
	display: block;
}
.brand_search .brand_info {
	display: flex;
	width: 100%;
	padding: 0 var(--mainPadding);
	align-items: center;
}
.brand_search .swiper_type12 {
	margin-top: 12px;
	padding: 0 var(--mainPadding);
}
.brand_search .swiper_type12 .swiper-slide {
	width: calc((100vw - 32px) * 0.2355);
}
.brand_search .swiper_type12 .button_equal {
	position: absolute;
	top: 6px;
	right: 6px;
}
.brand_search .swiper_type12 .view_more_resize {
	display: flex;
	height: auto;
}
.brand_search .swiper_type12 .view_more_resize .thumb_area {
	width: 100%;
	height: 100%;
}
/* 메인 비쥬얼 */
/* 빠르게 넘길 때 iOS가 아직 못 그린 가장자리로 뒤 배경이 비친다 — 투명이면 흰색이 보여 검정으로 깐다(QA 208) */
.main_swiper_top .swiper_main2 {
	height: 100svh;
	padding-bottom: 0;
	background: var(--bg-color-black);
	/* iOS에서 빠르게 좌우로 넘기면 페이지 자체가 가로로 튕겨 화면 양쪽 끝에 흰 바탕이 보였다(QA 208, 녹화로 확인).
	   Swiper는 가로 제스처를 브라우저에 넘기지 않는 이 값을 포인터 이벤트 환경(.swiper-pointer-events)에만 걸고,
	   터치 이벤트를 쓰는 iOS에는 걸지 않는다. */
	touch-action: pan-y;
	--bottomTxt: calc(136px + var(--safeBottom));
}
.main_swiper_top .swiper_main2 .link_wrap {
	height: 100%;
}
.main_swiper_top .swiper_main2 .link_wrap .thumb_area {
	height: 100%;
}
.main_swiper_top .swiper_main2 .link_wrap .thumb_area .thumb {
	height: 100%;
	padding-bottom: 0;
}
.main_swiper_top .swiper_main2 .link_wrap .thumb_area img {
	position: static;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
}
.main_swiper_top .swiper_main2 a .thumb_title {
	position: absolute;
	top: auto;
	right: 19.33vw;
	bottom: var(--bottomTxt);
	left: 28px;
	color: var(--txt-color-white);
}
.main_swiper_top .swiper_main2 .thumb_title strong {
	display: -webkit-box;
	font-weight: 400;
	font-size: clamp(35px, 10.178vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.4px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.main_swiper_top .swiper_main2 .thumb_title span {
	display: -webkit-box;
	margin-top: 8px;
	padding-right: 16px;
	font-weight: 400;
	font-size: clamp(14px, 4.07vw, 16px);
	line-height: 1.375;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.main_swiper_top .swiper_main2 .pagination {
	position: absolute;
	display: flex;
	width: auto;
	right: 28px;
	bottom: var(--bottomTxt);
	left: auto;
	align-items: center;
	font-size: 12px;
	line-height: 18px;
	color: var(--txt-color-white);
	gap: 2px;
	z-index: 1;
}
.main_swiper_top .swiper_main2 .pagination:after {
	content: '';
	width: 6px;
	height: 12px;
	margin-left: 2px;
	background: var(--bg-color-white);
	mask: url(../image/icon/ico_arrow_6.svg) 0 0/100% no-repeat;
}
.main_swiper_top.category_tab .swiper_main2 {
	height: calc(125vw + 82px + max(var(--safeTop), 16px));
	--bottomTxt: 28px;
}
.main_banner_list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 8px;
}
.main_banner_list .thumb {
	display: block;
	aspect-ratio: 176 / 235;
}
.main_banner_list .thumb img {
	height: 100%;
	object-fit: cover;
}
.main_banner_list .info_area {
	margin-top: 8px;
	padding-right: 8px;
}
.main_banner_list .info_area .cont_tit {
	display: -webkit-box;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	text-overflow: ellipsis;
	overflow: hidden;
}
.main_banner_list .info_area .cont_subtit {
	display: -webkit-box;
	margin-top: 2px;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	opacity: 0.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* 메인 비쥬얼 배너 전체보기 팝업(퍼블 546517a) */
.modal_fullpopup.type3 {
	background: rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(80px);
	backdrop-filter: blur(80px);
}
.modal_fullpopup.type3 .modal_header {
	height: 48px;
}
.modal_fullpopup.type3 .modal_content {
	padding: 0 16px 80px;
}
.modal_fullpopup.type3 .modal_close_btn {
	top: 11px;
	right: 16px;
	margin-top: var(--safeTop);
}

/* 알림·바텀시트가 열려 body에 overflow:hidden이 걸려도 세로 스크롤바 자리를 유지해 화면 폭이
   변하지 않게 한다(2026-09-30 QA 쿠폰 100번). 클래스는 MainV2Page가 마운트 중에만 <html>에
   붙이므로 V1 화면에는 걸리지 않는다. */
html.v2-main-root {
	scrollbar-gutter: stable;
}

/* 퍼블 icon_btn_etc.css / list.css의 메인 규칙. V1 파일에는 넣지 않는다 */
.ma_main h2 + .swiper {
	padding-bottom: 80px;
}
.ma_main .swiper_crs_list .swiper-slide:nth-child(n+6) {
	margin-top: 20px !important;
}

/* 퍼블 서브헤더(72723567·ea4da6ae). main_new.css는 V2 화면(MainV2Page)에서만 불러오므로
   V1 헤더에는 걸리지 않는다. 퍼블은 공통 .wrap header에서 자간·간격을 바꾸고 버튼 좌우
   여백 규칙을 지웠다 — V1 ui_common.css의 여백 규칙은 여기서 0으로 되돌린다. */
.wrap header {
	letter-spacing: 0;
}
.wrap header .side_area {
	gap: 15px;
}
.wrap header .side_area.link .button {
	margin-right: 0;
}
.wrap header .side_area.util .button {
	margin-left: 0;
}
.wrap header.sub_header .button.cart {
	display: flex;
	width: auto;
	height: auto;
	margin: 0;
	background: none !important;
	font-weight: 500;
	font-size: 13px;
	line-height: 40px;
	white-space: nowrap;
	color: var(--txt-color);
	gap: 5px;
	align-items: center;
	text-indent: 0;
}
.wrap header.sub_header .button.cart .count {
	position: static;
	min-width: 18px;
	padding: 0 6px;
	font-size: 10px;
	color: var(--txt-color-white);
	z-index: 1;
}
.wrap header.sub_header .title {
	width: calc(100% - 210px);
}
.wrap header.sub_header .button {
	background: var(--bg-color-black);
	mask-size: 26px 26px;
	mask-position: 50% 50%;
}
.wrap header.sub_header .button.back {
	mask-image: url('../image/icon/ico_back_26.svg');
}
.wrap header.sub_header .button.search {
	mask-image: url('../image/icon/ico_search_26.svg');
}
.wrap header.sub_header .button.share {
	mask-image: url('../image/icon/ico_share_26.svg');
}
.wrap header.sub_header .button.home {
	mask-image: url('../image/icon/ico_home_26.svg');
}
.wrap header.sub_header .button.close,
.wrap header.sub_header .button.close_w {
	mask-image: url('../image/icon/ico_close_26.svg');
}
.wrap header.sub_header .button.close.is_active,
.wrap header.sub_header .button.close_w {
	background: var(--bg-color-white);
}
.wrap header.sub_header .button.equal {
	mask-image: url('../image/icon/ico_equal_26.svg');
}
.wrap header.sub_header .button.equal.is_active {
	mask-image: url('../image/icon/ico_equal_26_on.svg');
}

/* GNB 툴팁이 위로 가기 버튼 열까지 닿으면(MainNewGnb가 body에 표시) 버튼을 툴팁 위로 올린다(2026-10-07 QA 136번).
   퍼블 `nav.is_active + .gotop_area{bottom:66px}`를 V2에서만 덮는다. 툴팁 윗선이 화면 아래에서 75px 정도라
   버튼 아랫선을 82px에 둔다(안전 영역은 GNB와 버튼에 똑같이 더해져 상대 위치가 같다). */
html body.v2-main.v2-gnb-shown.v2-gnb-tip-float .gotop_area {
	bottom: 82px;
}
/* 2026-10-19 QA 공통 3번 — V2에서는 위로 가기 버튼 위치를 이 페이지의 GNB(MainNewTooltip, `body.v2-gnb-shown`)
   노출 여부로 정한다. 퍼블 `nav.is_active + .gotop_area{bottom:66px}`는 바로 앞 형제 nav(= 숨겨진 V1 Dockbar)를
   따라가서, 보이는 GNB는 숨었는데 버튼만 올라가 있었다. 아래 규칙이 그 형제 규칙보다 명시도가 높다.
   GNB가 숨으면 퍼블 기본값(20px), 보이면 66px(툴팁이 버튼 열에 닿으면 위 82px). 안전 영역은 버튼 padding-bottom이
   GNB와 똑같이 더해 상대 위치가 같다. */
html body.v2-main .gotop_area {
	bottom: 20px;
}
html body.v2-main.v2-gnb-shown .gotop_area {
	bottom: 66px;
}
html body.v2-main.v2-gnb-shown.v2-gnb-tip-float .gotop_area {
	bottom: 82px;
}

/* 메인 기획전 탭의 쇼케이스 타이틀(`MoreShowCaseTitleImage`) 첫 로딩 레이아웃 깨짐(2026-10-12 QA 161번).
   타이틀 이미지(`<img>`)에 크기가 없어, 이미지가 오기 전에는 영역 높이가 거의 0이다. 안에 절대배치로 얹힌 타이틀·소개
   텍스트가 영역 위쪽에 뭉치거나 영역 밖으로 밀렸다가, 이미지가 오면 전체가 800px 가까이 밀려 내려가며 제자리를 찾았다
   (스테이지 /main-new/event-390 느린 회선 재현: 레이아웃 시프트 0.77 → 0). 이미지 올 자리를 nbo 업로드 가이드 비율로
   미리 잡는다 — A형 360 X 640, B형 360 X 760(~820, 가장 작은 쪽 기준이라 더 길면 내용만큼 자란다). C형은 컴포넌트가 이미
   `padding-bottom`으로 잡고 있어 건드리지 않는다. 기획전 상세 `/event/{idx}`(V1)는 이 CSS를 불러오지 않아 영향 없다. */
.container--v1-embed .showcase_md_tit_img .sc_t_A .sc_tit_img {
	aspect-ratio: 360 / 640;
}
.container--v1-embed .showcase_md_tit_img .sc_t_B .sc_tit_img {
	aspect-ratio: 360 / 760;
}

/* 팝업 dim 공통 #000 오퍼시티 40 → 60%(피그마 수정요청 10/16). 퍼블 ui_common.css가 `.dimmer`를
   검정 + opacity .6으로 바꿨다(기존은 --bg-color-black02(40% 검정) + opacity 1). ui_common.css는 V1과
   같이 쓰는 파일이라 고치지 않고 V2 메인(body.v2-main)에서만 덮는다. 바텀시트 dim(.6)도 같은 60%가 된다. */
body.v2-main .dimmer {
	background-color: var(--bg-color-black);
}
body.v2-main .is_active .dimmer,
body.v2-main .is_active.dimmer {
	opacity: 0.6;
}
body.v2-main .is_active .dimmer.inner,
body.v2-main .is_active.dimmer.inner {
	opacity: 0;
}

/* 2026-10-27 — 크리마 리뷰 작성 전체화면 팝업(안내 바텀시트의 "리뷰 작성하고 마일리지 적립 받기")이 앱에서
   노치(상태바)에 가려 상단 헤더·닫기(X)가 잘렸다(iOS·AOS 모두). 크리마 SDK(mobile-*.js)는 팝업을
   `position:fixed; top:0` 인라인 스타일로 화면 끝에 붙이고 safe-area를 전혀 보지 않는다. 헤더는
   review3.cre.ma iframe 안쪽이라 직접 못 고치고, SDK가 우리 DOM에 붙이는 바깥 요소를 --safeTop만큼
   비워 준다. iOS는 `#crema-ios-popup-container`(자식 팝업은 `-N` 접미) 안에 iframe이 들어가므로 컨테이너에
   padding, AOS는 iframe이 body에 바로 붙으므로 iframe의 흰 border로 상태바 띠를 채운다(top을 옮기면 그 띠로
   메인 화면이 비친다). 인라인 스타일을 이기려고 !important를 쓴다. 하단도 같은 식으로 홈 인디케이터만큼 비운다
   (AOS는 --safeBottom이 0이라 변화 없다). 웹은 safeTop이 0이라 변화 없고, V2 메인(body.v2-main)에서만 건다.
   이 iframe 경로는 app.html이 앱 UA에서 crema.info.use_fullscreen_popup_for_mobile_write를 켜야 탄다 —
   기본값(false)이면 버튼이 크리마 작성 페이지로 이동해 버려 이 CSS가 닿지 않는다(2026-10-27 iOS 재현). */
body.v2-main #crema-ios-popup-container,
body.v2-main [id^='crema-ios-popup-container-'] {
	padding-top: var(--safeTop);
	padding-bottom: var(--safeBottom);
	background: #fff;
}
body.v2-main > iframe[id^='crema-fullscreen-popup'] {
	box-sizing: border-box;
	border-top: var(--safeTop) solid #fff !important;
	border-bottom: var(--safeBottom) solid #fff !important;
}
