/* Încredere — vezi inc/incredere/incredere.php */

/* ---------- Bara de anunț ---------- */
.agb-anunt {
	position: relative;
	z-index: 1000;
	background: #2f3d12;
	color: #fff;
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .02em;
	text-align: center;
}
.agb-anunt__sir {
	display: grid;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 16px;
}
/* Toate mesajele în aceeași celulă: bara are înălțimea celui mai lung, deci nu sare la schimbare. */
.agb-anunt__text {
	grid-area: 1 / 1;
	margin: 0;
	color: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s, visibility .4s;
}
.agb-anunt__text.este-activ {
	opacity: 1;
	visibility: visible;
}
/* Banda temei „Ne bucurăm să îți oferim…” (doar pe desktop): cu bara noastră ar fi două benzi verzi. */
.agb-anunt ~ #page .ct-topbar-shorttext {
	display: none;
}
@media (min-width: 992px) {
	/* Pe ecran lat încap toate, unul lângă altul. */
	.agb-anunt__sir {
		display: flex;
		justify-content: center;
		gap: 32px;
	}
	.agb-anunt__text {
		opacity: 1;
		visibility: visible;
	}
}

/* Promoție cu termen (agb_incredere_config → promotii) */
.agb-anunt__promo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 9px 16px;
	color: #fff !important;
	font-size: 14px;
	text-decoration: none !important;
}
.agb-anunt__promo b {
	color: #b9e35a;
	font-weight: 700;
	letter-spacing: .03em;
}
.agb-anunt__cod {
	display: inline-block;
	padding: 0 6px;
	border: 1px dashed #b9e35a;
	border-radius: 4px;
	font-weight: 700;
	letter-spacing: .05em;
}
.agb-anunt__sageata {
	font-size: 18px;
	line-height: 1;
	transition: transform .2s;
}
.agb-anunt__promo:hover .agb-anunt__sageata,
.agb-anunt__promo:focus-visible .agb-anunt__sageata {
	transform: translateX(3px);
}
.agb-anunt__scurt { display: none; }
@media (max-width: 767px) {
	.agb-anunt__lung { display: none; }
	.agb-anunt__scurt { display: inline; }
	.agb-anunt__promo { font-size: 13px; padding: 8px 12px; }
}

/* ---------- Etichete ---------- */
.agb-etichete {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.agb-eticheta {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef5df;
	color: #3d5a0a;
	font-family: 'Barlow', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0 !important;
	white-space: nowrap;
}
.agb-eticheta--top { background: #76a713; color: #fff; }
.agb-eticheta--nou { background: #fff3d6; color: #7a5200; }
.agb-eticheta--limitat { background: #fde7ea; color: #9b1c31; }

/* Pe card: peste colțul din stânga-sus al pozei (coșul stă în dreapta). */
.woocommerce-product-header {
	position: relative;
}
.woocommerce-product-header .agb-etichete {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 56px;
	z-index: 4;
	pointer-events: none;
}
.woocommerce-product-header .agb-eticheta {
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
/* Caruselul „Ultimele produse” (layout 4 al temei) pune prețul, roșu, în colțul din stânga-sus al pozei:
   acolo etichetele stau jos, ca să nu fie acoperite. */
.ct-product-carousel4 .woocommerce-product-header .agb-etichete {
	top: auto;
	bottom: 8px;
}

/* Pe telefon cardul are ~170px: o singură etichetă, ca să nu acopere poza. */
@media (max-width: 767px) {
	.woocommerce-product-header .agb-eticheta:nth-child(n+2) {
		display: none;
	}
}
.woocommerce-product-header .agb-eticheta:not(.agb-eticheta--top):not(.agb-eticheta--nou):not(.agb-eticheta--limitat) {
	background: rgba(255, 255, 255, .92);
}

/* Pe pagina produsului: sub titlu. */
.single-product .summary > .agb-etichete,
.single-product .entry-summary > .agb-etichete {
	margin: 4px 0 10px;
}
.single-product .summary > .agb-etichete .agb-eticheta {
	padding: 4px 10px;
	font-size: 12px;
}

/* ---------- Nota din card ---------- */
.woocommerce ul.products li.product .woocommerce-product--rating:has(.agb-nota) {
	display: block !important;
	margin: 4px 0 0;
}
.agb-nota {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	font-weight: 600;
	color: #222;
	line-height: 1.2;
}
.agb-nota > span:first-child {
	color: #f5a623;
}
.agb-nota__nr {
	color: #888;
	font-weight: 400;
}

/* ---------- WhatsApp ---------- */
.agb-whatsapp {
	position: fixed;
	right: 16px;
	/* 48px: deasupra săgeții „sus” a temei (.scroll-top, 35px în colț). */
	bottom: calc(48px + var(--agb-jos, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	transition: transform .2s, bottom .2s;
}
.agb-whatsapp:hover,
.agb-whatsapp:focus-visible {
	transform: scale(1.06);
}

/* ---------- Subsol: plăți și ANPC ---------- */
.agb-subsol-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 32px;
	padding: 18px 16px;
	background: #fff;
	border-top: 1px solid #eee;
}
.agb-subsol-legal__rand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.agb-subsol-legal__eticheta {
	font-size: 13px;
	color: #666;
}
.agb-subsol-legal img {
	display: block;
	width: 200px;
	max-width: 42vw;
	height: auto;
}
.agb-plata {
	display: inline-flex;
	gap: 6px;
}
.agb-plata svg {
	display: block;
}
