/* =====================================================================
   Nuni — Product widget
   Single product page styles. Mirrors the Sheasmör.html design but
   scoped under .nuni-pd so it can live alongside theme + WC styles.
   ===================================================================== */

/* Paint the Elementor widget wrapper too so no theme/section white
   bleeds around the rendered widget content. Individual sections that
   need full-viewport-width colored backgrounds use a box-shadow +
   clip-path trick to escape constrained containers without shifting
   layout (see .nuni-pd__faq / .nuni-pd__ig).
   `overflow-x: clip` traps any 1px horizontal bleed that themes/grids
   sometimes leak — prevents the page from ever getting a horizontal
   scrollbar because of this widget. */
.elementor-widget-nuni-product,
.elementor-widget-nuni-product > .elementor-widget-container {
	background: #EDE2CE;
	padding: 0;
	overflow-x: clip;
}

.nuni-pd {
	/* Local tokens — kept here so the widget renders correctly even if the
	   site-wide design system hasn't loaded yet. Fonts are intentionally
	   left to inherit from the global Elementor / theme typography; the
	   Style → Typography controls let editors override per-widget. */
	--nuni-pd-page-bg:   #EDE2CE;
	--nuni-pd-card-bg:   #F4ECDD;
	--nuni-pd-soft-bg:   #FBF7EE;
	--nuni-pd-bg:        #E8DFCE;
	--nuni-pd-ink:       #1C140C;
	--nuni-pd-ink-2:     #4A3C2C;
	--nuni-pd-muted:     #6B5B47;
	--nuni-pd-sand:      #BAA890;
	--nuni-pd-sand-soft: #E8D5BD;
	--nuni-pd-sand-deep: #B07A2E;
	--nuni-pd-green:     #1E5A3F;
	--nuni-pd-line:      rgba(28, 20, 12, 0.10);
	--nuni-pd-line-2:    rgba(28, 20, 12, 0.22);
	--nuni-pd-r-sm:      8px;
	--nuni-pd-r-md:      16px;
	--nuni-pd-r-pill:    999px;
	--nuni-pd-dur:       320ms;
	--nuni-pd-dur-fast:  200ms;
	--nuni-pd-ease:      cubic-bezier(.22, .61, .36, 1);

	background: var(--nuni-pd-page-bg);
	color: var(--nuni-pd-ink);
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	font-size: 14px;
	line-height: 1.5;
	display: block;
	overflow-x: clip;
}

.nuni-pd *,
.nuni-pd *::before,
.nuni-pd *::after { box-sizing: border-box; }

.nuni-pd img { max-width: 100%; display: block; }
.nuni-pd a { color: inherit; }

/* Defensive copy of WP core's .screen-reader-text. Scoped to .nuni-pd so it
   can't fight a theme's version, but guarantees our icon-only nav links
   (pagination prev/next) still have an accessible name when a custom theme
   forgets to ship the class. */
.nuni-pd .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

/* ───── Breadcrumb ───── */
.nuni-pd__crumbs {
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 56px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nuni-pd-muted);
}
.nuni-pd__crumbs a,
.nuni-pd__crumbs .woocommerce-breadcrumb a {
	color: var(--nuni-pd-muted);
	text-decoration: none;
	transition: color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__crumbs a:hover { color: var(--nuni-pd-ink); }
.nuni-pd__crumbs .woocommerce-breadcrumb { font: inherit; color: inherit; }
.nuni-pd__crumbs span[aria-hidden] { opacity: 0.4; }

/* ───── Hero ───── */
.nuni-pd__hero {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 56px clamp(72px, 7vw, 112px);
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(48px, 6vw, 96px);
	align-items: start;
}

/* Gallery */
.nuni-pd__gallery {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nuni-pd__gallery-main {
	aspect-ratio: 1 / 1;
	background: var(--nuni-pd-card-bg);
	border-radius: var(--nuni-pd-r-md);
	overflow: hidden;
	position: relative;
}
.nuni-pd__gallery-main img,
.nuni-pd__gallery-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	transition: opacity 320ms var(--nuni-pd-ease);
	will-change: opacity;
}
/* Fade-out during the moment between thumb click and the new image
   finishing its preload. JS toggles .is-swapping on the wrapper, then
   removes it once the new image is decoded. */
.nuni-pd__gallery-main.is-swapping img,
.nuni-pd__gallery-main.is-swapping .nuni-pd__gallery-main-img {
	opacity: 0;
}
.nuni-pd__sale {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: var(--nuni-pd-r-pill);
}
.nuni-pd__sale--promo {
	background: var(--nuni-pd-green);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.nuni-pd__gallery-thumb {
	aspect-ratio: 1 / 1;
	background: var(--nuni-pd-card-bg);
	border-radius: var(--nuni-pd-r-sm);
	overflow: hidden;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: border-color var(--nuni-pd-dur-fast) ease;
	padding: 0;
	appearance: none;
}
.nuni-pd__gallery-thumb img {
	width: 100%; height: 100%; object-fit: cover;
}
.nuni-pd__gallery-thumb.is-active { border-color: var(--nuni-pd-ink); }
.nuni-pd__gallery-placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.4), transparent),
		var(--nuni-pd-sand-soft);
}

/* Info column */
.nuni-pd__info {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 8px;
}

.nuni-pd__tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: -8px;
}
.nuni-pd__tag {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nuni-pd-ink);
	background: rgba(28, 20, 12, 0.06);
	padding: 5px 12px 4px;
	border-radius: var(--nuni-pd-r-pill);
}
.nuni-pd__tag--new {
	background: var(--nuni-pd-sand);
}
.nuni-pd__tag--natural {
	background: rgba(47, 125, 91, 0.14);
	color: var(--nuni-pd-green);
}

