/* N14 Box composer */
.n14-box {
	padding-bottom: 7rem;
}
.n14-box__lead,
.n14-box__intro {
	max-width: 60ch;
	margin: 0 0 1.5rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}
.n14-box__group {
	margin: 0 0 2.5rem;
}
.n14-box__head {
	position: sticky;
	top: calc(var(--n14-header-h, 0px) + 0px);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0 0 1rem;
	padding: 0.75rem 0;
	background: var(--wp--preset--color--base, #fbf8f5);
	border-bottom: 1px solid var(--wp--preset--color--line, #e8dcd6);
}
.n14-box__step {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--blush, #f4e7e2);
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.n14-box__group.is-complete .n14-box__step {
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
}
.n14-box__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 400;
}
.n14-box__rule {
	margin: 0.125rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #665858);
}
.n14-box__count {
	margin-left: auto;
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blush, #f4e7e2);
	font-size: 0.8125rem;
	font-weight: 600;
}
.n14-box__group.is-full .n14-box__count {
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
}
.n14-box__group.is-shake .n14-box__count {
	animation: n14-box-shake 0.4s ease;
}
@keyframes n14-box-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.n14-box__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 599.98px) {
	.n14-box__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 0.75rem;
	}
}
.n14-box__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.n14-box__pick {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.n14-box__img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--blush, #f4e7e2);
	box-shadow: inset 0 0 0 0 var(--wp--preset--color--ink, #1c1818);
	transition: box-shadow 0.2s ease;
}
.n14-box__img img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.n14-box__item.is-selected .n14-box__img {
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--ink, #1c1818);
}
.n14-box__item.is-selected .n14-box__img::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink, #1c1818) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.n14-box__qty {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 1;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}
.n14-box__qty[hidden],
.n14-box__minus[hidden] {
	display: none;
}
.n14-box__minus {
	position: absolute;
	right: 8px;
	top: calc(100% - 7.2rem);
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(28, 24, 24, 0.25);
	cursor: pointer;
}
.n14-box__name {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}
.n14-box__price {
	font-size: 0.875rem;
}
.n14-box__item.is-out {
	opacity: 0.45;
}
.n14-box__item.is-out .n14-box__pick {
	cursor: not-allowed;
}
.n14-box__more {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted, #665858);
}

/* Summary bar: fixed at the bottom (above the shop bar on phones) */
.n14-box__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 930;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem 1.25rem;
	padding: 0.875rem max(1rem, calc((100vw - 1440px) / 2 + 1rem)) calc(0.875rem + env(safe-area-inset-bottom, 0px));
	background: var(--wp--preset--color--surface, #fff);
	border-top: 1px solid var(--wp--preset--color--line, #e8dcd6);
	box-shadow: 0 -12px 28px -20px rgba(28, 24, 24, 0.45);
}
html.has-n14-bar .n14-box__bar {
	bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	padding-bottom: 0.875rem;
}
@media (min-width: 1024px) {
	html.has-n14-bar .n14-box__bar {
		bottom: 0;
	}
}
.n14-box__sum {
	flex: 1;
	min-width: 180px;
}
.n14-box__progress {
	display: block;
	height: 4px;
	margin-bottom: 0.375rem;
	background: var(--wp--preset--color--blush, #f4e7e2);
}
.n14-box__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--wp--preset--color--rose, #9e4b57);
	transition: width 0.4s ease;
}
.n14-box__status {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #665858);
}
.n14-box__total {
	margin: 0.125rem 0 0;
	font-size: 1.125rem;
}
.n14-box__total del {
	margin-left: 0.375rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #665858);
}
.n14-box__save {
	margin-left: 0.375rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--rose, #9e4b57);
	font-weight: 600;
}
.n14-box__add {
	min-height: 48px;
	padding: 0 1.75rem;
	border: 0;
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.n14-box__add:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.n14-box__add.is-busy {
	opacity: 0.6;
}
.n14-box__msg {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--rose, #9e4b57);
}
.n14-box__closed {
	padding: 2rem;
	background: var(--wp--preset--color--blush, #f4e7e2);
	text-align: center;
}
@media (max-width: 599.98px) {
	.n14-box__add {
		flex: 1 1 100%;
	}
	.n14-box__head {
		top: calc(var(--n14-header-h, 0px) - 1px);
	}
	.n14-box__title {
		font-size: 1.25rem;
	}
}

/* [n14_boxes] cards */
.n14-boxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.n14-boxes__card a {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}
.n14-boxes__card img,
.n14-boxes__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto !important;
	object-fit: cover;
	background: var(--wp--preset--color--blush, #f4e7e2);
}
.n14-boxes__name {
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.5rem;
}
.n14-boxes__desc {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #665858);
}
.n14-boxes__price {
	font-weight: 600;
}
.n14-boxes__cta {
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--wp--preset--color--ink, #1c1818);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.n14-box__item.is-taken {
	opacity: 0.4;
}
.n14-box__item.is-taken .n14-box__img::after {
	content: "Già scelto";
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 0.125rem 0.5rem;
	background: #fff;
	font-size: 0.6875rem;
}

/* Keep the Assistance button above the box summary bar */
html:has(.n14-box__bar) .n14-assist-fab {
	bottom: 110px;
}

/* =========================================================================
   Steps that open one after the other (accordion) + sliding products
   ========================================================================= */
.n14-box__group {
	margin: 0 0 0.75rem;
	border: 1px solid var(--wp--preset--color--line, #e8dcd6);
	background: var(--wp--preset--color--surface, #fff);
}
.n14-box__head {
	position: static;
	width: 100%;
	margin: 0;
	padding: 1rem 1.125rem;
	border: 0;
	border-bottom: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.n14-box__group.is-open .n14-box__head {
	border-bottom: 1px solid var(--wp--preset--color--line, #e8dcd6);
	cursor: default;
}
.n14-box__head-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.n14-box__title {
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.375rem;
	line-height: 1.2;
}
.n14-box__rule {
	margin: 0.125rem 0 0;
}
.n14-box__step {
	position: relative;
}
.n14-box__step-ok {
	display: none;
}
.n14-box__group.is-done:not(.is-open) .n14-box__step {
	background: var(--wp--preset--color--rose, #9e4b57);
	color: #fff;
}
.n14-box__group.is-done:not(.is-open) .n14-box__step-n {
	display: none;
}
.n14-box__group.is-done:not(.is-open) .n14-box__step-ok {
	display: inline;
}
.n14-box__edit {
	display: none;
	font-size: 0.75rem;
	text-decoration: underline;
	white-space: nowrap;
}
.n14-box__group.is-done:not(.is-open) .n14-box__edit {
	display: inline;
}
.n14-box__group.is-done:not(.is-open) .n14-box__count {
	display: none;
}
/* steps still to reach: dimmed */
.n14-box__group:not(.is-open):not(.is-done) .n14-box__head {
	opacity: 0.6;
}
.n14-box__chosen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
}
.n14-box__chosen[hidden] {
	display: none;
}
.n14-box__group.is-open .n14-box__chosen {
	display: none;
}
.n14-box__thumb {
	display: block;
	width: 36px;
	height: 45px;
	overflow: hidden;
	background: var(--wp--preset--color--blush, #f4e7e2);
}
.n14-box__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.n14-box__body {
	padding: 1rem 0 1.125rem;
}
.n14-box__body[hidden] {
	display: none;
}
.n14-box__chips {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0 1.125rem 0.875rem;
	scrollbar-width: none;
}
.n14-box__chips::-webkit-scrollbar {
	display: none;
}
.n14-box__chip {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 0 0.875rem;
	border: 1px solid var(--wp--preset--color--line, #e8dcd6);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}
.n14-box__chip.is-active {
	border-color: var(--wp--preset--color--ink, #1c1818);
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
}
.n14-box__slider {
	position: relative;
}
.n14-box__grid {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 1.125rem;
	padding: 0 1.125rem 0.25rem;
	scrollbar-width: none;
}
.n14-box__grid::-webkit-scrollbar {
	display: none;
}
.n14-box__item {
	flex: 0 0 calc((100% - 2.25rem - 1.5rem) / 2.5);
	scroll-snap-align: start;
}
.n14-box__item[hidden] {
	display: none;
}
@media (min-width: 600px) {
	.n14-box__item {
		flex-basis: calc((100% - 2.25rem - 3rem) / 4.5);
	}
}
@media (min-width: 1024px) {
	.n14-box__item {
		flex-basis: calc((100% - 2.25rem - 3.75rem) / 5.5);
	}
}
.n14-box__open {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
/* "+" / "✓" on the photo */
.n14-box__pick {
	position: absolute;
	top: 0.375rem;
	right: 0.375rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(28, 24, 24, 0.2);
}
.n14-box__pick-on {
	display: none;
	font-size: 1rem;
}
.n14-box__item.is-selected .n14-box__pick {
	background: var(--wp--preset--color--rose, #9e4b57);
}
.n14-box__item.is-selected .n14-box__pick-add {
	display: none;
}
.n14-box__item.is-selected .n14-box__pick-on {
	display: inline;
}
.n14-box__item.is-taken .n14-box__pick,
.n14-box__item.is-out .n14-box__pick {
	opacity: 0.35;
}
.n14-box__minus {
	position: absolute;
	top: 2.75rem;
	right: 0.375rem;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}
.n14-box__name {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}
.n14-box__price {
	font-size: 0.8125rem;
}
.n14-box__arrow {
	position: absolute;
	top: 35%;
	z-index: 3;
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--line, #e8dcd6);
	border-radius: 50%;
	background: #fff;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(28, 24, 24, 0.12);
}
.n14-box__arrow.is-prev {
	left: 0.25rem;
}
.n14-box__arrow.is-next {
	right: 0.25rem;
}
@media (hover: hover) and (min-width: 768px) {
	.n14-box__arrow:not([hidden]) {
		display: block;
	}
}
.n14-box__next {
	display: block;
	margin: 1rem 1.125rem 0 auto;
	min-height: 44px;
	padding: 0 1.25rem;
	border: 1px solid var(--wp--preset--color--ink, #1c1818);
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}
.n14-box__next[hidden] {
	display: none;
}

/* ---------- Product summary sheet ---------- */
html.n14-bsheet-lock {
	overflow: hidden;
}
.n14-bsheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
}
.n14-bsheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 24, 24, 0.4);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.n14-bsheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	background: var(--wp--preset--color--base, #fbf8f5);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}
@media (min-width: 768px) {
	.n14-bsheet__panel {
		left: auto;
		top: 0;
		width: min(440px, 100%);
		max-height: none;
		border-radius: 0;
		transform: translateX(100%);
	}
}
.n14-bsheet.is-open .n14-bsheet__scrim {
	opacity: 1;
}
.n14-bsheet.is-open .n14-bsheet__panel {
	transform: none;
}
.n14-bsheet__close {
	position: sticky;
	top: 0.75rem;
	z-index: 2;
	float: right;
	width: 40px;
	height: 40px;
	margin: 0.75rem 0.75rem -52px 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: inherit;
	font-size: 1.5rem;
	line-height: 40px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(28, 24, 24, 0.12);
}
.n14-bsheet__body.is-loading {
	min-height: 50vh;
	opacity: 0.4;
}
.n14-bsheet__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--wp--preset--color--blush, #f4e7e2);
}
@media (min-width: 768px) {
	.n14-bsheet__img {
		aspect-ratio: 4 / 5;
	}
}
.n14-bsheet__summary {
	padding: 1rem 1.5rem;
	background: var(--wp--preset--color--blush, #f4e7e2);
	font-size: 0.875rem;
	line-height: 1.6;
}
.n14-bsheet__summary p {
	margin: 0;
}
.n14-bsheet__sub {
	margin-bottom: 0.375rem !important;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.125rem;
	font-style: italic;
	color: var(--wp--preset--color--muted, #665858);
}
.n14-bsheet__name {
	margin: 1.25rem 1.5rem 0.25rem;
	font-size: 1.625rem;
	font-weight: 300;
	text-transform: uppercase;
}
.n14-bsheet__price {
	margin: 0 1.5rem 1rem;
	font-size: 1.125rem;
}
.n14-bsheet__shades {
	margin: 0 1.5rem 1.25rem;
}
.n14-bsheet__label {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.n14-bsheet__dots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.n14-bsheet__dot {
	width: 30px;
	height: 30px;
	border: 2px solid var(--wp--preset--color--base, #fbf8f5);
	border-radius: 50%;
	background: var(--wp--preset--color--blush-strong, #edd8d1);
	box-shadow: 0 0 0 1px var(--wp--preset--color--line, #e8dcd6);
	cursor: pointer;
}
.n14-bsheet__dot.is-active {
	box-shadow: 0 0 0 2px var(--wp--preset--color--ink, #1c1818);
}
.n14-bsheet__dot.is-out {
	opacity: 0.35;
}
.n14-bsheet__add {
	position: sticky;
	bottom: 0.75rem;
	display: block;
	width: calc(100% - 3rem);
	min-height: 52px;
	margin: 0 1.5rem 0.75rem;
	border: 0;
	background: var(--wp--preset--color--ink, #1c1818);
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 -8px 24px var(--wp--preset--color--base, #fbf8f5);
}
.n14-bsheet__add.is-picked {
	background: #fff;
	border: 1px solid var(--wp--preset--color--ink, #1c1818);
	color: var(--wp--preset--color--ink, #1c1818);
}
.n14-bsheet__add:disabled {
	background: var(--wp--preset--color--line, #e8dcd6);
	color: var(--wp--preset--color--muted, #665858);
	cursor: default;
}
.n14-bsheet__full {
	display: block;
	margin: 0 1.5rem 2rem;
	font-size: 0.8125rem;
	text-align: center;
	color: var(--wp--preset--color--muted, #665858);
}
