.page-header {
	z-index: 3;
    position: fixed;
    top: var(--header-h, 86px);
    left: 0;
    width: 100%;
	max-width: var(--max-product-w);
    padding: 0 0 var(--spacing-5);
}

/* =========================================================================
   section: hero  ========================================================================= */
.section-product-hero {
	z-index: 1;
	position: absolute;
	top: var(--header-h, 86px);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-h, 86px));
	overflow: hidden;
	will-change: opacity;
}
.section-product-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--gray-100);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.product-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* =========================================================================
   section: info  ========================================================================= */
.section-product-detail {
	z-index: 2;
	position: relative;
	margin-top: calc(100vh - var(--header-h, 86px));
	padding-bottom: 30px;
	background: var(--gray-100);
}

.section-product-detail-inner {
	display: flex;
	flex-direction: column;
	gap: 90px;
	max-width: var(--max-product-w);
	margin: 0 auto;
	padding: 30px 0 0;
}

.product-form {
	display: flex;
	gap: 70px;
	width: 100%;
	/*padding: var(--spacing-6) 55px 50px;*/
	padding: var(--spacing-6) 0;
}

.product-info-container {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-7);
	/*width: 100%;*/
	width: 36.666%;
}

/* =========================================================================
   product image swiper ========================================================================= */
.product-image-container {
	position: sticky;
	top: var(--header-h);
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: calc(var(--spacing) * 15);
	/*width: 100%;*/
	width: 57.5%;
	height: fit-content;
}

.product-image-swiper {
	position: relative;
	width: 100%;
	max-width: 690px;
	overflow: hidden;
}

.product-image-swiper .swiper-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
}

.product-image-swiper .swiper-slide {
	width: 100% !important;
	height: 100% !important;
	flex-shrink: 0;
}
.product-image-swiper .swiper-pagination {
	display: none;
}

.product-image-item {
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: var(--radius-4);
	overflow: hidden;
}

.product-image-item img {
	display: flex;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.product-image-thumbnail-swiper .swiper-slide {
	width: fit-content !important;
	max-width: 86px !important;
}

.product-image-thumbnail-swiper .product-image-item {
	width: 86px;
	height: 86px;
	border-radius: var(--radius-3);
	border: 2px solid var(--gray-100);
	cursor: pointer;
}

.product-image-thumbnail-swiper .product-image-item img {
	background: var(--real-black-a-06);
}

.product-image-thumbnail-swiper .swiper-slide-thumb-active .product-image-item {
	border: 2px solid var(--text-primary);
}

/* =========================================================================
   product action  ========================================================================= */
.product-info {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-5);
	padding: calc(var(--spacing) * 9) var(--spacing-6);
	border-radius: var(--radius-3);
	background: var(--white);
	box-shadow: var(--shadow-card);
}

.product-description {
	white-space: pre-line;
	color: var(--gray-400);
}
/* =========================================================================
   tab ========================================================================= */
.tab-box.card-tab-box {
	border-radius: var(--radius-4);
	background: var(--white);
	box-shadow: var(--shadow-card);
}

.card-tab-box .nav {
	--bs-nav-link-padding-x: var(--spacing-5);
	--bs-nav-link-padding-y: var(--spacing-5);
	--bs-nav-tabs-border-radius: var(--radius-4);
	--bs-nav-link-font-size: var(--text-heading-xs);  /* 18px */
	--bs-nav-link-font-weight: 600;
	--bs-nav-link-line-height: var(--text-heading-md);  /* 24px */
	--bs-nav-link-color: var(--gray-400);
	flex-wrap: unset;
	border-radius: var(--radius-4) var(--radius-4) 0 0;
	background: var(--color-disabled-bg);
}

.card-tab-box .nav-tabs {
	--bs-nav-tabs-link-active-color: var(--text-primary);
}

.card-tab-box .nav-item, .card-tab-box .nav-tabs .nav-link {
	width: 100%;
	justify-content: center;
}

.card-tab-box .nav-tabs .nav-link {
	border-bottom: unset;
	color: var(--bs-nav-link-color);
}

.card-tab-box .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
	color: var(--bs-nav-tabs-link-active-color);
}

/* =========================================================================
   구매 탭  ========================================================================= */
.card-tab-contents-box {
	padding: 0 var(--spacing-6);
}

