/* ==========================================================================
   Ninja — product page (woocommerce/content-single-product.php)
   Photo in a navy frame cut at the corner + framed thumbnails; a navy panel
   cut on a slant with the name, price, promo code card, sizes, Add to bag
   (white) and Buy now (big, red), and the installment calculator; then the
   info sections and "You may also like" (product cards C3).
   Frames: the element's background is the line colour and a ::before layer
   1.5px in, cut to the same shape, is the fill, so the line follows the cut.
   ========================================================================== */
.nk-pdp { padding: 8px 0 40px; }
/* Beat the old single-product rules in woocommerce.css. */
.woocommerce div.product.nk-pdp { display: block; }
.woocommerce div.product.nk-pdp .product_title.nk-pdp__name { margin: 4px 0 8px; color: #fff; font: 700 clamp(24px, 7vw, 40px)/1.05 var(--f-display); }
.woocommerce div.product.nk-pdp p.price.nk-pdp__price { margin: 0; color: var(--c-red); font: 700 22px var(--f-display); }
.woocommerce div.product.nk-pdp p.price.nk-pdp__price del { color: #a9a7d6; font-size: 15px; font-weight: 500; }

/* Photo ------------------------------------------------------------------- */
.nk-pdp__photo {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: var(--c-navy);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 72px) 100%, 0 100%);
}
.nk-pdp__photo::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.5px;
	background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 17.6px), calc(100% - 70.6px) 100%, 0 100%);
}
.nk-pdp__img {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 7%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: opacity .16s;
}
.nk-pdp__img.is-swapping { opacity: 0; }
.nk-pdp__off {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px 5px 9px;
	background: var(--c-red);
	color: #fff;
	font: 600 12px/1 var(--f-display);
	letter-spacing: .06em;
	clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
.nk-pdp .nk-pdp__wish { top: 10px; right: 10px; width: 40px; height: 40px; }

/* Other photos: small framed squares inside the big frame, along the bottom. */
.nk-pdp__photo.has-thumbs .nk-pdp__img { padding: 6% 7% 22%; }
.nk-pdp__thumbs {
	position: absolute;
	z-index: 2;
	left: 12px;
	right: 84px;
	bottom: 12px;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}
.nk-pdp__th {
	position: relative;
	isolation: isolate;
	flex: 0 0 54px;
	height: 54px;
	padding: 4px;
	border: 0;
	background: var(--c-navy);
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, 100% 75%, calc(100% - 11px) 100%, 0 100%);
}
.nk-pdp__th::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.5px;
	background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(75% + .3px), calc(100% - 10.6px) 100%, 0 100%);
}
.nk-pdp__th.is-on { background: var(--c-red); }
.nk-pdp__th.is-on::before { inset: 3px; }
.nk-pdp__th img { width: 100%; height: 100%; margin: 0; object-fit: contain; mix-blend-mode: multiply; }
.nk-pdp__th:focus-visible { outline: 2px solid var(--c-red); outline-offset: -4px; }

