/*
 * Identitatea vizuală edr-ingredients.com peste tema Basel: culori, butoane, fonturi.
 * Se încarcă în common/header.twig DUPĂ blocurile generate din setările temei
 * (basel-color-scheme, basel-fonts, basel-custom-css), ca să le suprascrie indiferent
 * de ce e salvat în baza de date. Fonturile sunt intenționat mai mari decât pe site
 * (acolo: text 14px, butoane 11px, meniu 13px).
 */
:root {
	--edr-green: #95cf56;        /* culoarea principală a site-ului */
	--edr-green-hover: #86ba4d;
	--edr-green-text: #4f7f24;   /* verde pentru text pe alb (prețuri, linkuri): #95cf56 nu se citește */
	--edr-on-green: #313131;     /* textul pe butoanele verzi */
	--edr-ink: #313131;          /* titluri, meniu */
	--edr-body: #5a5a5a;         /* textul curent; site-ul are #7b7b7b, prea slab la tabele */
	--edr-dark: #31343a;         /* bara de sus, subsolul */
	--edr-light: #f0f0f0;
	--edr-line: #e9e9e9;
	--edr-font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--edr-font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Tipografie ---------- */
body,
.product-name.main-font,
.gridlist .single-product .product-name,
.gridlist .single-blog .blog-title,
#bc-h1-holder #page-title,
#title-holder #page-title {
	font-family: var(--edr-font-body);
}
body {
	color: var(--edr-body);
	line-height: 1.5;
}
body, input, textarea, select, .form-control, .icon-element, .main-menu > ul > li,
.grid-holder .item, .cm_content .cm_item, .instruction-box .caption a,
.single-product .price .price-old, .special_countdown p,
.list .item.single-product .price-tax, label {
	font-size: 16px;
}
.table.products .remove, .full-search-wrapper .search-category select,
.blog_post .blog_comment, .video-jumbotron p, .compare-table table tbody tr td:first-child,
.grid .single-product .product-name, .grid .single-product .product-name:hover,
.list .single-product .product-name {
	font-size: 17px;
}
.promo-style-2 h3, .promo-style-4 h3, .table-bordered > tbody > tr > td.price-cell,
.grid .single-product .price, .menu-product .sale-counter div,
.table.specification > tbody > tr > td b, .bordered-list-title {
	font-size: 18px;
}
small, .form-control.input-sm, .shortcut-wrapper, .header5 .links > ul > li > a,
.header5 .setting-ul > .setting-li > a, .breadcrumb, .sign-up-field .sign-up-respond span,
.badge i, .special_countdown div i, .top_line {
	font-size: 15px;
}
.tooltip, .links ul > li > a, .setting-ul > .setting-li > a, .table.products .product-name,
#cart-content .totals, .main-menu.vertical > ul > li > a, .single-blog .banner_wrap .tags a,
.bordered-list a {
	font-size: 14px;
}

h1, h2, h3, h4, h5, h6,
.product-name, .blog-title, .product-h1 h1, .contrast-heading, .contrast-font,
.title_in_bc .breadcrumb-holder #title-holder,
.widget .widget-title .main-title,
.lang-curr-wrapper h4, .column .widget .widget-title .main-title, #footer h5,
.dropdown-inner h4.column-title b, .blog_post .section-title {
	font-family: var(--edr-font-heading);
	font-weight: 700;
	color: var(--edr-ink);
}
.product-name, .grid .single-product .product-name, .list .single-product .product-name {
	font-weight: 600;
}
h1, .product-info .table-cell.right h1#page-title,
.title_in_bc .breadcrumb-holder #title-holder #page-title,
.title_in_bc.tall_height_bc .breadcrumb-holder #title-holder #page-title,
.title_in_bc.extra_tall_height_bc .breadcrumb-holder #title-holder #page-title {
	font-family: var(--edr-font-heading);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.2;
}
h2 { font-size: 30px; letter-spacing: -.8px; line-height: 1.25; }
h3 { font-size: 25px; letter-spacing: -.6px; line-height: 1.3; }
h4 { font-size: 20px; letter-spacing: -.3px; }
h5 { font-size: 17px; }
.panel-group .panel-heading .panel-title, legend { font-size: 22px; }
.title_in_bc .login-area h2, .panel-body h2, h3.lined-title.lg,
.grid1 .single-blog .blog-title, .grid2 .single-blog .blog-title { font-size: 30px; }
.widget .widget-title .main-title { font-size: 28px; letter-spacing: -.6px; }
.lang-curr-wrapper h4, .column .widget .widget-title .main-title, #footer h5,
.dropdown-inner h4.column-title b, .blog_post .section-title {
	font-size: 18px;
	letter-spacing: -.2px;
}
b, strong { font-weight: 700; }

