/* =========================================================
   North Pure Nutrition — Child Theme
   Nordisch, kuehl, hoher Kontrast. Keine Schatten-Orgien,
   keine Verlaeufe: jedes Byte muss sich rechtfertigen.
   ========================================================= */

:root {
	--npn-ink:        #10161f;
	--npn-ink-soft:   #4a5462;
	--npn-accent:     #16b87c;
	--npn-accent-dk:  #0e9463;
	--npn-sand:       #f6f7f5;
	--npn-line:       #e3e6e3;
	--npn-white:      #ffffff;
	--npn-warn:       #b8481f;

	--npn-radius:     8px;
	--npn-gap:        clamp(12px, 2vw, 20px);
}

/* ---------------------------------------------------------
   1. Preis pro Portion
   Der Grundpreis kommt von Germanized und steht darueber.
   Hier bewusst kleiner gesetzt, damit die Hierarchie stimmt:
   Preis > Grundpreis > Preis pro Portion.
   --------------------------------------------------------- */

.npn-pps {
	margin: 2px 0 10px;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--npn-ink-soft);
}

.npn-pps__amount {
	font-weight: 700;
	color: var(--npn-ink);
}

.npn-pps--loop {
	font-size: 0.8125rem;
	margin-bottom: 4px;
}

/* ---------------------------------------------------------
   2. Trust-Zeile unter dem Kaufbutton
   --------------------------------------------------------- */

.npn-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px var(--npn-gap);
	margin: 18px 0 0;
	padding: 16px;
	list-style: none;
	background: var(--npn-sand);
	border-radius: var(--npn-radius);
}

.npn-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
}

.npn-trust__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.npn-trust__text strong {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--npn-ink);
}

.npn-trust__text em {
	font-size: 0.75rem;
	font-style: normal;
	color: var(--npn-ink-soft);
}

/* Icons als Masken statt Bilddateien: keine zusaetzlichen Requests. */
.npn-trust__icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background-color: var(--npn-accent);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.npn-trust__icon--truck {
	-webkit-mask-image: 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='M1 3h15v13H1z'/%3E%3Cpath d='M16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
	mask-image: 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='M1 3h15v13H1z'/%3E%3Cpath d='M16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

.npn-trust__icon--shield {
	-webkit-mask-image: 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 2l8 4v6c0 5-3.4 9.3-8 10-4.6-.7-8-5-8-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
	mask-image: 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 2l8 4v6c0 5-3.4 9.3-8 10-4.6-.7-8-5-8-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.npn-trust__icon--return {
	-webkit-mask-image: 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 12a9 9 0 109-9 9 9 0 00-7 3.3'/%3E%3Cpath d='M3 3v4h4'/%3E%3C/svg%3E");
	mask-image: 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 12a9 9 0 109-9 9 9 0 00-7 3.3'/%3E%3Cpath d='M3 3v4h4'/%3E%3C/svg%3E");
}

.npn-trust__icon--lock {
	-webkit-mask-image: 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%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
	mask-image: 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%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   3. Versandkostenfrei-Balken
   --------------------------------------------------------- */

.npn-shipbar {
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--npn-sand);
	border-radius: var(--npn-radius);
}

.npn-shipbar__text {
	margin: 0 0 8px;
	font-size: 0.875rem;
	color: var(--npn-ink);
}

.npn-shipbar__text--done {
	color: var(--npn-accent-dk);
	font-weight: 600;
}

.npn-shipbar__track {
	height: 6px;
	border-radius: 999px;
	background: var(--npn-line);
	overflow: hidden;
}

.npn-shipbar__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--npn-accent);
	transition: width .35s ease;
}

@media (prefers-reduced-motion: reduce) {
	.npn-shipbar__fill { transition: none; }
}

/* ---------------------------------------------------------
   4. Sticky Kaufleiste (nur Mobil)
   --------------------------------------------------------- */

.npn-sticky {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: var(--npn-white);
	border-top: 1px solid var(--npn-line);
	box-shadow: 0 -2px 12px rgba(16, 22, 31, .08);
	transform: translateY(100%);
	transition: transform .25s ease;
}

.npn-sticky.is-visible { transform: translateY(0); }

.npn-sticky__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.npn-sticky__title {
	font-size: 0.8125rem;
	color: var(--npn-ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.npn-sticky__price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--npn-ink);
}

.npn-sticky__price del { display: none; }

.npn-sticky__btn {
	flex: 0 0 auto;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--npn-radius);
	background: var(--npn-ink);
	color: var(--npn-white);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.npn-sticky__btn:hover,
.npn-sticky__btn:focus-visible { background: var(--npn-accent-dk); }

@media (max-width: 767px) {
	.npn-sticky[hidden] { display: flex; }
	.npn-sticky { display: flex; }
}

/* ---------------------------------------------------------
   5. Pflichtangaben lesbar halten
   Die Naehrwerttabellen kommen als HTML aus der Produkt-
   beschreibung. Ohne Styling sind sie auf Mobil unlesbar.
   --------------------------------------------------------- */

.woocommerce-Tabs-panel table.npn-nutrition,
.woocommerce-product-details__short-description table.npn-nutrition {
	width: 100%;
	margin: 0 0 22px;
	border-collapse: collapse;
	font-size: 0.875rem;
}

table.npn-nutrition th,
table.npn-nutrition td {
	padding: 9px 12px;
	text-align: left;
	border-bottom: 1px solid var(--npn-line);
}

table.npn-nutrition thead th {
	background: var(--npn-sand);
	font-weight: 600;
	color: var(--npn-ink);
	white-space: nowrap;
}

table.npn-nutrition td + td,
table.npn-nutrition thead th + th { text-align: right; }

table.npn-nutrition tbody tr:last-child td { border-bottom: 0; }

/* Warnhinweise nach NemV muessen auffindbar sein, ohne zu schreien. */
.woocommerce-Tabs-panel h3 {
	margin: 26px 0 10px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--npn-ink);
}

.woocommerce-Tabs-panel h3:first-child { margin-top: 0; }

@media (max-width: 480px) {
	table.npn-nutrition th,
	table.npn-nutrition td { padding: 8px 8px; font-size: 0.8125rem; }
}

/* ---------------------------------------------------------
   6. Kaufbutton
   --------------------------------------------------------- */

.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
	min-height: 52px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .01em;
}