/* Panel ------------------------------------------------------------------- */
.nk-pdp__panel {
	margin: 18px calc(var(--gutter) * -1) 0;
	padding: 36px var(--gutter) 24px;
	background: var(--c-navy);
	color: #fff;
	clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
}
.nk-pdp__brand { margin: 0; color: var(--c-red); font: 600 11px var(--f-body); letter-spacing: .18em; text-transform: uppercase; }
.nk-pdp__name { margin: 4px 0 8px; color: #fff; font: 700 clamp(24px, 7vw, 40px)/1.05 var(--f-display); text-transform: uppercase; }
.nk-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: var(--c-red); font: 700 22px var(--f-display); }
.nk-pdp__price del { order: 2; color: #a9a7d6; font-size: 15px; font-weight: 500; }
.nk-pdp__price ins { order: 1; color: var(--c-red); text-decoration: none; }
.nk-pdp__price .amount { color: inherit; }
.nk-pdp__price em {
	order: 3;
	padding: 3px 9px 3px 7px;
	background: var(--c-red);
	color: #fff;
	font-size: 12px;
	font-style: normal;
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* Promo code */
.nk-pdp__promo {
	margin: 16px 0 4px;
	padding: 14px;
	background: var(--c-red);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 48px) 100%, 0 100%);
}
.nk-pdp__promo-t { display: flex; flex-direction: column; margin-bottom: 10px; }
.nk-pdp__promo-t b { font: 700 18px var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.nk-pdp__promo-t span { font-size: 12px; opacity: .9; }
.nk-pdp__promo-code { display: flex; align-items: stretch; border: 2px dashed rgba(255, 255, 255, .8); }
.nk-pdp__promo-code code {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	overflow: hidden;
	background: none;
	color: #fff;
	font: 700 20px var(--f-display);
	letter-spacing: .18em;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nk-pdp__promo-code button {
	padding: 0 18px;
	border: 0;
	background: #fff;
	color: var(--c-red);
	font: 700 13px var(--f-display);
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Sizes */
.nk-pdp__lbl {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 18px 0 8px;
	color: #fff;
	font: 600 13px var(--f-display);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.nk-pdp__lbl a { color: var(--c-red); font-size: 12px; border-bottom: 1px solid; }
.nk-pdp__lbl b { color: var(--c-red); }
.nk-pdp__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.nk-pdp__sz {
	position: relative;
	isolation: isolate;
	height: 46px;
	border: 0;
	background: rgba(255, 255, 255, .45);
	color: #fff;
	font: 600 14px var(--f-display);
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 9px) 100%, 0 100%);
}
.nk-pdp__sz::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.5px;
	background: var(--c-navy);
	clip-path: polygon(0 0, 100% 0, 100% calc(70% + .3px), calc(100% - 8.6px) 100%, 0 100%);
}
.nk-pdp__sz.is-on { background: #fff; color: var(--c-navy); }
.nk-pdp__sz:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.nk-pdp__sz.is-on::before { background: #fff; }
.nk-pdp__sz:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
.nk-pdp.is-error .nk-pdp__sz { background: var(--c-red); }
.nk-pdp__msg { min-height: 18px; margin: 8px 0 0; color: #ff8a8e; font: 600 12px var(--f-body); }

/* Buttons: Add to bag (white) then Buy now (big, red) */
.nk-pdp__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	font-family: var(--f-display);
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	transition: background .15s, color .15s;
}
.nk-pdp__btn--add { height: 48px; margin-top: 6px; background: #fff; color: var(--c-navy); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.nk-pdp__btn--add:hover { background: #e9ebf3; }
.nk-pdp__btn--buy { height: 62px; margin-top: 8px; background: var(--c-red); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .18em; }
.nk-pdp__btn--buy:hover { background: #c81d22; }
.nk-pdp__btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.nk-pdp__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nk-pdp__out { margin: 18px 0 0; padding: 14px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 15px var(--f-display); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.nk-pdp__form { margin-top: 16px; color: #fff; }
.nk-pdp__form label,
.nk-pdp__form th,
.nk-pdp__form .reset_variations { color: #fff; }
.nk-pdp__form table.variations { width: 100%; margin: 0 0 12px; border: 0; }
.nk-pdp__form table.variations th,
.nk-pdp__form table.variations td { display: block; padding: 0 0 8px; border: 0; background: none; text-align: left; }
.nk-pdp__form select { width: 100%; min-height: 46px; background: #fff; color: var(--c-navy); }
/* Swatch plugins: readable buttons on the navy panel. */
.nk-pdp__form [class*="swatch"] li,
.nk-pdp__form [class*="swatch"] .variable-item,
.nk-pdp__form [class*="swatch"] button,
.nk-pdp__form [class*="swatch"] span {
	color: var(--c-navy) !important;
	font: 600 14px var(--f-display) !important;
}
.nk-pdp__form [class*="swatch"] .selected,
.nk-pdp__form [class*="swatch"] .active { outline: 3px solid var(--c-red); outline-offset: 1px; }
.nk-pdp__form[hidden] { display: none !important; }
.nk-pdp .nk-pdp__form .quantity { display: none !important; }
.nk-pdp__form .single_add_to_cart_button {
	width: 100%;
	height: 62px;
	border: 0 !important;
	background: var(--c-red) !important;
	color: #fff !important;
	font: 700 18px var(--f-display) !important;
	letter-spacing: .16em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.nk-pdp__form .woocommerce-variation-add-to-cart { display: block; }

/* Installments */
.nk-pdp__calc { margin: 18px 0 0; padding: 14px; background: #fff; color: var(--c-navy); }
.nk-pdp__calc-t { display: flex; flex-direction: column; margin-bottom: 10px; }
.nk-pdp__calc-t b { font: 700 16px var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.nk-pdp__calc-t span { color: var(--c-muted); font-size: 12px; }
.nk-pdp__co { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nk-pdp__co > button,
.nk-pdp__co > span {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border: 0;
	background: var(--c-navy);
	clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 9px) 100%, 0 100%);
}
.nk-pdp__co > button { cursor: pointer; }
.nk-pdp__co > button::before,
.nk-pdp__co > span::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.5px;
	background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(70% + .3px), calc(100% - 8.6px) 100%, 0 100%);
}
.nk-pdp__co > button.is-on { background: var(--c-red); }
.nk-pdp__co > button.is-on::before { inset: 3px; }
.nk-pdp__co img { max-width: 72%; max-height: 56%; margin: 0; object-fit: contain; }
.nk-pdp__co img:not(.is-own) { filter: brightness(0) saturate(100%) invert(9%) sepia(62%) saturate(5000%) hue-rotate(244deg) brightness(70%); }
.nk-pdp__months { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.nk-pdp__months button {
	height: 36px;
	padding: 0 14px;
	border: 1.5px solid var(--c-navy);
	background: #fff;
	color: var(--c-navy);
	font: 600 13px var(--f-display);
	cursor: pointer;
}
.nk-pdp__months button.is-on { background: var(--c-navy); color: #fff; }
.nk-pdp__out3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; }
.nk-pdp__out3 div { padding: 10px 8px; background: var(--c-surface); }
.nk-pdp__out3 div:first-child { background: var(--c-navy); color: #fff; }
.nk-pdp__out3 span { display: block; font-size: 11px; opacity: .75; }
.nk-pdp__out3 b { font: 700 16px var(--f-display); }
.nk-pdp__out3 div:first-child b { color: #fff; font-size: 20px; }
.nk-pdp__calc-note { margin: 8px 0 0; color: var(--c-muted); font-size: 11px; }

/* Info sections ------------------------------------------------------------ */
.nk-pdp__extra:empty { display: none; }
.nk-pdp__acc { margin-top: 18px; }
.nk-pdp__acc details { border-bottom: 1px solid var(--c-line); }
.nk-pdp__acc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font: 600 14px var(--f-display);
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.nk-pdp__acc summary::-webkit-details-marker { display: none; }
.nk-pdp__acc summary::after { content: "+"; color: var(--c-red); font-size: 22px; line-height: 1; }
.nk-pdp__acc details[open] summary::after { content: "\2013"; }
.nk-pdp__txt { padding: 0 0 16px; color: var(--c-muted); font-size: 14px; line-height: 1.65; }
.nk-pdp__txt > :first-child { margin-top: 0; }

/* You may also like -------------------------------------------------------- */
.nk-pdp__rel { margin-top: 34px; }
.nk-pdp__rel > h2 { margin: 0 0 12px; font: 700 24px var(--f-display); text-transform: uppercase; }
.nk-pdp__rail {
	display: flex;
	gap: 10px;
	margin: 0 calc(var(--gutter) * -1);
	padding: 0 var(--gutter) 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--gutter);
	scrollbar-width: none;
}
.nk-pdp__rail::-webkit-scrollbar { display: none; }
.nk-pdp__item.nk-pc { display: flex; flex: 0 0 calc((100% - 10px) / 2.12); scroll-snap-align: start; }
.nk-pdp__item .nk-pc__ctl { flex-direction: row; }
.nk-pdp__item .nk-pc__size { font-size: 11px; letter-spacing: .04em; }

/* Desktop: photo left, panel right ----------------------------------------- */
@media (min-width: 900px) {
	.nk-pdp__th { flex-basis: 70px; height: 70px; }
	.nk-pdp__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); gap: 36px; align-items: start; }
	.nk-pdp__media { position: sticky; top: calc(var(--header-h, 76px) + 24px); }
	.nk-pdp__panel { margin: 0; padding: 44px 32px 32px; clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); }
	.nk-pdp__acc { max-width: 760px; }
	.nk-pdp__item.nk-pc { flex-basis: calc((100% - 30px) / 4); }
}
@media (prefers-reduced-motion: reduce) {
	.nk-pdp__img,
	.nk-pdp__btn { transition: none; }
}

/* Store promises (inc/woocommerce.php .product-usps) on the product page:
   three framed rows with a red check box. */
.nk-pdp .product-usps { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; list-style: none; }
.nk-pdp .product-usps li {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 14px 8px 8px;
	background: var(--c-navy);
	color: var(--c-navy);
	font: 600 13px var(--f-display);
	letter-spacing: .08em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 40px) 100%, 0 100%);
}
.nk-pdp .product-usps li::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.5px;
	background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9.6px), calc(100% - 38.6px) 100%, 0 100%);
}
.nk-pdp .product-usps li::before {
	width: 32px;
	height: 32px;
	background: var(--c-red);
	-webkit-mask: none;
	mask: none;
	clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 18px;
}
@media (min-width: 900px) { .nk-pdp .product-usps { grid-template-columns: repeat(3, 1fr); } }
/* Related cards: photos always visible. */
.nk-pdp__rail .nk-pc__img { opacity: 1; visibility: visible; }