/* ---------- Culori de bază ---------- */
a:hover, a:focus, .menu-cell .dropdown-inner a:hover, .link-hover-color:hover,
.primary-color, .cm_item .primary-color, .nav-tabs.text-center.nav-tabs-sm > li.active,
.menu-cell a:hover {
	color: var(--edr-green-text);
}
.primary-bg-color, .widget-title-style2 .widget .widget-title-separator:after,
.nav-tabs.text-center.nav-tabs-sm > li.active > a:after,
.nav-tabs > li > a:hover, .nav-tabs > li > a:focus, .nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus,
.shortcut-wrapper .counter, .menu-tag.new, .sale_badge, .subcat a {
	background-color: var(--edr-green);
	color: var(--edr-on-green);
}
.menu-tag.new:before { color: var(--edr-green); }
.nav-tabs > li > a {
	font-family: var(--edr-font-heading);
	font-weight: 700;
}
.primary-color-border, .nav-tabs { border-color: var(--edr-green) !important; }
div.ui-slider-range.ui-widget-header, .ui-state-default, .ui-widget-content .ui-state-default {
	background: var(--edr-green) !important;
}
.price, #cart-content .totals tbody > tr:last-child > td:last-child {
	color: var(--edr-green-text);
}
.form-control:focus {
	border-color: var(--edr-green);
	box-shadow: none;
}

/* ---------- Bara de sus, antet, meniu ---------- */
.top_line { background-color: var(--edr-dark); }
.header-bottom, .menu-style {
	background-color: #ffffff;
	border-top: 1px solid var(--edr-line);
	border-bottom: 1px solid var(--edr-line);
}
.main-menu:not(.vertical) > ul > li > a > .top {
	font-family: var(--edr-font-heading);
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: -.3px;
}
.menu-style .main-menu a > .top,
.menu-style .main-menu a > .fa-angle-down,
.menu-style .main-menu .search-trigger {
	color: var(--edr-ink);
}
.menu-style .main-menu > ul > li:hover > a > .top { color: var(--edr-green-text); opacity: 1; }
.vertical-menu-bg, .vertical-menu-bg.dropdown-content { background-color: var(--edr-dark); }
.main-menu.vertical > ul > li:hover > a { background-color: var(--edr-green); color: var(--edr-on-green); }
.title_in_bc .breadcrumb-holder { background-color: var(--edr-dark); }

/* ---------- Butoane: colțuri drepte, chenar 1px, Montserrat bold, majuscule ---------- */
.btn, a.button, input.button, button.button, button.btn, input[type="submit"].btn {
	font-family: var(--edr-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: .8px;
	text-transform: uppercase;
	padding: 10px 28px;
	border-width: 1px;
	border-style: solid;
	border-radius: 0;
	transition: background-color 250ms, border-color 250ms, color 250ms;
}
.btn-sm { padding: 6px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 15px; }
.btn-tiny, .btn.btn-tiny { padding: 5px 12px; font-size: 13px; }

/* Plin verde; la hover devine transparent cu text închis, ca pe site */
.btn-primary, a.btn-primary, .btn-neutral,
.btn-contrast, a.btn-contrast, a.button, input.button, button.button,
#product-view .button-cart, .button-cart {
	background-color: var(--edr-green);
	border-color: var(--edr-green);
	color: var(--edr-on-green);
	opacity: 1;
}
.btn-primary:hover, .btn-primary.active, .btn-primary:focus, .btn-primary:active,
a.btn-primary:hover, .btn-neutral:hover,
.btn-contrast:hover, a.btn-contrast:hover, .btn-contrast:focus,
a.button:hover, input.button:hover, button.button:hover,
#product-view .button-cart:hover, .button-cart:hover {
	background-color: transparent !important;
	border-color: var(--edr-green-hover) !important;
	color: var(--edr-ink) !important;
	opacity: 1;
}

/* Contur verde, text închis („See products”); la hover se umple */
.btn-outline, a.btn-outline, .btn-contrast-outline {
	background-color: transparent;
	border-color: var(--edr-green);
	color: var(--edr-ink);
}
.btn-outline:hover, a.btn-outline:hover, .btn-contrast-outline:hover {
	background-color: var(--edr-green-hover);
	border-color: var(--edr-green-hover);
	color: var(--edr-on-green);
}

