/* ------------------------------------------
  stock detail
------------------------------------------ */

.stockDetailBlock {
	padding: 3.1vw 0 5.8vw;
}

.stockDetailBlock__container {
	max-width: 60vw;
}

.stockDetailGallery {
	margin-bottom: 3.5vw;
}

.stockDetailGallery__main {
	position: relative;
}

.stockDetailGallery__mainImage {
	/*width: 100%;
	height: 35.4vw;
	background-position: center;
	background-size: cover;*/
	
	width: 100%;
	height: 35.4vw;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-color: #eee;
	border: 2rem solid #eee;
}

.stockDetailGallery__arrow {
	position: absolute;
	top: 50%;
	width: 2.6vw;
	height: 5.2vw;
	background: transparent;
	transform: translateY(-50%);
}

.stockDetailGallery__arrow::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-top: 2.6vw solid transparent;
	border-bottom: 2.6vw solid transparent;
}

.stockDetailGallery__arrow--prev {
	left: -5.4vw;
}

.stockDetailGallery__arrow--prev::before {
	border-right: 2.6vw solid #c6bcbc;
}

.stockDetailGallery__arrow--next {
	right: -5.4vw;
}

.stockDetailGallery__arrow--next::before {
	border-left: 2.6vw solid #c6bcbc;
}

.stockDetailGallery__thumbs {
	display: flex;
	justify-content: center;
	gap: 0.8vw;
	margin-top: 2vw;
	padding: 0;
	list-style: none;
}

.stockDetailGallery__thumb {
	width: 5.8vw;
	height: 4vw;
	background-position: center;
	background-size: cover;
	cursor: pointer;
}

.stockDetailGallery__thumb.is-active {
	outline: solid 2px #000;
	outline-offset: 2px;
}

.stockDetailInfo {
	width: 46vw;
	margin: auto;
}

.stockDetailInfo__name {
	margin-bottom: 1.2vw;
	font-size: 1.8vw;
	line-height: 1.4;
}

.stockDetailInfo__total {
	margin-bottom: 1.6vw;
	font-size: 1.5vw;
	line-height: 1.4;
}

.stockDetailInfo__price {
	gap: 2.8vw;
	margin-bottom: 2.2vw;
	font-size: 0.9vw;
	font-weight: 600;
}

.stockDetailInfo__spec {
	margin: 0 0 2vw 0;
	font-size: 0.9vw;
	line-height: 2;
}

.stockDetailInfo__specItem {
	display: flex;
}

.stockDetailInfo__specItem dt {
	font-weight: normal;
}

.stockDetailInfo__specItem dd {
	margin: 0;
}

.stockDetailInfo__btn {
	margin-top: 1.2vw;
}

.stockDetailInfo__btn.pageBtn {
	width: 15.2vw;
}

.stockDetailInfo__btn .pageBtn__link {
	padding-left: 2.4vw;
	font-size: 1vw;
}

.stockDetailInfo__btn .pageBtn__link::after {
	right: 1.5vw;
}

@media screen and (max-width: 768px) {
	.stockDetailBlock {
		padding: 8vw 0 14vw;
	}

	.stockDetailBlock__container {
		max-width: calc(100% - 8vw);
	}

	.stockDetailGallery {
		margin-bottom: 9vw;
	}

	.stockDetailGallery__mainImage {
		height: 58vw;
	}

	.stockDetailGallery__arrow {
		display: none;
	}

	.stockDetailGallery__thumbs {
		justify-content: flex-start;
		gap: 2vw;
		margin-top: 4vw;
		overflow-x: auto;
	}

	.stockDetailGallery__thumb {
		flex: 0 0 auto;
		width: 18vw;
		height: 12vw;
	}

	.stockDetailInfo {
		width: 100%;
	}

	.stockDetailInfo__name {
		margin-bottom: 3vw;
		font-size: 5.2vw;
	}

	.stockDetailInfo__total {
		margin-bottom: 4vw;
		font-size: 4.6vw;
	}

	.stockDetailInfo__price {
		display: block;
		margin-bottom: 5vw;
		font-size: 3.6vw;
		line-height: 1.8;
	}

	.stockDetailInfo__spec {
		font-size: 3.6vw;
		line-height: 1.8;
	}

	.stockDetailInfo__specItem {
		display: block;
		margin-bottom: 1vw;
	}

	.stockDetailInfo__btn {
		margin-top: 8vw;
	}

	.stockDetailInfo__btn.pageBtn {
		width: 55vw;
		height: 10vw;
	}

	.stockDetailInfo__btn .pageBtn__link {
		padding-left: 8vw;
		font-size: 3.4vw;
		line-height: 10vw;
	}

	.stockDetailInfo__btn .pageBtn__link::after {
		right: 5vw;
		top: 4vw;
		font-size: 2vw;
	}
}

/* ------------------------------------------
  stock detail spec table / option tags
------------------------------------------ */

.stockSpecTable {
	width: 100%;
	margin: 2vw 0;
	border-collapse: collapse;
	font-size: 0.9vw;
	line-height: 1.8;
}

.stockSpecTable th,
.stockSpecTable td {
	padding: 0.9vw 1.1vw;
	border: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

.stockSpecTable th {
	width: 9.5vw;
	background-color: #f5f5f5;
	font-weight: bold;
	white-space: nowrap;
}

.stockDetailOptions {
	margin: 2vw 0;
}

.stockDetailOptions__title {
	margin-bottom: 0.9vw;
	font-size: 1.1vw;
	line-height: 1.4;
}

.stockOptionList {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5vw;
}

.stockOptionList__item {
	display: inline-block;
	padding: 0.35vw 0.75vw;
	border: 1px solid #ccc;
	border-radius: 100px;
	background-color: #fff;
	font-size: 0.85vw;
	line-height: 1.4;
}

@media screen and (max-width: 768px) {
	.stockSpecTable {
		margin: 6vw 0;
		font-size: 3.84vw;
	}

	.stockSpecTable th,
	.stockSpecTable td {
		display: block;
		width: 100%;
		padding: 2vw 4vw 1.2vw;
		font-size: 3.6vw;
	}

	.stockSpecTable th {
		border-bottom: none;
	}

	.stockDetailOptions {
		margin: 6vw 0;
	}

	.stockDetailOptions__title {
		margin-bottom: 3vw;
		font-size: 3.6vw;
	}

	.stockOptionList {
		gap: 2vw;
	}

	.stockOptionList__item {
		padding: 1.6vw 3vw;
		font-size: 3.4vw;
	}
}
