.koko-catalog-categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.koko-category-card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #deded8;
	background: #ffffff;
	color: #111111;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.koko-category-card:hover,
.koko-category-card:focus-visible {
	border-color: #111111;
	box-shadow: 0 14px 32px rgb(17 17 17 / 10%);
	text-decoration: none;
	transform: translateY(-2px);
}

.koko-category-card__media {
	display: grid;
	position: relative;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1 / 1;
	place-items: center;
	overflow: hidden;
	background: #ffffff;
}

.koko-category-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.koko-category-card__placeholder {
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 750;
	line-height: 1;
}

.koko-category-card__body {
	display: grid;
	gap: 0.25rem;
	align-content: start;
	padding: 1rem;
}

.koko-category-card__body strong {
	font-size: 1rem;
}

.koko-category-card__body > span {
	color: #6b6b68;
	font-size: 0.8rem;
}

.koko-category-card__body small {
	min-height: 1.4em;
	overflow: hidden;
	color: #8a8a86;
	font-size: 0.72rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.koko-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.koko-product-card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #deded8;
	background: #ffffff;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.koko-product-card:hover {
	border-color: #111111;
	box-shadow: 0 14px 32px rgb(17 17 17 / 9%);
	transform: translateY(-2px);
}

.koko-product-card__media {
	display: grid;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1 / 1;
	place-items: center;
	overflow: hidden;
	background: #ffffff;
}

.koko-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.koko-product-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #111111;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 750;
}

.koko-product-card__body {
	display: grid;
	grid-template-rows: auto auto auto 1fr;
	gap: 0.65rem;
	align-content: start;
	padding: 1rem;
}

.koko-product-card__category {
	color: #6b6b68;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.koko-product-card h3 {
	display: -webkit-box;
	min-height: 4.35em;
	margin: 0;
	overflow: hidden;
	font-size: 0.95rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.koko-product-card__price {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.7rem;
	align-items: baseline;
}

.koko-product-card__price strong {
	font-size: 1.125rem;
}

.koko-product-card__price span {
	color: #6b6b68;
	font-size: 0.75rem;
}

.koko-product-card__footer {
	display: grid;
	gap: 0.7rem;
	align-self: end;
	padding-top: 0.75rem;
	border-top: 1px solid #deded8;
}

.koko-product-card__footer > span {
	color: #6b6b68;
	font-size: 0.72rem;
}

.koko-inquiry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.55rem 0.8rem;
	border: 1px solid #111111;
	border-radius: 0;
	background: #111111;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.koko-inquiry-button:hover,
.koko-inquiry-button:focus-visible,
.koko-inquiry-button.is-copied {
	background: #ffffff;
	color: #111111;
	text-decoration: none;
}

.koko-catalog-empty {
	padding: 2rem;
	border: 1px dashed #b8b8b2;
	background: #f5f5f2;
	color: #6b6b68;
	text-align: center;
}

.koko-catalog-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: 3rem;
}

.koko-catalog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0.4rem 0.7rem;
	border: 1px solid #deded8;
}

.koko-catalog-pagination .current {
	border-color: #111111;
	background: #111111;
	color: #ffffff;
}

.koko-product-summary {
	display: grid;
	gap: 0.85rem;
	align-content: start;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 0;
	padding: clamp(1.15rem, 2.5vw, 1.65rem);
	border: 1px solid #deded8;
	border-radius: 18px;
	background: #ffffff;
}

.koko-product-summary > * {
	margin-block: 0;
}

.koko-product-summary__price {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: baseline;
}

.koko-product-summary__price strong {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1;
}

.koko-product-summary__price span,
.koko-product-summary__interest,
.koko-product-summary__notice {
	color: #6b6b68;
	font-size: 0.85rem;
	line-height: 1.65;
}

.koko-product-summary .koko-inquiry-button {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-size: 0.9rem;
}

.koko-product-summary__notice {
	padding-top: 0.1rem;
}

.koko-product-specifications {
	margin: 0.15rem 0 0;
	border-top: 1px solid #deded8;
}

