/* ═══════════════════════════════════════════════════════════
   Produse Favorite — Varianta 1 Clasic Elegant
   Target: https://www.petgifts.ro/wishlist/
   ═══════════════════════════════════════════════════════════ */

:root {
	--pg-burg:        #6B1A2A;
	--pg-burg-mid:    #8B2035;
	--pg-burg-light:  #F2E8EA;
	--pg-burg-xlight: #FAF4F5;
	--pg-ink:         #2A2826;
	--pg-muted:       #7A7875;
	--pg-border:      #E0DEDD;
	--pg-green:       #2D7A3E;
}

/* ══════════════════════════════════
   DESKTOP VIEW  (> 768px)
══════════════════════════════════ */

.pg-wishlist-mobile { display: none !important; }
.pg-wishlist-desktop { display: block !important; }

/* ── Page header ── */
.pg-wl-header {
	display: flex !important;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 28px;
}

.pg-wl-title {
	font-size: 26px !important;
	font-weight: 700 !important;
	color: var(--pg-ink) !important;
	margin: 0 !important;
	line-height: 1.2;
}

.pg-wl-count {
	font-size: 13px;
	color: var(--pg-muted);
}

/* ── Empty state ── */
.pg-wl-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--pg-muted);
}

.pg-wl-empty-icon {
	font-size: 44px;
	margin-bottom: 12px;
	color: var(--pg-burg-light);
	line-height: 1;
}

.pg-wl-empty-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--pg-ink);
	margin-bottom: 6px;
}

.pg-wl-empty-text { font-size: 13px; }

/* ── Table base — override Astra + YITH defaults ── */
body .woocommerce table.pg-wl-table,
body .woocommerce-page table.pg-wl-table {
	width: 100% !important;
	border-collapse: collapse !important;
	margin: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body .woocommerce table.pg-wl-table td,
body .woocommerce table.pg-wl-table th,
body .woocommerce-page table.pg-wl-table td,
body .woocommerce-page table.pg-wl-table th {
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ── Thead ── */
body .woocommerce table.pg-wl-table thead tr,
body .woocommerce-page table.pg-wl-table thead tr {
	border-bottom: 2px solid var(--pg-burg) !important;
	background: transparent !important;
}

body .woocommerce table.pg-wl-table thead th,
body .woocommerce-page table.pg-wl-table thead th {
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--pg-burg) !important;
	padding: 0 12px 10px !important;
	text-align: left !important;
	background: transparent !important;
}

body .woocommerce table.pg-wl-table thead th.product-remove { width: 36px !important; padding-left: 0 !important; }
body .woocommerce table.pg-wl-table thead th.product-thumbnail { width: 76px !important; }

/* ── Tbody rows ── */
body .woocommerce table.pg-wl-table tbody tr,
body .woocommerce-page table.pg-wl-table tbody tr {
	border-bottom: 1px solid var(--pg-border) !important;
	background: transparent !important;
	transition: background 0.15s;
}

body .woocommerce table.pg-wl-table tbody tr:last-child { border-bottom: none !important; }
body .woocommerce table.pg-wl-table tbody tr:hover { background: var(--pg-burg-xlight) !important; }

body .woocommerce table.pg-wl-table tbody td,
body .woocommerce-page table.pg-wl-table tbody td {
	padding: 14px 12px !important;
	vertical-align: middle !important;
	font-size: 13px !important;
	color: var(--pg-ink) !important;
	background: transparent !important;
}

body .woocommerce table.pg-wl-table tbody td.product-remove {
	padding-left: 0 !important;
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* ── Remove button — override Astra's circular border on a.remove ── */
.pg-remove-btn,
.woocommerce #content table.wishlist_table.cart a.remove.pg-remove-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	height: 28px !important;
	color: var(--pg-muted) !important;
	transition: color 0.15s;
	background: none !important;
	font-size: 0 !important;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.pg-remove-btn:hover,
.woocommerce #content table.wishlist_table.cart a.remove.pg-remove-btn:hover {
	color: var(--pg-burg) !important;
	border: none !important;
	background: none !important;
}

.pg-remove-btn svg { display: block; }

/* ── Thumbnail ── */
.pg-thumb-link img {
	width: 60px !important;
	height: 60px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
}

/* ── Product name link ── */
.pg-product-name {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--pg-ink) !important;
	text-decoration: none !important;
	transition: color 0.15s;
}

