/* ==========================================================================
   50-product.css - pagina de produs (zona product).
   Desktop (>= 981px): reproduce 1:1 layout-ul Divi Theme Builder 328274 "All products"
   (randuri 90% / max 1552px, coloane 3/5 + 2/5 cu gutter 3%, marginile modulelor Divi),
   plus CSS-ul custom din Divi (docs/reference/divi-custom.css) si codul din modulul
   "fullwidth_code" de la finalul layout-ului (tab-uri, recenzii, carduri "Produse Recomandate").
   Mobil (< 981px): layout propriu, la final.
   Se incarca doar pe paginile de produs (ermara_asset_is_needed, prefix 50).
   ========================================================================== */

/* ---------- Randuri si coloane (Divi: sectiune padding 0 0 54px, randuri padding 27px 0) ---------- */
.woocommerce div.product.er-pd {
	position: relative;
	margin: 0;
	padding: 0 0 54px;
	color: var(--er-text);
}
.er-pd .er-pd-row::after {
	content: "";
	display: block;
	clear: both;
}
.er-pd .er-pd-row--notices {
	min-height: 28px; /* randul gol din Divi: 27px padding + coloana de 1px */
	padding-top: 27px;
}
.er-pd .er-pd-row--main,
.er-pd .er-pd-row--tabs {
	padding: 27px 0;
}
.er-pd .er-pd-row--related {
	padding: 27px 0 0;
}

.er-pd .er-pd-col {
	position: relative;
	float: left;
	min-height: 1px;
}
.er-pd .er-pd-col--gallery {
	width: 58.8%;
	margin-right: 3%;
}
.woocommerce div.er-pd.product div.er-pd-col--summary {
	float: left;
	width: 38.2%;
	margin: 0;
}

/* ---------- Notificari (modulul Divi "Woo Cart Notice") ---------- */
.er-pd .er-pd-row--notices .woocommerce-notices-wrapper:empty {
	display: none;
}
.er-pd .er-pd-row--notices .woocommerce-message,
.er-pd .er-pd-row--notices .woocommerce-info,
.er-pd .er-pd-row--notices .woocommerce-error {
	margin: 0 0 2em !important;
	padding: 15px !important;
	border: 0 !important;
	border-radius: 0;
	background: #000 !important;
	color: #fff;
	font-size: 14px;
	font-weight: 300 !important;
	line-height: 23.8px;
}
.er-pd .er-pd-row--notices .woocommerce-message::before,
.er-pd .er-pd-row--notices .woocommerce-info::before,
.er-pd .er-pd-row--notices .woocommerce-error::before {
	display: none;
}
.er-pd .er-pd-row--notices .woocommerce-error li,
.er-pd .er-pd-row--notices .woocommerce-message a:not(.button),
.er-pd .er-pd-row--notices .woocommerce-info a:not(.button) {
	color: #fff;
	font-weight: 300 !important;
}
.er-pd .er-pd-row--notices .button,
.er-pd .er-pd-row--notices .wc-forward,
.er-pd .er-pd-row--notices .wc-backward {
	float: right;
	margin: 0 0 0 1em;
	padding: 12px 30px !important;
	border: 0 !important;
	border-radius: 0;
	background: #fff !important;
	color: #000 !important;
	font-size: 15px;
	font-weight: 300 !important;
	line-height: 1.7em;
	transition: color .3s, background-color .3s;
}
.er-pd .er-pd-row--notices .button:hover,
.er-pd .er-pd-row--notices .wc-forward:hover,
.er-pd .er-pd-row--notices .wc-backward:hover {
	background: #000 !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1px #fff;
}

