/* NoirMusk single product page customizations */

/* Stack the product gallery/summary at 767px instead of the theme's default 992px */
@media (min-width: 768px) and (max-width: 992px) {
	.wc-page-content > div.product .product--inner {
		flex-direction: row !important;
	}
	.wc-page-content > div.product .entry-summary {
		width: 45% !important;
	}
	.wc-page-content > div.product .woocommerce-product-gallery-outer {
		width: 48% !important;
	}
}
@media (max-width: 767px) {
	.wc-page-content > div.product .product--inner {
		flex-direction: column !important;
	}
	.wc-page-content > div.product .entry-summary,
	.wc-page-content > div.product .woocommerce-product-gallery-outer {
		width: 100% !important;
	}
}

body.single-product #site-content-wrap .site-content--default {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	float: none;
}

.noirmusk-product-breadcrumb-wrap {
	padding: 100px 0 20px;
	font-size: 13px;
	color: #999;
}
.noirmusk-product-breadcrumb-wrap .site-breadcrumbs a {
	color: #999;
}
.noirmusk-product-breadcrumb-wrap .site-breadcrumbs a:hover {
	color: #222;
}

.woocommerce-product-gallery {
	opacity: 1 !important;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
	background-color: #f2f0ec;
}
.woocommerce-product-gallery .flex-viewport {
	aspect-ratio: 1 / 1;
	/* FlexSlider writes an inline pixel height; if that was measured too early it is 0 — ignore it */
	height: auto !important;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 1 / 1;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex;
	align-items: center;
	justify-content: center;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	mix-blend-mode: multiply;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Center the prev/next slider arrows on the image itself, not the whole
   gallery block (which also includes the thumbnail strip below). */
.woocommerce-product-gallery .flex-direction-nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	pointer-events: none;
}
.woocommerce-product-gallery .flex-direction-nav a {
	top: 50%;
	transform: translateY(-50%);
	pointer-events: auto;
}

.wc-page-content div.product .woocommerce-product-gallery-outer ol.flex-control-thumbs {
	justify-content: left;
	width: 80%;
	margin: 10px 0;
	gap: 10px;
}
ol.flex-control-thumbs li {
	background-color: #f2f0ec;
}
ol.flex-control-thumbs li img {
	mix-blend-mode: multiply;
}

.entry-summary h1.product_title,
.summary h1.product_title {
	display: block !important;
	font-family: var(--theme-heading-font-family);
	font-size: 32px;
	font-weight: 600;
	color: #222;
	margin: 0 0 4px;
	line-height: 1.2;
}

.single-product-article .cart {
	display: flex;
	align-items: stretch;
	gap: 14px;
}
/* Quantity stepper — [ − 1 + ] next to the add-to-cart button */
html body .single-product-article .wrap-cart-cta {
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 440px;
}
html body .single-product-article .wrap-cart-cta .quantity {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	width: auto;
	min-width: 124px;
	height: 56px;
	margin: 0;
	border: 1px solid #d9d2c5;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html body .single-product-article .wrap-cart-cta .quantity:hover {
	border-color: #1a1a1a;
}
html body .single-product-article .wrap-cart-cta .quantity:focus-within {
	border-color: #a3703f;
	box-shadow: 0 0 0 3px rgba(163, 112, 63, 0.16);
}
html body .single-product-article .wrap-cart-cta .quantity .qty-minus,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: auto;
	margin: 0;
	padding: 0;
	color: #1a1a1a;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
