/*
Theme Name: Tuliplant
Theme URI: https://tuliplant.ro/
Description: Temă pentru comparatorul de prețuri la suplimente alimentare și produse naturiste tuliplant.ro. Aceeași structură ca tema Comparator (ElectroRadar), în culorile Tuliplant. Se folosește împreună cu pluginul „Comparator Prețuri”.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Tuliplant
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tuliplant
*/

/*
 * Culorile: verdele și rozul din logo, fundal gri deschis, carduri albe rotunjite, prețuri roșii.
 * Variabilele --cmp-* sunt citite și de pluginul „Comparator Prețuri” (assets/css/frontend.css).
 */
:root {
	--cmp-ink: #1f2937;
	--cmp-text: #212529;
	--cmp-muted: #5f6672;
	--cmp-line: #e5e7eb;
	--cmp-line-strong: #d1d5db;
	--cmp-surface: #f5f5f5;
	--cmp-paper: #ffffff;
	--cmp-accent: #007a37;
	--cmp-primary: #00873d;
	--cmp-primary-hover: #006e31;
	--cmp-go: #00873d;
	--cmp-go-hover: #006e31;
	--cmp-go-tint: #ecf8f0;
	/* Butonul rotund din cardurile de produs: aceeași culoare ca butonul „Spre magazin” (se schimbă din Customize › Colors). */
	--cmp-card-go: var(--cmp-go);
	--cmp-card-go-hover: var(--cmp-go-hover);
	--cmp-red: #c81e1e;
	--cmp-badge: #d0186a;
	--cmp-price: #d61f1f;
	--cmp-focus-ring: rgba(0, 135, 61, 0.22);
	--cmp-radius: 16px;
	--cmp-radius-sm: 8px;
	--cmp-art-bg: linear-gradient(180deg, #f1f8f3 0%, #e2f1e6 100%);
	/* Ale temei. */
	--tp-green: #28b14b;
	--tp-pink: #ed217c;
	--tp-ink-green: #1e3a2b;
	--tp-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
	--tp-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.09);
	--cmpt-font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--cmpt-max: 1280px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--cmp-surface);
	color: var(--cmp-text);
	font-family: var(--cmpt-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--cmp-accent);
}

:focus-visible {
	outline: 3px solid var(--cmp-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.cmpt-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: #fff;
	color: var(--cmp-ink);
	border-radius: 8px;
	font-weight: 700;
}

.cmpt-skip:focus {
	top: 12px;
	box-shadow: var(--tp-shadow-hover);
}

.cmpt-bar {
	max-width: var(--cmpt-max);
	margin: 0 auto;
	padding: 0 16px;
}

/* Antet: alb, logo, căutare cu chenar verde, linkuri cu iconițe; dedesubt meniul de categorii. ---- */

.cmpt-header {
	position: relative;
	z-index: 20;
	background: var(--cmp-paper);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cmpt-header-top .cmpt-bar {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 84px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.cmpt-brand {
	flex: none;
}

.cmpt-brand a {
	display: inline-block;
	line-height: 0;
}

.cmpt-brand .custom-logo,
.cmpt-logo {
	display: block;
	width: auto;
	height: 58px;
	max-width: 220px;
	object-fit: contain;
}

.cmpt-site-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tp-green);
	text-decoration: none;
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: 0.02em;
	line-height: 1;
}

.cmpt-search {
	flex: 1;
	min-width: 0;
	max-width: 620px;
}

/* Căutarea ca la biomag.ro: câmp alb, chenar verde subțire, colțuri ușor rotunjite. */
.cmp-search {
	border: 1px solid var(--cmp-primary);
	border-radius: 10px;
}

.cmp-search-btn {
	margin: 4px;
	padding: 0 22px;
	border-radius: 7px;
}

.cmp-search-icon {
	color: var(--cmp-primary);
}

.cmpt-search .cmp-search-input {
	padding-top: 11px;
	padding-bottom: 11px;
	font-size: 0.95rem;
}

.cmpt-toplinks {
	flex: none;
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 26px;
}

.cmpt-toplink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cmp-ink);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
}

.cmpt-toplink:hover,
.cmpt-toplink[aria-current="page"] {
	color: var(--cmp-accent);
}

.cmpt-toplink:hover .cmpt-toplink-label,
.cmpt-toplink[aria-current="page"] .cmpt-toplink-label {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.cmpt-toplink-icon {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--cmp-ink);
}

