/* HG WooCommerce Wishlist Pro - frontend.
   Colours come from --hg-pink / --hg-cyan (set in Wishlist > Settings). */

/* ---------- Page ---------- */
.hg-wl-page { margin-bottom: 40px; }
.hg-wl-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 24px; margin-bottom: 20px; border-radius: 18px;
	border: 1px solid color-mix(in srgb, var(--hg-pink, #ff49c8) 22%, transparent);
}
.hg-wl-title { margin: 0 0 4px; font-size: 1.4rem; font-weight: 700; }
.hg-wl-desc { margin: 0; font-size: .9rem; opacity: .7; }
.hg-wl-panel { padding: 22px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); }

.hg-wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hg-wl-card {
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
	background: rgba(8,12,27,.4);
}
.hg-wl-card-img { display: block; margin-bottom: 10px; }
.hg-wl-card-img img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.hg-wl-card-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.hg-wl-card-title a { color: inherit; text-decoration: none; }
.hg-wl-card-price { color: var(--hg-cyan, #00f3ff); font-size: .9rem; margin-bottom: 6px; }
.hg-wl-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .75rem; opacity: .75; }
.hg-wl-stock.is-in { color: #34d399; }
.hg-wl-stock.is-out { color: #f87171; }

.hg-wl-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.hg-wl-cart {
	flex: 1; display: inline-block; text-align: center; padding: 8px 12px; border-radius: 999px;
	font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
	background: linear-gradient(135deg, var(--hg-cyan, #00f3ff), #7928ca); color: #fff;
}
.hg-wl-cart.is-disabled { background: rgba(255,255,255,.12); }
.hg-wl-remove {
	width: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; cursor: pointer; background: transparent; color: #f87171;
	border: 1px solid rgba(248,113,113,.5);
}
.hg-wl-remove:hover { background: rgba(248,113,113,.12); }

.hg-wl-empty { text-align: center; padding: 40px 10px; }
.hg-wl-empty-icon {
	width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: var(--hg-pink, #ff49c8);
	background: color-mix(in srgb, var(--hg-pink, #ff49c8) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--hg-pink, #ff49c8) 30%, transparent);
}
.hg-wl-empty-icon .hg-wl-icon { width: 32px; height: 32px; }
.hg-wl-empty h3 { margin: 0 0 8px; font-size: 1.15rem; }
.hg-wl-empty p { max-width: 400px; margin: 0 auto 20px; opacity: .7; }
.hg-wl-cta {
	display: inline-block; padding: 10px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
	color: #fff; background: linear-gradient(135deg, var(--hg-cyan, #00f3ff), #7928ca);
}

/* ---------- Toast ---------- */
.hg-wl-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 99999;
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	padding: 12px 20px; border-radius: 999px; font-size: 14px;
	background: #111827; color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.35);
	transition: opacity .25s, transform .25s;
}
.hg-wl-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hg-wl-toast.is-error { background: #b91c1c; }
.hg-wl-toast a { color: var(--hg-cyan, #00f3ff); margin-inline-start: 12px; font-weight: 600; }

/* ---------- Style: neon (dark glass) ---------- */
.hg-wl-style-neon .hg-wl-head,
.hg-wl-style-neon .hg-wl-panel {
	background: rgba(13,17,38,.75);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	color: #fff;
}
.hg-wl-style-neon .hg-wl-title { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.15); }
.hg-wl-style-neon .hg-wl-card-title a { color: #fff; }
.hg-wl-style-neon .hg-wl-btn.is-active { box-shadow: 0 0 12px color-mix(in srgb, var(--hg-pink, #ff49c8) 40%, transparent); }
.hg-wl-style-neon .hg-wl-cta,
.hg-wl-style-neon .hg-wl-cart:not(.is-disabled) { box-shadow: 0 0 12px rgba(0,243,255,.3); }

/* ---------- Style: minimal (light) ---------- */
.hg-wl-style-minimal .hg-wl-head,
.hg-wl-style-minimal .hg-wl-panel { background: #fff; color: #111827; border-color: #e5e7eb; }
.hg-wl-style-minimal .hg-wl-card { background: #f9fafb; border-color: #e5e7eb; }
.hg-wl-style-minimal .hg-wl-card-price { color: var(--hg-pink, #ff49c8); }
.hg-wl-style-minimal .hg-wl-cart:not(.is-disabled),
.hg-wl-style-minimal .hg-wl-cta { background: var(--hg-pink, #ff49c8); }
.hg-wl-style-minimal .hg-wl-cart.is-disabled { background: #e5e7eb; color: #374151; }

/* ---------- Style: inherit (let the theme decide) ---------- */
.hg-wl-style-inherit .hg-wl-head,
.hg-wl-style-inherit .hg-wl-panel,
.hg-wl-style-inherit .hg-wl-card { background: transparent; border-color: rgba(128,128,128,.25); color: inherit; }
.hg-wl-style-inherit .hg-wl-card-price { color: inherit; }
.hg-wl-style-inherit .hg-wl-cart:not(.is-disabled),
.hg-wl-style-inherit .hg-wl-cta { background: var(--hg-pink, #ff49c8); }

@media (max-width: 480px) {
	.hg-wl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.hg-wl-card-img img { height: 130px; }
}

/* ---------- Layouts ---------- */
/* list */
.hg-wl-layout-list .hg-wl-grid { display: flex; flex-direction: column; gap: 12px; }
.hg-wl-layout-list .hg-wl-card { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 12px; }
.hg-wl-layout-list .hg-wl-card-img { margin: 0; }
.hg-wl-layout-list .hg-wl-card-img img { height: 90px; }
.hg-wl-layout-list .hg-wl-card-actions { margin: 0; flex-direction: row; min-width: 210px; }
@media (max-width: 640px) {
	.hg-wl-layout-list .hg-wl-card { grid-template-columns: 80px 1fr; }
	.hg-wl-layout-list .hg-wl-card-img img { height: 80px; }
	.hg-wl-layout-list .hg-wl-card-actions { grid-column: 1 / -1; min-width: 0; }
}
/* compact */
.hg-wl-layout-compact .hg-wl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.hg-wl-layout-compact .hg-wl-card { padding: 10px; }
.hg-wl-layout-compact .hg-wl-card-img img { height: 120px; }
.hg-wl-layout-compact .hg-wl-card-title { font-size: .9rem; }
.hg-wl-layout-compact .hg-wl-card-meta { display: none; }
.hg-wl-layout-compact .hg-wl-card-actions { margin-top: 10px; }
.hg-wl-layout-compact .hg-wl-cart { padding: 6px 8px; font-size: .78rem; }