.koko-product-specifications > div {
	display: grid;
	grid-template-columns: minmax(5rem, max-content) minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	padding: 0.72rem 0;
	border-bottom: 1px solid #deded8;
}

.koko-product-specifications dt {
	font-weight: 650;
	white-space: nowrap;
}

.koko-product-specifications dd {
	margin: 0;
	color: #6b6b68;
	overflow-wrap: anywhere;
}

.koko-product-specifications__consultation dd {
	word-break: keep-all;
	white-space: nowrap;
}

.koko-product-information {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid #deded8;
	border-radius: 16px;
	background: #ffffff;
}

.koko-product-information__table {
	margin: 0;
}

.koko-product-information__title {
	margin: 0;
	padding: 1rem;
	border-bottom: 1px solid #deded8;
	font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

.koko-product-information__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 28%) minmax(0, 1fr);
	margin: 0;
	border-bottom: 1px solid #deded8;
}

.koko-product-information__row dt,
.koko-product-information__row dd {
	margin: 0;
	padding: 0.95rem 1rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.koko-product-information__row dt {
	background: #f5f5f2;
	color: #4f4f4b;
	font-weight: 650;
}

.koko-product-information__row dd {
	background: #ffffff;
	color: #111111;
}

.koko-product-information__bilingual {
	display: grid;
	gap: 0.45rem;
}

.koko-product-information__source,
.koko-product-information__translation,
.koko-product-information__translation-label {
	display: block;
}

.koko-product-information__translation-label {
	margin-top: 0.35rem;
	color: #5d5d58;
	font-weight: 600;
}

.koko-product-information__translation {
	padding-top: 0;
	border-top: 0;
}

.koko-product-information__single {
	display: block;
}

.koko-product-information__notice {
	margin: 0;
	padding: 0.9rem 1rem;
	background: #fafaf8;
	color: #6b6b68;
	font-size: 0.8rem;
	line-height: 1.65;
}

.koko-product-information__sections {
	display: grid;
	gap: 1.75rem;
	margin-top: 1.75rem;
}

.koko-product-information__section {
	padding: 0 0 1.5rem;
	border: 0;
	border-bottom: 1px solid #deded8;
	border-radius: 0;
	background: transparent;
}

.koko-product-information__section h3,
.koko-product-information__section p {
	margin: 0;
}

.koko-product-information__section h3 {
	margin-bottom: 1rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid #deded8;
	font-size: 1.25rem;
}

.koko-product-information__section p {
	color: #262624;
	line-height: 1.8;
}

.koko-product-information__section-translation-label {
	margin-top: 1.25rem !important;
	color: #5d5d58 !important;
	font-weight: 500;
}

.koko-product-information__section-translation {
	margin-top: 0.85rem !important;
}

.koko-product-information__document {
	margin: 0;
	padding: 1rem;
	border: 1px solid #deded8;
	border-radius: 12px;
	background: #fffbea;
	line-height: 1.7;
}

.koko-product-information__document a {
	color: #8a3b2a;
	font-weight: 650;
	text-underline-offset: 0.2em;
}

.koko-product-gallery {
	display: grid;
	gap: 0.85rem;
	width: 100%;
	min-width: 0;
	outline: none;
}

.koko-product-gallery__stage {
	position: relative;
	width: 100%;
	height: auto;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid #deded8;
	border-radius: 18px;
	background: #f7f7f4;
	contain: layout paint;
}

.koko-product-gallery__zoom {
	display: grid;
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: clamp(0.75rem, 3vw, 2rem);
	overflow: hidden;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	place-items: center;
}

.koko-product-gallery__main-image {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	opacity: 1;
	transition: opacity 140ms ease, transform 220ms ease;
}

.koko-product-gallery__main-image.is-changing {
	opacity: 0.35;
}

.koko-product-gallery__error {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: min(78%, 22rem);
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: rgb(255 255 255 / 92%);
	color: #555552;
	font-size: 0.85rem;
	line-height: 1.6;
	text-align: center;
	transform: translate(-50%, -50%);
}

.koko-product-gallery__error[hidden] {
	display: none;
}

.koko-product-gallery__zoom:hover .koko-product-gallery__main-image {
	transform: scale(1.018);
}

.koko-product-gallery__zoom-label {
	position: absolute;
	right: 50%;
	bottom: 0.9rem;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	background: rgb(17 17 17 / 76%);
	color: #ffffff;
	font-size: 0.72rem;
	opacity: 0;
	transform: translate(50%, 4px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.koko-product-gallery__zoom:hover .koko-product-gallery__zoom-label,
.koko-product-gallery__zoom:focus-visible .koko-product-gallery__zoom-label {
	opacity: 1;
	transform: translate(50%, 0);
}

.koko-product-gallery__nav {
	display: grid;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(17 17 17 / 14%);
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 8px 22px rgb(17 17 17 / 14%);
	color: #111111;
	cursor: pointer;
	place-items: center;
	transform: translateY(-50%);
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.koko-product-gallery__nav:hover,
.koko-product-gallery__nav:focus-visible {
	background: #111111;
	color: #ffffff;
	transform: translateY(-50%) scale(1.04);
}

.koko-product-gallery__nav svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.koko-product-gallery__nav--previous {
	left: 0.85rem;
}

.koko-product-gallery__nav--next {
	right: 0.85rem;
	transform: translateY(-50%) rotate(180deg);
}

.koko-product-gallery__nav--next:hover,
.koko-product-gallery__nav--next:focus-visible {
	transform: translateY(-50%) rotate(180deg) scale(1.04);
}

.koko-product-gallery__counter {
	position: absolute;
	right: 0.85rem;
	bottom: 0.85rem;
	z-index: 2;
	min-width: 52px;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	background: rgb(17 17 17 / 76%);
	color: #ffffff;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.koko-product-gallery__thumbnails {
	display: grid;
	grid-auto-columns: 76px;
	grid-auto-flow: column;
	grid-template-rows: 76px;
	gap: 0.65rem;
	align-items: start;
	align-content: start;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.15rem 0.1rem 0.45rem;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: thin;
}

.koko-product-gallery__thumbnail {
	display: grid;
	width: 76px;
	height: 76px;
	min-width: 0;
	min-height: 0;
	padding: 4px;
	overflow: hidden;
	border: 1px solid #deded8;
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
	place-items: center;
	scroll-snap-align: start;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.koko-product-gallery__thumbnail:hover,
.koko-product-gallery__thumbnail:focus-visible {
	border-color: #666666;
	box-shadow: 0 5px 15px rgb(17 17 17 / 10%);
	transform: translateY(-1px);
}

.koko-product-gallery__thumbnail[aria-current="true"] {
	border-color: #111111;
	box-shadow: 0 0 0 2px #111111;
}

.koko-product-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.koko-product-gallery__dialog {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0d0d0d;
	box-shadow: none;
	overflow: hidden;
}

.koko-product-gallery__dialog::backdrop {
	background: rgb(0 0 0 / 92%);
	backdrop-filter: blur(3px);
}

.koko-product-gallery__dialog-inner {
	display: grid;
	position: relative;
	width: 100%;
	height: 100%;
	padding: clamp(0.4rem, 1.6vw, 1rem);
	background: #0d0d0d;
	place-items: center;
	touch-action: pan-y;
	user-select: none;
}

.koko-product-gallery__dialog img {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100vw - clamp(0.8rem, 3.2vw, 2rem));
	max-height: calc(100vh - clamp(0.8rem, 3.2vw, 2rem));
	max-height: calc(100dvh - clamp(0.8rem, 3.2vw, 2rem));
	border-radius: 8px;
	background: #ffffff;
	object-fit: contain;
	transition: opacity 140ms ease;
}

.koko-product-gallery__dialog img.is-changing {
	opacity: 0.45;
}

.koko-product-gallery__dialog-close {
	display: grid;
	position: absolute;
	top: max(0.65rem, env(safe-area-inset-top));
	right: max(0.65rem, env(safe-area-inset-right));
	z-index: 5;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 28%);
	border-radius: 50%;
	background: rgb(17 17 17 / 78%);
	color: #ffffff;
	cursor: pointer;
	font-size: 1.65rem;
	line-height: 1;
	place-items: center;
}

.koko-product-gallery__dialog-close:hover,
.koko-product-gallery__dialog-close:focus-visible {
	background: #ffffff;
	color: #111111;
}

.koko-product-gallery__dialog-nav {
	display: grid;
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 50%;
	background: rgb(17 17 17 / 72%);
	box-shadow: 0 8px 22px rgb(0 0 0 / 34%);
	color: #ffffff;
	cursor: pointer;
	place-items: center;
	transform: translateY(-50%);
}

.koko-product-gallery__dialog-nav:hover,
.koko-product-gallery__dialog-nav:focus-visible {
	background: #ffffff;
	color: #111111;
}

.koko-product-gallery__dialog-nav svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.koko-product-gallery__dialog-nav--previous {
	left: max(0.65rem, env(safe-area-inset-left));
}

.koko-product-gallery__dialog-nav--next {
	right: max(0.65rem, env(safe-area-inset-right));
	transform: translateY(-50%) rotate(180deg);
}

.koko-product-gallery__dialog-counter {
	position: absolute;
	right: 50%;
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	z-index: 4;
	min-width: 58px;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: 999px;
	background: rgb(17 17 17 / 76%);
	color: #ffffff;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
	transform: translateX(50%);
}

@media (max-width: 960px) {
	.koko-catalog-categories,
	.koko-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.koko-catalog-categories,
	.koko-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.koko-product-card__body,
	.koko-category-card__body {
		padding: 0.75rem;
	}

	.koko-product-gallery__stage {
		border-radius: 12px;
	}

	.koko-product-gallery__nav {
		width: 42px;
		height: 42px;
	}

	.koko-product-gallery__nav--previous {
		left: 0.5rem;
	}

	.koko-product-gallery__nav--next {
		right: 0.5rem;
	}

	.koko-product-gallery__thumbnails {
		grid-auto-columns: 64px;
		grid-template-rows: 64px;
	}

	.koko-product-gallery__thumbnail {
		width: 64px;
		height: 64px;
	}

	.koko-product-gallery__zoom-label {
		display: none;
	}

	.koko-product-gallery__dialog-nav {
		width: 44px;
		height: 44px;
	}

	.koko-product-gallery__dialog-close {
		width: 44px;
		height: 44px;
	}

	.koko-product-summary {
		gap: 0.75rem;
		padding: 1rem;
		border-radius: 14px;
	}

	.koko-product-summary .koko-inquiry-button {
		min-height: 50px;
		border-radius: 12px;
		font-size: 0.95rem;
	}

	.koko-product-specifications > div {
		grid-template-columns: minmax(4.5rem, max-content) minmax(0, 1fr);
		gap: 0.65rem;
		padding: 0.68rem 0;
	}

	.koko-product-information {
		border-radius: 12px;
	}

	.koko-product-information__row {
		grid-template-columns: minmax(5.6rem, 31%) minmax(0, 1fr);
	}

	.koko-product-information__row dt,
	.koko-product-information__row dd {
		padding: 0.78rem 0.72rem;
		font-size: 0.88rem;
	}

	.koko-product-information__notice {
		padding: 0.8rem 0.72rem;
		font-size: 0.75rem;
	}

	.koko-product-information__sections {
		gap: 1.35rem;
		margin-top: 1.35rem;
	}

	.koko-product-information__section {
		padding-bottom: 1.2rem;
	}
}

@media (max-width: 380px) {
	.koko-product-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.koko-category-card,
	.koko-product-card,
	.koko-category-card img,
	.koko-product-card img,
	.koko-product-gallery__main-image,
	.koko-product-gallery__nav,
	.koko-product-gallery__thumbnail {
		transition: none;
	}
}
