/* Simple Wishlist for WooCommerce 1.0.0 — stiluri */

/* --- Buton "Adaugă la Wishlist" (produs single + shop loop) --- */
.op-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 8px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.2;
	transition: all 0.2s ease;
}

.op-wishlist-btn:hover {
	border-color: #c9184a;
	color: #c9184a;
}

.op-wishlist-btn--active {
	border-color: #c9184a;
	background: #fdeef1;
	color: #c9184a;
}

.op-wishlist-heart {
	flex-shrink: 0;
}

.op-wishlist-btn:not(.op-wishlist-btn--active) .op-wishlist-heart {
	color: #999;
}

.op-wishlist-single-wrap {
	margin: 10px 0;
}

.op-wishlist-loop-wrap {
	text-align: center;
	margin-top: 8px;
}

.op-wishlist-loop-wrap .op-wishlist-btn {
	font-size: 12px;
	padding: 6px 10px;
}

/* --- Inimioară standalone [op_wishlist_heart] (Elementor Loop Grid) --- */
.op-wishlist-heart-only {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #999;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	transition: all 0.2s ease;
}

.op-wishlist-heart-only:hover {
	color: #c9184a;
	transform: scale(1.08);
}

.op-wishlist-heart-only--active {
	color: #c9184a;
}

.op-wishlist-heart-only--active .op-wishlist-heart path {
	fill: #c9184a;
}

/* Clasă opțională de adăugat în Elementor (Advanced -> CSS Classes) pe
   widget-ul Shortcode, pentru a poziționa inima peste colțul din
   dreapta-sus al imaginii produsului. Containerul părinte (Loop Item /
   coloana cu imaginea) trebuie setat pe position: relative. */
.op-wishlist-heart-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
}

/* --- Widget Elementor nativ [Wishlist Toggle Button] — stiluri de bază,
   suprascrise automat de controalele din panoul Elementor --- */
.op-wishlist-toggle-widget {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 1;
	color: #999;
}

.op-wishlist-toggle-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: inherit;
}

.op-wishlist-toggle-widget__icon i {
	font-size: inherit;
}

.op-wishlist-toggle-widget__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.op-wishlist-toggle-widget__icon-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.op-wishlist-toggle-widget__icon-state--active {
	display: none;
}

.op-wishlist-toggle-widget--active .op-wishlist-toggle-widget__icon-state--active {
	display: inline-flex;
}

.op-wishlist-toggle-widget--active .op-wishlist-toggle-widget__icon-state--normal {
	display: none;
}

.op-wishlist-toggleable.op-wishlist-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.op-wishlist-toggle-widget--active {
	color: #c9184a;
}

/* --- Widget Elementor nativ [Wishlist Icon] — stiluri de bază/fallback,
   suprascrise automat de controalele din panoul Elementor (culori,
   dimensiuni, poziție badge) --- */
.op-wishlist-icon-widget {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 1;
}

.op-wishlist-icon-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: inherit;
}

.op-wishlist-icon-widget__icon i {
	font-size: inherit;
}

.op-wishlist-icon-widget__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.op-wishlist-icon-widget__badge {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 50%;
	background: #c9184a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

/* --- Iconiță HEADER [op_wishlist_icon] (inimă + contor, ca la coș) --- */
.op-wishlist-header-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	vertical-align: middle;
}

.op-wishlist-header-icon .op-wishlist-heart {
	width: 20px;
	height: 20px;
}

.op-wishlist-header-icon:hover {
	opacity: 0.75;
}

.op-wishlist-header-badge {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 50%;
	background: #c9184a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

/* --- Tabel Wishlist (Contul Meu / shortcode) --- */
.op-wishlist-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	border: 1px solid #cacaca;
}

.op-wishlist-table th,
.op-wishlist-table td {
	padding: 12px 10px;
	text-align: left;
	border: 1px solid #cacaca;
	vertical-align: middle;
}

.op-wishlist-table thead th {
	background: #f7f7f7;
	font-weight: 600;
	font-size: 13px;
}

.op-wishlist-col-remove {
	width: 36px;
	text-align: center;
}

.op-wishlist-col-select {
	width: 32px;
	text-align: center;
}

.op-wishlist-col-select input[type="checkbox"],
.op-wishlist-col-remove ~ .op-wishlist-col-select input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.op-wishlist-col-qty {
	text-align: center;
}

.op-wishlist-qty-na {
	color: #999;
}

.op-wishlist-qty-note {
	display: block;
	font-size: 10px;
	color: #999;
	white-space: normal;
}

.op-wishlist-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.op-wishlist-bulk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	border-radius: 3px;
	background: #B027CD;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.op-wishlist-bulk-btn:hover,
.op-wishlist-bulk-btn:focus {
	background: #FF9F07;
	color: #ffffff;
}

.op-wishlist-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #c9184a;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
	border-radius: 50%;
	transition: background 0.15s ease;
}

.op-wishlist-remove:hover {
	background: #fdeef1;
	color: #a01238;
}

.op-wishlist-col-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.op-wishlist-col-name a {
	color: #333;
	text-decoration: underline;
	font-weight: 500;
}

.op-wishlist-col-name a:hover {
	color: #c9184a;
}

.op-wishlist-col-price {
	white-space: nowrap;
}

.op-wishlist-stock--in {
	color: #2e8b3d;
	font-weight: 500;
}

.op-wishlist-stock--out {
	color: #c9184a;
	font-weight: 500;
}

.op-wishlist-add-to-cart {
	text-decoration: underline;
	color: #333;
	white-space: nowrap;
}

.op-wishlist-add-to-cart:hover {
	color: #c9184a;
}

.op-wishlist-unavailable {
	color: #999;
	font-style: italic;
}

.op-wishlist-empty {
	padding: 20px 0;
	color: #666;
}

/* --- Responsive (mobil) — izolat complet de CSS-ul temei prin !important,
   ca să nu se mai suprapună etichetele cu tabelele responsive native
   WooCommerce ale temei --- */
@media screen and (max-width: 600px) {
	table.op-wishlist-table thead {
		display: none !important;
	}

	table.op-wishlist-table,
	table.op-wishlist-table tbody,
	table.op-wishlist-table tr,
	table.op-wishlist-table td {
		display: block !important;
		width: 100% !important;
	}

	table.op-wishlist-table tr {
		border: 1px solid #cacaca !important;
		border-radius: 6px !important;
		margin-bottom: 12px !important;
		padding: 32px 8px 8px !important;
		position: relative !important;
	}

	table.op-wishlist-table td {
		border: none !important;
		padding: 6px 8px !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		text-align: right !important;
	}

	table.op-wishlist-table td::before {
		content: attr(data-title) !important;
		font-weight: 600 !important;
		margin-right: 10px !important;
		color: #777 !important;
		text-align: left !important;
	}

	table.op-wishlist-table td.op-wishlist-col-remove {
		position: absolute !important;
		top: 4px !important;
		right: 4px !important;
		width: auto !important;
		padding: 0 !important;
	}

	table.op-wishlist-table td.op-wishlist-col-remove::before {
		content: '' !important;
		margin: 0 !important;
	}

	table.op-wishlist-table td.op-wishlist-col-select {
		position: absolute !important;
		top: 4px !important;
		left: 4px !important;
		width: auto !important;
		padding: 0 !important;
	}

	table.op-wishlist-table td.op-wishlist-col-select::before {
		content: '' !important;
		margin: 0 !important;
	}

	table.op-wishlist-table td.op-wishlist-col-thumb {
		justify-content: flex-end !important;
	}
}