.nuni-pd__title {
	font-weight: 400;
	font-size: clamp(40px, 4.4vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.005em;
	color: var(--nuni-pd-ink);
	margin: 0;
}
.nuni-pd__subtitle {
	font-size: 14px;
	line-height: 1.5;
	color: var(--nuni-pd-ink-2);
	margin: -6px 0 0;
	letter-spacing: 0.02em;
}

.nuni-pd__rating {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--nuni-pd-sand-deep);
	padding-right: 2px;
	flex-shrink: 0;
}
.nuni-pd__stars svg {
	width: 14px;
	height: 14px;
	fill: var(--nuni-pd-sand-soft);
	flex: 0 0 auto;
	overflow: visible;
}
.nuni-pd__star.is-full { fill: var(--nuni-pd-sand-deep); }
.nuni-pd__star.is-half {
	fill: url(#nuni-pd-half) var(--nuni-pd-sand-soft);
	background: linear-gradient(90deg, var(--nuni-pd-sand-deep) 50%, var(--nuni-pd-sand-soft) 50%);
	-webkit-background-clip: text;
}
/* Half-star fallback (no SVG gradient): use mask */
.nuni-pd__star.is-half {
	fill: var(--nuni-pd-sand-deep);
	clip-path: inset(0 50% 0 0);
}
.nuni-pd__rating strong { color: var(--nuni-pd-ink); font-weight: 600; }
.nuni-pd__rating a {
	color: var(--nuni-pd-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nuni-pd__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	margin-top: 4px;
}
.nuni-pd__price-current {
	font-weight: 400;
	font-size: 36px;
	line-height: 1;
	color: var(--nuni-pd-ink);
}
.nuni-pd__price-current .woocommerce-Price-amount,
.nuni-pd__price-current .amount {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	color: inherit;
}
.nuni-pd__price-current del {
	color: var(--nuni-pd-muted);
	margin-right: 8px;
	font-size: 0.72em;
}
.nuni-pd__price-current ins {
	text-decoration: none;
	color: var(--nuni-pd-ink);
}
.nuni-pd__price-unit {
	font-size: 12px;
	color: var(--nuni-pd-muted);
	letter-spacing: 0.04em;
}

.nuni-pd__campaign {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 48ch;
	margin: -2px 0 0;
}
.nuni-pd__campaign-note {
	width: 100%;
	color: var(--nuni-pd-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}
.nuni-pd__campaign-note p {
	margin: 0 0 8px;
}
.nuni-pd__campaign-note p:last-child {
	margin-bottom: 0;
}
.nuni-pd__campaign-note strong {
	color: var(--nuni-pd-ink);
	font-weight: 700;
}

.nuni-pd__lede {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--nuni-pd-ink-2);
	margin: 0;
	max-width: 48ch;
	text-wrap: pretty;
}

/* Field (size selector) */
.nuni-pd__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nuni-pd__field-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nuni-pd-muted);
}
.nuni-pd__field-label strong { color: var(--nuni-pd-ink); }

.nuni-pd__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
/* High-specificity + !important so theme `button:hover { background: <pink> }`
   can't bleed through onto the size / variation pills. */
.nuni-pd .nuni-pd__size,
.nuni-pd button.nuni-pd__size {
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	border: 1px solid var(--nuni-pd-line-2) !important;
	border-radius: var(--nuni-pd-r-pill) !important;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 13px;
	color: var(--nuni-pd-ink) !important;
	cursor: pointer;
	box-shadow: none !important;
	text-shadow: none;
	transition:
		border-color var(--nuni-pd-dur-fast) ease,
		background   var(--nuni-pd-dur-fast) ease,
		color        var(--nuni-pd-dur-fast) ease;
}
.nuni-pd .nuni-pd__size:hover,
.nuni-pd button.nuni-pd__size:hover,
.nuni-pd .nuni-pd__size:focus,
.nuni-pd button.nuni-pd__size:focus {
	background: rgba(28, 20, 12, 0.04) !important;
	border-color: var(--nuni-pd-ink) !important;
	color: var(--nuni-pd-ink) !important;
	outline: none;
}
.nuni-pd .nuni-pd__size:focus-visible,
.nuni-pd button.nuni-pd__size:focus-visible {
	outline: 2px solid var(--nuni-pd-sand-deep);
	outline-offset: 2px;
}
.nuni-pd .nuni-pd__size.is-active,
.nuni-pd button.nuni-pd__size.is-active,
.nuni-pd .nuni-pd__size.is-active:hover,
.nuni-pd button.nuni-pd__size.is-active:hover {
	background: var(--nuni-pd-ink) !important;
	border-color: var(--nuni-pd-ink) !important;
	color: var(--nuni-pd-card-bg) !important;
}
.nuni-pd__size.is-disabled {
	color: var(--nuni-pd-muted);
	text-decoration: line-through;
	cursor: not-allowed;
}

/* Buy row — selectors written wide so theme/WC rules don't knock our
   grid out (many themes set `form.cart` and `.quantity` to display:block
   or float, and style `.single_add_to_cart_button` as full-width pill).
   Dropping the `cart` class on the <form> reduces these collisions, but
   we keep these overrides anyway for safety. */
.nuni-pd form.nuni-pd__buy,
.nuni-pd .nuni-pd__buy,
.elementor-widget-nuni-product .nuni-pd .nuni-pd__buy {
	display: grid !important;
	grid-template-columns: 140px 1fr !important;
	gap: 10px;
	align-items: stretch;
	margin: 4px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	width: 100%;
	max-width: none;
	min-width: 0;
	box-shadow: none;
	float: none;
}
.nuni-pd .nuni-pd__buy::before,
.nuni-pd .nuni-pd__buy::after { content: none; display: none; }
/* The hidden add-to-cart input still belongs in the DOM but must never
   take a grid slot (some browsers paint it in flex/grid contexts even
   though spec says display:none excludes it). */
.nuni-pd .nuni-pd__buy input[type="hidden"] {
	display: none !important;
	grid-column: auto;
}
/* Theme/WC may try to make the quantity wrap full width or float. Pin it
   to the 140px column. */
.nuni-pd .nuni-pd__buy .nuni-pd__qty {
	grid-column: 1;
	width: 100%;
	max-width: 140px;
	min-width: 0;
	float: none;
	margin: 0;
}
.nuni-pd .nuni-pd__buy .nuni-pd__cta {
	grid-column: 2;
	margin: 0;
}
.nuni-pd__qty {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: 1px solid var(--nuni-pd-line-2);
	border-radius: var(--nuni-pd-r-pill);
	padding: 0 8px;
	height: 52px;
}
/* High-specificity rules with !important so theme/Elementor
   `button:hover { background: <accent> }` (often pink/magenta) cannot
   bleed through onto the +/- stepper buttons. */
.nuni-pd .nuni-pd__qty button,
.nuni-pd .nuni-pd__qty button[type="button"] {
	width: 36px; height: 36px;
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
	font: inherit;
	font-size: 18px;
	color: var(--nuni-pd-ink) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: none !important;
	text-shadow: none;
	transition: background var(--nuni-pd-dur-fast) ease, color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd .nuni-pd__qty button:hover,
.nuni-pd .nuni-pd__qty button:focus,
.nuni-pd .nuni-pd__qty button:active {
	background: rgba(28, 20, 12, 0.06) !important;
	color: var(--nuni-pd-ink) !important;
	border-color: transparent !important;
	outline: none;
}
.nuni-pd .nuni-pd__qty button:focus-visible {
	outline: 2px solid var(--nuni-pd-sand-deep);
	outline-offset: 2px;
}
.nuni-pd__qty input.qty {
	width: 30px;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	text-align: center;
	color: var(--nuni-pd-ink);
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	padding: 0;
}
.nuni-pd__qty input.qty::-webkit-outer-spin-button,
.nuni-pd__qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nuni-pd .nuni-pd__cta,
.nuni-pd button.nuni-pd__cta,
.nuni-pd .nuni-pd__cta.single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	border: 0;
	border-radius: var(--nuni-pd-r-pill);
	height: 52px;
	width: 100%;
	min-width: 0;
	padding: 0 28px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	line-height: 1;
	white-space: nowrap;
	transition: background var(--nuni-pd-dur-fast) ease, transform var(--nuni-pd-dur-fast) ease;
}
.nuni-pd .nuni-pd__cta::before,
.nuni-pd .nuni-pd__cta::after { content: none; display: none; }