/* draw the − and + ourselves so they are crisp and identical in weight */
html body .single-product-article .wrap-cart-cta .quantity .qty-minus i,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus i {
	display: none;
}
html body .single-product-article .wrap-cart-cta .quantity .qty-minus::before,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus::before,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	margin: -0.75px 0 0 -6px;
	background: currentColor;
	border-radius: 1px;
}
html body .single-product-article .wrap-cart-cta .quantity .qty-plus::after {
	transform: rotate(90deg);
}
html body .single-product-article .wrap-cart-cta .quantity .qty-minus:hover,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus:hover {
	background: #f6f3ee;
	color: #a3703f;
}
html body .single-product-article .wrap-cart-cta .quantity .qty-minus:active,
html body .single-product-article .wrap-cart-cta .quantity .qty-plus:active {
	background: #eee7db;
}
html body .single-product-article .wrap-cart-cta .quantity.is-min .qty-minus,
html body .single-product-article .wrap-cart-cta .quantity.is-max .qty-plus {
	opacity: 0.3;
	cursor: not-allowed;
	background: transparent;
	color: #1a1a1a;
}
html body .single-product-article .wrap-cart-cta .quantity input.qty {
	flex: 0 0 44px;
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	color: #1a1a1a;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
html body .single-product-article .wrap-cart-cta .quantity input.qty::-webkit-outer-spin-button,
html body .single-product-article .wrap-cart-cta .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product-article .single_add_to_cart_button {
	background-color: #1a1a1a !important;
	border-color: #1a1a1a !important;
	color: #fff !important;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	border-radius: 4px;
	padding: 0 32px;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.single-product-article .single_add_to_cart_button:hover {
	background-color: #000 !important;
}

.noirmusk-product-tagline {
	font-size: 14px;
	color: #8a8a8a;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 4px 0 16px;
}

/* Trust row: three small cards under the add-to-cart row */
.noirmusk-trust-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}
.noirmusk-trust-row li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 22px 12px 20px;
	background: #f6f3ee;
	border: 1px solid #ece7de;
	border-radius: 4px;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.noirmusk-trust-row li:hover {
	transform: translateY(-3px);
	border-color: #dccfb9;
	box-shadow: 0 10px 22px rgba(26, 26, 26, 0.07);
}
.noirmusk-trust-row .noirmusk-trust-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ece7de;
	color: #a3703f;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.noirmusk-trust-row li:hover .noirmusk-trust-icon {
	background: #a3703f;
	border-color: #a3703f;
	color: #fff;
}
.noirmusk-trust-row .noirmusk-trust-icon svg {
	display: block;
}
.noirmusk-trust-row .noirmusk-trust-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.noirmusk-trust-row .noirmusk-trust-text strong {
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1a1a;
}
.noirmusk-trust-row .noirmusk-trust-text span {
	font-size: 12.5px;
	line-height: 1.3;
	color: #7a756d;
}
@media (max-width: 480px) {
	.noirmusk-trust-row {
		gap: 8px;
	}
	.noirmusk-trust-row li {
		padding: 18px 6px 16px;
	}
	.noirmusk-trust-row .noirmusk-trust-text strong {
		font-size: 13px;
	}
	.noirmusk-trust-row .noirmusk-trust-text span {
		font-size: 11.5px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.noirmusk-trust-row li:hover {
		transform: none;
	}
}

/* Product info accordion — one card per section */
.noirmusk-accordion {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 100%;
	margin: 70px auto 0;
	padding: 0;
	border: 0;
}
.noirmusk-accordion__item {
	position: relative;
	background: #fff;
	border: 1px solid #ece7de;
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.noirmusk-accordion__item::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: #a3703f;
	transform: scaleY(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}
.noirmusk-accordion__item:hover {
	border-color: #dccfb9;
}
.noirmusk-accordion__item[open] {
	background: #fdfbf8;
	border-color: #e3d6bf;
	box-shadow: 0 12px 30px rgba(26, 26, 26, 0.05);
}
.noirmusk-accordion__item[open]::before {
	transform: scaleY(1);
}

.noirmusk-accordion__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 28px;
	margin: 0;
	color: #1a1a1a;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.noirmusk-accordion__item summary::-webkit-details-marker {
	display: none;
}
.noirmusk-accordion__item summary:focus-visible {
	outline: 2px solid #a3703f;
	outline-offset: -4px;
}
.noirmusk-accordion__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #f6f3ee;
	border: 1px solid #ece7de;
	color: #a3703f;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.noirmusk-accordion__icon svg {
	display: block;
}
.noirmusk-accordion__item:hover .noirmusk-accordion__icon,
.noirmusk-accordion__item[open] .noirmusk-accordion__icon {
	background: #a3703f;
	border-color: #a3703f;
	color: #fff;
}
.noirmusk-accordion__title {
	flex: 1;
	font-family: var(--theme-heading-font-family);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #1a1a1a;
	transition: color 0.2s ease;
}
.noirmusk-accordion__item summary:hover .noirmusk-accordion__title {
	color: #a3703f;
}