.product-action-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-3);
	padding: calc(var(--spacing) * 9) 0;
	border-bottom: 1px solid var(--gray-100);
}

.product-action-item.column {
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.product-action-item-label {
	font-size: var(--text-body-lg);  /* 16px */
	font-weight: 600;
	line-height: 1.5;  /* 24px */
}

.product-action-item-description {
	margin-top: -4px;
	font-size: 13px;
	line-height: 16.38px;
	letter-spacing: -0.42px;
	color: var(--gray-400);
}

.product-action-item.column .radio-group {
	flex-direction: row;
	/*width: 100%;*/
}
.product-action-item.column .radio-wrapper {
	padding: var(--spacing-4) var(--spacing-7) var(--spacing-4) var(--spacing-4);
}

.product-action-item.button-box {
	justify-content: flex-start;
	gap: var(--spacing-3);
	width: 100%;
}

.product-action-item.button-box .shopping-cart-icon path {
	stroke-width: 1.5;
	stroke: var(--gray-400);
}

.total-price, .total-price .before-sale-price {
	font-size: 15px;
	font-weight: 500;
	line-height: 19.5px;
	letter-spacing: -0.42px;
}
.total-price .before-sale-price {
	position: relative;
	margin-right: 7.7px;
	padding-right: 7.3px;
	font-weight: 400;
	color: var(--gray-400);
}
.total-price .before-sale-price::before {
	content: '';
	position: absolute;
	left: -3px;
	right: calc(0.7em - 7px);
	top: 50%;
	height: 0.08em;
	background: currentColor;
	transform: translateY(-50%);
	pointer-events: none;
}
.total-price .before-sale-price::after {
	content: '';
	position: absolute;
	right: 0.1em;
	top: 50%;
	width: 0.55em;
	height: 0.55em;
	transform: translateY(-50%) rotate(45deg);
	border-top: 0.12em solid currentColor;
	border-right: 0.12em solid currentColor;
	pointer-events: none;
}
.total-price .emphasis {
	font-size: var(--text-heading-md); /* 24px */
	font-weight: 700;
	line-height: 31.2px;
	letter-spacing: -0.42px;
	color: inherit;
}

/* =========================================================================
   추가 구성품  ========================================================================= */
.extra-products-container {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
	width: 100%;
}

.extra-product-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-3);
	padding: calc(var(--spacing) * 9) 0;
}

/* item left */
.extra-product-item-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-5);
}

.extra-product-name {
	font-weight: 500;
}

.extra-product-item-left .stepper-wrapper {
	width: fit-content;
}


/* item right */
.extra-product-item-right {
	display: flex;
	align-items: center;
	gap: var(--spacing-2);
}

.extra-product-price {
	font-weight: 500;
}

/* item remove button */
.remove-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-3);
	cursor: pointer;
	color: var(--text-primary);
}

.remove-btn svg {
	width: 24px;
	height: 24px;
}

.remove-btn path {
	stroke: var(--text-primary);
}

.remove-btn:hover path {
	stroke: var(--secondary);
}

/* =========================================================================
   버튼 (장바구니, 결제하기)  ========================================================================= */
.btn .button-sub-text {
	color: inherit;
}

.price-value {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
}

/* =========================================================================
   section: product description  ========================================================================= */
.section-product-description {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	max-width: 1920px;
	margin: 0 auto;
}

#sectionPrecautions,
#sectionInstallationAndUse,
#sectionComponents,
#sectionSpec {
	position: relative;
	z-index: 2;
}