/* ───── Variations (variable products) ─────
   The base `.nuni-pd__buy` is forced to a 140px + 1fr grid by the rule
   higher up in this file. That layout is right for simple products
   (qty | cta) but wrong for variable ones, where the form holds three
   stacked blocks (attrs / variation-info / qty+cta). Reset to block
   so each region flows naturally; the inner `.nuni-pd__buy-actions`
   becomes the qty+cta grid. */
.nuni-pd form.nuni-pd__buy.nuni-pd__buy--variable,
.nuni-pd .nuni-pd__buy.nuni-pd__buy--variable,
.elementor-widget-nuni-product .nuni-pd .nuni-pd__buy.nuni-pd__buy--variable {
	display: block !important;
	grid-template-columns: none !important;
}
.nuni-pd .nuni-pd__buy.nuni-pd__buy--variable > * {
	grid-column: auto !important;
}

/* Hide the native <select> visually but keep it in the accessibility tree
   so WC's `wc-add-to-cart-variation` script (which listens to select change
   events) still works. The visible pill UI drives it via JS. */
.nuni-pd .nuni-pd__attr-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
	opacity: 0;
	pointer-events: none;
}
.nuni-pd .nuni-pd__attrs {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 12px;
}
.nuni-pd .nuni-pd__field.is-shake {
	animation: nuniPdShake 460ms cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes nuniPdShake {
	10%, 90% { transform: translateX(-2px); }
	20%, 80% { transform: translateX(3px); }
	30%, 50%, 70% { transform: translateX(-6px); }
	40%, 60% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.nuni-pd .nuni-pd__field.is-shake { animation: none; }
}
.nuni-pd .nuni-pd__reset {
	margin: 4px 0 0;
	font-size: 12px;
	letter-spacing: 0.04em;
}
.nuni-pd .nuni-pd__reset a.reset_variations {
	color: var(--nuni-pd-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd .nuni-pd__reset a.reset_variations:hover {
	color: var(--nuni-pd-ink);
}
/* WC injects stock / SKU info here when a variant is picked. Keep it
   styled in our voice so the warm sand palette stays consistent. */
.nuni-pd .single_variation.woocommerce-variation {
	margin: 8px 0 4px;
	font-size: 13px;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd .single_variation .stock {
	margin: 0;
	font-weight: 600;
	color: var(--nuni-pd-green);
}
.nuni-pd .single_variation .stock.out-of-stock {
	color: var(--nuni-pd-sale, #C44D3E);
}
.nuni-pd .single_variation .price {
	display: none; /* the CTA already shows the price */
}
.nuni-pd .nuni-pd__buy-actions {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 10px;
	align-items: stretch;
}
@media (max-width: 700px) {
	.nuni-pd .nuni-pd__buy-actions {
		grid-template-columns: 110px 1fr;
	}
}
@media (max-width: 420px) {
	.nuni-pd .nuni-pd__buy-actions {
		grid-template-columns: 1fr;
	}
}
.nuni-pd .nuni-pd__cta > * { line-height: 1; }
.nuni-pd__cta:hover { background: var(--nuni-pd-sand-deep); }
.nuni-pd__cta:active { transform: scale(0.985); }
.nuni-pd .nuni-pd__cta:disabled,
.nuni-pd button.nuni-pd__cta:disabled,
.nuni-pd .nuni-pd__cta[disabled],
.nuni-pd button.nuni-pd__cta[disabled] {
	background: var(--nuni-pd-line-2) !important;
	cursor: not-allowed !important;
	color: var(--nuni-pd-page-bg) !important;
	opacity: 0.85;
	transform: none !important;
	box-shadow: none !important;
}
.nuni-pd .nuni-pd__cta:disabled:hover,
.nuni-pd button.nuni-pd__cta:disabled:hover {
	background: var(--nuni-pd-line-2) !important;
	transform: none !important;
}
.nuni-pd__cta.is-added { background: var(--nuni-pd-green); }
.nuni-pd__cta-price {
	font-size: 17px;
	font-weight: 400;
	opacity: 0.85;
}
.nuni-pd__cta-price::before {
	content: "·";
	margin: 0 4px;
	opacity: 0.6;
}
.nuni-pd__cta-price .woocommerce-Price-amount {
	font-family: inherit;
	font-weight: inherit;
	color: inherit;
}

/* Klarna */
.nuni-pd__klarna {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--nuni-pd-ink-2);
	margin-top: 4px;
}
.nuni-pd__klarna svg {
	width: 22px;
	height: 22px;
	color: var(--nuni-pd-ink);
}
.nuni-pd__klarna strong { color: var(--nuni-pd-ink); }

/* Highlights */
.nuni-pd__highlights {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 18px;
	padding: 20px 0 4px;
	margin-top: 12px;
	border-top: 1px solid var(--nuni-pd-line);
}
.nuni-pd__highlight {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__highlight svg {
	width: 18px;
	height: 18px;
	color: var(--nuni-pd-sand-deep);
	flex-shrink: 0;
	margin-top: 1px;
}
.nuni-pd__highlight strong { color: var(--nuni-pd-ink); font-weight: 600; }

/* Accordion in info column */
.nuni-pd__accordion {
	border-top: 1px solid var(--nuni-pd-line);
	margin-top: 14px;
}
.nuni-pd__accordion details {
	border-bottom: 1px solid var(--nuni-pd-line);
}
.nuni-pd__accordion summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nuni-pd-ink);
	transition: color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__accordion summary::-webkit-details-marker { display: none; }
.nuni-pd__accordion summary:hover { color: var(--nuni-pd-sand-deep); }
.nuni-pd__accordion summary svg {
	width: 14px; height: 14px;
	transition: transform var(--nuni-pd-dur) var(--nuni-pd-ease);
}
.nuni-pd__accordion details[open] summary svg { transform: rotate(45deg); }
.nuni-pd__accordion-body {
	padding: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--nuni-pd-ink-2);
	max-width: 56ch;
}
.nuni-pd__accordion-body p { margin: 0 0 10px; }
.nuni-pd__accordion-body p:last-child { margin-bottom: 0; }
.nuni-pd__accordion-body strong { color: var(--nuni-pd-ink); font-weight: 600; }
.nuni-pd__description-body > *:first-child { margin-top: 0; }
.nuni-pd__description-body > *:last-child { margin-bottom: 0; }
.nuni-pd__description-body h2,
.nuni-pd__description-body h3,
.nuni-pd__description-body h4,
.nuni-pd__description-body h5,
.nuni-pd__description-body h6 {
	color: var(--nuni-pd-ink);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	margin: 20px 0 10px;
}
.nuni-pd__description-body h2 { font-size: 20px; }
.nuni-pd__description-body h3 { font-size: 16px; }
.nuni-pd__description-body h4,
.nuni-pd__description-body h5,
.nuni-pd__description-body h6 { font-size: 14px; }
.nuni-pd__description-body ul,
.nuni-pd__description-body ol {
	margin: 0 0 14px;
	padding-left: 22px;
}
.nuni-pd__description-body li {
	margin: 0 0 8px;
	padding-left: 2px;
}
.nuni-pd__description-body li:last-child { margin-bottom: 0; }
.nuni-pd__description-body em {
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__description-body blockquote {
	margin: 14px 0;
	padding: 2px 0 2px 16px;
	border-left: 2px solid var(--nuni-pd-sand-deep);
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__description-body a {
	color: var(--nuni-pd-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ───── Section header (shared) ───── */
.nuni-pd__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	/* WCAG AA — bronze (#B07A2E) failed 4.5:1 on the warm cream backgrounds.
	   `--nuni-pd-muted` (#6B5B47) hits ~5:1 on both --nuni-pd-page-bg and
	   --nuni-pd-card-bg while staying in the brand's warm sand family. */
	color: var(--nuni-pd-muted);
	margin: 0 0 12px;
	text-align: center;
}
.nuni-pd__section-title {
	font-weight: 400;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.005em;
	color: var(--nuni-pd-ink);
	margin: 0;
	text-align: center;
}

/* ───── FAQ ───── */
.nuni-pd__faq {
	background: var(--nuni-pd-card-bg);
	color: var(--nuni-pd-ink);
	padding: clamp(56px, 6vw, 88px) 56px;
	/* Full-viewport-width background via box-shadow + clip-path. Avoids
	   horizontal overflow that 100vw pseudos cause on pages with a
	   vertical scrollbar (since 100vw includes the scrollbar gutter). */
	box-shadow: 0 0 0 100vmax var(--nuni-pd-card-bg);
	clip-path: inset(0 -100vmax);
}
.nuni-pd__faq-inner {
	max-width: 820px;
	margin: 0 auto;
}
.nuni-pd__faq-header {
	text-align: center;
	margin-bottom: clamp(32px, 3.5vw, 48px);
}

.nuni-pd__faq-list {
	border-top: 1px solid var(--nuni-pd-line);
}
.nuni-pd__faq-list details {
	border-bottom: 1px solid var(--nuni-pd-line);
}
.nuni-pd__faq-list summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 8px 22px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	font-size: 16px;
	font-weight: 600;
	color: var(--nuni-pd-ink);
	transition: color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__faq-list summary::-webkit-details-marker { display: none; }
.nuni-pd__faq-list summary:hover { color: var(--nuni-pd-sand-deep); }
.nuni-pd__faq-num {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	/* WCAG AA — bronze fails 4.5:1 on the FAQ card surface (#F4ECDD).
	   --nuni-pd-ink-2 (#4A3C2C) yields ~9:1, well above AA. */
	color: var(--nuni-pd-ink-2);
	margin-right: 14px;
}
.nuni-pd__faq-icon {
	width: 28px;
	height: 28px;
	border: 1px solid var(--nuni-pd-line-2);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nuni-pd-ink);
	flex-shrink: 0;
	transition:
		background    var(--nuni-pd-dur-fast) ease,
		border-color  var(--nuni-pd-dur-fast) ease,
		color         var(--nuni-pd-dur-fast) ease,
		transform     var(--nuni-pd-dur) var(--nuni-pd-ease);
}
.nuni-pd__faq-icon svg { width: 12px; height: 12px; }
.nuni-pd__faq-list summary:hover .nuni-pd__faq-icon {
	background: var(--nuni-pd-ink);
	border-color: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__faq-list details[open] .nuni-pd__faq-icon {
	background: var(--nuni-pd-ink);
	border-color: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	transform: rotate(45deg);
}
.nuni-pd__faq-q { flex: 1; text-wrap: pretty; }
.nuni-pd__faq-body {
	padding: 0 50px 24px 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--nuni-pd-ink-2);
	max-width: 64ch;
	text-wrap: pretty;
}
.nuni-pd__faq-body p { margin: 0 0 12px; }
.nuni-pd__faq-body p:last-child { margin-bottom: 0; }
.nuni-pd__faq-body strong { color: var(--nuni-pd-ink); font-weight: 600; }

.nuni-pd__faq-conds {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 24px;
	margin: 14px 0 16px;
	padding: 0;
	list-style: none;
}
.nuni-pd__faq-conds li {
	font-size: 14px;
	padding-left: 16px;
	position: relative;
	line-height: 1.55;
}
.nuni-pd__faq-conds li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.72em;
	width: 8px;
	height: 1px;
	background: var(--nuni-pd-sand-deep);
}
.nuni-pd__faq-callout {
	background: var(--nuni-pd-soft-bg);
	border: 1px solid var(--nuni-pd-line);
	border-radius: var(--nuni-pd-r-md);
	padding: 16px 18px;
	font-size: 14px;
	line-height: 1.6;
	margin-top: 12px;
}
.nuni-pd__faq-usecards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}
.nuni-pd__use-card {
	background: var(--nuni-pd-soft-bg);
	border: 1px solid var(--nuni-pd-line);
	border-radius: var(--nuni-pd-r-md);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nuni-pd__use-card h4 {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nuni-pd-sand-deep);
	margin: 0;
}
.nuni-pd__use-card p {
	font-size: 13.5px;
	line-height: 1.55;
	margin: 0;
	color: var(--nuni-pd-ink-2);
}

/* ───── Reviews ───── */
.nuni-pd__reviews {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(64px, 6vw, 96px) 56px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.nuni-pd__reviews-header { text-align: center; }
.nuni-pd__reviews-summary {
	display: grid;
	grid-template-columns: minmax(260px, 320px) 1fr;
	gap: 40px;
	align-items: center;
	background: var(--nuni-pd-card-bg);
	border-radius: var(--nuni-pd-r-md);
	padding: 36px 40px;
}
.nuni-pd__reviews-score {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}
.nuni-pd__reviews-score-num {
	font-size: 64px;
	line-height: 1;
	color: var(--nuni-pd-ink);
	font-variant-numeric: tabular-nums;
}
.nuni-pd__reviews-score .nuni-pd__stars svg {
	width: 20px;
	height: 20px;
}
.nuni-pd__reviews-score-count {
	font-size: 13px;
	color: var(--nuni-pd-muted);
}
.nuni-pd__reviews-score-count strong { color: var(--nuni-pd-ink); }
.nuni-pd__reviews-cta {
	margin-top: 8px;
	appearance: none;
	background: transparent;
	cursor: pointer;
	font: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--nuni-pd-ink);
	border-radius: var(--nuni-pd-r-pill);
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--nuni-pd-ink);
	transition: background var(--nuni-pd-dur-fast) ease, color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__reviews-cta:hover {
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__reviews-cta svg { width: 14px; height: 14px; }

.nuni-pd__reviews-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.nuni-pd__bar-row {
	display: grid;
	grid-template-columns: 36px 1fr 36px;
	align-items: center;
	gap: 14px;
	font-size: 12.5px;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__bar-label {
	font-weight: 600;
	color: var(--nuni-pd-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
.nuni-pd__bar-track {
	height: 8px;
	border-radius: 999px;
	background: rgba(28, 20, 12, 0.08);
	overflow: hidden;
	display: block;
}
.nuni-pd__bar-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--nuni-pd-sand-deep), #C99655);
	border-radius: inherit;
	transition: width var(--nuni-pd-dur) var(--nuni-pd-ease);
}
.nuni-pd__bar-count {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--nuni-pd-muted);
}

.nuni-pd__reviews-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.nuni-pd__review {
	background: var(--nuni-pd-soft-bg);
	border: 1px solid var(--nuni-pd-line);
	border-radius: var(--nuni-pd-r-md);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nuni-pd__review-head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.nuni-pd__review-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nuni-pd-sand-soft);
	flex-shrink: 0;
}
.nuni-pd__review-name {
	font-weight: 600;
	color: var(--nuni-pd-ink);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nuni-pd__review-verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: var(--nuni-pd-green);
	color: #fff;
	border-radius: 50%;
}
.nuni-pd__review-verified svg { width: 10px; height: 10px; }
.nuni-pd__review-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--nuni-pd-muted);
}
.nuni-pd__review-meta .nuni-pd__stars svg { width: 12px; height: 12px; }
.nuni-pd__review-body {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__review-body p { margin: 0 0 10px; }
.nuni-pd__review-body p:last-child { margin-bottom: 0; }

.nuni-pd__reviews-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--nuni-pd-muted);
	padding: 32px 0;
	border: 1px dashed var(--nuni-pd-line-2);
	border-radius: var(--nuni-pd-r-md);
}

