:root {
	--hm-color-primary: #1c3f6b;
	--hm-color-primary-dark: #122c4c;
	--hm-color-primary-contrast: #f8fbff;
	--hm-color-accent: #f4a300;
	--hm-color-accent-muted: #fff3d4;
	--hm-color-surface: #f5f7fb;
	--hm-color-surface-strong: #ffffff;
	--hm-color-outline: #d9e2f2;
	--hm-color-outline-bold: #c0d3ec;
	--hm-color-text: #1e293b;
	--hm-color-text-muted: #52627a;
	--hm-color-shadow: rgba(16, 30, 54, 0.08);
	--hm-radius-lg: 18px;
	--hm-radius-md: 12px;
	--hm-radius-sm: 999px;
	--hm-font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.hybrid-marketplace-storefront,
.hybrid-marketplace-search {
	font-family: var(--hm-font-family);
	margin: 2.5rem 0;
	background: var(--hm-color-surface-strong);
	border: 1px solid var(--hm-color-outline);
	border-radius: var(--hm-radius-lg);
	box-shadow: 0 14px 32px var(--hm-color-shadow);
	overflow: hidden;
}

.hybrid-marketplace-storefront .hm-header,
.hybrid-marketplace-search .hm-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
	background: linear-gradient(140deg, var(--hm-color-primary) 0%, var(--hm-color-primary-dark) 100%);
	color: var(--hm-color-primary-contrast);
}

.hybrid-marketplace-storefront .hm-header__info h2 {
	margin: 0;
	font-size: 1.6rem;
	letter-spacing: 0.02em;
}

.hybrid-marketplace-storefront .hm-header__info p {
	margin: 0.65rem 0 0;
	opacity: 0.9;
	font-size: 0.95rem;
}

.hm-header__actions {
	display: flex;
	gap: 0.6rem;
}

.hm-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.8rem;
	border-radius: var(--hm-radius-sm);
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.2);
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 6px 16px rgba(10, 19, 35, 0.12);
}

.hm-badge--prime {
	background: var(--hm-color-accent);
	color: #2b2110;
}

.hm-badge--campaign {
	background: rgba(255, 255, 255, 0.18);
	color: var(--hm-color-primary-contrast);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.hm-badge--points {
	background: var(--hm-color-accent-muted);
	color: var(--hm-color-primary);
	border: 1px solid rgba(244, 163, 0, 0.3);
}

.hm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.75rem;
	padding: 2rem;
	background: radial-gradient(circle at top, rgba(28, 63, 107, 0.08), transparent 60%) var(--hm-color-surface);
}

.hm-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hm-color-outline);
	border-radius: var(--hm-radius-md);
	background: var(--hm-color-surface-strong);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-card:hover {
	transform: translateY(-6px);
	border-color: var(--hm-color-outline-bold);
	box-shadow: 0 18px 32px rgba(18, 44, 76, 0.16);
}

.hm-card__media {
	position: relative;
	padding: 1.25rem;
	background: linear-gradient(155deg, rgba(28, 63, 107, 0.05) 0%, rgba(244, 163, 0, 0.08) 100%);
	min-height: 170px;
	text-align: center;
}

.hm-card__media img {
	max-height: 140px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(18, 44, 76, 0.18));
}

.hm-card__media .hm-badge {
	position: absolute;
	top: 14px;
	left: 14px;
}

.hm-card__body {
	padding: 1.25rem 1.35rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hm-card__title {
	font-size: 1.05rem;
	margin: 0;
	color: var(--hm-color-text);
	line-height: 1.4;
}

.hm-card__shop {
	font-size: 0.9rem;
	color: var(--hm-color-text-muted);
	margin: 0;
}

.hm-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--hm-color-primary);
}

.hm-card__price small {
	font-size: 0.85rem;
	color: var(--hm-color-text-muted);
}

.hm-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.88rem;
	color: var(--hm-color-text-muted);
}

.hm-card__description {
	margin: 0;
	color: var(--hm-color-text-muted);
	font-size: 0.88rem;
	line-height: 1.55;
}

.hm-card__logistics {
	display: grid;
	gap: 0.35rem;
	margin: 0.8rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: var(--hm-color-text-muted);
}

.hm-card__logistics li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(28, 63, 107, 0.06);
	border: 1px solid rgba(28, 63, 107, 0.08);
	border-radius: 10px;
	padding: 0.45rem 0.65rem;
}

.hm-card__logistics strong {
	font-weight: 600;
	color: var(--hm-color-text);
}

.hm-card__footer {
	margin-top: auto;
	padding: 1.1rem 1.35rem 1.35rem;
	border-top: 1px solid var(--hm-color-outline);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	background: rgba(28, 63, 107, 0.03);
}

.hm-card__cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.hm-card__cta {
	width: 100%;
	background: var(--hm-color-primary);
	border-color: var(--hm-color-primary);
	color: var(--hm-color-primary-contrast);
	box-shadow: 0 12px 24px rgba(28, 63, 107, 0.28);
	flex: 1 1 160px;
}

.hm-card__cta:hover {
	background: var(--hm-color-primary-dark);
	border-color: var(--hm-color-primary-dark);
}