/* ---------- Galeria (modulul "Woo Images", clasa jewelryproduct_section2_image) ---------- */
.er-pd .er-pd-images {
	position: relative;
}
.er-pd .er-pd-images::after {
	content: "";
	display: block;
	clear: both;
}
.woocommerce div.er-pd.product div.images,
.woocommerce div.er-pd.product div.images.woocommerce-product-gallery {
	float: left;
	width: 100%;
	margin: 0;
}
/* Fara iconita de lupa (ascunsa si pe live din CSS-ul custom). */
.er-pd .woocommerce-product-gallery__trigger {
	display: none !important;
}
.woocommerce div.er-pd.product div.images .woocommerce-product-gallery__wrapper {
	margin: 0;
}
/* Rama: 1px #f4f4f4 pe imaginea unica sau pe viewport-ul sliderului. */
.er-pd .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.er-pd .woocommerce-product-gallery .flex-viewport {
	border: 1px solid #f4f4f4;
}
.er-pd .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image {
	border: 0;
}
/* CSS custom live: chenar gri de 1px, 4px spatiu interior, colturi de 4px. */
.woocommerce div.er-pd.product div.images .woocommerce-product-gallery__image img {
	box-sizing: border-box;
	padding: 4px;
	border: 1px solid #dadada;
	border-radius: 4px;
	transition: none !important;
}
.woocommerce div.er-pd.product div.images .woocommerce-product-gallery__image img.zoomImg {
	padding: 4px;
	border: 0;
}
/* Miniaturile (slider cu mai multe imagini): 90x90, rand de 4. */
.woocommerce div.er-pd.product div.images .flex-control-thumbs {
	overflow: visible;
	margin: 6.6667% 0 0;
	padding: 0;
	line-height: 26px;
}
.woocommerce div.er-pd.product div.images .flex-control-thumbs li {
	float: left;
	width: 90px !important;
	height: 90px !important;
	margin: 0 6.6667% 20px 0 !important;
	border: 1px solid #f4f4f4;
	list-style: none;
}
.woocommerce div.er-pd.product div.images .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0 !important;
}
.woocommerce div.er-pd.product div.images .flex-control-thumbs li img {
	box-sizing: border-box;
	padding: 2px;
	border: none;
	border-radius: 4px;
	opacity: 1;
	cursor: pointer;
}
.woocommerce div.er-pd.product div.images .flex-control-thumbs li img.flex-active {
	border-bottom: 2px solid #ff5733;
}

/* Eticheta "Reduceri!" */
.woocommerce div.er-pd.product .er-pd-images span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 6px 18px;
	border: 0;
	border-radius: 3px;
	background: var(--er-gold);
	color: #fff;
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
}

/* ---------- Clipul produsului primul in galerie (2026-11-06), cu aceeasi rama ca pozele ---------- */
.woocommerce div.er-pd.product div.images .woocommerce-product-gallery__video a { display: block; }
.woocommerce div.er-pd.product div.images .woocommerce-product-gallery__video video {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: 4px;
	border: 1px solid #dadada;
	border-radius: 4px;
	object-fit: cover;
	background: #fff;
}
/* Miniatura clipului: semn "play" peste poster. */
.er-pd .woocommerce-product-gallery--has-video .flex-control-thumbs li:first-child { position: relative; }
.er-pd .woocommerce-product-gallery--has-video .flex-control-thumbs li:first-child::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat;
	pointer-events: none;
}

/* ---------- Clipul produsului (link YouTube / Vimeo din campul video_produs), sub galerie ---------- */
/* Divi: modulul galeriei are margine 2.55% cand nu e ultimul in coloana; modulul video are 20px
   deasupra (marginile se suprapun, ramane cea mai mare). */
.er-pd .er-pd-images:not(:last-child) {
	margin-bottom: 2.55%;
}
.er-pd .er-pd-video {
	position: relative;
	width: 100%;
	margin-top: 20px;
	aspect-ratio: 1 / 1;
	background: #222; /* ca playerul WordPress (MediaElement) de pe live, cat se incarca primul cadru */
}
.er-pd .er-pd-video__media,
.er-pd .er-pd-video iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}
.er-pd .er-pd-video--link {
	aspect-ratio: auto;
	background: none;
}

/* ---------- Sumar: module (margine Divi 3.927% din latimea coloanei) ---------- */
.er-pd .er-pd-mod {
	position: relative;
	margin-bottom: 3.927%;
	word-wrap: break-word;
}
.er-pd .er-pd-col--summary > .er-pd-mod:last-child {
	margin-bottom: 0;
}

/* Titlu */
.er-pd .er-pd-title {
	margin-bottom: 9px;
}
.woocommerce div.er-pd.product .er-pd-title h1.product_title {
	margin: 0;
	padding: 0;
	color: #000;
	font-size: 26px;
	font-weight: 300;
	line-height: 1em;
}