/* Eticheta de la „Promoții” în rozul din logo. */
.cmpt-toplink-promo .cmpt-toplink-icon {
	color: var(--tp-pink);
}

.cmpt-catnav {
	border-top: 1px solid #f0f0f0;
}

.cmpt-catnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cmpt-catnav-list::-webkit-scrollbar {
	display: none;
}

/* Când categoriile nu încap pe un rând, marginea se estompează, ca să se vadă că lista continuă (clasele vin din JavaScript). */
.cmpt-catnav-list.has-more-end {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}

.cmpt-catnav-list.has-more-start {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 56px);
	mask-image: linear-gradient(to right, transparent, #000 56px);
}

.cmpt-catnav-list.has-more-start.has-more-end {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}


.cmpt-catnav-list a {
	display: block;
	padding: 14px 14px 11px;
	color: var(--cmp-ink);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.97rem;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

.cmpt-catnav-list li:first-child a {
	padding-left: 0;
}

.cmpt-catnav-list a:hover {
	color: var(--cmp-accent);
}

.cmpt-catnav-list .current-menu-item > a {
	color: var(--cmp-accent);
	border-bottom-color: var(--tp-green);
	font-weight: 600;
}

/* „Black Friday”, primul în meniu cât timp e activ (Comparator › Setări › Black Friday). */
.cmpt-catnav-list .cmpt-catnav-bf > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--cmp-red, #c21f32);
	font-weight: 700;
}