.nuni-pd__review-form {
	background: var(--nuni-pd-card-bg);
	border-radius: var(--nuni-pd-r-md);
	padding: 28px 32px;
	margin: 0 0 32px;
}
.nuni-pd__review-form[hidden] { display: none; }

/* `comments_template()` injects WooCommerce's native review list + heading
   inside the wrapper. We already render our own card grid below, so
   suppress the duplicate and keep only the comment form. */
.nuni-pd__review-form .commentlist,
.nuni-pd__review-form ol.commentlist,
.nuni-pd__review-form .woocommerce-noreviews,
.nuni-pd__review-form .woocommerce-Reviews-title,
.nuni-pd__review-form .woocommerce-pagination,
.nuni-pd__review-form #comments > h2,
.nuni-pd__review-form #comments > .woocommerce-Reviews,
.nuni-pd__review-form p.no-comments {
	display: none !important;
}
.nuni-pd__review-form #comments,
.nuni-pd__review-form #reviews { padding: 0; margin: 0; background: transparent; border: 0; }

/* Form headline ("Lägg till en recension") */
.nuni-pd__review-form #review_form_wrapper,
.nuni-pd__review-form #review_form,
.nuni-pd__review-form #respond {
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
}
.nuni-pd__review-form .comment-reply-title,
.nuni-pd__review-form #reply-title {
	display: block;
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 6px;
	color: var(--nuni-pd-ink);
}
.nuni-pd__review-form .comment-notes,
.nuni-pd__review-form .logged-in-as {
	font-size: 13px;
	color: var(--nuni-pd-muted);
	margin: 0 0 18px;
}