.pg-product-name:hover { color: var(--pg-burg) !important; text-decoration: none !important; }

/* ── Price ── */
body .woocommerce table.pg-wl-table .pg-price { font-size: 13px !important; white-space: nowrap; }
body .woocommerce table.pg-wl-table .pg-price .woocommerce-Price-amount { font-weight: 600 !important; color: var(--pg-ink) !important; }
body .woocommerce table.pg-wl-table .pg-price .woocommerce-Price-amount strong { font-weight: 600 !important; }

/* ── Stock ── */
.pg-stock-in  { font-size: 12px !important; font-weight: 500 !important; color: var(--pg-green) !important; white-space: nowrap; }
.pg-stock-out { font-size: 12px !important; font-weight: 500 !important; color: var(--pg-muted)  !important; white-space: nowrap; }

/* ── Add-to-cart column — all WC button variants ── */
body .woocommerce table.pg-wl-table td.product-add-to-cart a,
body .woocommerce table.pg-wl-table td.product-add-to-cart .button,
body .woocommerce table.pg-wl-table td.product-add-to-cart .add_to_cart_button,
body .woocommerce table.pg-wl-table td.product-add-to-cart .add_to_cart,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart a,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .button,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .add_to_cart_button,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .add_to_cart {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 8px 16px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: all 0.18s;
	white-space: nowrap;
	text-decoration: none !important;
	border: none !important;
	background: var(--pg-burg) !important;
	color: #fff !important;
	box-shadow: none !important;
}

body .woocommerce table.pg-wl-table td.product-add-to-cart a:hover,
body .woocommerce table.pg-wl-table td.product-add-to-cart .button:hover,
body .woocommerce table.pg-wl-table td.product-add-to-cart .add_to_cart_button:hover,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart a:hover,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .button:hover,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .add_to_cart_button:hover {
	background: var(--pg-burg-mid) !important;
	color: #fff !important;
}

/* Outline variant (variable products / "Selectează opțiunile") */
body .woocommerce table.pg-wl-table td.product-add-to-cart .pg-btn-outline,
body .woocommerce table.pg-wl-table td.product-add-to-cart a.pg-btn-outline,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .pg-btn-outline,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart a.pg-btn-outline,
/* WC renders variable product link without .button, catch it via product_type_variable */
body .woocommerce table.pg-wl-table td.product-add-to-cart a.product_type_variable,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart a.product_type_variable {
	background: transparent !important;
	color: var(--pg-burg) !important;
	border: 1.5px solid var(--pg-burg) !important;
}

body .woocommerce table.pg-wl-table td.product-add-to-cart .pg-btn-outline:hover,
body .woocommerce table.pg-wl-table td.product-add-to-cart a.pg-btn-outline:hover,
body .woocommerce table.pg-wl-table td.product-add-to-cart a.product_type_variable:hover {
	background: var(--pg-burg-xlight) !important;
	color: var(--pg-burg) !important;
}

/* Added feedback */
body .woocommerce table.pg-wl-table td.product-add-to-cart .added,
body .woocommerce-page table.pg-wl-table td.product-add-to-cart .added {
	background: var(--pg-green) !important;
	border-color: transparent !important;
}

/* Screen-reader span — keep invisible */
body .woocommerce table.pg-wl-table td.product-add-to-cart .screen-reader-text {
	display: none !important;
}

/* Pagination */
.pg-wl-pagination { margin-top: 20px; display: flex; justify-content: center; }

/* Hide YITH's own duplicate title block */
.wishlist-title-container { display: none !important; }

/* Hide the page/account h1 title (we render our own inside the template) */
.woocommerce .entry-title.wc-account-page-title,
h1.entry-title.wc-account-page-title { display: none !important; }


