/* NoirMusk home — Signature Collection band, tabs and "View All Fragrances" */

/* ---------- cream band (separates it from the white Shop by Mood section) ---------- */
.noirmusk-home-products-band {
	background: #fbf8f2;
	border-top: 1px solid #f0e9db;
	border-bottom: 1px solid #f0e9db;
}
/* white cards read clearly on the cream */
html body .noirmusk-home-products ul.products li.product {
	background: #fff;
	border: 1px solid #ece4d4;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
}

/* ---------- tabs ---------- */
.noirmusk-ptabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 44px;
	padding: 0;
	border: 0;
}
html body .noirmusk-ptabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	margin: 0;
	padding: 0 26px;
	border: 1px solid #e0d5bf;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	color: #6b665d;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
html body .noirmusk-ptabs__tab:hover {
	border-color: #a3703f;
	background: #fff;
	color: #a3703f;
	transform: translateY(-1px);
}
html body .noirmusk-ptabs__tab.is-active,
html body .noirmusk-ptabs__tab.is-active:hover {
	border-color: #1a1a1a;
	background: #1a1a1a;
	box-shadow: 0 10px 20px -10px rgba(26, 26, 26, 0.55);
	color: #fff;
	transform: none;
}
html body .noirmusk-ptabs__tab:focus-visible {
	outline: 2px solid #a3703f;
	outline-offset: 3px;
}

.noirmusk-ptabs__panel[hidden] {
	display: none;
}
.noirmusk-ptabs__panel {
	animation: noirmusk-ptabs-in 0.35s ease both;
}
@keyframes noirmusk-ptabs-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* fewer cards on phones so the section stays short */
@media (max-width: 767px) {
	.noirmusk-ptabs__panel ul.products li.product:nth-child(n + 7) {
		display: none !important;
	}
	.noirmusk-ptabs__nav {
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: 10px;
		margin: 0 -20px 28px;
		padding: 2px 20px 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.noirmusk-ptabs__nav::-webkit-scrollbar {
		display: none;
	}
	html body .noirmusk-ptabs__tab {
		flex: 0 0 auto;
		height: 42px;
		padding: 0 20px;
		font-size: 12px;
		white-space: nowrap;
	}
}

/* ---------- view all button ---------- */
.noirmusk-home-products__cta {
	margin: 52px 0 0;
	text-align: center;
}
.noirmusk-home-products__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 40px;
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	background: #1a1a1a;
	font-family: var(--theme-body-font-family), 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.noirmusk-home-products__btn:hover {
	border-color: #a3703f;
	background: #a3703f;
	color: #fff;
}
@media (max-width: 600px) {
	.noirmusk-home-products__cta {
		margin-top: 36px;
	}
	.noirmusk-home-products__btn {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.noirmusk-ptabs__panel {
		animation: none;
	}
	html body .noirmusk-ptabs__tab {
		transition: none;
	}
}

/* ---------- phones: one product per row ----------
   Two narrow columns cut names in half ("PHANTO / M") and squeezed the cards. One column, and only the
   first 4 products (the "View All Fragrances" button covers the rest), so the section stays short. */
@media (max-width: 600px) {
	html body .noirmusk-home-products ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 34px 0;
	}
	.noirmusk-ptabs__panel ul.products li.product:nth-child(n + 5) {
		display: none !important;
	}
}
