/* WBK Booking - Woost 스킨 스타일 */

/* 전체 래퍼 */
.wbk-booking-item-list-wrap {
	width: 100%;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 카테고리 탭 */
.wbk-category-tabs-wrap {
	margin-bottom: 30px;
}

.wbk-category-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	justify-content: center;
}

.wbk-tab {
	display: inline-block;
	padding: 12px 20px;
	text-decoration: none;
	color: #666;
	font-weight: 500;
	white-space: nowrap;
	border-bottom: 2px solid #2c5530;
	transition: all 0.3s ease;
}

.wbk-tab:hover {
	color: #2c5530;
	text-decoration: none;
}

.wbk-tab.active {
	color: #fff;
	font-weight: 600;
	border-bottom-color: #2c5530;
	background: #2c5530;
}

/* 상품 그리드 */
.wbk-booking-item-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* 개별 카드 */
.wbk-booking-item-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wbk-booking-item-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-color: #d0d0d0;
}

.wbk-booking-item-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wbk-booking-item-link:hover {
	text-decoration: none;
	color: inherit;
}

/* 이미지 영역 */
.wbk-booking-item-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f8f8f8;
}

.wbk-booking-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wbk-booking-item-card:hover .wbk-booking-item-image img {
	transform: scale(1.05);
}

.wbk-booking-item-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #999;
	font-size: 14px;
}

/* 카테고리 배지 */
.wbk-booking-item-category-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(44, 85, 48, 0.9);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

/* 콘텐츠 영역 */
.wbk-booking-item-content {
	padding: 16px;
}

.wbk-booking-item-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px 0;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wbk-booking-item-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	margin: 0 0 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 가격 섹션 */
.wbk-booking-item-price-section {
	margin-top: auto;
}

.wbk-booking-item-prices {
	margin-bottom: 8px;
}

