/*
 * 00-base.css - baza comuna a temei (zona header-footer). Celelalte zone construiesc peste ea.
 * Reproduce baza Divi 4.27 de pe live (reset + tipografie) si CSS-ul custom din Divi > Theme Options
 * (docs/reference/divi-custom.css): fontul Santral-Light pe body/p/h1-h6, ul fara buline si fara spatii.
 *
 * ---------------------------------------------------------------------------------------------
 * VARIABILE CSS (:root)
 *   --er-font        'Santral-Light', sans-serif     fontul de baza (body, p, h1-h6), un singur fisier (400)
 *   --er-font-lato   'Lato'      meniul principal (300)          \
 *   --er-font-pop    'Poppins'   mega-meniu, cautare, breadcrumb   > Google Fonts, incarcate de inc/10-header.php
 *   --er-font-mont   'Montserrat' etichetele NEW/TOP (600)        /  (aceleasi familii ca builder-ul Divi)
 *   --er-text        #666     textul implicit Divi
 *   --er-heading     #333     titlurile implicite Divi
 *   --er-link        #2ea3f2  linkurile implicite Divi
 *   --er-black       #000     textele din header/footer
 *   --er-gold        #000     fostul auriu ermara (#c29958); din 2026-11-05 clientul vrea negru peste tot
 *   --er-blue        #0c71c3  bara de copyright din footer, breadcrumb (3% opacitate)
 *   --er-gray-bg     #f5f5f5  fundalul footer-ului
 *   --er-border      #efefef  linia de sub header
 *   Culorile globale Divi de pe live: #efefef #d9d9d9 #121212 #ff5a17 #666666 #1f1f1f (--er-c1 ... --er-c6).
 *
 * CONTAINER
 *   .er-container    latimea randurilor Divi de pe live (header, footer, paginile si layout-urile
 *                    Theme Builder): width 90%, max-width 1552px, centrat. La 1920 = 1552px (x 184),
 *                    la 1366 = 1229px (x 68). Sub 981px: 100% - 2 x 16px.
 *   .er-container--wide  rand de 90% fara limita practica (bara meniului: max 2560px).
 *   .er-section      sectiune Divi: padding 54px 0 (sus/jos); .er-row: padding 27px 0 (ca randurile Divi).
 *
 * UTILITARE
 *   .screen-reader-text   ascuns vizual, citit de cititoarele de ecran (WordPress standard).
 *   .er-skip-link         link "Sari la continut" (vizibil la focus).
 *   .er-only-desktop / .er-only-mobile   vizibil doar >= 981px / doar < 981px.
 *   .er-icon              icoana SVG inline (ermara_icon()), 1em inaltime, culoarea textului.
 *   Breakpoint-ul desktop/mobil este 981px (ca Divi): @media (max-width: 980px) pentru mobil.
 * ---------------------------------------------------------------------------------------------
 */

@font-face {
	font-family: 'Santral-Light';
	src: url('../fonts/santrallight.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--er-font: 'Santral-Light', sans-serif;
	--er-font-lato: 'Lato', Helvetica, Arial, Lucida, sans-serif;
	--er-font-pop: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	--er-font-mont: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
	--er-font-open: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
	--er-text: #666;
	--er-heading: #333;
	--er-link: #2ea3f2;
	--er-black: #000;
	--er-gold: #000; /* inainte #c29958 (auriu); clientul a cerut negru peste tot, 2026-11-05 */
	--er-blue: #0c71c3;
	--er-gray-bg: #f5f5f5;
	--er-border: #efefef;
	--er-c1: #efefef;
	--er-c2: #d9d9d9;
	--er-c3: #121212;
	--er-c4: #ff5a17;
	--er-c5: #666666;
	--er-c6: #1f1f1f;
	--er-row: 90%;
	--er-row-max: 1552px;
	--er-gutter-mobile: 16px;
}

/* ---------- Reset Divi ---------- */
a, abbr, acronym, address, applet, b, big, blockquote, body, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, form,
h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, object, ol, p, pre, q, s, samp, small, span, strike,
strong, sub, sup, tt, u, ul, var {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	vertical-align: baseline;
	background: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: ""; content: none; }
blockquote { margin: 20px 0 30px; border-left: 5px solid; padding-left: 20px; }
:focus { outline: 0; }
:focus-visible { outline: 2px solid var(--er-gold); outline-offset: 2px; }
del { text-decoration: line-through; }
pre { overflow: auto; padding: 10px; }
figure { margin: 0; }
table { border-collapse: collapse; border-spacing: 0; }
article, aside, footer, header, hgroup, nav, section { display: block; }

/* ---------- Tipografie (Divi + CSS custom live) ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--er-font);
	font-size: 14px;
	color: var(--er-text);
	background-color: #fff;
	line-height: 1.7em;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body, p, h1, h2, h3, h4, h5, h6 { font-family: var(--er-font); }
a { color: var(--er-link); }
a, a:hover { text-decoration: none; }
p { padding-bottom: 1em; }
p:not(.has-background):last-of-type { padding-bottom: 0; }
strong { font-weight: 700; }
cite, em, i { font-style: italic; }
code, pre { font-family: Courier New, monospace; margin-bottom: 10px; }
ins { text-decoration: none; }
sub, sup { height: 0; line-height: 1; position: relative; vertical-align: baseline; }
sup { bottom: .8em; }
sub { top: .3em; }
dl { margin: 0 0 1.5em; }
dl dt { font-weight: 700; }
dd { margin-left: 1.5em; }
blockquote p { padding-bottom: 0; }
embed, iframe, object, video { max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
	color: var(--er-heading);
	padding-bottom: 10px;
	line-height: 1em;
	font-weight: 500;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
/* CSS custom live: listele nu au buline, margini sau indentare (pe tot site-ul). */
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Formulare (Divi) ---------- */
input { -webkit-appearance: none; }
input[type=checkbox] { -webkit-appearance: checkbox; }
input[type=radio] { -webkit-appearance: radio; }
input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
	background-color: #fff;
	border: 1px solid #bbb;
	padding: 2px;
	color: #4e4e4e;
}
input.text:focus, input.title:focus, input[type=text]:focus, select:focus, textarea:focus { border-color: #2d3940; color: #3e3e3e; }
input.text, input.title, input[type=text], select, textarea { margin: 0; }
textarea { padding: 4px; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }
.clear { clear: both; }

/* ---------- Accesibilitate ---------- */
.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;
}
.er-skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 10px 16px;
	left: 8px;
	top: 8px;
	z-index: 100000;
	background: #fff;
	color: var(--er-black);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

