/* =========================================================
   Product Detail
========================================================= */

.product-detail-main {
	padding: 80px 0 160px;
}


/* =========================================================
   Product Top
========================================================= */

.product-top {
	display: grid;
	grid-template-columns: minmax(0, 750px) minmax(0, 1fr);
	gap: 80px;
}

.product-top > * {
	min-width: 0;
}


/* =========================================================
   Gallery
========================================================= */

.gallery-main {
	display: grid;
	place-items: center;

	height: 875px;

	border: 1px solid var(--line);

	background: #fff;
}

.gallery-main img {
	width: 100%;
	height: 100%;
	padding: 30px;

	object-fit: contain;
}

.gallery-empty {
	color: #777;
}


/* ---------------------------------------------------------
   Gallery Thumbnails
--------------------------------------------------------- */

.gallery-thumbs {
	display: flex;
	gap: 20px;

	margin-top: 20px;
	padding: 1px;

	overflow-x: auto;
}

.gallery-thumb {
	flex: 0 0 110px;

	width: 110px;
	height: 110px;
	padding: 6px;

	border: 1px solid var(--line);

	background: #fff;

	cursor: pointer;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;

	object-fit: contain;
}

.gallery-thumb.is-selected {
	border: 2px solid var(--cyan);
}

.gallery-thumb:focus-visible,
.icon-action:focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 3px;
}


/* =========================================================
   Product Summary
========================================================= */

.product-summary {
	padding-top: 60px;

	overflow-wrap: anywhere;
}

.product-summary .chip {
	height: 35px;
	padding-inline: 15px;
}

.product-summary h2 {
	margin: 25px 0 10px;

	font: 700 36px Poppins, sans-serif;
}

.product-summary > p {
	color: #777;
}


/* =========================================================
   Price Info
========================================================= */

.price-info {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 17px;

	margin-top: 35px;
	padding: 25px 0;

	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.price-info dt {
	font-weight: 600;
}

.price-info dd {
	color: #666;
}

.price-info strong {
	color: var(--cyan);
}


/* =========================================================
   Product Purchase
========================================================= */

.product-purchase {
	display: grid;
	gap: 14px;

	margin-top: 24px;
}

.product-purchase > label {
	display: grid;
	gap: 6px;

	min-width: 0;
}

.product-purchase select,
.product-purchase input {
	max-width: 100%;
	padding: 10px;

	border: 1px solid var(--line);
}

.product-purchase select {
	width: 100%;
	min-width: 0;
}

.product-purchase input {
	width: 80px;
}


/* ---------------------------------------------------------
   Buy Actions
--------------------------------------------------------- */

.buy-actions {
	display: grid;
	grid-template-columns: 60px 60px minmax(0, 1fr);
	gap: 10px;

	margin-top: 10px;
}

.icon-action {
	display: grid;
	place-items: center;

	width: 60px;
	height: 60px;
	padding: 0;

	border: 1px solid var(--line);

	background: #fff;

	cursor: pointer;
}

.icon-action img {
	width: 24px;
	height: 24px;
}

.direct-buy {
	min-height: 60px;
	padding: 0 20px;
}


/* ---------------------------------------------------------
   Wishlist
--------------------------------------------------------- */

.product-purchase .wish-action.active {
	background: var(--cyan);
	border-color: var(--cyan);
}

.product-purchase .wish-action.active img {
	filter: brightness(0) invert(1);
}


/* =========================================================
   Product Story
========================================================= */

.product-story {
	margin-top: 90px;
}

.story-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 60px;

	align-items: center;

	margin: 55px 0;
}

.story-row > * {
	min-width: 0;
}

.story-row.reverse {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.story-row img {
	width: 100%;
	height: 500px;

	object-fit: cover;
}

.story-row h3 {
	margin-bottom: 24px;

	font-size: 24px;
}

.story-row p {
	color: #666;

	line-height: 1.4;
	font-size: 18px; 
}


/* ---------------------------------------------------------
   Story - No Image
--------------------------------------------------------- */

.product-story .story-row.story-no-image {
	grid-template-columns: minmax(0, 1fr);
}

.product-story .story-row.story-no-image > div {
	width: 100%;
	max-width: none;
}


/* ---------------------------------------------------------
   Story - Rich Content
--------------------------------------------------------- */

.story-row.story-rich {
	display: block;

	width: 100%;
	max-width: none;

	margin-inline: 0;
}

.story-rich > h3 {
	margin-bottom: 24px;
}

.rich-content {
	color: #555;

	line-height: 1.7;

	overflow-wrap: anywhere;
}

.rich-content > *:first-child {
	margin-top: 0;
}

.rich-content > *:last-child {
	margin-bottom: 0;
}

.rich-content img {
	display: block;

	max-width: 100%;
	height: auto;

	margin: 20px auto;
}

.rich-content a {
	color: var(--cyan);

	text-decoration: underline;
}

.rich-content table {
	display: table;

	width: 100%;
	max-width: 100%;

	margin: 24px 0;

	border-collapse: collapse;
	border-top: 2px solid #009BB5
}

.rich-content caption {
	padding: 8px;

	font-weight: 700;

	text-align: left;
}

.rich-content th,
.rich-content td {
	padding: 10px;

	border: 1px solid var(--line);

	text-align: left;
	vertical-align: top;
}

.rich-content th {
	background: #f6f6f6;
}


/* =========================================================
   Specifications
========================================================= */

.specs {
	margin: 90px 0;
}

.specs h3 {
	margin-bottom: 20px;
	padding-top: 22px;

	border-top: 1px solid var(--line);

	font-size: 22px;
}

.specs table {
	width: 100%;

	table-layout: fixed;

	overflow-wrap: anywhere;
}

.specs th {
	width: 16%;

	text-transform: uppercase;
}


/* =========================================================
   Related Products
========================================================= */

.related {
	margin: 80px 0;
}

.related > h3 {
	display: flex;
	align-items: center;

	min-height: 80px;

	margin: 0;
	padding: 20px;

	border-top: 1px solid #c0c0c0;

	font-size: 24px;
	line-height: 1.6;
}

.related .product-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 20px;
}

