/* ===================
     상품 분류페이지 소스
   =================== */



.goods_list{
	padding: 0px;
}

.goods_list_item_tit + .list_item_category{
	margin-bottom: 0;
}

.goods_list_item_tit{
	padding: 0px;
}

.goods_list_item_tit h2{
    color: #3d3d3d;
    font-size: 33px;
    font-weight: 300;
    padding: 22px 0 16px;
}

.list_item_category{
	padding: 0px;
    border: none;
    border-top: 0px;
}

.list_item_category ul{
	padding: 0px;
}

.goods_list .list_item_category li{
    border: solid 1px #c9c9c9;
    margin: 0 2px;
	width: auto;
    cursor: pointer;
	transition: all 0.3s;
	-webkit-transition: all 0.3s;
}

.goods_list .list_item_category li a{
	padding: 11px 0;
}

.goods_list .list_item_category li a:hover {
    text-decoration: none;
}

.goods_list .list_item_category li span{
	margin: 0 25px;
	display: block;
}

.goods_list .list_item_category li a,
.goods_list .list_item_category li em{
	transition: all 0.3s;
	-webkit-transition: all 0.3s;
}

.goods_list .list_item_category li.on,
.goods_list .list_item_category li:hover{
	border-color: #000;
}
.goods_list .list_item_category li.on a,
.goods_list .list_item_category li.on em,
.goods_list .list_item_category li:hover a,
.goods_list .list_item_category li:hover em{
	color: #000;
}

.best_item_view{
    margin-bottom: -100px;
}

.best_item_view .best_item_view_tit{
	margin: 0px;
}

.best_item_view h3{
    padding: 40px 0 10px;
    margin-top: 15px;
    color: #3d3d3d;
    border-top: solid 1px #dadada;
    font-size: 25px;
    text-align: center;
    font-weight: 600;
}

