/**
 * Page: product detail
 * Block: p-product
 *
 * Rule:
 * - Outer block: .p-product
 * - Page parts: .p-product__*
 */

.p-product-single,
.p-product-lightbox,
.p-product {
	--p-content-width: 1200px;
	--p-color-text: #1f2933;
	--p-color-heading: #202832;
	--p-color-body: #344454;
	--p-color-muted: #68717c;
	--p-color-muted-dark: #59636f;
	--p-color-muted-light: #9099a3;
	--p-color-neutral: #777;
	--p-color-neutral-dark: #555;
	--p-color-label: #4d5965;
	--p-color-description: #7a7a7a;
	--p-color-subtle: #9aa3ad;
	--p-color-caption: #7b8794;
	--p-color-primary: #1f4e5f;
	--p-color-primary-dark: #0f2f3b;
	--p-color-accent: #5bc0de;
	--p-color-accent-hover: #3aa9c8;
	--p-color-subtitle: #8d9ea5;
	--p-color-price: #ff0000;
	--p-color-white: #fff;
	--p-color-black: #000;
	--p-color-strong: #222;
	--p-color-border: #d9dee3;
	--p-color-border-light: #e5e7eb;
	--p-color-border-lighter: #efefef;
	--p-color-surface: #f7f8f9;
	--p-color-surface-soft: #f5f6f7;
	--p-color-table-head: #e9e9e9;
	--p-color-limited-border: #c7a46b;
	--p-color-limited-bg: #fffaf1;
	--p-color-limited-text: #8a6427;
	--p-color-black-rgb: 0 0 0;
	--p-shadow-rgb: 18 28 38;
	--p-font-size-xs: 10px;
	--p-font-size-s: 11px;
	--p-font-size-sm: 12px;
	--p-font-size-md: 13px;
	--p-font-size-base: 14px;
	--p-font-size-lg: 15px;
	--p-font-size-drawer-title: 16px;
	--p-font-size-heading: 17px;
	--p-font-size-title-sp: 20px;
	--p-radius-sm: 4px;
	--p-radius-md: 8px;
}

.p-product-single {
	scroll-behavior: smooth;
	clear: both !important;
	float: none !important;
	display: block;
	width: min(calc(100% - 40px), var(--p-content-width));
	max-width: var(--p-content-width) !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding: 0;
	box-sizing: border-box;
	color: var(--p-color-text);
}

.p-product-single .p-product {
	max-width: var(--p-content-width);
	margin: 0 auto;
	padding: 38px 0 64px;
}

.p-breadcrumb {
	margin: 0 0 16px;
	color: var(--p-color-muted);
	font-size: var(--p-font-size-sm);
	line-height: 1.5;
}

.p-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.p-breadcrumb__link {
	color: var(--p-color-body);
	text-decoration: none;
}

.p-breadcrumb__link:hover,
.p-breadcrumb__link:focus {
	color: var(--p-color-heading);
	text-decoration: underline;
}

.p-breadcrumb__current {
	color: var(--p-color-muted-light);
}

.p-breadcrumb__separator {
	margin: 0 7px;
	color: var(--p-color-muted-light);
}

.p-product-single h1,
.p-product-single h2,
.p-product-single h3 {
	clear: none;
	margin: 0;
	padding: 0;
	line-height: 1.45;
}

.p-product-hero {
	display: grid;
	grid-template-columns: minmax(320px, 50%) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 36px);
	align-items: start;
	margin-bottom: 38px;
}

.p-product-hero__media,
.p-product-hero__content {
	min-width: 0;
}

.p-product-hero__media {
	width: 100%;
	max-width: 600px;
}

.p-product-hero__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	min-height: 0;
	padding: clamp(16px, 2.4vw, 28px);
	border: 1px solid var(--p-color-border-light);
	background: var(--p-color-white);
	color: var(--p-color-muted-light);
	font-size: var(--p-font-size-md);
	letter-spacing: 0.08em;
	touch-action: pan-y;
}

.p-product-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: min(600px, 62vh);
	object-fit: contain;
	cursor: zoom-in;
}