.cmpt-catnav-list .cmpt-catnav-bf > a::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.cmpt-catnav-list .cmpt-catnav-bf > a:hover,
.cmpt-catnav-list .cmpt-catnav-bf.current-menu-item > a {
	color: var(--cmp-red, #c21f32);
	border-bottom-color: currentColor;
}

/* Pe ecrane late, categoriile trec pe al doilea rând dacă nu încap (cu mouse-ul nu se poate derula orizontal). */
@media (min-width: 1000px) {
	.cmpt-catnav-list {
		flex-wrap: wrap;
		overflow: visible;
		gap: 0 4px;
		margin: 0 -10px;
		padding: 4px 0;
	}

	.cmpt-catnav-list.has-more-start,
	.cmpt-catnav-list.has-more-end {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.cmpt-catnav-list a,
	.cmpt-catnav-list li:first-child a {
		padding: 9px 10px 7px;
	}
}

.cmpt-main {
	display: block;
	min-height: 50vh;
}

/* Cardurile pluginului: albe, fără chenar, cu umbră fină și colțuri rotunjite (ca pe biomag.ro). - */

.cmp-card,
.cmp-cat-tile a,
.cmp-hc-card,
.cmp-hc-row,
.cmp-hc-chip,
.cmp-filters,
.cmp-gallery-main,
.cmp-best,
.cmp-offers,
.cmp-history,
.cmp-specs,
.cmp-desc-card,
.cmp-niche-note,
.cmp-empty,
.cmpt-steps,
.cmpt-guide-card,
.cmpt-post-card,
.cmpt-side-box,
.cmpt-toc-mobile {
	border-color: transparent;
	box-shadow: var(--tp-shadow);
}

.cmp-card {
	border-radius: 18px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cmp-card:hover {
	border-color: transparent;
	box-shadow: var(--tp-shadow-hover);
	transform: translateY(-2px);
}

.cmp-card-img {
	border-bottom: 0;
}

.cmp-card-body {
	--cmp-card-go-x: 16px; /* butonul rotund „spre magazin”, aliniat cu padding-ul cardului */
	--cmp-card-go-y: 16px;
	padding: 6px 16px 16px;
}

.cmp-card-brand {
	color: #6b7079;
	font-weight: 400;
	font-size: 0.85rem;
}

.cmp-card-title {
	font-weight: 600;
	color: #1d1d1d;
}

.cmp-card-link:hover .cmp-card-title {
	color: var(--cmp-accent);
	text-decoration: none;
}

.cmp-price {
	font-weight: 700;
}

.cmp-badge-discount {
	border-radius: 999px;
	padding: 2px 9px;
}

.cmp-hc-card:hover,
.cmp-hc-row:hover,
.cmp-hc-chip:hover,
.cmp-cat-tile a:hover {
	border-color: transparent;
	box-shadow: var(--tp-shadow-hover);
}

.cmp-hc-card {
	border-radius: 18px;
}

.cmp-hc-row,
.cmp-hc-chip {
	border-radius: 14px;
}

.cmp-hc-name,
.cmp-cat-name {
	color: #1d1d1d;
}

.cmp-hc-card:hover .cmp-hc-name,
.cmp-hc-row:hover .cmp-hc-name,
.cmp-hc-chip:hover .cmp-hc-name,
.cmp-cat-tile a:hover .cmp-cat-name {
	color: var(--cmp-accent);
}

.cmp-h1,
.cmp-h2 {
	color: #1d1d1d;
}

.cmp-btn {
	border-radius: 8px;
}

.cmp .cmp-btn-ghost:hover,
.cmp-btn-ghost:hover {
	border-color: var(--cmp-primary);
	color: var(--cmp-accent);
}

.cmp-chip:hover {
	border-color: var(--cmp-primary);
}

.cmp-best {
	border-top: 4px solid var(--cmp-go);
}

.cmp-niche-note {
	border-left-color: var(--cmp-go);
}

.cmp-disclosure {
	background: var(--cmp-paper);
	box-shadow: var(--tp-shadow);
}

.cmp-history-tip {
	background: var(--tp-ink-green);
}

/*
 * Scara de prețuri a ofertelor: păstrăm săgețile colorate (verde = cel mai ieftin, roșu = cel mai scump),
 * fără literele A–G ale etichetei energetice, care la suplimente ar putea părea o notă dată produsului.
 */
.cmp-arrow-letter {
	display: none;
}

/* Prima pagină --------------------------------------------------------- */

.cmpt-home {
	padding-top: 36px;
	padding-bottom: 64px;
}

.cmpt-home-section {
	margin-bottom: 8px;
}

.cmpt-steps {
	margin-top: 56px;
	padding: 28px;
	background: var(--cmp-paper);
	border: 1px solid transparent;
	border-radius: 18px;
}

.cmpt-steps-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.cmpt-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Ilustrația pasului, pe același fundal ca ilustrațiile categoriilor. */
.cmpt-step-art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	margin-bottom: 10px;
	border-radius: 14px;
	background: var(--cmp-art-bg);
}

.cmpt-step-art img {
	display: block;
	width: 120px;
	height: 120px;
}

.cmpt-step-num {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cmp-primary);
	color: #fff;
	font-weight: 800;
}

/* Săgeată între pași, pe desktop. */
.cmpt-step:not(:last-child) .cmpt-step-art::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -24px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	background: no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.5 4.5L13 10l-5.5 5.5' fill='none' stroke='%2328b14b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cmpt-steps strong {
	font-size: 1.05rem;
	color: #1d1d1d;
}

.cmpt-step-text {
	color: var(--cmp-muted);
}

.cmpt-step-text a {
	white-space: nowrap;
}

.cmpt-guides {
	margin-top: 48px;
}

/* Ghidurile de pe prima pagină: un rând orizontal, 3 pe desktop, cu săgeți spre cele mai vechi. */
.cmpt-guides-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cmpt-guides-nav {
	display: flex;
	gap: 8px;
	flex: none;
}

.cmpt-guides-nav[hidden] {
	display: none;
}

.cmpt-guides-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--cmp-line-strong);
	border-radius: 50%;
	background: var(--cmp-paper);
	color: var(--cmp-ink);
	cursor: pointer;
}

.cmpt-guides-arrow:hover:not(:disabled) {
	border-color: var(--cmp-primary);
	color: var(--cmp-accent);
}

.cmpt-guides-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Spațiul de jos lasă umbra cardurilor să se vadă (rândul derulează pe orizontală). */
.cmpt-guides-track {
	--cmpt-guides-per: 3;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 4px 28px;
	margin: -4px -4px -24px;
	scroll-padding-inline: 4px;
}

/* Dacă un plugin (de ex. Divi Builder) inserează totuși un element între rând și carduri, îl facem „transparent”. */
.cmpt-guides-track > :not(.cmpt-guide-card) {
	display: contents;
}

.cmpt-guides-track::-webkit-scrollbar {
	display: none;
}

.cmpt-guide-card {
	flex: 0 0 calc((100% - (var(--cmpt-guides-per) - 1) * 16px) / var(--cmpt-guides-per));
	min-width: 0;
	scroll-snap-align: start;
	background: var(--cmp-paper);
	border: 1px solid transparent;
	border-radius: 18px;
	overflow: hidden;
}

