/* =========================================================================
   Nutrivit — product page copy blocks (.nv-pdp), loaded on single products.
   Used by Curvella 500 g vanille / chocolat descriptions and short descriptions.
   Colours follow css/palette.css (plum ink, rose accent, blush / vanilla wells).
   ========================================================================= */
.nv-pdp {
	--pdp-ink: var(--nv-ink, #5b2a3c);
	--pdp-text: var(--nv-text, #5f4a51);
	--pdp-muted: var(--nv-muted, #8d6f79);
	--pdp-rose: var(--nv-accent, #c8436a);
	--pdp-rose-dark: var(--nv-accent-dark, #ad3459);
	--pdp-blush: var(--nv-blush, #fde4ea);
	--pdp-soft: var(--nv-accent-soft, #fde8ee);
	--pdp-surface: var(--nv-surface, #fdf3f6);
	--pdp-cream: var(--nv-cream, #fdf6ec);
	--pdp-line: var(--nv-line, #f3dfe5);
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	max-width: 70rem;
	margin-inline: auto;
	color: var(--pdp-text);
	text-align: start;
	line-height: 1.75;
}
.nv-pdp h2, .nv-pdp h3, .nv-pdp h4 { color: var(--pdp-ink); margin: 0; }
.nv-pdp h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; font-weight: 700; }
.nv-pdp h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 700; margin-block-end: .9rem; }
.nv-pdp h4 { font-size: 1.05rem; line-height: 1.4; font-weight: 700; margin-block-end: .35rem; }
.nv-pdp p { margin: 0 0 1rem; }
.nv-pdp p:last-child { margin-block-end: 0; }
.nv-pdp ul, .nv-pdp ol { margin: 0; padding: 0; list-style: none; }
.nv-pdp figure { margin: 0; min-width: 0; }
.nv-pdp figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.nv-pdp figcaption { margin-block-start: .65rem; font-size: .875rem; color: var(--pdp-muted); }

/* icons: masked SVG, coloured with currentColor */
.nv-ico, .nv-pdp-checks li::before, .nv-pdp-cross li::before, .nv-pdp-pills li::before {
	display: inline-block;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: var(--nv-ico) center / contain no-repeat;
	mask: var(--nv-ico) center / contain no-repeat;
}
.nv-pdp .nv-ico-check, .nv-pdp-ico-check { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-cross, .nv-pdp-ico-cross { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-trend, .nv-pdp-ico-trend { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-glass, .nv-pdp-ico-glass { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1.2 11.2A2 2 0 0 1 14.8 21H9.2a2 2 0 0 1-2-1.8L6 8z'/%3E%3Cpath d='M10 8l1-5h3'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-heart, .nv-pdp-ico-heart { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-bolt, .nv-pdp-ico-bolt { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3L5 14h6l-1 7 8-11h-6l1-7z'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-leaf, .nv-pdp-ico-leaf { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-14 15-14 0 10-6 15-14 15'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-star, .nv-pdp-ico-star { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.2 5.6 5.8.7-4.5 3.8 1.4 5.9L12 16l-4.9 3 1.4-5.9L4 9.3l5.8-.7z'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-shield, .nv-pdp-ico-shield { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.nv-pdp .nv-ico-info, .nv-pdp-ico-info { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.nv-pdp-checks li, .nv-pdp-pills li { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.nv-pdp-cross li { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.nv-pdp-checks li.nv-cert, .nv-pdp-pills li.nv-cert { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.nv-pdp-pills li.nv-cert { border-color: var(--nv-gold-soft, #f3e1d6); background: #fffaf6; }
.nv-pdp-offer .nv-pdp-pills li.nv-cert { border-color: rgba(243, 225, 214, .45); background: rgba(255, 255, 255, .14); }

/* shared panels */
.nv-pdp-hero, .nv-pdp-pain-list, .nv-pdp-benefits, .nv-pdp-journey, .nv-pdp-split, .nv-pdp-faq, .nv-pdp-facts > section {
	padding: clamp(1.25rem, 3.5vw, 2.5rem);
	border-radius: 20px;
	background: var(--pdp-surface);
}

/* 1. hook */
.nv-pdp-hero { text-align: center; background: linear-gradient(160deg, var(--pdp-cream) 0%, var(--pdp-blush) 100%); }
.nv-pdp-hero h2 { max-width: 24ch; margin-inline: auto; margin-block-end: 1rem; }
.nv-pdp-eyebrow {
	display: inline-block;
	margin-block-end: 1rem !important;
	padding: .3em 1em;
	border-radius: 999px;
	background: #fff;
	color: var(--pdp-rose);
	font-size: .85rem;
	font-weight: 600;
}
.nv-pdp-lead { max-width: 46rem; margin-inline: auto !important; font-size: 1.05rem; }
.nv-pdp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-block-start: 1.5rem !important; }
.nv-pdp-pills li {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .4em 1em;
	border: 1px solid var(--pdp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pdp-ink);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
}
.nv-pdp-pills li::before { content: ""; width: 1em; height: 1em; color: var(--pdp-rose); }

/* 2. problem -> answer */
.nv-pdp-pain { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.nv-pdp-cross li, .nv-pdp-checks li { display: flex; align-items: flex-start; gap: .65em; }
.nv-pdp-cross li + li, .nv-pdp-checks li + li { margin-block-start: .6rem; }
.nv-pdp-cross li::before { content: ""; width: 1.15em; height: 1.15em; margin-block-start: .3em; color: var(--pdp-rose); }
.nv-pdp-answer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(1.25rem, 3.5vw, 2.5rem);
	border-radius: 20px;
	background: linear-gradient(155deg, #6e3149 0%, var(--pdp-ink) 100%);
	color: #f8e1e8;
}
.nv-pdp-answer h3 { color: #fff; }
.nv-pdp-answer p { margin-block-end: 1.25rem; }

/* CTA */
.nv-pdp a.nv-pdp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: .75rem 1.75rem;
	border-radius: 999px;
	background: var(--pdp-rose);
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: 0 14px 30px -16px rgba(173, 52, 89, .8);
	transition: background-color .2s ease, transform .2s ease;
}
.nv-pdp a.nv-pdp-cta:hover { background: var(--pdp-rose-dark); transform: translateY(-1px); }
.nv-pdp-answer a.nv-pdp-cta { background: #fff; color: var(--pdp-ink) !important; box-shadow: none; }
.nv-pdp-answer a.nv-pdp-cta:hover { background: var(--pdp-blush); }
#codwo-product-form { scroll-margin-top: 110px; }
html:has(.nv-pdp) { scroll-behavior: smooth; }

/* 3. benefits */
.nv-pdp-benefits > h3, .nv-pdp-head { text-align: center; }
.nv-pdp-head { max-width: 40rem; margin: 0 auto 1.5rem; }
.nv-pdp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block-start: .5rem; }
.nv-pdp-benefit { padding: 1.25rem; border: 1px solid var(--pdp-line); border-radius: 16px; background: #fff; }
.nv-pdp-benefit .nv-ico {
	width: 46px; height: 46px;
	margin-block-end: .85rem;
	border-radius: 50%;
	-webkit-mask: none; mask: none;
	position: relative;
	background: var(--pdp-soft);
}
.nv-pdp-benefit .nv-ico::after {
	content: "";
	position: absolute;
	inset: 12px;
	background: var(--pdp-rose);
	-webkit-mask: var(--nv-ico) center / contain no-repeat;
	mask: var(--nv-ico) center / contain no-repeat;
}
.nv-pdp-benefit p { font-size: .95rem; line-height: 1.65; }

/* 4. journey */
.nv-pdp-journey { background: linear-gradient(180deg, var(--pdp-surface) 0%, #fff 100%); border: 1px solid var(--pdp-line); }
.nv-pdp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); counter-reset: none; }
.nv-pdp-step figure { position: relative; margin-block-end: .85rem; }
.nv-pdp-step figure img { aspect-ratio: 2 / 3; object-fit: cover; background: var(--pdp-blush); }
.nv-pdp-day {
	position: absolute;
	inset-block-start: .65rem;
	inset-inline-start: .65rem;
	padding: .25em .8em;
	border-radius: 999px;
	background: var(--pdp-rose);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.5;
	box-shadow: 0 6px 16px -8px rgba(91, 42, 60, .6);
}
.nv-pdp-step:last-child .nv-pdp-day { background: var(--pdp-ink); }
.nv-pdp-step p { font-size: .925rem; line-height: 1.65; }
.nv-pdp-note {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: .5em;
	margin-block-start: 1.5rem !important;
	color: var(--pdp-muted);
	font-size: .85rem;
	text-align: center;
}
.nv-pdp-note .nv-ico { width: 1.1em; height: 1.1em; margin-block-start: .25em; }

/* 5-6. split rows */
.nv-pdp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.nv-pdp-split--flip > figure { order: -1; }
.nv-pdp-split h3 + * { margin-block-start: 0; }
.nv-pdp-split ol + h3, .nv-pdp-split ul + h3 { margin-block-start: 1.75rem; }
.nv-pdp-ingredients li { padding-block: .75rem; border-block-end: 1px solid var(--pdp-line); }
.nv-pdp-ingredients li:first-child { padding-block-start: 0; }
.nv-pdp-ingredients strong { display: block; color: var(--pdp-ink); font-weight: 700; }
.nv-pdp-ingredients span { display: block; font-size: .95rem; }
.nv-pdp-callout {
	margin-block-start: 1.25rem !important;
	padding: .85rem 1rem;
	border-inline-start: 3px solid var(--pdp-rose);
	border-radius: 10px;
	background: #fff;
	color: var(--pdp-ink);
	font-weight: 600;
}
.nv-pdp-howto { counter-reset: nv-step; }
.nv-pdp-howto li { position: relative; padding-inline-start: 2.6rem; counter-increment: nv-step; min-height: 2rem; }
.nv-pdp-howto li + li { margin-block-start: .75rem; }
.nv-pdp-howto li::before {
	content: counter(nv-step);
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0;
	display: grid;
	place-items: center;
	width: 1.9rem; height: 1.9rem;
	border-radius: 50%;
	background: var(--pdp-rose);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	line-height: 1;
}
.nv-pdp-checks li::before { content: ""; width: 1.15em; height: 1.15em; margin-block-start: .3em; color: var(--pdp-rose); }

/* 7. offer */
.nv-pdp-offer {
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: 24px;
	background: radial-gradient(120% 140% at 0% 0%, #7a3a55 0%, var(--pdp-ink) 60%);
	color: #f8e1e8;
	text-align: center;
}
.nv-pdp-offer h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.nv-pdp-offer > p { max-width: 40rem; margin-inline: auto !important; }
.nv-pdp-offer .nv-pdp-pills { margin-block: 1.25rem 1.75rem !important; }
.nv-pdp-offer .nv-pdp-pills li { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; }
.nv-pdp-offer .nv-pdp-pills li::before { color: var(--pdp-blush); }

/* 8. faq */
.nv-pdp-faq details { border-block-start: 1px solid #ecd2da; }
.nv-pdp-faq details:last-child { border-block-end: 1px solid #ecd2da; }
.nv-pdp-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
	color: var(--pdp-ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.nv-pdp-faq summary::-webkit-details-marker { display: none; }
.nv-pdp-faq summary::after {
	content: "+";
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 1.75rem; height: 1.75rem;
	border-radius: 50%;
	background: #fff;
	color: var(--pdp-rose);
	font-size: 1.2rem;
	line-height: 1;
	transition: transform .2s ease;
}
.nv-pdp-faq details[open] summary::after { transform: rotate(45deg); }
.nv-pdp-faq details p { padding-block-end: 1rem; }

/* 9. facts */
.nv-pdp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.nv-pdp-facts p { font-size: .925rem; }

/* short description under the price */
.woocommerce-product-details__short-description .nv-pdp-checks { margin: .75rem 0 0; padding: 0; list-style: none; }
.woocommerce-product-details__short-description .nv-pdp-checks li { display: flex; align-items: flex-start; gap: .55em; color: var(--nv-ink, #5b2a3c); font-weight: 500; line-height: 1.6; }
.woocommerce-product-details__short-description .nv-pdp-checks li + li { margin-block-start: .35rem; }
.woocommerce-product-details__short-description .nv-pdp-checks li::before {
	content: "";
	flex-shrink: 0;
	width: 1.1em; height: 1.1em;
	margin-block-start: .25em;
	background-color: var(--nv-accent, #c8436a);
	-webkit-mask: var(--nv-ico) center / contain no-repeat;
	mask: var(--nv-ico) center / contain no-repeat;
}

@media (max-width: 900px) {
	.nv-pdp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nv-pdp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}
@media (max-width: 720px) {
	.nv-pdp-pain, .nv-pdp-split, .nv-pdp-facts { grid-template-columns: minmax(0, 1fr); }
	.nv-pdp-split--flip > figure { order: 0; }
	.nv-pdp a.nv-pdp-cta { width: 100%; }
}
@media (max-width: 480px) {
	.nv-pdp-grid { grid-template-columns: minmax(0, 1fr); }
	.nv-pdp-benefit { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; padding: 1rem; }
	.nv-pdp-benefit .nv-ico { grid-row: span 2; margin: 0; }
	.nv-pdp-pills li { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(.nv-pdp) { scroll-behavior: auto; }
	.nv-pdp a.nv-pdp-cta, .nv-pdp-faq summary::after { transition: none; }
}