.p-product-hero__caption {
	position: absolute;
	right: clamp(16px, 2.4vw, 28px);
	bottom: 14px;
	left: clamp(16px, 2.4vw, 28px);
	z-index: 2;
	margin: 0;
	color: var(--p-color-muted);
	font-size: var(--p-font-size-s);
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	letter-spacing: 0;
	pointer-events: none;
}

.p-product-hero__caption[hidden] {
	display: none;
}

.p-product-hero__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--p-color-border-light);
	border-radius: 50%;
	background: var(--p-color-white);
	color: var(--p-color-primary);
	cursor: pointer;
	appearance: none;
}

.p-product-hero__zoom-icon {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.p-product-main-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 54px;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--p-color-primary);
	font-size: 46px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease;
}

.p-product-main-slider__arrow:hover,
.p-product-main-slider__arrow:focus,
.p-product-main-slider__arrow:active {
	background: transparent !important;
	box-shadow: none !important;
	color: var(--p-color-primary-dark);
	outline: none;
}

.p-product-main-slider__arrow--prev {
	left: 14px;
}

.p-product-main-slider__arrow--next {
	right: 14px;
}

.p-product-main-slider__controls {
	display: none;
}

.p-product-meta {
	display: grid;
	gap: 4px;
	margin: 12px 0 16px;
	color: var(--p-color-muted-dark);
	font-size: var(--p-font-size-md);
	line-height: 1.5;
}

.p-product-meta p {
	margin: 0;
}

.p-product-meta span {
	color: var(--p-color-body);
	font-weight: 700;
}

.p-product-code,
.p-product-brand,
.p-product-subtitle {
	margin: 0;
	color: var(--p-color-muted-dark);
}

.p-product-title {
	margin: 0 0 8px;
	color: var(--p-color-heading);
	font-size: var(--p-font-size-title-sp);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.p-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 12px;
}

.p-product-recommend-badge,
.p-product-new-badge,
.p-product-count-badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: var(--p-font-size-sm);
	font-weight: 700;
	line-height: 1;
}

.p-product-recommend-badge {
	background: var(--p-color-strong);
	color: var(--p-color-white);
}

.p-product-new-badge {
	background: #c94f3d;
	color: var(--p-color-white);
}

.p-product-count-badge {
	border: 1px solid var(--p-color-strong);
	background: var(--p-color-white);
	color: var(--p-color-strong);
}

.p-product-subtitle {
	margin: -2px 0 12px;
	color: var(--p-color-subtitle);
	font-size: var(--p-font-size-md);
	font-weight: 400;
	line-height: 1.6;
}

.p-product-price {
	margin: 18px 0 20px;
	color: var(--p-color-strong);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.p-product-price__symbol,
.p-product-price__suffix {
	display: inline-block;
	font-size: 18px;
	vertical-align: 0.12em;
}

.p-product-price__number {
	display: inline-block;
	font-size: 30px;
	line-height: 1;
}

.p-product-related-links {
	margin: 18px 0 20px;
	padding: 0;
	border: 0;
	background: transparent;
}

.p-product-related-links__text {
	margin: 0 0 12px;
	color: var(--p-color-body);
	font-size: var(--p-font-size-base);
	line-height: 1.6;
}

.p-product-related-links__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.p-product-related-links__badge {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.5rem;
	border: 0;
	border-radius: 5rem;
	background: var(--p-color-accent);
	color: var(--p-color-white);
	font-size: var(--p-font-size-base);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.p-product-related-links__badge .p-icon {
	display: block;
	width: 18px;
	height: 18px;
	color: var(--p-color-white);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.p-product-related-links__badge:hover,
.p-product-related-links__badge:focus {
	background: var(--p-color-accent-hover);
	color: var(--p-color-white);
	text-decoration: none;
	outline: none;
}

.p-product-price-compact {
	margin: 16px 0 20px;
}

.p-product-price-compact table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	background: var(--p-color-white);
	color: var(--p-color-description);
	font-size: var(--p-font-size-lg);
	font-weight: 400;
	line-height: 1.45;
	white-space: nowrap;
}

.p-product-price-compact th,
.p-product-price-compact td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--p-color-border-lighter);
	text-align: left;
	vertical-align: middle;
}