/* Rating */
.er-pd .er-pd-rating {
	margin-bottom: 0;
}
.woocommerce div.er-pd.product .er-pd-rating .woocommerce-product-rating {
	margin-bottom: 0;
	line-height: 1.7em;
}
.woocommerce div.er-pd.product .er-pd-rating .star-rating {
	float: none;
	display: inline-block;
	width: 5.4em;
	margin: 0;
}
.woocommerce div.er-pd.product .er-pd-rating .star-rating span::before {
	color: #000; /* stele negre, inainte galben-auriu #f9bd22 */
}
.woocommerce div.er-pd.product .er-pd-rating a.woocommerce-review-link {
	vertical-align: text-bottom;
	color: #000;
	font-weight: 300;
	letter-spacing: -1px;
	line-height: 1.7em;
}

/* Descrierea scurta */
.er-pd .er-pd-excerpt {
	padding: 5px 0;
	color: #000;
	font-size: 16px;
	font-weight: 300;
	line-height: 23.8px;
}

/* Pret */
.er-pd .er-pd-price {
	margin-bottom: 26px;
}
.woocommerce div.er-pd.product .er-pd-price p.price {
	margin: 0;
	padding: 0;
	color: #000;
	font-size: 24px;
	font-weight: 300;
	line-height: 27px;
	letter-spacing: -1px;
	text-transform: uppercase;
}
.woocommerce div.er-pd.product .er-pd-price p.price del {
	color: #999;
}
.er-pd .er-pd-price .amount {
	word-break: break-all;
}

/* Meta: primul bloc fara SKU (categorii, etichete), al doilea doar SKU */
.woocommerce div.er-pd.product .er-pd-meta .product_meta {
	padding-top: 6px;
	border-top: 1px solid #dadada;
	color: rgba(0, 0, 0, .53);
	font-size: 14px;
	line-height: 23.8px;
}
.woocommerce div.er-pd.product .er-pd-meta .product_meta a {
	color: #222;
	font-family: var(--er-font-pop);
}
.er-pd .er-pd-meta--cats .sku_wrapper,
.er-pd .er-pd-meta--sku .posted_in,
.er-pd .er-pd-meta--sku .tagged_as {
	display: none;
}
.er-pd .er-pd-meta--cats.er-pd-meta--has-tags .posted_in::after {
	content: " / ";
}
.er-pd .er-pd-meta .product_meta > span:last-child::after {
	content: "" !important;
}