/* Secundar gri */
.btn-default, a.btn-default {
	background-color: var(--edr-light);
	border-color: var(--edr-light);
	color: var(--edr-ink);
}
.btn-default:hover, .btn-default.active, .btn-default:focus,
a.btn-default:hover, a.btn-default:focus {
	background-color: var(--edr-green) !important;
	border-color: var(--edr-green) !important;
	color: var(--edr-on-green) !important;
}

/* ---------- Tabelele B2B ---------- */
.table > thead > tr > th, .table-bordered > thead > tr > td {
	font-family: var(--edr-font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--edr-ink);
}
.b2b_table .btn { padding: 8px 12px; }

/* ---------- Subsol ---------- */
#footer { background-color: var(--edr-dark); }
#footer h5 { color: #ffffff; }
#footer h5:after { background-color: var(--edr-green); }
#footer a:hover { color: var(--edr-green); }

@media (max-width: 767px) {
	h1, .product-info .table-cell.right h1#page-title,
	.title_in_bc .breadcrumb-holder #title-holder #page-title {
		font-size: 28px;
	}
	h2 { font-size: 25px; }
	h3 { font-size: 22px; }
}

/* ---------- Search central, mereu vizibil (Header 2, opțiune din setările temei) ---------- */
.center-search { padding: 0 24px 0 15px; line-height: normal; }
.center-search .search-holder { position: relative; }
.center-search .search-field {
	display: flex;
	align-items: stretch;
	border: 2px solid var(--edr-green);
	background: #ffffff;
}
.center-search .search-field.focus { border: 2px solid var(--edr-green-hover); }
.center-search .search-field input.main-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	min-height: 46px;
	padding: 0 14px;
	border: 0;
}
/* Lipit de chenar: butonul ia exact înălțimea câmpului, textul rămâne doar pentru cititoare de ecran */
.center-search .search-field .do-search {
	position: static;
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: auto;
	padding: 0;
	border: 0;
	font-size: 0;
	letter-spacing: 0;
	cursor: pointer;
}
.center-search .search-field .do-search:before {
	content: "\f002";
	font-family: FontAwesome;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}
.center-search .search-field .do-search:hover {
	background-color: var(--edr-green-hover) !important;
	border-color: var(--edr-green-hover) !important;
}
.mobile-search-row { padding-top: 0; padding-bottom: 10px; line-height: normal; }
.mobile-search-row .search-holder-mobile { position: relative; }
.mobile-search-row input.form-control {
	height: 44px;
	min-height: 44px;
	padding-right: 56px;
	border: 2px solid var(--edr-green);
}
.mobile-search-row .fa-search {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	font-size: 18px;
	background: var(--edr-green);
	color: var(--edr-on-green);
}
/* Colțul cu logo continuă coloana de 300px a meniului; search-ul pornește în dreptul conținutului */
.has-center-search #logo {
	height: auto;
	line-height: 0;
}
.has-center-search #logo img {
	max-height: 66px;
	width: auto;
}
.has-center-search .table-cell.logo { background: var(--edr-light); }
@media (min-width: 992px) {
	.header-wrapper.has-center-search .sticky-header .container {
		width: 100%;
		min-width: 0;
		padding-left: 0;
		padding-right: 0;
	}
	.has-center-search .sticky-header .table-cell { height: 86px; }
	.has-center-search .sticky-header .table-cell.logo {
		width: 300px;
		padding: 10px 20px 10px 24px;
		border-right: 1px solid var(--edr-line);
	}
	.has-center-search .table-cell.center-search { width: auto; }
	.has-center-search .table-cell.shortcuts { width: 424px; padding-right: 24px; }
}
@media (max-width: 991px) {
	.has-center-search .table-cell.logo { padding: 6px 10px; }
}
/* Pe ecrane late, dreapta antetului stă pe un singur rând, centrat cu search-ul */
@media (min-width: 1400px) {
	.has-center-search .table-cell.shortcuts { width: 664px; }
	.has-center-search .shortcuts .sign-in,
	.has-center-search .shortcuts .font-zero {
		display: inline-block;
		height: auto;
		line-height: normal;
		vertical-align: middle;
	}
	.has-center-search .shortcuts .sign-in:after { display: none; }
	.has-center-search .shortcuts .btn-contrast {
		height: 49px;
		padding: 0 22px;
		line-height: 47px;
	}
}