.p-product-price-compact th {
	background: var(--p-color-white);
	font-weight: 400;
}

.p-product-price-compact__color {
	width: 38%;
	color: var(--p-color-neutral);
}

.p-product-price-compact__size {
	width: 24%;
	color: var(--p-color-neutral);
}

.p-product-price-compact__price {
	width: 38%;
	color: var(--p-color-price);
	font-weight: 500;
	text-align: right !important;
	padding-right: 0;
}

.p-product-price-compact__price .p-price-symbol {
	display: inline-block;
	font-size: 0.78em;
	line-height: 1;
	vertical-align: 0.08em;
}

.p-product-price-compact__price .p-price-tax {
	font-weight: 400;
}

.p-product-price-compact__price .p-price-tax-label {
	display: inline-block;
	font-size: 0.78em;
	line-height: 1;
	vertical-align: 0.08em;
}

.p-product-price-compact p {
	margin: 8px 0 0;
	color: var(--p-color-muted-dark);
	font-size: var(--p-font-size-sm);
	line-height: 1.6;
	text-align: right;
}

.p-product-order-info {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	justify-items: center;
}

.p-product-order-info__primary {
	display: grid;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	justify-items: center;
}

.p-product-order-info__main {
	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.p-product-order-info__main-image {
	display: block;
	max-width: 100%;
	height: auto;
	transition: opacity 0.16s ease;
}

.p-product-order-info__main-image--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.p-product-order-info__main:hover .p-product-order-info__main-image--hover,
.p-product-order-info__main:focus .p-product-order-info__main-image--hover {
	opacity: 1;
}

.p-product-order-info__main:hover .p-product-order-info__main-image:not(.p-product-order-info__main-image--hover),
.p-product-order-info__main:focus .p-product-order-info__main-image:not(.p-product-order-info__main-image--hover) {
	opacity: 0;
}

.p-product-order-info__notes {
	margin: 0;
	color: var(--p-color-muted-dark);
	font-size: var(--p-font-size-sm);
	line-height: 1.7;
	text-align: right;
	justify-self: end;
}

.p-product-order-info__notes a {
	color: var(--p-color-primary);
	text-decoration: underline;
}

.p-product-order-info__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 28px 0 0;
}