/* ---------- Formularul de cos (modulul "Woo Add To Cart") ---------- */
.woocommerce div.er-pd.product .er-pd-cart form.cart {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.woocommerce div.er-pd.product .er-pd-cart p.stock {
	margin: 0;
	color: #000; /* inainte oliv #958e09 */
	font-size: .92em;
	line-height: 23.8px;
}
.woocommerce div.er-pd.product .er-pd-cart p.stock.out-of-stock {
	color: #a00;
}
.woocommerce div.er-pd.product .er-pd-cart label {
	font-family: var(--er-font-pop);
	font-weight: 400;
	line-height: 2.8em;
}
.er-pd .er-pd-cart select {
	padding: 15px;
	font-weight: 300 !important;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart div.quantity,
.woocommerce div.er-pd.product .er-pd-cart form.cart .button {
	float: none !important;
	display: inline-block;
	vertical-align: middle;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart div.quantity {
	margin: 0 12px 0 0;
}
/* Cantitatea (cerinta 2026-11-05): cutie alba cu contur, butoane - / + (inc/50-product.php), 58px inaltime,
   la fel ca butonul de cos. */
.woocommerce div.er-pd.product .er-pd-cart form.cart div.quantity {
	display: inline-flex;
	align-items: stretch;
	height: 58px;
	border: 1px solid #c8c8c8;
	background: #fff;
}
.er-pd .er-pd-cart .er-qty__btn {
	width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	font-family: Arial, sans-serif;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s;
}
.er-pd .er-pd-cart .er-qty__btn:hover { background: #f2f2f2; }
.er-pd .er-pd-cart .quantity:has(input[type="hidden"], input[readonly]) { border: 0; }
.er-pd .er-pd-cart .quantity:has(input[type="hidden"], input[readonly]) .er-qty__btn { display: none; }
.woocommerce div.er-pd.product .er-pd-cart .quantity input.qty {
	width: 46px;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	color: #000;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
}
.er-pd .er-pd-cart .quantity input.qty::-webkit-outer-spin-button,
.er-pd .er-pd-cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Butonul de cos: mare, negru; la hover alb cu text si contur negru (nu mai devine auriu). */
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button,
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button.alt {
	position: relative;
	width: calc(100% - 148px); /* restul randului dupa cantitate (128px + 12px spatiu) */
	min-width: 260px;
	height: 58px;
	margin: 0;
	padding: 0 40px;
	border: 1px solid #000;
	border-radius: 0;
	background-color: #000;
	color: #fff;
	font-family: var(--er-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .5px;
	text-align: center;
	transition: color .3s, background-color .3s;
}
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button:hover,
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button.alt:hover {
	background-color: #fff;
	color: #000;
}
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button.alt.disabled,
.woocommerce div.er-pd.product .er-pd-cart .single_add_to_cart_button.button.alt.disabled:hover {
	background-color: #000;
	color: #fff;
}

/* Variante. Pe desktop selectorul e mare, cu eticheta deasupra (cerinta 2026-11-05: "Culoare snur" etc.
   erau prea mici); pe telefon stilul din sectiunea mobil. */
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations {
	width: 100%;
	margin: 0 0 14px;
	border: 0;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th.label {
	width: 34.2%;
	padding: 1px;
	font-weight: 700;
	line-height: 28px;
	vertical-align: top;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value {
	position: relative;
	padding: 0 0 20px;
	line-height: 18.2px;
	vertical-align: top;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations label {
	font-weight: 700;
}
/* Selectorul de varianta: stilul Divi (Open Sans 12px, chenar #f4f4f4) + sageata Divi peste sageata WooCommerce. */
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: auto;
	margin: 0 12px 0 0;
	padding: 4px 8px;
	border: 1px solid #f4f4f4;
	border-radius: 3px;
	background-color: rgba(255, 255, 255, 0);
	color: #000;
	font-family: var(--er-font-open);
	font-size: 12px;
	font-weight: 300 !important;
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
}
.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value::after {
	content: "";
	position: absolute;
	top: 9px;
	right: 10px;
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-top-color: #666;
	pointer-events: none;
}
@media (min-width: 981px) {
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations tbody,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations tr,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td {
		display: block;
		width: 100%;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations { margin-bottom: 18px; }
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th.label {
		padding: 0 0 6px;
		text-align: left;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th.label label {
		font-size: 16px;
		font-weight: 600;
		line-height: 1.4;
		color: #000;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value { padding: 0 0 16px; }
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations select {
		height: 54px;
		margin: 0;
		padding: 0 48px 0 16px;
		border: 1px solid #c8c8c8;
		border-radius: 0;
		background-color: #fff;
		background-image: none; /* sageata WooCommerce; se foloseste chevronul de mai jos */
		font-family: var(--er-font);
		font-size: 16px;
		font-weight: 400 !important;
		line-height: 1.3;
		cursor: pointer;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations select:hover,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations select:focus { border-color: #000; outline: none; }
	/* sageata: chevron negru, centrat pe inaltimea selectorului */
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value::after {
		top: 21px;
		right: 20px;
		width: 9px;
		height: 9px;
		border: 0;
		border-right: 1.6px solid #000;
		border-bottom: 1.6px solid #000;
		transform: rotate(45deg);
	}
}

/* Avantajele (mutate de pe prima pagina, 2026-11-05): caseta cu 4 coloane intre produs si tab-uri. */
.er-pd .er-pd-row--trust { padding: 6px 0 20px; }
.er-pd-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 24px 12px;
	list-style: none;
	border: 1px solid #000;
	border-radius: 8px;
}
.er-pd-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	text-align: center;
}
.er-pd-trust__item + .er-pd-trust__item { border-left: 1px solid #e6e6e6; }
.er-pd-trust__icon { line-height: 0; color: #000; }
.er-pd-trust__icon svg { display: block; width: auto; height: 30px; margin-bottom: 6px; }
.er-pd-trust__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #000;
}
.er-pd-trust__text { font-size: 14px; font-weight: 300; line-height: 1.45; color: #333; }
@media (max-width: 980px) {
	.er-pd .er-pd-row--trust { padding: 0 0 20px; }
	.er-pd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; padding: 18px 6px; }
	.er-pd-trust__item { padding: 0 8px; }
	.er-pd-trust__item + .er-pd-trust__item { border-left: 0; }
	.er-pd-trust__item:nth-child(even) { border-left: 1px solid #e6e6e6; }
	.er-pd-trust__icon svg { height: 26px; margin-bottom: 2px; }
	.er-pd-trust__title { font-size: 12px; }
	.er-pd-trust__text { font-size: 13px; }
}

/* CSS custom live: butonul "Anuleaza" (resetare variante) e ascuns. */
.er-pd .reset_variations {
	display: none !important;
}

/* YITH Product Add-ons: titlul campului (pe live doar asteriscul de obligatoriu) are 20px. */
.woocommerce div.er-pd.product .er-pd-cart .yith-wapo-addon h3.wapo-addon-title {
	font-size: 20px;
	line-height: 1em;
}

/* YITH Product Add-ons (CSS custom live pentru campurile de text #yith-wapo-option-*). */
#yith-wapo-option-5-0 .input-text-container input,
#yith-wapo-option-1-0 .input-text-container input {
	width: 100%;
	height: 70px !important;
	border: 1px solid #6666 !important;
	font-size: 14px;
	resize: none;
}

/* Precomenzi: eticheta din cardurile de produs nu apare (CSS custom live). */
.wpro-pre-order-shop-page {
	display: none;
}

/* Back in stock notifier (CSS custom live). Specificitate mai mare decat frontend.min.css al pluginului,
   care se incarca dupa tema (pe live CSS-ul custom Divi venea ultimul). */
.er-pd .cwgstock_button {
	width: 100%;
	padding: 20px;
	background: #000;
	color: #fff;
}

/* ---------- Tab-uri (modulul "Woo Tabs", clasa jewelryproduct_tab) ---------- */
.woocommerce div.er-pd.product .woocommerce-tabs {
	margin: 0;
	padding: 0;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: flex-start;
	overflow: visible;
	margin: 0 0 30px;
	padding: 25px 0 !important;
	border-bottom: 1px solid #e5e5e5;
	background-color: #f4f4f4;
	list-style: none;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs::before {
	display: none;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li {
	display: table;
	position: relative;
	float: left;
	z-index: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--er-text);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7em;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li::before {
	display: none;
}
/* Linia scurta gri dintre tab-uri (codul din fullwidth_code). */
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -9px;
	bottom: auto;
	left: auto;
	width: 18px;
	height: 2px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background-color: #ccc;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li:last-child::after {
	display: none;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li a {
	display: table-cell;
	position: relative;
	padding: 4px 30px;
	color: #000;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7em;
	text-decoration: none;
}
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li a { color: #888; }
/* Tabul activ (si hover): negru, subliniat (cerinta 2026-11-05; inainte auriu). */
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li a:hover {
	color: #000;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}
.woocommerce div.er-pd.product .woocommerce-tabs .panel {
	margin: 0;
	padding: 30px;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #000;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6em;
}
/* Inainte de scriptul WooCommerce doar primul tab e vizibil (evita saltul paginii la incarcare). */
.er-pd .woocommerce-tabs .wc-tab ~ .wc-tab {
	display: none;
}
.er-pd .woocommerce-tabs .panel p {
	line-height: 1.6em;
}
.er-pd .woocommerce-tabs .panel h2 {
	margin-bottom: 20px !important;
}
.woocommerce div.er-pd.product table.shop_attributes {
	margin-bottom: 0;
}
.woocommerce div.er-pd.product table.shop_attributes th.woocommerce-product-attributes-item__label {
	text-align: left;
}
.woocommerce div.er-pd.product table.shop_attributes td p {
	padding: 8px 0;
}
/* Recenzii (codul din fullwidth_code) */
.er-pd .woocommerce-Reviews .star-rating span::before,
.er-pd .woocommerce-Reviews .comment-form .stars a::before {
	color: #000 !important; /* inainte #f9bd22 */
}
.er-pd .woocommerce-Reviews .comment-form .comment-form-comment {
	margin-bottom: 20px !important;
	padding: 0;
	border: 1px solid #222;
}
.er-pd .woocommerce-Reviews .comment-form .comment-form-comment #comment {
	width: 100%;
	border: 0;
	background-color: transparent;
	color: #222;
	font-size: 15px !important;
}
.woocommerce div.er-pd.product .woocommerce-Reviews .submit {
	padding: 15px 30px !important;
	border: none !important;
	border-radius: 0;
	background-color: #000 !important;
	box-shadow: inset 0 0 0 1px #000;
	color: #fff !important;
	font-size: 15px !important;
}
.woocommerce div.er-pd.product .woocommerce-Reviews .submit:hover {
	background-color: #fff !important;
	color: #000 !important;
}

/* ---------- Produse Recomandate (modul Text + "Woo Related Products") ---------- */
.er-pd .er-pd-related-title {
	position: relative;
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #e5e5e5;
	color: #000;
	font-size: 20px;
	font-weight: 300;
	line-height: 23.8px;
}
.er-pd .er-pd-related-title::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 160px;
	height: 1px;
	background-color: #000;
}
.woocommerce div.er-pd.product .er-pd-related section.related {
	margin: 0;
	padding: 0;
}
/* Divi pune titlul "Produse similare" la font 0 (ramane doar spatiul lui). */
.woocommerce div.er-pd.product .er-pd-related section.related > h2 {
	height: 16px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 0 !important;
	line-height: 0;
}
/* Grila: 4 coloane de 22.15% cu spatiu 3.8% (Divi), carduri cu chenar #f4f4f4 si 25px intre randuri.
   Cardul vine din woocommerce/content-product.php (zona shop, li.er-card); aici doar varianta lui Divi
   "jewelryproduct_section2_product": titlu 18px/1.4em, pret auriu in dreapta. Pe live pretul era mutat
   din JavaScript langa titlu (float: right); aici titlul si pretul stau pe acelasi rand (grid), titlul
   pe cel mult doua randuri, ca inaltimea cardurilor sa fie stabila. */
.woocommerce div.er-pd.product .er-pd-related ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 22.15%));
	column-gap: 3.8%;
	row-gap: 0;
	align-items: stretch; /* carduri cu chenar: aceeasi inaltime pe rand */
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.woocommerce div.er-pd.product .er-pd-related ul.products::before,
.woocommerce div.er-pd.product .er-pd-related ul.products::after {
	content: none;
	display: none;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product {
	position: relative;
	float: none;
	width: auto;
	margin: 0 0 25px !important;
	padding: 0;
	border: 1px solid #f4f4f4;
	line-height: 26px;
}
/* Cutie 4:3 (formatul pozelor de produs de 1200x900); pozele cu alt format incap intregi, pe alb. */
.woocommerce div.er-pd.product .er-pd-related ul.products li.product img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: #fff;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .er-card__body,
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .jewelryproduct_section2_product_content {
	display: grid;
	/* pretul ocupa cel mult 45% (un interval "139.00 LEI – 159.00 LEI" sau o reducere strivea titlul la ~70px) */
	grid-template-columns: minmax(0, 1fr) fit-content(45%);
	column-gap: 10px;
	align-items: baseline;
	padding: 0;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	overflow: hidden;
	/* spatiul de sub titlu ca margine, nu padding: cu line-clamp, padding-ul lasa sa se vada varful randului 3 */
	margin: 0 0 10px;
	padding: 0 !important;
	color: #000 !important;
	font-family: var(--er-font);
	font-size: 18px !important;
	font-weight: 300 !important;
	line-height: 1.4em !important;
	letter-spacing: -1px !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .price {
	display: block;
	float: none;
	margin: 0;
	color: #000;
	font-size: 16px;
	font-weight: 500;
	line-height: 25.2px;
	text-align: right;
	text-transform: uppercase;
	white-space: normal;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .price .amount {
	color: #000;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .price del {
	display: inline;
	margin-right: 4px;
	font-size: 13px;
	opacity: .6;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .price ins {
	display: inline;
	font-weight: 500;
	text-decoration: none;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .star-rating {
	grid-column: 1 / -1;
	display: inline-block;
	width: 5.4em;
	margin: 0 0 8px;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .star-rating span::before {
	color: #000; /* stele negre, inainte galben-auriu #f9bd22 */
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product span.onsale {
	padding: 6px 18px;
	background-color: var(--er-gold);
	color: #fff;
	font-family: var(--er-font-pop);
	font-size: 15px;
}
.woocommerce div.er-pd.product .er-pd-related ul.products li.product .button {
	display: none !important;
}

/* ==========================================================================
   Mobil si tableta (< 981px): layout propriu, o singura coloana.
   Galerie sus, apoi titlu / pret / optiuni / buton mare, tab-uri compacte,
   produse recomandate pe 2 coloane. Fara elemente mai late decat ecranul.
   ========================================================================== */
@media (max-width: 980px) {
	.woocommerce div.product.er-pd {
		padding-bottom: 32px;
	}
	.er-pd .er-pd-row--notices {
		min-height: 0;
		padding-top: 16px;
	}
	.er-pd .er-pd-row--notices.er-pd-row--empty {
		padding-top: 12px;
	}
	.er-pd .er-pd-row--main {
		padding: 0 0 24px;
	}
	.er-pd .er-pd-row--tabs {
		padding: 8px 0 24px;
	}
	.er-pd .er-pd-row--related {
		padding: 8px 0 0;
	}
	.er-pd .er-pd-col,
	.woocommerce div.er-pd.product div.er-pd-col--summary {
		float: none;
		width: 100%;
		margin: 0;
	}
	.woocommerce div.er-pd.product div.er-pd-col--summary {
		margin-top: 22px;
	}

	/* Notificari: text si buton unul sub altul */
	.er-pd .er-pd-row--notices .woocommerce-message,
	.er-pd .er-pd-row--notices .woocommerce-info,
	.er-pd .er-pd-row--notices .woocommerce-error {
		display: flex;
		flex-direction: column-reverse;
		gap: 12px;
		margin: 0 0 16px !important;
		text-align: center;
	}
	.er-pd .er-pd-row--notices .button,
	.er-pd .er-pd-row--notices .wc-forward {
		float: none;
		display: block;
		margin: 0;
		text-align: center;
	}

	/* Galerie */
	.woocommerce div.er-pd.product div.images .flex-control-thumbs {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
		margin: 10px 0 0;
	}
	.woocommerce div.er-pd.product div.images .flex-control-thumbs li {
		float: none;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		aspect-ratio: 1 / 1;
		overflow: hidden;
	}
	.woocommerce div.er-pd.product div.images .flex-control-thumbs li img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.woocommerce div.er-pd.product .er-pd-images span.onsale {
		top: 8px;
		left: 8px;
		padding: 3px 10px;
		font-size: 13px;
	}
	.er-pd .er-pd-images:not(:last-child) {
		margin-bottom: 0;
	}
	.er-pd .er-pd-video {
		margin-top: 12px;
	}

	/* Sumar */
	.er-pd .er-pd-mod {
		margin-bottom: 14px;
	}
	.woocommerce div.er-pd.product .er-pd-title h1.product_title {
		font-size: 22px;
		line-height: 1.3;
	}
	.er-pd .er-pd-title {
		margin-bottom: 6px;
	}
	.er-pd .er-pd-excerpt {
		padding: 0;
		font-size: 15px;
		line-height: 1.55;
	}
	.er-pd .er-pd-price {
		margin-bottom: 16px;
	}
	.woocommerce div.er-pd.product .er-pd-price p.price {
		font-size: 24px;
		line-height: 1.2;
	}
	.woocommerce div.er-pd.product .er-pd-meta .product_meta {
		font-size: 13px;
		line-height: 1.6;
		padding-top: 8px;
	}
	.woocommerce div.er-pd.product .er-pd-meta .product_meta a {
		font-size: 13px;
	}
	.er-pd .er-pd-meta--sku {
		margin-bottom: 18px;
	}

	/* Formular: campuri pe toata latimea, cantitate + buton mare pe acelasi rand */
	.er-pd .er-pd-cart select,
	.er-pd .er-pd-cart input[type="text"],
	.er-pd .er-pd-cart input[type="email"],
	.er-pd .er-pd-cart textarea {
		max-width: 100%;
		font-size: 16px; /* fara zoom automat pe iOS */
	}
	.er-pd .er-pd-cart .yith-wapo-addon select {
		width: 100% !important;
		height: 48px;
		padding: 0 12px;
		line-height: 1.3;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations tbody,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations tr,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th,
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td {
		display: block;
		width: 100%;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th.label {
		padding: 0;
		line-height: 1.6;
		text-align: left;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations th.label label {
		line-height: 1.8;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value {
		padding-bottom: 14px;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations select {
		height: 48px;
		padding: 0 40px 0 12px;
		border-color: #ddd;
		font-family: var(--er-font);
		font-size: 16px;
		line-height: 1.3;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .variations td.value::after {
		display: none;
	}
	/* YITH forteaza "form.cart:has(#yith-wapo-container ...) { display: block !important }" (specificitate
	   de ID); :not(#er-pd-none) ridica specificitatea ca randul flex sa castige pe mobil. */
	.woocommerce div.er-pd.product .er-pd-cart form.cart:not(.variations_form):not(#er-pd-none),
	.woocommerce div.er-pd.product .er-pd-cart .woocommerce-variation-add-to-cart {
		display: flex !important;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 10px;
	}
	/* :where() = specificitate mica, ca regulile pentru cantitate si buton de mai jos sa castige. */
	:where(.er-pd-cart form.cart:not(.variations_form), .er-pd-cart .woocommerce-variation-add-to-cart) > * {
		flex: 1 1 100%;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart div.quantity {
		flex: 0 0 auto;
		height: 54px;
		margin: 0;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart .single_add_to_cart_button.button {
		flex: 1 1 0;
		min-width: 0;
		height: auto;
		min-height: 54px;
		padding: 14px 20px;
		font-size: 17px;
	}
	.woocommerce div.er-pd.product .er-pd-cart form.cart input[type="hidden"] {
		display: none;
	}
	.woocommerce div.er-pd.product .er-pd-cart .quantity input.qty {
		width: 40px;
		height: auto;
		padding: 0;
		font-size: 16px;
	}

	/* "Anunta-ma cand revine in stoc" (pluginul back in stock): campul de email de 25px, cu text de 13px
	   (iOS mareste pagina la focus sub 16px). Camp mare, lizibil. */
	.er-pd .cwginstock-subscribe-form input.cwgstock_email {
		width: 100% !important;
		height: 46px;
		padding: 0 12px;
		border: 1px solid #ccc;
		border-radius: 4px;
		font-size: 16px;
		text-align: left;
	}
	.er-pd .cwginstock-subscribe-form .cwginstock-panel-heading h4 { font-size: 17px; line-height: 1.35; }

	/* Tab-uri: banda gri cu tab-uri compacte (fara liniute), continut cu padding mai mic */
	.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs {
		flex-wrap: wrap;
		margin-bottom: 16px;
		padding: 6px 0 !important;
	}
	.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li::after {
		display: none;
	}
	.woocommerce div.er-pd.product .woocommerce-tabs ul.tabs li a {
		padding: 8px 14px;
		font-size: 16px;
	}
	.woocommerce div.er-pd.product .woocommerce-tabs .panel {
		padding: 18px;
		overflow-x: auto;
	}
	.er-pd .woocommerce-tabs .panel h2 {
		font-size: 20px;
		line-height: 1.4;
	}

	/* Produse recomandate: 2 coloane */
	.er-pd .er-pd-related-title {
		margin-bottom: 20px;
		padding-bottom: 14px;
		font-size: 20px;
		text-align: center;
	}
	.er-pd .er-pd-related-title::before {
		left: 50%;
		transform: translateX(-50%);
	}
	.woocommerce div.er-pd.product .er-pd-related section.related > h2 {
		height: 0;
	}
	.woocommerce div.er-pd.product .er-pd-related ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}
	.woocommerce div.er-pd.product .er-pd-related ul.products li.product {
		margin: 0 0 16px !important;
	}
	.woocommerce div.er-pd.product .er-pd-related ul.products li.product .er-card__body,
	.woocommerce div.er-pd.product .er-pd-related ul.products li.product .jewelryproduct_section2_product_content {
		display: block;
		padding: 8px 8px 10px;
	}
	.woocommerce div.er-pd.product .er-pd-related ul.products li.product .woocommerce-loop-product__title {
		margin: 0 0 4px;
		padding: 0 !important;
		font-size: 14px !important;
		line-height: 1.35 !important;
		letter-spacing: 0 !important;
	}
	.woocommerce div.er-pd.product .er-pd-related ul.products li.product .price {
		font-size: 14px;
		line-height: 1.5;
		text-align: left;
		white-space: normal;
	}
}
