/* ===== 상품상세 - 메인 썸네일 553x553 (PC) ===== */
.left-content-product .content-product-left .large-image {
	width: 553px;
	max-width: 100%;
}

.left-content-product .content-product-left .large-image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* 모바일: 정사각형 (1:1) */
@media (max-width: 991px) {
	.left-content-product .content-product-left .large-image {
		width: 100%;
		padding-top: 100%;
		position: relative;
	}
	.left-content-product .content-product-left .large-image img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

/* 상세페이지 옵션 패널은 항상 표시 (productList.css의 display:none 오버라이드) */
#Option .product-list-option-panel {
	display: block;
}

/* ===== PC/모바일 탭 전환 ===== */
/* PC(≥992px): 기존 탭 표시, 모바일 탭 숨김 */
.pd-mobile-tabs { display: none; }

@media (max-width: 991px) {
	.pd-pc-tabs { display: none !important; }
	.pd-mobile-tabs { display: block; }
}

/* ===== 모바일 통합 탭 네비게이션 ===== */
.pd-mobile-tabs .producttab .tabsslider {
	border: none;
}

.pd-mobile-tabs .nav-tabs {
	border: none;
}

/* theme.css의 vertical-tabs 스타일 모바일 제거 */
.pd-mobile-tabs .producttab .tabsslider.vertical-tabs ul.nav-tabs li::before,
.pd-mobile-tabs .producttab .tabsslider.vertical-tabs ul.nav-tabs li:hover::before,
.pd-mobile-tabs .producttab .tabsslider.vertical-tabs ul.nav-tabs li.active::before {
	display: none !important;
}

.pd-mobile-tabs .producttab .tabsslider.vertical-tabs ul.nav-tabs li {
	border-bottom: none !important;
	border-right: none !important;
	border-left: none !important;
}

/* theme.css 9881 vertical-tabs tab-content: border-left만 제거 (1881 .tab-content 1px solid #ddd 유지) */
.pd-mobile-tabs .producttab .tabsslider.vertical-tabs .tab-content {
	border: 1px solid #ddd !important;
}

.pd-mobile-tabs .tab-content {
	margin-top: 0.5rem;
}

/* theme.css 9750 .producttab 마진 제거 */
.pd-mobile-tabs .producttab {
	margin: 0 !important;
}

.pd-mobile-nav {
	display: table !important;
	width: 100%;
	table-layout: fixed;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 10px;
}

.pd-mobile-nav > li {
	display: table-cell;
	float: none;
	text-align: center;
	vertical-align: middle;
	position: relative;
	border: none !important;
}

.pd-mobile-nav > li > a {
	display: block;
	padding: 16px 4px;
	font-size: 13px;
	font-weight: 500;
	color: #7a8fad;
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	white-space: nowrap;
	background: transparent !important;
	transition: color .2s;
}

/* active: 진한 네이비 텍스트 + 아래 굵은 네이비 바 */
.pd-mobile-nav > li.active > a {
	color: #0d47a1;
	font-weight: 700;
}

.pd-mobile-nav > li.active::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 25%;
	right: 25%;
	height: 3px;
	background: #0d47a1;
	border-radius: 2px;
}

.pd-mobile-nav > li > a:hover,
.pd-mobile-nav > li > a:focus {
	color: #0d47a1;
	background: transparent !important;
}

/* ===== 모바일 옵션 아코디언 카드 ===== */
.pd-mobile-option-list {
	padding: 0;
}

.pd-m-opt-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

/* 카드 헤더 */
.pd-m-opt-header {
	display: flex;
	align-items: flex-start;
	padding: 14px 12px;
	gap: 10px;
	cursor: pointer;
}

.pd-m-opt-check {
	flex-shrink: 0;
	padding-top: 2px;
}

.pd-m-opt-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.pd-m-opt-summary {
	flex: 1;
	min-width: 0;
}

.pd-m-opt-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.pd-m-opt-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pd-m-opt-brand {
	font-weight: 700;
	font-size: 15px;
	color: #333;
}

.pd-m-opt-price {
	font-weight: 700;
	font-size: 15px;
	color: #333;
}

.pd-m-opt-qty {
	flex-shrink: 0;
}

.pd-m-opt-qty .product-list-qty-input {
	width: 48px;
	height: 30px;
	text-align: center;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 13px;
	padding: 2px 4px;
}

.pd-m-opt-catno {
	font-size: 13px;
	color: #555;
	margin-bottom: 2px;
}

.pd-m-opt-catno span {
	font-weight: 600;
}

.pd-m-opt-name {
	font-size: 13px;
	color: #666;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 펼침/접힘 버튼 */
.pd-m-opt-toggle {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: #666;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	align-self: center;
}

.pd-m-opt-toggle .fa {
	transition: transform .2s;
}

.pd-m-opt-card.is-open .pd-m-opt-toggle .fa {
	transform: rotate(180deg);
}

/* 카드 상세 테이블 */
.pd-m-opt-detail {
	border-top: 1px solid #e5e5e5;
	background: #fafafa;
	padding: 0;
}

.pd-m-opt-table {
	width: 100%;
	border-collapse: collapse;
}

.pd-m-opt-table th,
.pd-m-opt-table td {
	padding: 10px 14px;
	font-size: 13px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.pd-m-opt-table th {
	background: #f3f5f7;
	font-weight: 600;
	color: #333;
	width: 90px;
	white-space: nowrap;
}

.pd-m-opt-table td {
	color: #555;
}

.pd-m-opt-unit-sep {
	display: inline-block;
	margin: 0 10px;
	padding: 2px 8px;
	background: #f3f5f7;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

.pd-m-opt-table select {
	max-width: 200px;
}