.p-product-order-info__links a {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.5rem;
	border-radius: 5rem;
	background: var(--p-color-accent);
	color: var(--p-color-white);
	font-size: var(--p-font-size-base);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.p-product-order-info__text {
	display: inline-flex;
	gap: 0.15em;
	align-items: center;
	justify-content: center;
}

.p-product-order-info__links .p-icon {
	display: block;
	width: 18px;
	height: 18px;
	color: var(--p-color-white);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.p-product-order-info__links .p-icon--palette {
	fill: none;
}

.p-product-order-info__links a:hover,
.p-product-order-info__links a:focus {
	background: var(--p-color-accent-hover);
	color: var(--p-color-white);
	text-decoration: none;
}

.p-product-facts,
.p-product-info-list,
.p-product-spec-list {
	display: grid;
	margin: 18px 0;
	border-top: 1px solid var(--p-color-border-light);
}

.p-product-info-list {
	border-top: 0;
}

.p-product-facts div,
.p-product-info-list div,
.p-product-spec-list div {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--p-color-border-light);
}

.p-product-facts dt,
.p-product-info-list dt,
.p-product-spec-list dt {
	color: var(--p-color-label);
	font-size: var(--p-font-size-md);
	font-weight: 700;
	line-height: 1.6;
}

.p-product-info-list dt {
	position: relative;
	display: flex;
	gap: 6px;
	align-items: center;
}

.p-ounce-tooltip {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.p-ounce-tooltip__toggle {
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: #9ca3af;
	box-shadow: none;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.p-ounce-tooltip__toggle:hover,
.p-ounce-tooltip__toggle:focus,
.p-ounce-tooltip__toggle[aria-expanded="true"] {
	background: #6b7280;
	color: #fff;
}

.p-ounce-tooltip__toggle:focus-visible {
	outline: 2px solid var(--p-color-accent);
	outline-offset: 2px;
}

.p-ounce-tooltip__content {
	position: absolute;
	top: calc(100% + 10px);
	left: -32px;
	z-index: 20;
	display: grid;
	width: min(720px, calc(100vw - 40px));
	gap: 0;
	padding: 16px;
	border: 0;
	border-radius: 8px;
	background: #d5d5d5;
	box-shadow: 0 12px 30px rgb(0 0 0 / 0.16);
	color: var(--p-color-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	box-sizing: border-box;
}

.p-ounce-tooltip__content::before {
	position: absolute;
	top: -6px;
	left: 35px;
	width: 10px;
	height: 10px;
	border: 0;
	background: #d5d5d5;
	content: "";
	transform: rotate(45deg);
}

.p-ounce-tooltip__content[hidden] {
	display: none;
}

.p-ounce-tooltip__intro,
.p-ounce-tooltip__item {
	display: block;
}

.p-ounce-tooltip__intro {
	margin-bottom: 9px;
}

@media (min-width: 768px) {
	.p-ounce-tooltip__item {
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	.p-ounce-tooltip__content {
		font-size: 14px;
	}
}

.p-product-facts dd,
.p-product-info-list dd,
.p-product-spec-list dd {
	margin: 0;
	color: var(--p-color-text);
	font-size: var(--p-font-size-md);
	line-height: 1.6;
}

.p-product-info-list dd p {
	margin: 0;
}

.p-product-text-block {
	margin-top: 22px;
}

.p-product-text-block h2,
.p-product-spec h2,
.p-product-section h2,
.p-product-colors h2,
.p-product-price-compact h2 {
	margin: 0 0 18px;
	padding: 0;
	font-size: var(--p-font-size-heading);
	line-height: 1.5;
	border-bottom: 3px solid var(--p-color-border-lighter);
}

.p-product-text-block h2 > span,
.p-product-spec h2 > span,
.p-product-section h2 > span,
.p-product-colors h2 > span,
.p-product-price-compact h2 > span {
	position: relative;
	display: inline-block;
	padding: 0 0.4em 0.2em;
	color: var(--p-color-heading);
	font-weight: 700;
}

.p-product-text-block h2 > span::before,
.p-product-spec h2 > span::before,
.p-product-section h2 > span::before,
.p-product-colors h2 > span::before,
.p-product-price-compact h2 > span::before {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--p-color-accent);
}

.p-product-colors h2 small {
	margin-left: 6px;
	color: var(--p-color-muted);
	font-size: 0.8em;
	font-weight: 400;
	vertical-align: baseline;
}

.p-product-text-block div {
	color: var(--p-color-body);
	font-size: var(--p-font-size-base);
	line-height: 1.8;
}

.p-product-text-block p {
	margin: 0 0 0.9em;
}

.p-product-spec {
	margin-top: 26px;
}

.p-product-section {
	margin-top: 40px;
}

.p-product-table-wrap {
	width: 100%;
	overflow-x: visible;
}

.p-product-table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	background: var(--p-color-white);
	font-size: var(--p-font-size-md);
	line-height: 1.6;
}

.p-product-table th,
.p-product-table td {
	padding: 10px 12px;
	border: 1px solid var(--p-color-border);
	text-align: left;
	vertical-align: top;
}

.p-product-table th {
	background: var(--p-color-surface-soft);
	color: var(--p-color-body);
	font-weight: 700;
	white-space: nowrap;
}

.p-product-size-matrix {
	min-width: 0;
	table-layout: fixed;
	text-align: center;
}

.p-product-size-matrix th,
.p-product-size-matrix td {
	padding: 13px 8px;
	text-align: center;
	vertical-align: middle;
}

.p-product-size-matrix thead th,
.p-product-size-matrix tbody th {
	background: var(--p-color-table-head);
	color: var(--p-color-neutral-dark);
	font-weight: 700;
}

.p-product-size-matrix thead th:first-child,
.p-product-size-matrix tbody th {
	width: 96px;
}

.p-product-size-matrix tbody tr:last-child td {
	font-weight: 400;
}

.p-product-size-notes {
	margin: 12px 0 0;
	color: var(--p-color-muted-dark);
	font-size: var(--p-font-size-md);
	line-height: 1.7;
}

.p-product-size-notes__title {
	margin: 0 0 6px;
	color: var(--p-color-body);
	font-weight: 700;
}

.p-product-size-notes ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 1.2em;
}

.p-product-colors--compact {
	margin-top: 18px;
}

.p-product-gallery {
	position: relative;
	display: block;
	margin-top: 18px;
}

.p-product-gallery__track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	overflow: visible;
}

.p-product-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid transparent;
	background: var(--p-color-surface);
	cursor: pointer;
	transition: border-color 0.16s ease, opacity 0.16s ease;
}