/* Star rating picker — WooCommerce renders `<p class="stars">` with anchors */
.nuni-pd__review-form .comment-form-rating {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}
.nuni-pd__review-form .comment-form-rating label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nuni-pd-muted);
}
.nuni-pd__review-form .stars {
	margin: 0;
	display: inline-flex;
	gap: 4px;
	font-size: 20px;
	line-height: 1;
}
.nuni-pd__review-form .stars > span { display: inline-flex; gap: 4px; }
.nuni-pd__review-form .stars a {
	color: var(--nuni-pd-sand-soft);
	text-decoration: none;
	transition: color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__review-form .stars a::before { content: "★"; }
.nuni-pd__review-form .stars a span { display: none; }
.nuni-pd__review-form .stars a.active,
.nuni-pd__review-form .stars.selected a:not(.active),
.nuni-pd__review-form .stars:hover a { color: var(--nuni-pd-sand-soft); }
.nuni-pd__review-form .stars a:hover,
.nuni-pd__review-form .stars a:hover ~ a {
	/* invert: hovered + following dim, preceding light */
}
.nuni-pd__review-form .stars a.active,
.nuni-pd__review-form .stars.selected a.active,
.nuni-pd__review-form .stars.selected a.active ~ a { color: var(--nuni-pd-sand-deep); }
.nuni-pd__review-form .stars:hover a { color: var(--nuni-pd-sand-deep); }
.nuni-pd__review-form .stars a:hover ~ a { color: var(--nuni-pd-sand-soft); }

/* Inputs */
.nuni-pd__review-form p {
	margin: 0 0 14px;
}
.nuni-pd__review-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--nuni-pd-muted);
}
.nuni-pd__review-form input[type="text"],
.nuni-pd__review-form input[type="email"],
.nuni-pd__review-form input[type="url"],
.nuni-pd__review-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nuni-pd-line-2);
	border-radius: var(--nuni-pd-r-sm);
	background: var(--nuni-pd-soft-bg);
	font: inherit;
	font-size: 14.5px;
	color: var(--nuni-pd-ink);
	transition: border-color var(--nuni-pd-dur-fast) ease, background var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__review-form textarea {
	min-height: 120px;
	resize: none;
	overflow: auto;
}
/* Hide the textarea scrollbar until content actually overflows. Some
   themes force a default scrollbar gutter which reads as a permanent
   thin vertical scrollbar. */
.nuni-pd__review-form textarea:not(:focus) { overflow: hidden; }
.nuni-pd__review-form input:focus,
.nuni-pd__review-form textarea:focus {
	outline: 0;
	border-color: var(--nuni-pd-ink);
	background: #fff;
}

/* Cookie / consent rows */
.nuni-pd__review-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__review-form .comment-form-cookies-consent label {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--nuni-pd-ink-2);
}
.nuni-pd__review-form input[type="checkbox"] {
	accent-color: var(--nuni-pd-ink);
}