@media (max-width: 991px) {
	.header-wrapper.has-center-search .sticky-header-placeholder {
		height: 124px;
		line-height: 124px;
	}
}

/* ---------- Pagini cu Meniu B2B: pe toată lățimea, cu meniul lipit în stânga ---------- */
@media (min-width: 992px) {
	.container:has(> .row > #column-left .b2b-menu),
	body:has(#column-left .b2b-menu) .breadcrumb-holder .container {
		width: 100%;
		min-width: 0;
	}
	.row:has(> #column-left .b2b-menu) > #column-left {
		width: 300px;
		padding-left: 24px;
		padding-right: 20px;
		border-right: 1px solid var(--edr-line);
	}
	.row:has(> #column-left .b2b-menu):not(:has(> #column-right)) > #content {
		width: calc(100% - 300px);
	}
}

/* ---------- Modulul Meniu B2B ---------- */
.b2b-menu { margin-bottom: 30px; }
.b2b-menu-section + .b2b-menu-section { margin-top: 28px; }
.b2b-menu-title {
	font-size: 20px;
	letter-spacing: -.4px;
	color: var(--edr-green-text);
	margin-bottom: 12px;
}
.b2b-menu ul { list-style: none; margin: 0; padding: 0; }
.b2b-menu li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	font-family: var(--edr-font-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--edr-ink);
}
.b2b-menu li > a span { flex: 1; }
.b2b-menu li > a > i:first-child { width: 22px; font-size: 18px; text-align: center; }
.b2b-menu-arrow { font-size: 20px; }
.b2b-menu li > a:hover, .b2b-menu li.active > a { color: var(--edr-green-text); }
.b2b-menu li.active > a { font-weight: 700; }
.b2b-menu .b2b-menu-extra { display: none; }
.b2b-menu-section.open .b2b-menu-extra { display: block; }
.b2b-menu-more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--edr-font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--edr-green-text);
	text-decoration: underline;
}
.main-menu-wrapper .b2b-menu { padding: 15px; margin: 0; }
@media (max-width: 991px) {
	.b2b-menu { display: none; }
	.main-menu-wrapper .b2b-menu { display: block; }
	.b2b-menu-only #column-left, .b2b-menu-only #column-right { display: none; }
	.b2b-menu-only #content { width: 100%; }
}

/* Linkul „Documentație" din listele de produse (categorie, căutare, product/offers): etichetă gri */
a.b2b-doc {
	display: flex;
	width: max-content;
	max-width: 100%;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 4px 10px;
	background: var(--edr-light);
	border: 1px solid var(--edr-line);
	border-radius: 4px;
	color: var(--edr-green-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .15s, border-color .15s;
}
a.b2b-doc:hover, a.b2b-doc:focus {
	background: #e8f4dc;
	border-color: var(--edr-green);
	color: var(--edr-green-text);
	text-decoration: none;
}
a.b2b-doc .b2b-doc-ext { font-size: 11px; opacity: .7; }

/* Creditul disponibil al firmei, lângă coș (header.twig, CLAUDE.md §4.8) */
.b2b-credit-holder { vertical-align: middle; }
.b2b-credit { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; height: 42px; padding: 0 12px; line-height: 1.2; white-space: nowrap; vertical-align: middle; }
.b2b-credit-label { font-size: 11px; color: var(--edr-body); }
.b2b-credit-amount { font-size: 14px; font-weight: 600; color: var(--edr-green-text); }
.b2b-credit-over .b2b-credit-amount { color: #c0392b; }
a.b2b-credit, a.b2b-credit:hover, a.b2b-credit:focus { text-decoration: none; }
a.b2b-credit:hover .b2b-credit-label { text-decoration: underline; }
.b2b-credit-detail .b2b-credit-total td { color: var(--edr-green-text); }
@media (max-width: 767px) {
	.b2b-credit { padding: 0 6px; }
	.b2b-credit-label { font-size: 10px; }
	.b2b-credit-amount { font-size: 12px; }
}

/* B2B „Cereri de ofertă" (wishlist-ul redenumit): pictograma de lângă coș și butonul „Cere ofertă" din liste */
.b2b-quote-holder { vertical-align: middle; }
.b2b-quote { position: relative; display: inline-block; padding: 0 10px; font-size: 22px; line-height: 42px; color: var(--edr-body); }
.b2b-quote .counter { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--edr-green-text); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.b2b-quote-btn { white-space: nowrap; }