.p-product-gallery__thumb:hover,
.p-product-gallery__thumb:focus,
.p-product-gallery__thumb.is-active {
	border-color: var(--p-color-primary);
	outline: none;
}

.p-product-gallery__thumb.is-active {
	box-shadow: inset 0 0 0 1px var(--p-color-primary);
}

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

.p-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 42px;
	background: rgb(var(--p-color-black-rgb) / 0.4) !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.p-product-lightbox::before {
	position: absolute;
	inset: 0;
	background: rgb(var(--p-color-black-rgb) / 0.4);
	content: "";
}

.p-product-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.p-product-lightbox__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto auto;
	width: min(88vw, 1120px);
	height: min(86vh, 860px);
	max-height: 86vh;
	padding: 28px 72px 24px;
	border-radius: 10px;
	background: var(--p-color-white) !important;
	background-color: var(--p-color-white) !important;
	box-shadow: 0 18px 60px rgb(var(--p-color-black-rgb) / 0.28);
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	transition: opacity 0.24s ease, transform 0.24s ease;
}

.p-product-lightbox.is-open .p-product-lightbox__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.p-product-lightbox__main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--p-color-white) !important;
	touch-action: pan-y;
}

.p-product-lightbox__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: var(--p-color-white) !important;
	opacity: 1;
	transition: opacity 0.18s ease;
}

.p-product-lightbox__image.is-changing,
.p-product-hero__image img.is-changing {
	opacity: 0;
}

.p-product-hero__image img {
	transition: opacity 0.18s ease;
}

.p-product-lightbox__close {
	position: absolute;
	top: 16px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	max-width: 34px;
	max-height: 34px;
	padding: 0 !important;
	border-radius: 50%;
	border: 0;
	background: var(--p-color-primary);
	color: var(--p-color-white);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	appearance: none;
}

.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 84px;
	padding: 0;
	border: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: var(--p-color-primary);
	font-size: 54px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}