/* Submit — written wide so theme/WC's button rules don't override */
.nuni-pd__review-form .form-submit { margin: 18px 0 0; }
.nuni-pd .nuni-pd__review-form input[type="submit"],
.nuni-pd .nuni-pd__review-form button[type="submit"],
.nuni-pd .nuni-pd__review-form .submit,
.nuni-pd .nuni-pd__review-form input.submit,
.nuni-pd .nuni-pd__review-form button.submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--nuni-pd-ink) !important;
	color: var(--nuni-pd-card-bg) !important;
	border: 0 !important;
	border-radius: var(--nuni-pd-r-pill) !important;
	height: 48px;
	padding: 0 28px !important;
	font: inherit;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	text-transform: none !important;
	text-decoration: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: background var(--nuni-pd-dur-fast) ease;
	min-width: 160px;
}
.nuni-pd .nuni-pd__review-form input[type="submit"]:hover,
.nuni-pd .nuni-pd__review-form button[type="submit"]:hover,
.nuni-pd .nuni-pd__review-form .submit:hover {
	background: var(--nuni-pd-sand-deep) !important;
}

/* Pagination */
.nuni-pd__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--nuni-pd-line);
}
.nuni-pd__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--nuni-pd-ink);
	text-decoration: none;
	border: 1px solid var(--nuni-pd-line-2);
	background: transparent;
	transition:
		background var(--nuni-pd-dur-fast) ease,
		color var(--nuni-pd-dur-fast) ease,
		border-color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__pagination .page-numbers svg { width: 14px; height: 14px; }
.nuni-pd__pagination .page-numbers.current {
	background: var(--nuni-pd-ink);
	border-color: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__pagination a.page-numbers:hover {
	background: var(--nuni-pd-ink);
	border-color: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	color: var(--nuni-pd-muted);
}
.nuni-pd__review-form .comment-reply-title {
	font-weight: 400;
	font-size: 28px;
	margin: 0 0 16px;
	color: var(--nuni-pd-ink);
}
.nuni-pd__review-form .comment-form-rating,
.nuni-pd__review-form .comment-form-author,
.nuni-pd__review-form .comment-form-email,
.nuni-pd__review-form .comment-form-comment {
	margin-bottom: 14px;
}
.nuni-pd__review-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nuni-pd-muted);
}
.nuni-pd__review-form input[type="text"],
.nuni-pd__review-form input[type="email"],
.nuni-pd__review-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--nuni-pd-line-2);
	border-radius: var(--nuni-pd-r-sm);
	background: var(--nuni-pd-soft-bg);
	font: inherit;
	color: var(--nuni-pd-ink);
	transition: border-color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__review-form input:focus,
.nuni-pd__review-form textarea:focus {
	outline: 0;
	border-color: var(--nuni-pd-ink);
}
.nuni-pd__review-form .submit,
.nuni-pd__review-form input[type="submit"] {
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	border: 0;
	padding: 12px 24px;
	border-radius: var(--nuni-pd-r-pill);
	font: inherit;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__review-form .submit:hover,
.nuni-pd__review-form input[type="submit"]:hover {
	background: var(--nuni-pd-sand-deep);
}

/* ───── Related ───── */
.nuni-pd__related {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(56px, 6vw, 96px) 56px;
}
.nuni-pd__related-head {
	text-align: center;
	margin-bottom: 32px;
}
.nuni-pd__related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.nuni-pd__related-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform var(--nuni-pd-dur) var(--nuni-pd-ease);
}
.nuni-pd__related-card:hover { transform: translateY(-3px); }
.nuni-pd__related-img {
	aspect-ratio: 3 / 4;
	background-color: var(--nuni-pd-sand-soft);
	border-radius: var(--nuni-pd-r-md);
	position: relative;
	overflow: hidden;
}
.nuni-pd__related-img-el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.nuni-pd__related-flag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: var(--nuni-pd-r-pill);
}
.nuni-pd__related-name {
	margin: 0;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--nuni-pd-ink);
}
.nuni-pd__related-price {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--nuni-pd-ink);
}
.nuni-pd__related-price del { color: var(--nuni-pd-muted); margin-right: 6px; font-weight: 400; }
.nuni-pd__related-price ins { text-decoration: none; }
.nuni-pd__related-empty {
	text-align: center;
	color: var(--nuni-pd-muted);
}

/* ───── IG callout ───── */
.nuni-pd__ig {
	background: var(--nuni-pd-bg);
	padding: clamp(64px, 6.5vw, 96px) 56px;
	/* Same full-bleed technique as the FAQ — no 100vw overflow. */
	box-shadow: 0 0 0 100vmax var(--nuni-pd-bg);
	clip-path: inset(0 -100vmax);
}
.nuni-pd__ig-inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.nuni-pd__ig-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.nuni-pd__ig-icon svg { width: 22px; height: 22px; }
.nuni-pd__ig-title {
	font-weight: 400;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.1;
	color: var(--nuni-pd-ink);
	margin: 0;
	max-width: 18ch;
	text-wrap: pretty;
}
.nuni-pd__ig-body {
	font-size: 15px;
	line-height: 1.65;
	color: var(--nuni-pd-ink-2);
	margin: 0;
	max-width: 48ch;
}
.nuni-pd__ig-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--nuni-pd-ink);
	border: 1.5px solid var(--nuni-pd-ink);
	padding: 12px 24px;
	border-radius: var(--nuni-pd-r-pill);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background var(--nuni-pd-dur-fast) ease, color var(--nuni-pd-dur-fast) ease;
}
.nuni-pd__ig-cta:hover {
	background: var(--nuni-pd-ink);
	color: var(--nuni-pd-card-bg);
}
.nuni-pd__ig-cta svg { width: 14px; height: 14px; }

/* ───── Empty state (editor) ───── */
.nuni-pd--empty {
	padding: 32px;
	border: 1px dashed var(--nuni-pd-line-2);
	border-radius: var(--nuni-pd-r-md);
	color: var(--nuni-pd-muted);
	text-align: center;
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
	.nuni-pd__hero { grid-template-columns: 1fr; }
	.nuni-pd__gallery { position: static; }
	.nuni-pd__reviews-summary { grid-template-columns: 1fr; gap: 24px; }
	.nuni-pd__reviews-list { grid-template-columns: 1fr; }
	.nuni-pd__related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.nuni-pd__crumbs { padding: 18px 20px; font-size: 11px; gap: 8px; }
	.nuni-pd__hero { padding: 0 20px 64px; gap: 32px; }
	.nuni-pd__faq { padding: 48px 20px; }
	.nuni-pd__reviews { padding: 48px 20px; }
	.nuni-pd__reviews-summary { padding: 24px 20px; }
	.nuni-pd__related { padding: 48px 20px; }
	.nuni-pd__ig { padding: 56px 20px; }
	.nuni-pd__buy { grid-template-columns: 110px 1fr; }
	/* Allow the CTA label/price to wrap onto a second line on narrow
	   screens rather than overflow the rounded pill. */
	.nuni-pd .nuni-pd__cta {
		white-space: normal;
		flex-wrap: wrap;
		padding: 0 18px;
		min-height: 52px;
		height: auto;
		line-height: 1.2;
		row-gap: 2px;
	}
	.nuni-pd__cta-price::before { margin: 0 6px; }
	.nuni-pd__highlights { grid-template-columns: 1fr; gap: 10px; }
	.nuni-pd__faq-conds { grid-template-columns: 1fr; }
	.nuni-pd__faq-usecards { grid-template-columns: 1fr; }
	.nuni-pd__faq-list summary { font-size: 15px; padding: 18px 4px 18px 0; }
	.nuni-pd__faq-body { padding-right: 0; }
	.nuni-pd__title { font-size: 36px; }
	.nuni-pd__price-current { font-size: 30px; }
	.nuni-pd__cta { padding: 0 20px; font-size: 13px; }
	.nuni-pd__cta-price { font-size: 15px; }
}