.cmpt-guide-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cmpt-guide-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cmpt-guide-thumb.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: var(--cmp-art-bg);
}

.cmpt-guide-thumb.is-empty img {
	width: 76px;
	height: 76px;
	aspect-ratio: auto;
	object-fit: contain;
}

.cmpt-guide-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px 18px;
}

.cmpt-guide-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #1d1d1d;
}

.cmpt-guide-btn {
	margin-top: auto;
	padding: 8px 18px;
	border-radius: 8px;
	background: var(--cmp-primary);
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
}

.cmpt-guide-link:hover .cmpt-guide-title {
	color: var(--cmp-accent);
}

.cmpt-guide-link:hover .cmpt-guide-btn,
.cmpt-guide-link:focus-visible .cmpt-guide-btn {
	background: var(--cmp-primary-hover);
}

@media (max-width: 960px) {
	.cmpt-guides-track {
		--cmpt-guides-per: 2;
	}
}

/* Pe telefon: un ghid pe ecran, cu marginea următorului vizibilă, ca să se vadă că lista continuă. */
@media (max-width: 600px) {
	.cmpt-guide-card {
		flex-basis: 85%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cmpt-guides-track {
		scroll-behavior: auto;
	}

	.cmp-card,
	.cmp-card:hover {
		transition: none;
		transform: none;
	}
}

.cmpt-notice {
	padding: 16px 20px;
	background: #fff7e0;
	border-radius: 10px;
}

/* Articole și pagini --------------------------------------------------- */

.cmpt-page {
	padding-top: 32px;
	padding-bottom: 64px;
}

.cmpt-page-head {
	margin-bottom: 24px;
}

/* Paginile obișnuite: o singură coloană. */
.cmpt-article {
	max-width: 860px;
	padding-top: 40px;
	padding-bottom: 64px;
}

/* Articolele: textul într-o coloană de citit confortabil, cu cuprinsul alături, ca pagina să folosească lățimea ecranului. */
.cmpt-article-wrap {
	display: grid;
	grid-template-columns: minmax(0, 820px);
	justify-content: center;
	padding-top: 40px;
	padding-bottom: 64px;
}

.cmpt-article-wrap.has-side {
	grid-template-columns: minmax(0, 780px) 300px;
	column-gap: 48px;
}

.cmpt-article-wrap .cmpt-article {
	max-width: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.cmpt-article-head {
	margin-bottom: 24px;
}

.cmpt-article-thumb {
	margin: 0 0 28px;
}

.cmpt-article-thumb img {
	display: block;
	width: 100%;
	border-radius: 18px;
}

.cmpt-prose {
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 70ch;
}

.cmpt-article .cmpt-prose {
	max-width: none;
	font-size: 1.1rem;
	line-height: 1.75;
}

.cmpt-article .cmpt-prose h2 {
	font-size: 1.55rem;
	scroll-margin-top: 16px;
}

.cmpt-article .cmpt-prose h3 {
	font-size: 1.2rem;
}

/* Tabele din articole: rânduri aerisite, fără chenarul dublu al atributului border. */
.cmpt-prose table {
	width: 100%;
	margin: 1.4em 0;
	border: 1px solid var(--cmp-line);
	border-collapse: collapse;
	background: var(--cmp-paper);
	font-size: 0.95em;
	line-height: 1.5;
}

.cmpt-prose th,
.cmpt-prose td {
	padding: 10px 14px;
	border: 1px solid var(--cmp-line);
	text-align: left;
	vertical-align: top;
}

.cmpt-prose thead th,
.cmpt-prose thead td,
.cmpt-prose tr:first-child th {
	background: var(--cmp-go-tint);
	color: var(--cmp-ink);
	font-weight: 700;
}

.cmpt-prose tbody tr:first-child td {
	font-weight: 700;
	color: var(--cmp-ink);
	background: var(--cmp-go-tint);
}

.cmpt-prose thead + tbody tr:first-child td {
	font-weight: inherit;
	color: inherit;
	background: none;
}

/* Coloana din dreapta a articolelor. */
.cmpt-article-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-self: start;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 4px;
	margin: -4px;
}

.cmpt-side-box {
	padding: 18px 20px;
	background: var(--cmp-paper);
	border: 1px solid transparent;
	border-radius: 16px;
}

.cmpt-side-title {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cmp-muted);
}