.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow:visited,
.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow:hover,
.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow:active,
.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow:focus,
.p-product-lightbox .p-product-lightbox__panel > .p-product-lightbox__arrow:focus-visible {
	border: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: var(--p-color-primary);
	outline: none;
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__arrow:hover,
.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__arrow:focus,
.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__arrow:active {
	background: transparent;
	color: var(--p-color-primary);
	outline: none;
}

.p-product-lightbox__arrow--prev {
	left: 18px;
}

.p-product-lightbox__arrow--next {
	right: 18px;
}

.p-product-lightbox__caption {
	display: block;
	min-height: 1.4em;
	margin: 8px 0 10px;
	color: var(--p-color-muted);
	font-size: var(--p-font-size-s);
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

.p-product-lightbox__caption:empty {
	visibility: hidden;
}

.p-product-lightbox__controls {
	display: none;
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__caption {
	display: block;
	min-height: 54px;
	margin: 16px 0 0;
	color: var(--p-color-body);
	font-size: var(--p-font-size-lg);
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
	visibility: visible;
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__panel {
	grid-template-rows: minmax(0, 1fr) 54px;
	height: min(86vh, 760px);
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__main {
	height: 100%;
	min-height: 0;
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__image {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
}

.p-product-lightbox__color-caption-main {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 24px;
}

.p-product-lightbox__color-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 8px;
	border: 1px solid var(--p-color-primary);
	border-radius: 999px;
	background: var(--p-color-white);
	color: var(--p-color-primary);
	font-size: var(--p-font-size-s);
	font-weight: 700;
	line-height: 1.2;
}

.p-product-lightbox__color-badge--limited {
	border-color: var(--p-color-limited-border);
	background: var(--p-color-limited-bg);
	color: var(--p-color-limited-text);
	letter-spacing: 0.04em;
}

.p-product-lightbox__color-text {
	color: var(--p-color-body);
	font-size: var(--p-font-size-lg);
	font-weight: 500;
}

.p-product-lightbox__color-remarks {
	display: block;
	min-height: 1.6em;
	margin-top: 4px;
	color: var(--p-color-caption);
	font-size: 0.7em;
	font-weight: 400;
	line-height: 1.6;
}

.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__thumbs {
	display: none;
}

.p-product-lightbox__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	max-height: 120px;
	overflow-y: auto;
}

.p-product-lightbox__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 2px solid transparent;
	background: var(--p-color-surface);
	cursor: pointer;
}

.p-product-lightbox__thumb.is-active,
.p-product-lightbox__thumb:hover,
.p-product-lightbox__thumb:focus {
	border-color: var(--p-color-primary);
	outline: none;
}

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

.p-color-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--p-color-border);
	border-left: 1px solid var(--p-color-border);
}

.p-color-card {
	min-width: 0;
	border-right: 1px solid var(--p-color-border);
	border-bottom: 1px solid var(--p-color-border);
	background: var(--p-color-white);
	color: inherit;
}

.p-color-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 12px;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--p-color-muted-light);
	font-size: var(--p-font-size-xs);
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
	appearance: none;
}

.p-color-card__image img,
.p-related-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.16s ease;
}

.p-color-card__image:hover,
.p-color-card__image:focus,
.p-color-card__image:active {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	outline: none !important;
}

.p-color-card__image:hover img,
.p-color-card__image:focus img {
	opacity: 0.72;
}

.p-color-card__image--empty {
	cursor: default;
}

.p-color-card__body {
	padding: 0 10px 14px;
	text-align: center;
}

.p-color-card__code,
.p-color-card__name {
	margin: 0;
	color: var(--p-color-body);
	font-size: var(--p-font-size-md);
	line-height: 1.45;
	word-break: break-word;
}

.p-color-card__code {
	color: var(--p-color-strong);
}

.p-color-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	margin-top: 5px;
}

.p-color-card__badges span {
	display: inline-block;
	padding: 2px 7px;
	border: 1px solid var(--p-color-limited-border);
	border-radius: 999px;
	background: var(--p-color-limited-bg);
	color: var(--p-color-limited-text);
	font-size: var(--p-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.p-color-card__remarks {
	margin: 6px 0 0;
	color: var(--p-color-muted);
	font-size: var(--p-font-size-xs);
	line-height: 1.5;
}

.p-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.p-related-card {
	display: block;
	border: 1px solid var(--p-color-border);
	background: var(--p-color-white);
	color: inherit;
	text-decoration: none;
}

.p-related-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--p-color-surface);
}

.p-related-card__body {
	padding: 12px;
}

.p-related-card__title,
.p-related-card__note,
.p-related-card__code {
	margin: 0 0 6px;
}

.p-related-card__title {
	color: var(--p-color-text);
	font-size: var(--p-font-size-base);
	font-weight: 700;
	line-height: 1.5;
}