/* + / − toggle, drawn with two bars (the + turns into a × when open) */
.noirmusk-accordion__item summary::after {
	content: '';
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #d8cfc0;
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
	color: #1a1a1a;
	font-family: inherit;
	transition: transform 0.3s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.noirmusk-accordion__item summary:hover::after {
	border-color: #a3703f;
	color: #a3703f;
}
.noirmusk-accordion__item[open] summary::after {
	content: '';
	transform: rotate(135deg);
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
	font-family: inherit;
}

.noirmusk-accordion__panel {
	padding: 2px 28px 30px 90px;
	color: #6b6b6b;
	font-size: 15px;
	line-height: 1.75;
}
.noirmusk-accordion__panel p {
	margin: 0 0 12px;
	max-width: 820px;
}
.noirmusk-accordion__panel p:last-child {
	margin-bottom: 0;
}
.noirmusk-accordion__panel .noirmusk-accordion__fineprint {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #e3d9c8;
	font-size: 12.5px;
	line-height: 1.6;
	color: #9a948a;
}

/* Fragrance notes: three plain rows — label on the left, notes on the right */
.noirmusk-notes {
	max-width: 820px;
	border-bottom: 1px solid #ece7de;
}
.noirmusk-notes__row {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 24px;
	align-items: baseline;
	padding: 20px 0;
	border-top: 1px solid #ece7de;
}
.noirmusk-notes__row strong {
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a3703f;
	margin: 0;
}
.noirmusk-notes__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: #1a1a1a;
}
.noirmusk-notes__value {
	margin: 0;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: #1a1a1a;
}
.noirmusk-accordion__panel p strong {
	font-weight: 600;
	color: #1a1a1a;
}
.noirmusk-notes__list li {
	margin: 0;
	padding: 0;
}
/* plain comma-separated list; the comma stays at the end of a line when it wraps */
.noirmusk-notes__list li:not(:last-child)::after {
	content: ',';
	margin-right: 0.3em;
}

@media (max-width: 600px) {
	.noirmusk-notes__row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 16px 0;
	}
	.noirmusk-notes__list,
	.noirmusk-notes__value {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.noirmusk-accordion {
		margin-top: 50px;
		gap: 10px;
	}
	.noirmusk-accordion__item summary {
		gap: 12px;
		padding: 16px 16px;
	}
	.noirmusk-accordion__icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
	.noirmusk-accordion__title {
		font-size: 18px;
	}
	.noirmusk-accordion__item summary::after {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
	}
	.noirmusk-accordion__panel {
		padding: 0 16px 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.noirmusk-accordion__item,
	.noirmusk-accordion__item::before,
	.noirmusk-accordion__item summary::after {
		transition: none;
	}
}

/* Related / popular products */
.noirmusk-related {
	margin: 90px 0 0;
	padding: 70px 0 80px;
	background: #fbf8f2;
	/* full-width band: the colour runs past the page container to both edges of the screen */
	box-shadow: 0 0 0 100vmax #fbf8f2;
	clip-path: inset(0 -100vmax);
}
/* the band meets the footer: no white strip between them */
body.single-product .page-content:has(.noirmusk-related) {
	margin-bottom: 0;
}
.noirmusk-related__head {
	text-align: center;
	margin-bottom: 44px;
}
.noirmusk-related__eyebrow {
	display: block;
	margin-bottom: 12px;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #a3703f;
}
.noirmusk-related__title {
	margin: 0;
	font-family: var(--theme-heading-font-family);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #222;
}
.noirmusk-related ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.noirmusk-related ul.products li.product {
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	float: none !important;
}
@media (max-width: 1100px) {
	.noirmusk-related ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.noirmusk-related {
		margin-top: 60px;
		padding: 50px 0 56px;
	}
	.noirmusk-related__title {
		font-size: 28px;
	}
	.noirmusk-related ul.products {
		grid-template-columns: 1fr;
	}
}

