/* Custom Shop CSS */

.main-product-image {
	width: 100%;
	max-height: 500px;
	height: 500px;
	object-fit: cover;
	object-position: center;
}

.quantity-group {
	display: flex;
	align-items: center;
}

.quantity-btn {
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 20px;
}

.custom-button {
	padding: 12px 30px;
	font-size: 15px;
	font-weight: 500;
	border-radius: 8px;
	margin: 0 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-button.btn-cart {
	background-color: #f8f9fa;
	color: #343a40;
	border: 1px solid #ced4da;
}

.custom-button.btn-cart:hover {
	background-color: #e9ecef;
}

.custom-button.btn-buy {
	background-color: #007bff;
	color: #fff;
	border: none;
}

.custom-button.btn-buy:hover {
	background-color: #0056b3;
}

.btn-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

#productTabs {
	position: sticky;
	top: 64px; /* ✅ header 높이에 맞게 조정 */
	background: #fff;
}

.product-tab-link a {
	color: #6c757d; /* 부트스트랩 기본 회색 */
	text-decoration: none; /* 밑줄 제거 */
	font-weight: 500;
	padding: 6px 12px;
	transition: color 0.2s ease-in-out;
	font-size: 14px;
}

.product-tab-link a:hover,
.product-tab-link a:focus,
.product-tab-link a.active {
	color: #343a40; /* hover 시 진한 회색 */
	text-decoration: none;
}

@media (max-width: 768px) {
	#productTabs .container {
		padding: 0;
	}
	.product-tab-link a {
		font-size: 12px;
		padding: 0;
	}
}

.review-card {
	background-color: #fefefe;
	border: 1px solid #e0e0e0;
	transition: box-shadow 0.2s ease;
}

.review-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-text {
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	white-space: pre-line;
}

.star-rating .fa-star {
	margin-left: 2px;
}

.tab-badge {
	display: inline-block;
	background-color: #d3d3d3;
	color: #555;
	font-size: 14px;
	padding: 1px 6px;
	margin-left: 4px;
	border-radius: 4px;
	line-height: 1.4;
	vertical-align: middle;
}

.order-steps {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}
.order-step {
	padding: 10px 20px;
	border-bottom: 3px solid #ccc;
	color: #999;
	font-weight: normal;
}
.order-step.active {
	color: #000;
	font-weight: bold;
	border-color: #007bff; /* Bootstrap primary color */
}

/* 토글 스위치 기본 */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* 슬라이더 */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0;
	right: 0; bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

/* 체크되었을 때 */
input:checked + .slider {
	background-color: #00c473; /* 토스 민트색 */
}

input:checked + .slider:before {
	transform: translateX(22px);
}

.badge-large {
	font-size: 0.8rem;
	padding: 0.8em 0.6em;
}

.product-card {
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease-in-out;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
	object-fit: cover;
	height: 350px;
	border-bottom: 1px solid #eee;
}

/* 상품 수 표시 */
.product-count {
	font-size: 14px;
	color: #555;
}

/* 정렬 옵션 링크 전체 */
.sort-options {
	display: flex;
	gap: 15px;
	font-size: 14px;
}

.sort-options a {
	text-decoration: none;
	color: #555;
	transition: color 0.2s ease;
}

.sort-options a:hover {
	color: #007bff;
}

.sort-options .text-primary {
	font-weight: bold;
}

/* 모바일 대응 */
@media (max-width: 576px) {
	.sort-options {
		flex-wrap: wrap;
		gap: 10px;
		font-size: 14px;
	}
}