.cmpt-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}

.cmpt-toc-list li {
	counter-increment: toc;
}

.cmpt-toc-list a {
	display: grid;
	grid-template-columns: 2em minmax(0, 1fr);
	padding: 6px 8px 6px 10px;
	margin-left: -10px;
	border-left: 3px solid transparent;
	border-radius: 0 6px 6px 0;
	color: var(--cmp-text);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.4;
}

.cmpt-toc-list a::before {
	content: counter(toc) ".";
	color: var(--cmp-muted);
	font-variant-numeric: tabular-nums;
}

.cmpt-toc-list a:hover {
	background: var(--cmp-go-tint);
	color: var(--cmp-ink);
}

.cmpt-toc-list a[aria-current] {
	border-left-color: var(--tp-green);
	background: var(--cmp-go-tint);
	color: var(--cmp-ink);
	font-weight: 600;
}

.cmpt-more ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.cmpt-more a {
	color: var(--cmp-ink);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
	text-decoration: none;
}

.cmpt-more a:hover {
	color: var(--cmp-accent);
	text-decoration: underline;
}

/* Cuprinsul pliabil de pe telefon. */
.cmpt-toc-mobile {
	display: none;
	margin: 0 0 24px;
	background: var(--cmp-paper);
	border: 1px solid transparent;
	border-radius: 16px;
}

.cmpt-toc-mobile summary {
	padding: 14px 18px;
	font-weight: 700;
	color: var(--cmp-ink);
	cursor: pointer;
}

.cmpt-toc-mobile .cmpt-toc-list {
	padding: 0 18px 14px 28px;
}

.cmpt-prose h2 {
	font-size: 1.4rem;
	line-height: 1.3;
	color: #1d1d1d;
	margin: 1.8em 0 0.5em;
}

.cmpt-prose h3 {
	font-size: 1.15rem;
	color: #1d1d1d;
	margin: 1.5em 0 0.4em;
}

.cmpt-prose li {
	margin-bottom: 0.4em;
}

.cmpt-prose li::marker {
	color: var(--tp-green);
}

.cmpt-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cmpt-post-card {
	background: var(--cmp-paper);
	border: 1px solid transparent;
	border-radius: 18px;
	overflow: hidden;
}

.cmpt-post-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cmpt-post-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.cmpt-post-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.cmpt-post-date {
	font-size: 0.82rem;
	color: var(--cmp-muted);
	margin: 0;
}

.cmpt-post-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #1d1d1d;
}

.cmpt-post-link:hover .cmpt-post-title {
	color: var(--cmp-accent);
	text-decoration: underline;
}

.cmpt-post-excerpt {
	color: var(--cmp-muted);
	font-size: 0.93rem;
}

.navigation.pagination {
	margin-top: 32px;
}

.nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 40px;
	height: 40px;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--cmp-line-strong);
	border-radius: 8px;
	background: #fff;
	color: var(--cmp-ink);
	text-decoration: none;
}

.nav-links .current {
	background: var(--cmp-primary);
	color: #fff;
	border-color: var(--cmp-primary);
}

.cmpt-404-search {
	max-width: 560px;
	margin: 20px 0 32px;
}

/* Subsol: deschis la culoare, ca pe biomag.ro. ---------------------------- */

.cmpt-footer {
	margin-top: 24px;
	background: var(--cmp-paper);
	border-top: 1px solid var(--cmp-line);
	color: #374151;
	font-size: 0.93rem;
}

.cmpt-footer a {
	color: #374151;
	text-decoration: none;
}

.cmpt-footer a:hover {
	color: var(--cmp-accent);
	text-decoration: underline;
}

.cmpt-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding-top: 44px;
	padding-bottom: 32px;
}

.cmpt-footer-logo {
	display: inline-block;
	line-height: 0;
}

.cmpt-footer-logo img {
	display: block;
	width: auto;
	height: 52px;
}

.cmpt-footer-about p {
	max-width: 52ch;
}

.cmpt-footer-note {
	font-size: 0.85rem;
	color: var(--cmp-muted);
}

.cmpt-footer-title {
	margin: 4px 0 14px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #374151;
}

.cmpt-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

/* Nota despre suplimente: pe toată lățimea, deasupra rândului cu drepturile. */
.cmpt-footer-health {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 28px;
	padding: 14px 18px;
	background: var(--cmp-go-tint);
	border-radius: 12px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #374151;
}