.wbk-regular-price {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.wbk-regular-price.has-sale {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
	font-weight: 400;
	margin-right: 8px;
}

.wbk-sale-price {
	font-size: 18px;
	font-weight: 700;
}

.wbk-origin-info {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

/* 빈 상품 메시지 */
.wbk-booking-no-items {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.wbk-booking-no-items p {
	font-size: 16px;
	margin-bottom: 20px;
}

.wbk-reset-filter {
	display: inline-block;
	padding: 10px 20px;
	background: #2c5530;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: background 0.3s ease;
}

.wbk-reset-filter:hover {
	background: #1e3a21;
	text-decoration: none;
	color: white;
}

/* 페이지네이션 */
.wbk-booking-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.wbk-booking-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 4px;
	text-decoration: none;
	color: #666;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.wbk-booking-pagination .page-numbers:hover,
.wbk-booking-pagination .page-numbers.current {
	background: #2c5530;
	color: white;
	border-color: #2c5530;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
	.wbk-booking-item-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.wbk-booking-item-list-wrap {
		padding: 16px;
	}
}

@media (max-width: 768px) {
	.wbk-booking-item-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.wbk-booking-item-content {
		padding: 12px;
	}

	.wbk-booking-item-title {
		font-size: 14px;
	}

	.wbk-regular-price {
		font-size: 14px;
	}

	.wbk-sale-price {
		font-size: 16px;
	}

	.wbk-category-tabs {
		padding: 0 4px;
	}

	.wbk-tab {
		padding: 10px 16px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.wbk-booking-item-list-wrap {
		padding: 12px;
	}

	.wbk-booking-item-grid {
		gap: 10px;
	}

	.wbk-booking-item-content {
		padding: 10px;
	}

	.wbk-tab {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* ========================================
   상품 상세페이지 스타일
   ======================================== */

/* 상세페이지 전체 래퍼 */
.wbk-booking-detail-wrap {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 상단: 이미지 + 정보 섹션 */
.wbk-booking-detail-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

/* 좌측 이미지 섹션 */
.wbk-booking-detail-image-section {
	position: sticky;
	top: 20px;
	height: fit-content;
}

.wbk-booking-detail-image {
	width: 100%;
	aspect-ratio: 1;
	background: #f8f8f8;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
}

.wbk-booking-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wbk-booking-detail-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	color: #999;
	font-size: 16px;
}

/* 갤러리 썸네일 */
.wbk-booking-detail-gallery-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wbk-gallery-thumb {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.wbk-gallery-thumb:hover,
.wbk-gallery-thumb.active {
	border-color: #2c5530;
}

.wbk-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 우측 상품 정보 섹션 */
.wbk-booking-detail-info {
	padding: 20px 0;
}

.wbk-booking-detail-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	margin: 0 0 16px 0;
}

/* 할인율 배지 */
.wbk-booking-detail-discount {
	margin-bottom: 16px;
}

.discount-badge {
	background: #e74c3c;
	color: white;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
}

/* 가격 섹션 */
.wbk-booking-detail-price {
	margin-bottom: 20px;
}

.price-section {
	display: flex;
	align-items: center;
	gap: 12px;
}

.regular-price {
	font-size: 18px;
	color: #999;
	text-decoration: line-through;
}

.sale-price {
	font-size: 28px;
	font-weight: 700;
	color: #e74c3c;
}

.current-price {
	font-size: 28px;
	font-weight: 700;
	color: #333;
}

/* 원산지 정보 */
.wbk-booking-detail-origin {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.origin-label {
	font-weight: 600;
	color: #666;
	margin-right: 8px;
}

.origin-value {
	color: #333;
}

/* 상품 설명 */
.wbk-booking-detail-desc {
	margin-bottom: 30px;
	padding: 16px;
	background: #f9f9f9;
	border-radius: 8px;
}

.wbk-booking-detail-desc p {
	margin: 0;
	color: #666;
	line-height: 1.6;
}

/* 문의하기 버튼 */
.wbk-booking-detail-actions {
	margin-bottom: 20px;
}

.wbk-booking-inquiry-btn {
	width: 100%;
	padding: 16px;
	background: #2c5530;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.wbk-booking-inquiry-btn:hover {
	background: #1e3a21;
}

/* 모달 오버레이 */
.wbk-booking-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
}

/* 모달 컨테이너 */
.wbk-booking-modal {
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s ease-out;
	outline: none;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* 문의 폼 */
.wbk-booking-form-wrap {
	padding: 30px;
	background: white;
	border-radius: 16px;
}

.wbk-booking-form-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ddd;
}

.wbk-booking-form-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.wbk-form-close {
	background: #f5f5f5;
	border: none;
	font-size: 20px;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.wbk-form-close:hover {
	background: #e0e0e0;
	color: #333;
}

/* 하단 상세 설명 섹션 */
.wbk-booking-detail-description {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.wbk-booking-detail-description h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
}

.wbk-booking-detail-content {
	margin-bottom: 40px;
}

/* 포스트 content 스타일 */
.wbk-product-content {
	line-height: 1.8;
	color: #333;
}

.wbk-product-content img {
	width: 100%;
	height: auto;
	margin-bottom: 16px;
	border-radius: 8px;
}

.wbk-product-content p {
	margin-bottom: 16px;
}

.wbk-product-content h1,
.wbk-product-content h2,
.wbk-product-content h3,
.wbk-product-content h4,
.wbk-product-content h5,
.wbk-product-content h6 {
	margin-top: 24px;
	margin-bottom: 12px;
	font-weight: 600;
	color: #333;
}

.wbk-product-content ul,
.wbk-product-content ol {
	margin-bottom: 16px;
	padding-left: 20px;
}

.wbk-product-content li {
	margin-bottom: 8px;
}

.wbk-product-content blockquote {
	border-left: 4px solid #2c5530;
	margin: 16px 0;
	padding: 12px 16px;
	background: #f9f9f9;
	font-style: italic;
}

.wbk-product-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.wbk-product-content table th,
.wbk-product-content table td {
	border: 1px solid #ddd;
	padding: 8px 12px;
	text-align: left;
}

.wbk-product-content table th {
	background: #f8f8f8;
	font-weight: 600;
}

.wbk-no-detail-content {
	text-align: center;
	padding: 60px 20px;
	background: #f8f8f8;
	border-radius: 8px;
	color: #999;
}

/* 추가 정보 */
.wbk-booking-detail-fields h4 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #333;
}

.wbk-detail-fields-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wbk-field-row {
	display: flex;
	padding: 12px 16px;
	background: #f9f9f9;
	border-radius: 6px;
	border-left: 3px solid #2c5530;
}

.field-label {
	font-weight: 600;
	color: #666;
	min-width: 120px;
	margin-right: 16px;
}

.field-value {
	color: #333;
}

/* 상세페이지 반응형 */
@media (max-width: 768px) {
	.wbk-booking-detail-main {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.wbk-booking-detail-image-section {
		position: static;
	}

	.wbk-booking-detail-title {
		font-size: 20px;
	}

	.sale-price,
	.current-price {
		font-size: 24px;
	}

	.wbk-booking-inquiry-btn {
		font-size: 16px;
		padding: 14px;
	}

	.wbk-booking-detail-wrap {
		padding: 16px;
	}

	/* 모바일 모달 스타일 */
	.wbk-booking-modal-overlay {
		padding: 10px;
	}

	.wbk-booking-modal {
		max-width: 100%;
		max-height: 95vh;
		border-radius: 12px;
	}

	.wbk-booking-form-wrap {
		padding: 20px;
	}

	.wbk-booking-form-header h3 {
		font-size: 16px;
	}
}

/* ========================================
   폼 스타일 (2열 그리드 레이아웃)
   ======================================== */

.wbk-booking-form {
	display: grid;
	gap: 0;
	max-width: 100%;
	overflow: hidden;
}

/* 폼 필드 기본 구조 */
.wbk-form-field {
	display: grid;
	grid-template-columns: 140px 1fr;
	border: 1px solid #e0e0e0;
	border-bottom: none;
	min-height: 50px;
	align-items: stretch;
}

.wbk-form-field:last-of-type:not(.wbk-submit-btn) {
	border-bottom: 1px solid #e0e0e0;
}

/* 라벨 스타일 */
.wbk-form-field>label:first-child {
	background: #f8f9fa;
	padding: 15px 20px;
	border-right: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

/* 필수 표시 */
.required {
	color: #195851;
	font-weight: 600;
	margin-left: 2px;
}

/* 입력 필드 공통 스타일 */
.wbk-form-field input,
.wbk-form-field textarea {
	border: none;
	padding: 15px 20px;
	background: white;
	outline: none;
	font-size: 14px;
	transition: background-color 0.3s ease;
	width: 100%;
	height: 100%;
}

.wbk-form-field input:focus,
.wbk-form-field textarea:focus {
	background: #f9f9f9;
}

/* 텍스트영역 (문의사항) */
.wbk-message-field textarea {
	min-height: 120px;
	resize: vertical;
}

/* 상품 선택 필드 */
.wbk-product-field {
	align-items: stretch;
}

.wbk-product-selector {
	position: relative;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	min-height: 50px;
	background: white;
}

/* 선택된 상품 표시 */
.wbk-selected-product {
	display: flex;
	align-items: center;
	background: #195851;
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	gap: 8px;
}

.product-remove {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.product-remove:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* 상품 검색 */
.wbk-product-search {
	position: relative;
	width: 100%;
}

.product-search-input {
	width: 100%;
	padding: 10px 0;
	border: none;
	outline: none;
	font-size: 14px;
	background: transparent;
}

/* 검색 결과 */
.wbk-search-results {
	position: absolute;
	top: 100%;
	left: -20px;
	right: -20px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin-top: 5px;
}

.search-result-item {
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.3s ease;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background: #f8f9fa;
}

.result-title {
	font-weight: 500;
	color: #333;
	margin-bottom: 2px;
}

.result-price {
	font-size: 12px;
	color: #666;
}

.no-results,
.search-error {
	padding: 12px 16px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.search-error {
	color: #e74c3c;
}

/* 개인정보수집 동의 */
.wbk-privacy-field {
	grid-template-columns: 1fr;
	padding: 20px;
	background: #f8f9fa;
}

.wbk-privacy-field label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.wbk-privacy-field input[type="checkbox"] {
	margin-top: 2px;
	transform: scale(1.1);
	accent-color: #195851;
	width: auto;
	height: auto;
}

.privacy-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.privacy-title {
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.privacy-desc {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

.privacy-desc a {
	color: #195851;
	text-decoration: underline;
}

.privacy-desc a:hover {
	color: #0f3d37;
}

/* 제출 버튼 */
.wbk-submit-btn {
	background: #195851;
	color: white;
	border: none;
	padding: 18px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	border-radius: 0;
}

.wbk-submit-btn:hover {
	background: #0f3d37;
}

.wbk-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* 폼 반응형 */
@media (max-width: 768px) {
	.wbk-form-field {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
	}

	.wbk-form-field>label:first-child {
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
		padding: 12px 16px;
		font-size: 13px;
	}

	.wbk-form-field input,
	.wbk-form-field textarea {
		padding: 12px 16px;
		font-size: 14px;
	}

	.wbk-product-selector {
		padding: 12px 16px;
	}

	.wbk-search-results {
		left: -16px;
		right: -16px;
	}

	.wbk-privacy-field {
		padding: 16px;
	}

	.wbk-submit-btn {
		padding: 16px;
		font-size: 15px;
	}
}