/* Very narrow phones (≤420px): stack qty stepper above the CTA so the
   "Lägg i varukorgen · 189 kr" label has the full width and never clips. */
@media (max-width: 420px) {
	.nuni-pd form.nuni-pd__buy,
	.nuni-pd .nuni-pd__buy,
	.elementor-widget-nuni-product .nuni-pd .nuni-pd__buy {
		grid-template-columns: 1fr !important;
		gap: 10px;
	}
	.nuni-pd .nuni-pd__buy .nuni-pd__qty {
		grid-column: 1;
		max-width: none;
		width: 100%;
		justify-content: space-between;
	}
	.nuni-pd .nuni-pd__buy .nuni-pd__cta {
		grid-column: 1;
		width: 100%;
	}
}

/* =========================================================
   WPC Product Bundles (woosb) — Nuni-styled
   Philosophy: don't fight WPC's own layout, just paint Nuni styling
   on top of it. WPC already lays out `.woosb-product` as a flex row
   `[.woosb-thumb 50px] [.woosb-title flex-grow:1] [.woosb-quantity 80px]`
   and we just want to style the box around it (card background, border,
   spacing). Avoid `display:` or `justify-content:` overrides that
   would clobber the per-item layout WPC's frontend.js relies on.

   Markup verified against a live render of product 111958:
     .nuni-pd__buy--bundle  (our wrapper)
       .woosb-wrap            outer container
         .woosb-products        items list
           .woosb-product         single item row (WPC flex layout)
             .woosb-thumb           thumbnail (50px) — shown when "Visa miniatyr: Ja"
             .woosb-title           name + availability column
               .woosb-name a          linked item title
               .woosb-availability    stock note (often empty)
             .woosb-quantity        qty controls (WPC sets width:80px)
               .woosb-quantity-input  pill wrapping +/-/input
         .woosb-alert.woosb-text    validation message
         .woosb-after-text.woosb-text editor-configured tip text
       form.cart              main add-to-cart form (sibling, NOT child of .woosb-wrap)
         .quantity > input.qty  bundle-level qty
         .single_add_to_cart_button[.woosb-disabled]  primary CTA

   WPC's relevant own CSS we're working with:
     .woosb-wrap        { display:block; width:100%; clear:both; }
     .woosb-products    { border-width:1px 0 0 0; border-style:dotted; }
     .woosb-product     { display:flex; align-items:center; padding:10px 0;
                          border-bottom:1px dotted #e5e5e5; }
     .woosb-title       { flex-grow:1; text-align:start; }
     .woosb-name        { display:block; overflow:hidden; }
     .woosb-thumb       { width:50px; flex:0 0 50px; }
     .woosb-quantity    { width:80px; flex:0 0 80px; }
     .woosb-alert       { padding:6px 10px 6px 14px;
                          border-left:4px solid #222;
                          background:#eeeeee; font-size:14px; }
   ========================================================= */
/* Outer wrapper — direct children stack vertically (items wrap, then
   alert, then after-text, then form). MUST use the same specificity
   pattern as the base `.nuni-pd__buy` rule above (line ~394), which
   forces `display: grid; grid-template-columns: 140px 1fr` and would
   otherwise cram the bundle into a 140px left column. Both rules use
   !important so specificity decides — match `.elementor-widget-nuni-product
   .nuni-pd .nuni-pd__buy` (0,0,3,0) plus the bundle modifier (0,0,4,0). */
.elementor-widget-nuni-product .nuni-pd .nuni-pd__buy.nuni-pd__buy--bundle,
.nuni-pd .nuni-pd__buy.nuni-pd__buy--bundle,
.nuni-pd__buy.nuni-pd__buy--bundle,
.nuni-pd__buy--bundle {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}
.elementor-widget-nuni-product .nuni-pd .nuni-pd__buy.nuni-pd__buy--bundle > *,
.nuni-pd__buy--bundle > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
}

/* WPC's .woosb-wrap is display:block + width:100% + clear:both — keep
   that, just add column flex for the inner items/alert/after-text gap. */