/* ══════════════════════════════════
   MOBILE VIEW
   Applied always (mobile template is
   served server-side by YITH on mobile
   user-agents, no media query needed)
══════════════════════════════════ */

/* Header */
.pg-mob-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0 14px;
	border-bottom: 1px solid var(--pg-border);
	margin-bottom: 12px;
}

.pg-mob-title {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--pg-ink) !important;
	margin: 0 !important;
}

.pg-mob-count { font-size: 12px; color: var(--pg-muted); }

/* Empty */
.pg-mob-empty { background: #fff; border-radius: 10px; padding: 40px 20px; text-align: center; }

/* List — reset ul defaults */
ul.pg-mob-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Card — reset li defaults */
li.pg-mob-card {
	background: #fff !important;
	border-radius: 10px !important;
	padding: 14px !important;
	border: 1px solid var(--pg-border) !important;
	display: flex !important;
	gap: 14px !important;
	align-items: flex-start !important;
	position: relative !important;
	list-style: none !important;
	margin: 0 !important;
}

/* Also cover desktop template's div cards if ever shown */
div.pg-mob-card {
	background: #fff;
	border-radius: 10px;
	padding: 14px;
	border: 1px solid var(--pg-border);
	display: flex;
	gap: 14px;
	align-items: flex-start;
	position: relative;
}

@media (max-width: 768px) {
	.pg-wishlist-desktop { display: none !important; }
	.pg-wishlist-mobile  { display: block !important; }
}

/* Remove × */
.pg-mob-remove {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	font-size: 18px !important;
	line-height: 1;
	color: var(--pg-border) !important;
	text-decoration: none !important;
	transition: color 0.15s;
	background: none !important;
}

.pg-mob-remove:hover { color: var(--pg-burg) !important; }

/* Thumb */
.pg-mob-thumb-wrap { flex-shrink: 0; display: block; }

.pg-mob-thumb-wrap img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
	display: block !important;
}

/* Content */
.pg-mob-content { flex: 1; min-width: 0; }

.pg-mob-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--pg-ink);
	margin-bottom: 6px;
	line-height: 1.3;
	padding-right: 24px;
}

.pg-mob-name a { color: var(--pg-ink) !important; text-decoration: none !important; }
.pg-mob-name a:hover { color: var(--pg-burg) !important; }

.pg-mob-price { font-size: 13px; font-weight: 600; color: var(--pg-ink); margin-bottom: 6px; }
.pg-mob-price .woocommerce-Price-amount { color: var(--pg-ink) !important; }

.pg-mob-stock {
	font-size: 11px;
	font-weight: 500;
	color: var(--pg-green);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.pg-mob-stock::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--pg-green);
	display: block;
	flex-shrink: 0;
}

/* Mobile action buttons */
.pg-mob-actions a,
.pg-mob-actions .button,
.pg-mob-actions .add_to_cart_button {
	display: block !important;
	width: 100% !important;
	padding: 8px 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	text-align: center !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.18s;
	border: none !important;
	background: var(--pg-burg) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.pg-mob-actions a:hover,
.pg-mob-actions .button:hover,
.pg-mob-actions .add_to_cart_button:hover {
	background: var(--pg-burg-mid) !important;
	color: #fff !important;
}

.pg-mob-actions .pg-btn-outline,
.pg-mob-actions a.product_type_variable {
	background: transparent !important;
	color: var(--pg-burg) !important;
	border: 1.5px solid var(--pg-burg) !important;
}

.pg-mob-actions .pg-btn-outline:hover,
.pg-mob-actions a.product_type_variable:hover {
	background: var(--pg-burg-xlight) !important;
}

.pg-mob-actions .added { background: var(--pg-green) !important; }
.pg-mob-actions .screen-reader-text { display: none !important; }

/* ── Global WooCommerce remove link ── */
.woocommerce-js a.remove {
	color: red !important;
	line-height: 17px;
}

.woocommerce-js a.remove:before {
	border: 0px solid red !important;
}
