/* ==================================
   合同会社キッチンの小物 PRODUCT DETAIL PAGE
   Clean design matching real site
   ================================== */

.product-detail {
	padding: 0;
}

.product-detail__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 30px 0;
}

/* Product Image Gallery */
.product-gallery {
	position: sticky;
	top: 130px;
	height: fit-content;
}

.product-gallery__main {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	padding: 30px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 450px;
}

.product-gallery__mainImage {
	max-width: 100%;
	max-height: 450px;
	object-fit: contain;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
}

.product-gallery__thumb {
	background: #fafafa;
	border: 2px solid #e8e8e8;
	border-radius: 3px;
	padding: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
	border-color: #c51b1b;
}

.product-gallery__thumb img {
	max-width: 100%;
	max-height: 60px;
	object-fit: contain;
}

/* Product Info Section */
.product-info {
	padding: 0;
}

.product-info__code {
	color: #999;
	font-size: 11px;
	margin-bottom: 8px;
	letter-spacing: 0.3px;
}

.product-info__title {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 20px;
	line-height: 1.4;
	color: #333;
	letter-spacing: 0.3px;
}

.product-info__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 20px;
	background: #f9f9f7;
	border-radius: 4px;
	margin-bottom: 25px;
}

.product-info__priceValue {
	font-size: 28px;
	font-weight: 600;
	color: #c70f0f;
	letter-spacing: 0.5px;
}

.product-info__taxIncluded {
	font-size: 13px;
	color: #666;
}

.product-info__stock {
	margin-bottom: 20px;
	padding: 12px 18px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 3px;
	font-size: 13px;
}

.product-info__stock.in-stock {
	color: #4caf50;
	border-color: #4caf50;
	background: #f1f8f4;
}

.product-info__stock.out-of-stock {
	color: #c70f0f;
	border-color: #c70f0f;
	background: #fef5f5;
}

.product-info__stock.low-stock {
	color: #ff9800;
	border-color: #ff9800;
	background: #fff8f0;
}

/* Product Actions */
.product-actions {
	margin-bottom: 30px;
}

.product-actions__quantity {
	margin-bottom: 15px;
}

.product-actions__quantityLabel {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	color: #333;
}

.product-actions__quantityControl {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	border: 1px solid #ddd;
	border-radius: 3px;
	overflow: hidden;
}

.product-actions__quantityBtn {
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 18px;
	color: #666;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-actions__quantityBtn:hover {
	background: #e8e8e8;
	color: #333;
}

.product-actions__quantityBtn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.product-actions__quantityInput {
	width: 60px;
	height: 40px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	outline: none;
}

.product-actions__buttons {
	display: flex;
	gap: 12px;
}

.product-actions__addToCart {
	flex: 1;
	padding: 15px 30px;
	background: #c51b1b;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.product-actions__addToCart:hover {
	background: #c51b1b;
}

.product-actions__addToCart:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.product-actions__addToCart i {
	font-size: 16px;
}

.product-actions__favorite {
	width: 50px;
	height: 50px;
	background: #fff;
	border: 1px solid #dad2c1;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 18px;
}

.product-actions__favorite:hover {
	background: #f9f9f7;
	color: #c51b1b;
}

/* Product Description */
.product-description {
	margin-top: 35px;
	padding-top: 30px;
	border-top: 1px solid #e8e8e8;
}

.product-description__title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 18px;
	color: #333;
}

.product-description__content {
	font-size: 14px;
	line-height: 1.9;
	color: #666;
}

.product-description__content h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 25px 0 12px;
	color: #333;
}

.product-description__content h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 20px 0 10px;
	color: #333;
}

.product-description__content p {
	margin-bottom: 15px;
}

.product-description__content ul {
	margin: 15px 0;
	padding-left: 20px;
}

.product-description__content li {
	margin-bottom: 8px;
}

/* Product Specifications */
.product-specs {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e8e8e8;
}

.product-specs__title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 18px;
	color: #333;
}

.product-specs__table {
	width: 100%;
	border-collapse: collapse;
}

.product-specs__row {
	border-bottom: 1px solid #f0f0f0;
}

.product-specs__label {
	padding: 12px 15px 12px 0;
	font-size: 13px;
	color: #999;
	width: 140px;
	vertical-align: top;
}

.product-specs__value {
	padding: 12px 0;
	font-size: 13px;
	color: #333;
}

/* Related Products */
.related-products {
	grid-column: 1 / -1;
	margin-top: 50px;
	padding-top: 40px;
	border-top: 2px solid #e8e8e8;
}

.related-products__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 25px;
	color: #333;
}

.related-products__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	list-style: none;
}

/* Success Message */
.cart-success-message {
	position: fixed;
	top: 80px;
	right: 20px;
	background: #4caf50;
	color: #fff;
	padding: 15px 25px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	animation:
		slideInRight 0.3s ease,
		fadeOut 0.3s ease 2.7s;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cart-success-message i {
	font-size: 18px;
}

@keyframes slideInRight {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeOut {
	to {
		opacity: 0;
		transform: translateX(400px);
	}
}

/* Responsive Design */
@media (max-width: 1024px) {
	.product-detail__container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.product-gallery {
		position: static;
	}

	.related-products__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.product-detail__container {
		padding: 20px 0;
	}

	.product-gallery__main {
		min-height: 300px;
		padding: 20px;
	}

	.product-gallery__mainImage {
		max-height: 300px;
	}

	.product-info__title {
		font-size: 20px;
	}

	.product-info__priceValue {
		font-size: 24px;
	}

	.product-actions__buttons {
		flex-direction: column;
	}

	.product-actions__favorite {
		width: 100%;
	}

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

@media (max-width: 480px) {
	.related-products__list {
		grid-template-columns: 1fr;
	}
}