.nuni-pd__buy--bundle .woosb-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Drop WPC's dotted top-border on the items list, add our own gap. */
.nuni-pd__buy--bundle .woosb-products {
  border: 0 !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Per-item row — let WPC's display:flex + align-items:center work as-is.
   We only add the Nuni card chrome (background, border, padding, radius)
   and kill WPC's dotted bottom-border. */
.nuni-pd__buy--bundle .woosb-products .woosb-product {
  /* Brute-force the layout: explicit display + width + flex behaviour with
     !important on every property that could collapse the row. WPC's
     frontend.js sometimes mutates inline styles on these elements; this
     defeats that. */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 1px solid var(--nuni-pd-line, rgba(28, 20, 12, 0.12)) !important;
  border-radius: 10px !important;
  background: var(--nuni-pd-card-bg, #F4ECDD) !important;
  gap: 12px !important;
}

/* Thumbnail. WPC's actual markup is:
     .woosb-thumb > a > .woosb-thumb-ori > img
   plus an empty .woosb-thumb-new sibling (for variation swap). We need
   to size every wrapper to 100% so the img can `object-fit: cover` the
   full 48×48 box. Without this, the inner divs collapse to content size
   and the image renders tiny inside a mostly-empty white tile. */
.nuni-pd__buy--bundle .woosb-product .woosb-thumb {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: transparent !important;
  position: relative;
}
.nuni-pd__buy--bundle .woosb-product .woosb-thumb > a,
.nuni-pd__buy--bundle .woosb-product .woosb-thumb .woosb-thumb-ori {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}
.nuni-pd__buy--bundle .woosb-product .woosb-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px !important;
}
/* .woosb-thumb-new is an empty placeholder used for variation image swap
   on variable products; hide it so it doesn't grab layout space. */
.nuni-pd__buy--bundle .woosb-product .woosb-thumb .woosb-thumb-new {
  display: none !important;
}

/* Title block — explicit flex-grow so it expands and pushes qty right.
   WPC sets flex-grow:1 in its own CSS but specificity can collide; force it. */
.nuni-pd__buy--bundle .woosb-product .woosb-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 4px;
  text-align: start !important;
}
.nuni-pd__buy--bundle .woosb-product .woosb-name {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--nuni-pd-ink, #2A1F14) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin: 0;
}
.nuni-pd__buy--bundle .woosb-product .woosb-name a {
  color: var(--nuni-pd-ink, #2A1F14) !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
.nuni-pd__buy--bundle .woosb-product .woosb-name a:hover {
  text-decoration: underline !important;
}
.nuni-pd__buy--bundle .woosb-product .woosb-availability {
  font-size: 12px;
  color: var(--nuni-pd-muted, #6B5B47);
  line-height: 1.4;
  margin-top: 2px;
}
.nuni-pd__buy--bundle .woosb-product .woosb-availability:empty {
  display: none;
}

/* Per-item qty column — WPC sets width:80px. Let it ride, just align right. */
.nuni-pd__buy--bundle .woosb-product .woosb-quantity {
  text-align: right;
}

/* Per-item +/- pill. The site's customizer CSS sets these at 22×26 with
   `!important` — that's too small to look intentional in the Nuni
   design, so we use !important + higher specificity to beat it. */
.nuni-pd__buy--bundle .woosb-quantity-input {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--nuni-pd-line, rgba(28, 20, 12, 0.2)) !important;
  border-radius: 999px !important;
  background: #FFF !important;
  overflow: hidden !important;
  height: 34px !important;
  padding: 0 !important;
  gap: 0 !important;
}
.nuni-pd__buy--bundle .woosb-quantity-input .woosb-quantity-input-minus,
.nuni-pd__buy--bundle .woosb-quantity-input .woosb-quantity-input-plus {
  width: 30px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--nuni-pd-ink, #2A1F14) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.nuni-pd__buy--bundle .woosb-quantity-input .woosb-quantity-input-minus:hover,
.nuni-pd__buy--bundle .woosb-quantity-input .woosb-quantity-input-plus:hover {
  background: var(--nuni-pd-card-bg, #F4ECDD) !important;
  color: var(--nuni-pd-ink, #2A1F14) !important;
}
.nuni-pd__buy--bundle .woosb-quantity-input .quantity {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  border-left: 1px solid var(--nuni-pd-line, rgba(28, 20, 12, 0.12));
  border-right: 1px solid var(--nuni-pd-line, rgba(28, 20, 12, 0.12));
  height: 100%;
}
.nuni-pd__buy--bundle .woosb-quantity-input input.woosb-qty,
.nuni-pd__buy--bundle .woosb-quantity-input input.woosb_qty,
.nuni-pd__buy--bundle .woosb-quantity-input input.qty,
.nuni-pd__buy--bundle .woosb-quantity-input input[type="number"] {
  width: 36px !important;
  height: 34px !important;
  line-height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--nuni-pd-ink, #2A1F14) !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  padding: 0 !important;
  margin: 0 !important;
}
.nuni-pd__buy--bundle .woosb-quantity-input input::-webkit-outer-spin-button,
.nuni-pd__buy--bundle .woosb-quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* WPC validation alert — replace plugin's gray box with a Nuni red. */
.nuni-pd__buy--bundle .woosb-alert,
.nuni-pd__buy--bundle .woosb-alert.woosb-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  color: #8B2D2D;
  background: rgba(139, 45, 45, 0.06) !important;
  border: 1px solid rgba(139, 45, 45, 0.15) !important;
  border-left: 1px solid rgba(139, 45, 45, 0.15) !important;
  border-radius: 8px;
  padding: 10px 12px !important;
  margin: 0;
  line-height: 1.45;
}

/* Editor-configured "Mixa mellan produkterna…" tip. */
.nuni-pd__buy--bundle .woosb-after-text,
.nuni-pd__buy--bundle .woosb-after-text.woosb-text,
.nuni-pd__buy--bundle .woosb-before-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  color: var(--nuni-pd-muted, #6B5B47);
  line-height: 1.5;
  margin: 0;
  padding: 0 2px;
  font-style: italic;
}

/* Main bundle add-to-cart form — sibling of .woosb-wrap, must stack
   BELOW it as its own row. Force block + clear to defeat any inherited
   float context from the theme/Elementor wrapper. */
.nuni-pd__buy--bundle form.cart {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
  width: 100% !important;
  clear: both;
  float: none !important;
}

/* Hide the WC default bundle-level qty input. For mix-and-match bundles
   the per-item counters drive the cart contents; the main "buy N bundles"
   qty is redundant and confuses customers (they'd think it multiplies the
   bundle, not the items). We keep the input in the DOM (form submit still
   needs a value) and just hide it visually — WC injects value="1" by
   default which is what we want for a single-bundle purchase. */
.nuni-pd__buy--bundle form.cart > .quantity {
  display: none !important;
}

/* The bundle's main CTA — match .nuni-pd__cta. */
.nuni-pd__buy--bundle .single_add_to_cart_button,
.nuni-pd__buy--bundle button.alt {
  display: block;
  width: 100% !important;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  background: var(--nuni-pd-ink, #2A1F14) !important;
  border: 1.5px solid var(--nuni-pd-ink, #2A1F14) !important;
  color: var(--nuni-pd-card-bg, #F4ECDD) !important;
  font-family: 'Gilroy', 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  cursor: pointer;
  text-align: center;
  margin: 0 !important;
  transition: background .22s ease, color .22s ease, transform .15s ease, opacity .22s ease;
}
.nuni-pd__buy--bundle .single_add_to_cart_button:hover:not(.woosb-disabled):not(:disabled):not([disabled]),
.nuni-pd__buy--bundle button.alt:hover:not(:disabled):not([disabled]) {
  background: var(--nuni-pd-muted, #6B5B47) !important;
  border-color: var(--nuni-pd-muted, #6B5B47) !important;
  transform: translateY(-1px);
}
/* WPC adds `.woosb-disabled` until bundle constraints (min/max items)
   are met. Mirror native :disabled visually. */
.nuni-pd__buy--bundle .single_add_to_cart_button.woosb-disabled,
.nuni-pd__buy--bundle .single_add_to_cart_button:disabled,
.nuni-pd__buy--bundle .single_add_to_cart_button[disabled],
.nuni-pd__buy--bundle button.alt:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Tighter at narrow widths — drop padding, slim the thumb. */
@media (max-width: 520px) {
  .nuni-pd__buy--bundle .woosb-products .woosb-product {
    gap: 10px;
    padding: 8px 10px !important;
  }
  .nuni-pd__buy--bundle .woosb-product .woosb-thumb {
    width: 40px !important;
    height: 40px;
    flex: 0 0 40px !important;
  }
  .nuni-pd__buy--bundle .woosb-product .woosb-name {
    font-size: 13.5px;
  }
}