.section-product-description p {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.section-product-description img {
	width: 100% !important;
}

/* =========================================================================
   스티키 메뉴  ========================================================================= */
.section-sticky-menu {
	box-shadow: none;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	contain: layout style paint;
	transition: box-shadow 0.2s ease-in-out, all 0.2s ease-out;
}
.section-sticky-menu .sticky-menu-list {
	justify-content: space-between;
	max-width: var(--max-product-w);
}
.section-sticky-menu.is-sticky {
	box-shadow: var(--shadow-top-menu);
}
.section-sticky-menu.mobile-only {
	display: none;
}

/* =========================================================================
   하단 결제 버튼 바  ========================================================================= */
.bottom-payment-bar {
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: none;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    will-change: box-shadow, transform;
}

.bottom-payment-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* sticky가 해제되었을 때만 그림자 제거 */
.bottom-payment-bar.visible.is-sticky {
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.bottom-payment-bar-inner {
	display: flex;
	flex-direction: column;
	max-width: var(--max-product-w);
	margin: 0 auto;
	width: 100%;
	padding: var(--spacing-5) 0;
}
.bottom-payment-bar-contents {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    gap: var(--spacing-7);
}

.bottom-payment-info {
    display: flex;
	align-items: center;
    gap: var(--spacing-5);
}

.bottom-payment-bar .product-action-item.button-box {
	gap: var(--spacing-3);
	width: fit-content;
	padding: 0;
}

.bottom-extra-product-price {
	display: none;
	text-align: right;
}
.bottom-extra-product-price.active {
	display: block;
	margin-top: var(--spacing-3);
	font-size: var(--text-body-sm);  /* 12px */
	line-height: 1.3333;  /* 16px */
	color: var(--text-secondary);
}

body:has(.bottom-payment-bar.visible) .floating-action-button {
	padding-bottom: var(--spacing-10);
}

@media (max-width: 1440px) {
	.page-header {
        padding: 0 var(--spacing-5) var(--spacing-6);
    }
}
@media (max-width: 768px) {
	.tab-bar-container {
		display: none;
	}
	.section-product-detail-inner {
		padding: var(--spacing-7) 0 0;
	}
	.product-form {
		padding: 0;
	}

	/* hero */
	.section-product-hero {
		top: var(--header-h, 64px);
		height: calc(100vh - var(--header-h, 64px));
	}
	.section-product-hero::after {
		display: none;
	}

	.section-product-detail {
		margin-top: calc(100vh - var(--header-h, 64px));
		padding: 0;
		background: var(--white);
	}
	.product-form {
		flex-direction: column;
		gap: var(--spacing-7);
	}

	/* swiper */
	.product-image-container {
		position: static;
		width: 100%;
	}
	.product-image-swiper {
		padding: 0 var(--spacing-5) calc(var(--spacing-7) + 2px);
	}
	.product-image-swiper .swiper-pagination {
		--swiper-pagination-bottom: 0px;
		--swiper-pagination-bullet-horizontal-gap: 0;
		--swiper-pagination-bullet-width: 35px;
		--swiper-pagination-bullet-height: 2px;
		--swiper-pagination-bullet-border-radius: 0;
		--swiper-pagination-bullet-inactive-color: var(--gray-300);
		--swiper-pagination-color: var(--gray-600);
		--swiper-pagination-bullet-inactive-opacity: 1;

		display: flex;
		justify-content: center;
	}

	.product-image-thumbnail-swiper {
		display: none;
	}

	.product-info-container {
		padding-bottom: var(--spacing-7);
		width: 100%;
		background: var(--gray-100);
	}
	.product-info {
		gap: var(--spacing-3);
		padding: 0 var(--spacing-5) var(--spacing-7);
		background: var(--white);
		box-shadow: none;
	}
	.product-info .heading-2xl {
		font-size: var(--text-heading-lg);  /* 28px */
		font-weight: 600;
		line-height: 1.2857;  /* 36px */
	}
	.product-info .body-lg {
		font-size: var(--text-body-sm);  /* 12px */
		font-weight: 400;
		line-height: 1.3333;  /* 16px */
	}

	/* =========================================================================
   스티키 메뉴  ========================================================================= */
	.section-sticky-menu.desktop-only {
		display: none;
	}
	
    .section-sticky-menu.mobile-only {
        display: block;
        background: var(--white);
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
        contain: layout style;
        box-shadow: none;
        transition: box-shadow 0.2s ease-in-out;
    }
    
    .section-sticky-menu.mobile-only.is-sticky {
        box-shadow: var(--shadow-top-menu);
    }

	body:has(header.fixed-off) .cloned-menu {
		top: 0 !important;
	}

	#sectionOptionTab {
		margin: 0 var(--spacing-5);
	}

	/* =========================================================================
   tab ========================================================================= */
	.tab-box.card-tab-box {
		border-radius: var(--radius-3) var(--radius-3) var(--radius-4) var(--radius-4);
	}

	.card-tab-box .nav {
		--bs-nav-link-padding-x: var(--spacing-5);
		--bs-nav-link-padding-y: var(--spacing-3);
		--bs-nav-tabs-border-radius: var(--radius-3);
		--bs-nav-link-font-size: var(--text-body-lg);
		--bs-nav-link-font-weight: 500;
		--bs-nav-link-line-height: 1.5;
		border-radius: var(--radius-3) var(--radius-3) 0 0;
	}

	/* =========================================================================
   구매 탭  ========================================================================= */
	.product-action-item {
		padding: var(--spacing-4) 0;
	}
	.product-action-item .heading-xs {
		font-size: var(--text-body-md);  /* 14px */
		font-weight: 500;
		line-height: 1.4285;  /* 20px */
	}
	.total-price {
		font-size: var(--text-body-md);  /* 14px */
		font-weight: 400;
		line-height: 1.4285;  /* 20px */
	}
	.total-price .emphasis {
		font-size: var(--text-heading-sm);  /* 20px */
		font-weight: 600;
		line-height: 1.2;  /* 24px */
		color: inherit;
	}

	.product-action-item.column .radio-group {
		flex-direction: row;
		width: 100%;
	}

	.product-action-item.button-box {
		justify-content: flex-start;
		gap: var(--spacing-5);
		width: 100%;
	}

	.product-action-item.button-box .shopping-cart-icon path {
		stroke-width: 1.5;
		stroke: var(--gray-400);
	}
	.card-tab-contents-box .product-action-item.button-box {
		display: none;
	}

	/* =========================================================================
    하단 결제 바  ========================================================================= */
	.bottom-payment-bar.visible.is-sticky {
		border-radius: var(--radius) var(--radius) 0 0;
		box-shadow: none;
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		contain: layout style paint;
		min-height: 85px;
	}
	.bottom-payment-bar.visible.fixed {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        border-radius: var(--radius) var(--radius) 0 0;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }
	.bottom-payment-bar-inner {
		padding: var(--spacing-5);
	}
	.bottom-payment-bar-contents {
        flex-direction: column;
		align-items: flex-start;
        gap: var(--spacing-4);
		transition: gap 0.2s ease-out;
    }
	.bottom-payment-info {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--spacing-2);
		transition: visibility 0.1s ease-out, opacity 0s ease-out, height 0.2s ease-out 0.2s;
	}
	.bottom-payment-info .heading-xl {
		font-size: var(--text-heading-xs);  /* 18px */
		line-height: 1.3333;  /* 24px */
	}
	.bottom-payment-info .body-lg {
		font-size: var(--text-body-sm);  /* 12px */
		line-height: 1.3333;  /* 16px */
	}
	body:has(header.fixed-off) .bottom-payment-bar.visible.fixed .bottom-payment-bar-contents {
		gap: 0;
	}
	body:has(header.fixed-off) .bottom-payment-bar.visible.fixed .bottom-payment-info {
		visibility: hidden;
		opacity: 0;
		height: 0;
	}

	.bottom-payment-bar .product-action-item.button-box {
		/*gap: var(--spacing-3);*/
		width: 100%;
		padding: 0;
	}
	.bottom-payment-bar .product-action-item.button-box .shopping-cart-icon {
		/*padding: var(--spacing-4);*/
	}
	.bottom-payment-bar .product-action-item.button-box .shopping-cart-icon svg {
		/*width: 24px;*/
		/*height: 24px;*/
	}
	.bottom-payment-bar .product-action-item.button-box .btn {
		width: 100%;
		/*padding: var(--spacing-4) calc(var(--spacing) * 15);*/
		/*font-size: var(--text-body-lg);  !* 16px *!*/
		/*line-height: 1.5;  !* 24px *!*/
	}

    .bottom-payment-buttons {
        width: 100%;
    }
    
    .bottom-payment-buttons .btn {
        flex: 1;
    }

	.bottom-extra-product-price.active {
		margin-top: var(--spacing-4);
		/*font-size: var(--text-body-sm);  !* 12px *!*/
		/*line-height: 1.3333;  !* 16px *!*/
		text-align: center;
		/*color: var(--text-secondary);*/
	}

	body:has(.bottom-payment-bar.visible) .floating-action-button {
		padding-bottom: calc(var(--spacing-3) * 8);
	}
}