/* ---------- Container si randuri ---------- */
.er-container {
	width: var(--er-row);
	max-width: var(--er-row-max);
	margin-left: auto;
	margin-right: auto;
}
.er-container--wide { max-width: 2560px; }
.er-section { padding: 54px 0; }
.er-row { padding: 27px 0; }

/* ---------- Icoane SVG ---------- */
.er-icon { display: inline-block; vertical-align: middle; flex: none; fill: currentColor; }
/* Iconitele contur (cont, cos): doar linie, fara umplere. */
.er-icon--user-outline,
.er-icon--bag-outline { fill: none; }

/* ---------- Vizibilitate desktop / mobil ---------- */
@media (max-width: 980px) {
	.er-container, .er-container--wide {
		width: auto;
		max-width: none;
		margin-left: var(--er-gutter-mobile);
		margin-right: var(--er-gutter-mobile);
	}
	.er-only-desktop { display: none !important; }
}
@media (min-width: 981px) {
	.er-only-mobile { display: none !important; }
}

/* ---------- Etichetele produselor: "SALE -x%" si "NOU" (ermara_product_badges_html(), inc/40-shop.php) ----------
   Albe cu text negru, una sub alta, in coltul stanga-sus al imaginii (carduri, prima pagina, pagina de produs).
   Parintele (cardul / galeria) e position: relative. */
.er-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}
.er-badge {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid #e6e6e6;
	background: #fff;
	color: #000;
	font-family: var(--er-font-lato);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: .5px;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Pretul vechi (taiat) apare dupa cel nou (filtrul woocommerce_format_sale_price): mai mic, gri. */
.price del,
.price del .amount {
	color: #8a8a8a !important;
	font-weight: 400;
	opacity: 1 !important;
}
.price del { margin-left: 6px; font-size: .85em; }
.price del .amount { font-size: inherit !important; }

@media (max-width: 980px) {
	.er-badges { top: 6px; left: 6px; gap: 4px; }
	.er-badge { padding: 3px 8px; font-size: 11px; }
}

/* =============================================================================================
 * Favorite (inc/45-favorites.php, assets/js/45-favorites.js): inimioara din coltul din dreapta sus
 * al pozei (carduri, prima pagina, pagina de produs), mesajul de confirmare si pagina Favorite.
 * =========================================================================================== */
.er-fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: #fff;
	color: #000;
	line-height: 0;
	cursor: pointer;
	box-shadow: none;
	transition: border-color .2s, transform .15s;
	-webkit-tap-highlight-color: transparent;
}
.er-fav:hover { border-color: #000; background: #fff; color: #000; }
.er-fav:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.er-fav:active { transform: scale(.92); }
.er-fav .er-fav__icon { display: block; width: 20px; height: 20px; }
.er-fav.is-active .er-fav__icon path { fill: currentColor; }
.er-fav--pd { top: 14px; right: 14px; width: 44px; height: 44px; }
.er-fav--pd .er-fav__icon { width: 22px; height: 22px; }

/* Bulina cu numarul de favorite (header desktop, meniul de pe telefon) */
.er-fav-count {
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: #000;
	color: #fff;
	font-family: var(--er-font-mont);
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}
.er-fav-count[hidden] { display: none; }
.er-social__link--fav { position: relative; background: #fff; }
.er-social__link--fav .er-fav__icon { display: block; }
.er-social__link--fav .er-fav-count { position: absolute; top: -5px; right: -5px; }
.er-social__link--fav:hover .er-fav-count { background: #fff; color: #000; box-shadow: 0 0 0 1px #000; }
.er-mpanel__contact--fav .er-fav__icon { flex: none; width: 20px; color: #555; }

/* Mesajul de confirmare */
.er-fav-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.er-fav-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.er-fav-toast a { flex: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Pagina Favorite */
.er-favpage { min-height: 160px; padding: 10px 0 40px; }
.er-favpage__msg { padding: 0 0 18px; font-size: 16px; line-height: 1.6; color: #000; }
.er-favpage__btn {
	display: inline-block;
	padding: 13px 30px;
	border: 1px solid #000;
	background: #000;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.er-favpage__btn:hover { background: #fff; color: #000; }

@media (max-width: 980px) {
	.er-fav { top: 6px; right: 6px; width: 32px; height: 32px; }
	.er-fav .er-fav__icon { width: 17px; height: 17px; }
	.er-fav--pd { top: 10px; right: 10px; width: 40px; height: 40px; }
	.er-fav--pd .er-fav__icon { width: 20px; height: 20px; }
	.er-fav-toast { bottom: calc(16px + env(safe-area-inset-bottom)); width: max-content; font-size: 14px; }
}