.p-related-card__note,
.p-related-card__code {
	color: var(--p-color-muted-dark);
	font-size: var(--p-font-size-md);
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.p-product-single {
		width: min(calc(100% - 24px), var(--p-content-width));
	}

	.p-product-single .p-product {
		padding: 28px 0 44px;
	}

	.p-product-hero {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.p-product-title {
		font-size: var(--p-font-size-title-sp);
		line-height: 1.45;
	}

	.p-product-subtitle,
	.p-product-meta,
	.p-product-meta p,
	.p-product-text-block div,
	.p-product-price-compact th,
	.p-product-price-compact td,
	.p-product-info-list dt,
	.p-product-info-list dd,
	.p-related-card__title {
		font-size: var(--p-font-size-base);
	}

	.p-product-badges,
	.p-product-recommend-badge,
	.p-product-new-badge,
	.p-product-count-badge,
	.p-product-price-compact p,
	.p-product-order-info__notes,
	.p-product-table,
	.p-product-size-notes,
	.p-color-card__code,
	.p-color-card__name,
	.p-color-card__badges span,
	.p-color-card__remarks,
	.p-related-card__note,
	.p-related-card__code,
	.p-breadcrumb {
		font-size: var(--p-font-size-sm);
	}

	.p-product-text-block h2,
	.p-product-spec h2,
	.p-product-section h2,
	.p-product-colors h2,
	.p-product-price-compact h2 {
		font-size: var(--p-font-size-heading);
	}

	.p-product-hero__media {
		max-width: 600px;
		margin-right: auto;
		margin-left: auto;
	}

	.p-product-hero__image {
		aspect-ratio: 1 / 1;
		flex-direction: column;
		padding: 18px;
	}

	.p-product-hero__image img {
		height: auto;
		max-height: min(460px, 58vh);
	}

	.p-product-hero__zoom {
		display: inline-flex;
	}

	.p-product-hero__caption {
		position: static;
		align-self: stretch;
		margin: 12px 0 0;
		text-align: left;
	}

	.p-product-gallery {
		margin-top: 14px;
	}

	.p-product-gallery__track {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.p-product-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.p-product-gallery__thumb {
		flex: 0 0 78px;
		width: 78px;
		min-width: 78px;
		scroll-snap-align: start;
	}

	.p-product-lightbox:not([data-p-lightbox-mode="colors"]) .p-product-lightbox__controls {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 34px;
		margin: 16px 0 0;
	}

	.p-product-lightbox:not([data-p-lightbox-mode="colors"]) .p-product-lightbox__thumbs {
		display: none;
	}

	.p-product-lightbox:not([data-p-lightbox-mode="colors"]) .p-product-lightbox__caption {
		display: none;
	}

	.p-product-lightbox__control-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--p-color-primary);
		font-size: 38px;
		font-weight: 300;
		line-height: 1;
	}

	.p-product-lightbox__count {
		display: inline-flex;
		gap: 14px;
		align-items: center;
		justify-content: center;
		min-width: 84px;
		margin: 0;
		color: var(--p-color-heading);
		font-size: var(--p-font-size-base);
		font-weight: 700;
		line-height: 1;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] {
		align-items: stretch;
		justify-content: stretch;
		padding: 0;
		background: var(--p-color-white) !important;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"]::before {
		background: var(--p-color-white);
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		padding: 0;
		border-radius: 0;
		background: var(--p-color-white) !important;
		box-shadow: none;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__main {
		width: 100%;
		height: 100%;
		background: var(--p-color-white) !important;
		cursor: grab;
		touch-action: none;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__main.is-dragging {
		cursor: grabbing;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__image {
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: contain;
		transform-origin: center center;
		will-change: transform;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__close {
		z-index: 4;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__arrow {
		z-index: 3;
		width: 42px;
		height: 42px;
		padding: 0 0 2px;
		border: 1px solid var(--p-color-border-light);
		border-radius: 50%;
		background: var(--p-color-white);
		font-size: 30px;
		line-height: 1;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel > .p-product-lightbox__arrow:visited,
	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel > .p-product-lightbox__arrow:hover,
	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel > .p-product-lightbox__arrow:active,
	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel > .p-product-lightbox__arrow:focus,
	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__panel > .p-product-lightbox__arrow:focus-visible {
		border: 1px solid var(--p-color-border-light);
		background: var(--p-color-white);
		background-color: var(--p-color-white);
		box-shadow: none;
		color: var(--p-color-primary);
		outline: none;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__arrow--prev {
		left: 10px;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__arrow--next {
		right: 10px;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__controls,
	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__thumbs {
		display: none;
	}

	.p-product-lightbox[data-p-lightbox-mode="main-zoom"] .p-product-lightbox__caption {
		position: absolute;
		top: 26px;
		right: 62px;
		left: 24px;
		z-index: 4;
		display: block;
		min-height: 1.4em;
		margin: 0;
		color: var(--p-color-muted);
		font-size: var(--p-font-size-s);
		line-height: 1.4;
		text-align: right;
		pointer-events: none;
	}

	.p-product-main-slider__arrow {
		width: 30px;
		height: 48px;
		font-size: 38px;
	}

	.p-product-main-slider__arrow--prev {
		left: 10px;
	}

	.p-product-main-slider__arrow--next {
		right: 10px;
	}

	.p-product-lightbox:not([data-p-lightbox-mode="main-zoom"]) .p-product-lightbox__panel > .p-product-lightbox__arrow {
		width: 42px;
		height: 68px;
		font-size: 42px;
	}

	.p-product-lightbox {
		padding: 12px;
	}

	.p-product-lightbox__panel {
		width: 96vw;
		height: auto;
		max-height: 94vh;
		padding: 48px 42px 18px;
	}

	.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__panel {
		grid-template-rows: minmax(0, 1fr) 54px;
		height: min(78vh, 540px);
	}

	.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__main {
		height: 100%;
	}

	.p-product-lightbox__image {
		width: auto;
		height: auto;
		max-height: min(72vh, 620px);
	}

	.p-product-lightbox[data-p-lightbox-mode="colors"] .p-product-lightbox__image {
		width: 100%;
		height: 100%;
		max-height: 100%;
	}

	.p-product-lightbox__thumb {
		width: 56px;
	}

	.p-color-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.p-color-card__image {
		padding: 8px;
	}

	.p-product-facts div,
	.p-product-info-list div,
	.p-product-spec-list div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.p-product-price__number {
		font-size: 26px;
	}

	.p-product-order-info__links {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		justify-content: center;
		margin-top: 22px;
		border-top: 1px solid var(--p-color-border-light);
		border-bottom: 1px solid var(--p-color-border-light);
	}

	.p-product-order-info__links a {
		display: inline-flex;
		gap: 8px;
		align-items: center;
		justify-content: flex-start;
		min-width: 0;
		width: 100%;
		min-height: 44px;
		padding: 12px 0;
		border-radius: 0;
		border-bottom: 1px solid var(--p-color-border-light);
		background: transparent;
		color: var(--p-color-body);
		text-align: left;
	}

	.p-product-order-info__links a:last-child {
		border-bottom: 0;
	}

	.p-product-order-info__links a:hover,
	.p-product-order-info__links a:focus {
		background: transparent;
		color: var(--p-color-primary);
	}

	.p-product-order-info__text {
		display: inline-flex;
		gap: 0.15em;
		line-height: 1.35;
	}

	.p-product-order-info__links .p-icon {
		width: 18px;
		height: 18px;
		align-self: center;
		color: var(--p-color-accent);
	}

	.p-product-order-info__link .p-icon {
		margin-left: auto;
		color: var(--p-color-subtle);
	}

	.p-product-size-matrix {
		font-size: var(--p-font-size-sm);
		width: 100%;
		table-layout: fixed;
	}

	.p-product-size-matrix th,
	.p-product-size-matrix td {
		padding: 9px 3px;
		word-break: normal;
		overflow-wrap: normal;
	}

	.p-product-size-matrix thead th:first-child,
	.p-product-size-matrix tbody th {
		width: 64px;
	}

	.p-product-table-wrap--mobile-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.p-product-table-wrap--mobile-scroll .p-product-size-matrix {
		min-width: var(--p-size-table-min-width, 480px);
	}

	.p-product-size-notes {
		font-size: var(--p-font-size-sm);
	}
}

@media (max-width: 767px) {
	.p-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}
