/* ========================================
   オンラインショップ - 商品カード
======================================== */

/* 商品一覧 */
.mdl-product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0 0 40px 0;
}

@media (max-width: 768px) {
	.mdl-product-list {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 0 20px;
	}
}

/* 商品カード */
.product-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card-image {
	position: relative;
	width: 100%;
	padding-top: 75%; /* 4:3 ratio */
	overflow: hidden;
	background: #f5f5f5;
}

.product-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* カード内スライダー */
.product-card-slider {
	position: relative;
}

.card-slider-main {
	position: relative;
	width: 100%;
	padding-top: 100%; /* 1:1 ratio */
	overflow: hidden;
	background: #f5f5f5;
}

.card-slider-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.card-slider-item.is-active {
	opacity: 1;
}

.card-slider-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card-slider-thumbnails {
	display: flex;
	gap: 5px;
	padding: 10px;
	justify-content: center;
	background: #fff;
}

.card-slider-thumb {
	width: 50px;
	height: 50px;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	opacity: 0.6;
}

@media (max-width: 768px) {
	.card-slider-thumb {
		width: 40px;
		height: 40px;
	}
}

.card-slider-thumb:hover {
	opacity: 1;
	border-color: #d85a6f;
}

.card-slider-thumb.is-active {
	opacity: 1;
	border-color: #d85a6f;
}

.card-slider-thumb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-card-content {
	padding: 20px;
	flex: 1;
}

@media (max-width: 768px) {
	.product-card-content {
		padding: 15px;
	}
}

.product-card-title {
	font-size: 18px;
	font-weight: bold;
	margin: 0 0 10px 0;
	line-height: 1.4;
	color: #333;
}

@media (max-width: 768px) {
	.product-card-title {
		font-size: 14px;
	}
}

.product-card-price {
	font-size: 16px;
	font-weight: bold;
	color: #d85a6f;
	margin: 0;
	white-space: pre-wrap;
}

@media (max-width: 768px) {
	.product-card-price {
		font-size: 14px;
	}
}

.product-card-action {
	padding: 0 20px 20px 20px;
}

@media (max-width: 768px) {
	.product-card-action {
		padding: 0 15px 15px 15px;
		text-align: center;
	}
}

.product-card-action a {
	display: block;
	text-align: center;
	padding: 12px 20px;
	font-size: 14px;
	height: auto !important;
}

@media (max-width: 768px) {
	.product-card-action a {
		padding: 10px 15px;
		font-size: 12px;
		display: inline-block;
	}
}

.product-detail-link {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	color: #666;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-detail-link:hover {
	color: #d85a6f;
	text-decoration: underline;
}

/* ========================================
   カテゴリー一覧セクション
======================================== */

.category-list-section {
	margin-top: 60px;
	padding: 40px 0;
	background: #f9f9f9;
	border-radius: 8px;
}

.category-list-section .h-section {
		margin-bottom: 76px;
	}

@media (max-width: 768px) {
	.category-list-section {
		margin-top: 40px;
		padding: 30px 20px;
		margin-left: 20px;
		margin-right: 20px;
	}

	.category-list-section .h-section {
		margin-bottom: 56px;
	}
}

.category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.category-item {
	flex: 0 0 auto;
}

.category-item.is-current-category .category-link {
	background: #d85a6f;
	color: #fff;
	border-color: #d85a6f;
}

.category-link {
	display: inline-block;
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	font-size: 14px;
}

.category-link:hover {
	background: #d85a6f;
	color: #fff;
	border-color: #d85a6f;
}

.category-name {
	font-weight: bold;
}

.category-count {
	margin-left: 5px;
	color: #999;
	font-size: 12px;
}

.category-link:hover .category-count {
	color: #fff;
}

/* ========================================
   シングルページ - 商品画像スライダー
======================================== */

.product-image-slider {
	max-width: 600px;
	margin: 0 auto 30px;
}

/* メイン画像 */
.slider-main {
	position: relative;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	background: #f5f5f5;
	margin-bottom: 15px;
}

.slider-main-item {
	display: none;
	width: 100%;
}

.slider-main-item.is-active {
	display: block;
}

.slider-main-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* サムネイル画像 */
.slider-thumbnails {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.slider-thumbnail {
	width: 80px;
	height: 80px;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	opacity: 0.6;
}

@media (max-width: 768px) {
	.slider-thumbnail {
		width: 60px;
		height: 60px;
	}
}

.slider-thumbnail:hover {
	opacity: 1;
	border-color: #d85a6f;
}

.slider-thumbnail.is-active {
	opacity: 1;
	border-color: #d85a6f;
}

.slider-thumbnail-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* シングルページ - 本文 */
.h-post.entry-title {
	border-top: none !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.single-online-shop .entry-content {
	line-height: 2;
}

@media (max-width: 768px) {
	.single-online-shop .l-grid-narrow {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.product-info {
	padding: 30px;
	margin-top: 30px;
	text-align: center;
}

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

.product-info .product-price {
	font-size: 24px;
	color: #d85a6f;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.product-info .product-price {
		font-size: 20px;
	}
}

.product-info .btn-radius {
	height: auto !important;
	text-decoration: none !important;
}

/* 注文フォーム用スタイル */
.product-order-form .contact-send-btn {
	margin-top: 40px;
	padding-bottom: 20px;
	text-align: center;
}

.product-order-form .contact-send {
	display: inline-block;
	text-align: center;
}

.product-order-form .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

@media (max-width: 768px) {
	.product-order-form .contact-send-btn {
		text-align: center !important;
		padding: 0 !important;
	}

	.product-order-form .contact-send {
		position: static !important;
		left: auto !important;
		width: auto !important;
		margin: 0 auto !important;
	}

	.product-order-form .contact-send input[type="submit"] {
		margin: 0 auto !important;
		width: 230px !important;
	}
}