.cmpt-footer-health svg {
	flex: none;
	margin-top: 1px;
	color: var(--cmp-go);
}

.cmpt-footer-health p {
	margin: 0;
}

.cmpt-footer-bottom {
	background: var(--cmp-surface);
	border-top: 1px solid var(--cmp-line);
	padding: 16px 0 22px;
	font-size: 0.82rem;
	color: var(--cmp-muted);
	text-align: center;
}

.cmpt-footer-bottom p {
	margin: 0;
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 960px) {
	.cmpt-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cmpt-footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cmpt-footer-about {
		grid-column: 1 / -1;
	}
}

/* Pe ecrane mai înguste, căutarea trece pe rândul ei, ca să nu fie strivită de logo și linkuri. */
@media (max-width: 1180px) {
	.cmpt-header-top .cmpt-bar {
		flex-wrap: wrap;
		gap: 12px 24px;
		min-height: 0;
	}

	.cmpt-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}

	.cmpt-brand {
		flex: 1 1 0;
		min-width: 0;
	}

	.cmpt-article-wrap.has-side {
		grid-template-columns: minmax(0, 1fr) 260px;
		column-gap: 36px;
	}
}

/* Pe tabletă și telefon: o singură coloană; cuprinsul devine pliabil, iar „Alte ghiduri” trece sub articol. */
@media (max-width: 900px) {
	.cmpt-article-wrap.has-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmpt-article-side {
		position: static;
		max-height: none;
		overflow: visible;
		margin-top: 40px;
	}

	.cmpt-article-side .cmpt-toc {
		display: none;
	}

	.cmpt-toc-mobile {
		display: block;
	}

	.cmpt-article .cmpt-prose {
		font-size: 1.05rem;
	}
}

@media (max-width: 720px) {
	.cmpt-prose table {
		display: block;
		overflow-x: auto;
	}

	.cmpt-article .cmpt-prose h2 {
		font-size: 1.35rem;
	}

	.cmpt-article-wrap {
		padding-top: 28px;
	}

	.cmpt-header-top .cmpt-bar {
		gap: 10px 12px;
		padding-top: 10px;
	}

	.cmpt-brand .custom-logo,
	.cmpt-logo {
		height: 44px;
	}

	.cmpt-toplinks {
		gap: 18px;
	}

	/* Pe telefon: iconița deasupra, eticheta scurtă dedesubt. */
	.cmpt-toplink {
		flex-direction: column;
		gap: 2px;
		font-size: 0.75rem;
	}

	.cmpt-toplink-icon {
		width: 22px;
		height: 22px;
	}

	.cmpt-toplink-more {
		display: none;
	}

	.cmpt-catnav-list a {
		padding: 12px 11px 9px;
		font-size: 0.92rem;
	}

	.cmpt-steps-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.cmpt-step:not(:last-child) .cmpt-step-art::after {
		display: none;
	}

	/* Pe telefon: ilustrația mică în stânga, textul în dreapta. */
	.cmpt-step {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		column-gap: 16px;
		align-items: start;
	}

	.cmpt-step-art {
		grid-row: span 2;
		height: 96px;
		margin: 0;
	}

	.cmpt-step-art img {
		width: 76px;
		height: 76px;
	}

	.cmpt-step-num {
		top: -6px;
		left: -6px;
		width: 26px;
		height: 26px;
		font-size: 0.85rem;
	}

	.cmpt-steps {
		padding: 20px;
	}

	.cmpt-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cmpt-footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.cmp-card {
		border-radius: 14px;
	}

	.cmp-card-body {
		--cmp-card-go-x: 12px;
		--cmp-card-go-y: 12px;
		padding: 4px 12px 12px;
	}
}

.cmpt-footer-logo .cmpt-logo-footer,
.cmpt-footer-logo img {
	display: block;
	width: auto;
	height: 52px;
	max-width: 200px;
	object-fit: contain;
}

/* Textele verzi mici (stoc, „cea mai bună ofertă”) folosesc nuanța mai închisă: #00873d pe fundalurile
   deschise avea contrastul 4,2:1, sub minimul de 4,5:1 cerut pentru text (WCAG 2.2, Actul european privind accesibilitatea). */
.cmp-stock-in,
.cmp-tag-best {
	color: var(--cmp-accent);
}