.hm-card__cta-secondary {
	padding: 0.75rem 1.4rem;
	border-radius: 12px;
	border: 1px solid var(--hm-color-primary);
	color: var(--hm-color-primary);
	background: transparent;
	box-shadow: none;
}

.hm-card__cta-secondary:hover {
	background: rgba(28, 63, 107, 0.08);
}

.hm-card__cta--placeholder {
	font-size: 0.78rem;
	color: var(--hm-color-text-muted);
}

.hm-search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	padding: 1.9rem 2rem;
	background: var(--hm-color-surface);
	border-bottom: 1px solid var(--hm-color-outline);
}

.hm-search-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.hm-search-form__field--inline {
	flex-direction: row;
	align-items: center;
	gap: 0.6rem;
}

.hm-search-form__field label {
	font-weight: 600;
	color: var(--hm-color-text);
	font-size: 0.92rem;
}

.hm-search-form__field input,
.hm-search-form__field select {
	border-radius: 10px;
	border: 1px solid var(--hm-color-outline);
	padding: 0.55rem 0.8rem;
	background: var(--hm-color-surface-strong);
}

.hm-search-form__field input:focus,
.hm-search-form__field select:focus {
	outline: none;
	border-color: var(--hm-color-primary);
	box-shadow: 0 0 0 3px rgba(28, 63, 107, 0.18);
}

.hm-search-form__submit {
	align-self: end;
	justify-self: end;
	padding: 0.85rem 1.75rem;
	background: var(--hm-color-accent);
	border-color: var(--hm-color-accent);
	color: #2b2110;
	box-shadow: 0 12px 20px rgba(244, 163, 0, 0.28);
}

.hm-search-form__submit:hover {
	background: #d68f00;
	border-color: #d68f00;
}

.hm-search-results {
	padding: 2rem;
	background: var(--hm-color-surface-strong);
}

.hm-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.2rem;
}

.hm-result-item {
	display: grid;
	grid-template-columns: 140px 1fr auto;
	gap: 1.2rem;
	padding: 1.3rem 1.4rem;
	border: 1px solid var(--hm-color-outline);
	border-radius: var(--hm-radius-md);
	align-items: center;
	background: var(--hm-color-surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-result-item:hover {
	border-color: var(--hm-color-outline-bold);
	box-shadow: 0 10px 22px rgba(18, 44, 76, 0.14);
}

.hm-result-item__media img {
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(18, 44, 76, 0.15));
}

.hm-result-item__summary {
	margin: 0.6rem 0;
	color: var(--hm-color-text-muted);
}

.hm-result-item__detail {
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.hm-detail-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.4rem;
	border-radius: 12px;
}

.hm-inquiry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.4rem;
	border-radius: 12px;
	background: var(--hm-color-primary);
	color: var(--hm-color-primary-contrast);
	border: 1px solid var(--hm-color-primary);
	box-shadow: 0 10px 22px rgba(28, 63, 107, 0.25);
}

.hm-inquiry-button:hover {
	background: var(--hm-color-primary-dark);
	border-color: var(--hm-color-primary-dark);
}

.hm-result-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	font-size: 0.92rem;
	color: var(--hm-color-text-muted);
}

.hm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}

.hm-tags li {
	background: var(--hm-color-accent-muted);
	border-radius: var(--hm-radius-sm);
	padding: 0.35rem 0.85rem;
	font-size: 0.78rem;
	color: #5a3b00;
	border: 1px solid rgba(244, 163, 0, 0.3);
}

.hm-empty {
	margin: 0;
	padding: 1.3rem;
	text-align: center;
	background: var(--hm-color-surface);
	border-radius: var(--hm-radius-md);
	color: var(--hm-color-text-muted);
	border: 1px dashed var(--hm-color-outline);
}


@media (max-width: 1100px) {
	.hm-result-item {
		grid-template-columns: 120px 1fr;
		grid-template-areas:
			"media body"
			"media detail";
	}

	.hm-result-item__media {
		grid-area: media;
	}

	.hm-result-item__body {
		grid-area: body;
	}

	.hm-result-item__detail {
		grid-area: detail;
	}

	.hm-product-detail__layout {
		grid-template-columns: 100%;
		gap: 2rem;
	}

	.hm-product-carousel {
		padding: 1.5rem 1.5rem 2.5rem;
	}
}

@media (max-width: 720px) {
	.hybrid-marketplace-storefront,
	.hybrid-marketplace-search {
		margin: 1.5rem -1rem;
		border-radius: 0;
	}

	.hybrid-marketplace-storefront .hm-header,
	.hybrid-marketplace-search .hm-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.2rem;
	}

	.hm-grid {
		padding: 1.5rem;
	}

	.hm-result-item {
		grid-template-columns: 100%;
	}

	.hm-result-item__media {
		justify-self: center;
	}

	.hm-result-item__detail {
		justify-content: center;
	}

	.hm-product-detail {
		padding: 1.8rem;
		margin: 1.5rem -0.5rem;
		border-radius: 0;
	}

	.hm-product-detail__layout {
		grid-template-columns: 100%;
		gap: 1.5rem;
	}

	.hm-product-carousel__nav {
		display: none;
	}

	.hm-product-carousel__dots {
		bottom: 0.6rem;
	}
}