.related-product {
	min-width: 0;

	overflow-wrap: anywhere;
}

.page-product-detail .related .product-image {
	height: auto;

	aspect-ratio: 360 / 420;
}

.related .product-card h3 {
	margin: 20px 0 0;

	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: normal;
}

.related .product-meta {
	color: rgb(17 17 17 / 60%);

	line-height: 1.5;
}

.related .product-price {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;

	font-size: 14px;
}

.related .product-price del {
	margin: 0;

	color: #b4b4b4;
}

.related-addon {
	margin-bottom: 10px;

	color: var(--cyan);

	font-size: 14px;
}


/* =========================================================
   Purchase Guide
========================================================= */

.purchase-guide {
	margin-top: 90px;

	font-family: Pretendard, Arial, sans-serif;
	letter-spacing: 0;
}

.purchase-guide > h3 {
	display: flex;
	align-items: center;



	padding: 20px 0;

	border-top: 1px solid #c0c0c0;

	color: var(--ink);

	font-size: 24px;
	font-weight: 700;
	line-height: 1.6;
}


/* ---------------------------------------------------------
   Guide Row
--------------------------------------------------------- */

.guide-row {
	display: grid;
	grid-template-columns: 227px minmax(0, 1fr);

	border-bottom: 1px solid var(--line);
}

.purchase-guide .guide-row:first-of-type {
	border-top: 1px solid var(--line);
}

.purchase-guide .guide-row > * {
	min-width: 0;
}


/* ---------------------------------------------------------
   Guide Title
--------------------------------------------------------- */

.purchase-guide .guide-row h4 {
	display: grid;
	place-items: center;

	padding: 24px 16px;

	background: #f6f6f6;

	color: var(--ink);

	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;

	text-align: center;
}


/* ---------------------------------------------------------
   Guide Copy
--------------------------------------------------------- */

.purchase-guide .guide-copy {
	padding: 40px;

	color: #666;

	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;

	overflow-wrap: anywhere;
}

.purchase-guide .guide-copy strong,
.purchase-guide .guide-copy b {
	font-weight: 700;
}

.guide-copy > * + * {
	margin-top: 1.4em;
}

.guide-copy p:empty {
	min-height: 1.4em;
}

.guide-copy ul {
	padding-left: 27px;

	list-style: disc;
}

.guide-copy ol {
	padding-left: 27px;

	list-style: decimal;
}

.guide-copy img {
	max-width: 100%;
	height: auto;
}

.guide-copy table {
	width: 100%;

	table-layout: fixed;
}

.guide-copy th,
.guide-copy td {
	padding: 10px;

	border: 1px solid var(--line);
}

.guide-copy a {
	color: var(--cyan);

	text-decoration: underline;
}


/* =========================================================
   Responsive
========================================================= */

/* ---------------------------------------------------------
   1000px
--------------------------------------------------------- */

@media (max-width: 1000px) {

	.product-top {
		gap: 40px;
	}

	.gallery-main {
		height: auto;

		aspect-ratio: 750 / 875;
	}

	.product-summary {
		padding-top: 20px;
	}

	.related .product-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

}


/* ---------------------------------------------------------
   800px
--------------------------------------------------------- */

@media (max-width: 800px) {

	.page-product-detail {
		overflow-x: clip;
	}

	.product-detail-main {
		padding: 40px 0 70px;
	}


	/* Product Top */

	.product-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}


	/* Gallery */

	.gallery-main {
		min-height: 0;
	}

	.gallery-main img {
		padding: 18px;
	}

	.gallery-thumb {
		flex-basis: 84px;

		width: 84px;
		height: 84px;
	}


	/* Summary */

	.product-summary h2 {
		font-size: 26px;
	}

	.price-info {
		grid-template-columns: 90px minmax(0, 1fr);
	}


	/* Story */

	.story-row,
	.story-row.reverse {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.story-row img {
		height: auto;
	}


	/* Specs */

	.specs {
		margin: 45px 0;
	}

	.specs th {
		width: 30%;
	}


	/* Purchase Guide */

	.purchase-guide {
		margin-top: 45px;
	}

	.purchase-guide > h3 {
		height: auto;
		min-height: 70px;
	}

	.guide-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.purchase-guide .guide-row h4 {
		justify-items: start;

		padding: 18px 24px;

		font-size: 18px;
	}

	.purchase-guide .guide-copy {
		padding: 24px;

		font-size: 16px;
		line-height: 1.6;
	}

}


/* ---------------------------------------------------------
   700px
--------------------------------------------------------- */

@media (max-width: 700px) {

	.related {
		margin: 45px 0;
	}

	.related .product-grid {
		gap: 32px 12px;
	}

	.related .product-card h3 {
		font-size: 18px;
	}

	.related .product-meta {
		font-size: 14px;
	}

}


/* ---------------------------------------------------------
   480px
--------------------------------------------------------- */

@media (max-width: 480px) {

	.rich-content {
		overflow-x: auto;
	}

	.rich-content table {
		min-width: 560px;
	}

}
.story-rich > .story-block-image{display:block;width:100%;height:auto;object-fit:contain;margin:24px 0}