/* 이미지 위 마우스오버 정보(BEST PRODUCT 등): 긴 상품명이 한 줄(nowrap)로 표를 넓혀 카드 밖으로 밀려나던 문제 */
.item_simple_type .item_simple_info{
    table-layout: fixed;
}
.item_simple_type .item_simple_over .item_name{
    white-space: normal;
    color: #fff;
    padding: 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods_pick_list{
    margin-top: 60px;
}

.goods_pick_list .pick_list_box .pick_list label.on {
    background: url('../../img/icon/goods_icon/icon_sort_check.png') no-repeat left 0px;
}



@media (max-width: 1250px) {

    .goods_list_item_tit {
        margin: 30px 0 0px 0;
    }
    
    .goods_list_item_tit + .list_item_category {
        margin: 0px 0px 30px;
        padding: 0;
    }    
}

@media (max-width: 769px) {
    
	.sub_content .content.goods_list .location_wrap{
		display: none;
	}

	.goods_list_item_tit h2 {
		font-size: 25px;
		font-weight: 600;
		padding: 0px 0 5px;
		text-align: center;
	}

	.goods_list_item_tit + .list_item_category{
	    margin: 0px 0px 20px;
	}

	.list_item_category ul {
		text-align: center;
	}

	.goods_list .list_item_category li{
		border: none;
		width: auto;
	}

	.goods_list .list_item_category li span {
		margin: 0 8px;
	}

	.goods_list .list_item_category li a {
		padding: 5px 0;
	}

	.best_item_view{
	    margin-bottom: 0;
	}

	.best_item_view h3{
		margin-top: 0;
		padding: 20px 0 0px;
		font-size: 20px;
		border: none;
	}

	.goods_pick_list{
		margin-top: 20px;
	}

    .list_item_category {
        border-bottom: 0px;
    }
    
    .list_item_category ul {
        padding: 0;
    }
    
    .list_item_category ul li {
        width: 25%;
        border-bottom: 1px solid #dbdbdb;
        border-right: 1px solid #dbdbdb;
        box-sizing: border-box;
    }
    
    .list_item_category li a {
        padding: 10px 5px;
        text-align: center;
        white-space : nowrap;
        overflow : hidden;
        text-overflow : ellipsis;        
    }
    
    .list_item_category li em {
        display: none;
    }
    
    .goods_pick_list {
        position: relative;
    }    
    
    .goods_pick_list .pick_list_num {
        padding: 5px 0 15px 0;
    }
    
    .goods_pick_list .pick_list_box .pick_list {
        padding: 0;
        width: 100%;
        border: 1px solid #d9d9d9;
        border-bottom: 0px;
        box-sizing: border-box;
        height: auto;
    }
    
    .goods_pick_list .pick_list_box {
        height: auto;
		border-top: none;
		border-bottom: none;
		padding-top: 0;
    }
    
    .goods_pick_list .pick_list_box .pick_list li {
        margin: 0;
        width: 33.333%;
        text-align: center;
        border-bottom: 1px solid #d9d9d9;
        border-right: 1px solid #d9d9d9;
        line-height: 35px;
        box-sizing: border-box;
        padding: 0;
    }
    
    .goods_pick_list .pick_list_box .pick_list li:nth-of-type(3n) {
        border-right: none;
    }
    
    .goods_pick_list .pick_list_box .pick_list label {
        padding: 0;
		display: block;
    }
    
    .goods_pick_list .pick_list_box .pick_list label.on {
        background: none;
        font-weight: bold;
		color: #000;
    }
    
    .choice_num_view {
        padding: 0;
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* ===================
     하위 카테고리 표시 (wib/js/wib-category-nav.js 가 그림)
     나라: 국기 + 이름 정렬 격자 / 유심·이심: 전환 버튼
   =================== */
.list_item_category.cn-ready > ul{ display: none; }
.goods_list .list_item_category.cn-ready{ margin: 6px 0 40px; padding: 0; border: 0; }
.cn-nav a{ text-decoration: none; }

/* 다국가(통합) 상품 카드: 누르는 카드 모양 (흰 카드 + 다국가 배지 + 상품 보기 버튼) */
.cn-sec-tit{ margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #2e2e2e; }
.cn-sec-tit.cn-sec-country{ margin: 22px 0 8px; }
.cn-region{ display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 12px; border: 1px solid #e3e7eb; border-radius: 16px; background: #fff; color: #2e2e2e; box-shadow: 0 2px 8px rgba(16,24,40,.05); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cn-region:hover, .cn-region.on{ border-color: #1699be; box-shadow: 0 8px 20px rgba(22,153,190,.15); transform: translateY(-2px); }
.cn-globe{ flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #1699be; color: #fff; }
.cn-region .cn-globe{ margin-right: 4px; border-radius: 50%; background: #fff3e6; color: #e07a12; } /* (11-13) 제목 주황 지구본과 같게 원 */
.cn-region b{ font-size: 16px; color: #2e2e2e; }
.cn-multi-badge{ padding: 2px 8px; border-radius: 999px; background: #fff3e6; color: #e07a12; font-size: 11px; font-weight: 700; }
.cn-region i{ margin-left: auto; padding: 8px 14px; border-radius: 999px; background: #1699be; color: #fff; font-size: 13px; font-style: normal; font-weight: 700; white-space: nowrap; }

/* 국기 격자 */
.cn-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 8px; }
.cn-cell{ display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 10px; color: #2e2e2e; font-size: 14px; }
.cn-cell:hover{ background: #f2fafc; color: #1699be; }
.cn-cell.on{ background: #1699be; color: #fff; font-weight: 600; }
.cn-cell span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-flag{ flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.cn-flag-title{ width: 34px; height: 34px; margin-right: 12px; vertical-align: -5px; }
.cn-more{ display: none; }

/* 유심·이심 전환 버튼 */
.cn-seg{ display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f1f3f5; }
.cn-seg a{ padding: 9px 22px; border-radius: 999px; color: #5b6470; font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.cn-seg a:hover{ color: #1699be; }
.cn-seg a.on{ background: #fff; color: #1699be; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cn-seg em, .cn-chips em{ font-style: normal; font-size: 12px; color: #9aa1a9; }
.cn-seg a.on em{ color: #1699be; }
.cn-seg-desc{ margin: 10px 0 0 6px; font-size: 13px; color: #8a9099; }
.cn-seg-desc b{ font-weight: 600; color: #5b6470; }
.cn-seg-desc span{ margin: 0 8px; }

/* 그 밖의 하위 분류 */
.cn-chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.cn-chips a{ padding: 8px 16px; border: 1px solid #e4e7eb; border-radius: 999px; color: #2e2e2e; font-size: 14px; }
.cn-chips a:hover, .cn-chips a.on{ border-color: #1699be; color: #1699be; }

@media (max-width: 1050px) {
    .cn-grid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 769px) {
    .goods_list .list_item_category.cn-ready{ margin: 0 0 24px; }
    .cn-region{ padding: 12px 14px; }
    .cn-region b{ font-size: 15px; }
    .cn-grid{ grid-template-columns: repeat(3, 1fr); gap: 2px 4px; }
    .cn-cell{ gap: 6px; padding: 9px 8px; font-size: 13px; }
    .cn-grid:not(.cn-open) .cn-cell:nth-child(n+16){ display: none; }
    .cn-more{ display: block; width: 100%; margin: 10px 0 0; padding: 10px; border: 1px solid #e4e7eb; border-radius: 10px; background: #fff; font-size: 13px; color: #5b6470; }
    .cn-seg{ display: flex; }
    .cn-seg a{ flex: 1; padding: 9px 10px; text-align: center; font-size: 14px; }
}

/* 유심·이심 페이지 제목(국기 상위 분류 + 종류 배지), 종류 색, 설명 카드 */
.cn-title{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cn-title .cn-flag-title{ margin-right: 0; }
.cn-globe-title{ width: 34px; height: 34px; }
.cn-globe-multi{ border-radius: 50%; background: #fff3e6; color: #e07a12; } /* (11-13 디자인 QA 20번) 둥근 네모 12px → 완전한 원 */
/* 고를 하위 분류가 없을 때(숫자 모두 0) 예전 목록 숨김 (JS 가 cn-none 붙임) */
.goods_list .list_item_category.cn-none{ display: none; }
.cn-seg a.on.usim{ color: #d9700b; }
.cn-seg a.on.esim{ color: #1689ab; }
.cn-seg-desc{ display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.cn-desc-item{ display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #f7f8fa; color: #5b6470; font-size: 13px; }
.cn-desc-item b{ flex: none; font-weight: 700; white-space: nowrap; } /* 2026-11-12: 설명이 길어져 모바일에서 '일본 eSIM(이심)'이 두 줄로 꺾이던 것 */
.cn-desc-item i{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.cn-desc-item.usim b{ color: #d9700b; }
.cn-desc-item.usim i{ background: #f08a24; }
.cn-desc-item.esim b{ color: #1689ab; }
.cn-desc-item.esim i{ background: #1699be; }
.cn-desc-item.dim{ opacity: 0.55; }

/* 권역 페이지(중화권/대만 등) 배너 카드 */
.goods_list_item_tit.cn-hidden{ display: none; }
.cn-hero{ display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; padding: 4px 0 20px; border-bottom: 1px solid #eceef1; }
.cn-hero-ic{ flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #1699be; color: #fff; }
.cn-hero-txt h2{ margin: 0; padding: 0; font-size: 28px; font-weight: 700; color: #1f2a33; letter-spacing: -0.5px; }
.cn-hero-txt p{ margin: 6px 0 0; font-size: 14px; color: #6b7680; }
.cn-hero-txt p b{ color: #1689ab; }
.cn-hero-flags{ display: flex; align-items: center; margin-left: auto; }
.cn-hero-flags img,
.cn-hero-flags span{ width: 36px; height: 36px; margin-left: -10px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.cn-hero-flags img{ object-fit: cover; }
.cn-hero-flags span{ display: flex; align-items: center; justify-content: center; background: #1699be; color: #fff; font-size: 12px; font-weight: 700; }

/* 나라가 적은 권역(8개 이하): 큰 국기 카드 */
.cn-grid.cn-few{ grid-template-columns: repeat(auto-fill, minmax(150px, 180px)); gap: 12px; }
.cn-grid.cn-few .cn-cell{ flex-direction: column; justify-content: center; gap: 10px; padding: 20px 10px; border: 1px solid #eceef1; border-radius: 16px; font-size: 15px; font-weight: 600; text-align: center; }
.cn-grid.cn-few .cn-cell:hover{ border-color: #1699be; box-shadow: 0 6px 16px rgba(22,153,190,.12); background: #fff; }
.cn-grid.cn-few .cn-cell.on{ border-color: #1699be; }
.cn-grid.cn-few .cn-flag{ width: 46px; height: 46px; }

/* 관리자 '상단 꾸미기 영역'이 비어 있으면 숨김 (JS 가 cn-empty 붙임) */
.goods_list_item .addition_zone.cn-empty{ display: none; }

@media (max-width: 769px) {
    .cn-title{ gap: 8px; }
    .cn-seg-desc{ flex-direction: column; gap: 6px; }
    .cn-desc-item{ padding: 7px 12px; font-size: 12px; }
    .cn-hero{ gap: 12px; margin: 0 0 16px; padding: 0 0 14px; }
    .cn-hero-ic{ width: 40px; height: 40px; border-radius: 12px; }
    .cn-region{ padding: 12px 14px; }
    .cn-region i{ padding: 7px 11px; font-size: 12px; }
    .cn-sec-tit{ font-size: 14px; }
    .cn-hero-txt h2{ font-size: 21px; }
    .cn-hero-txt p{ font-size: 13px; }
    .cn-hero-flags{ display: none; }
    .cn-grid.cn-few{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cn-grid.cn-few .cn-cell{ padding: 16px 8px; font-size: 14px; }
    .cn-grid.cn-few .cn-flag{ width: 40px; height: 40px; }
}
/* =========================================================
   디자인 QA 15번 (2026-11-12) — 상품 목록
   ========================================================= */
/* 1) HOME > 국가 선택칸: 상품 상세와 같이 쓰도록 wib-header-renew.css(모든 페이지) 로 옮김 (2026-11-12) */

/* 6) 상품 아래 아이콘(당일발송·추천·베스트·신상품): 줄 가운데로 맞춤.
   아이콘은 관리자에 등록한 이미지라 파일 높이(16px·18px)가 달라 1~2px 차이는 남음 → 같은 높이 이미지로 바꾸는 게 정석 */
/* (11-12 수정) flex 로 하면 베스트 상품 마우스 오버(가운데 정렬)에서 아이콘만 왼쪽에 붙음 → 줄 정렬은 부모(text-align)를 그대로 따르고 아이콘만 세로 가운데 */
.goods_list .item_icon_box img { display: inline-block; vertical-align: middle; margin: 0 4px 0 0 !important; }
.goods_list .item_icon_box img:last-child { margin-right: 0 !important; }

/* 7) 글꼴: 상품 목록도 Pretendard (글꼴 파일은 outline/_header.html 에서 모든 페이지에 불러옴) */
.goods_list { font-family: Pretendard, "Noto Sans KR", sans-serif; }
.goods_list :is(button, select, input, textarea) { font-family: inherit; }

@media (max-width: 769px) {
    /* 3) 국가 제목(● 일본) 가운데 → 왼쪽 정렬 (아래 탭·설명과 같은 줄 시작) */
    .goods_list_item_tit h2 { text-align: left !important; justify-content: flex-start !important; }
}
