/* TGP Feed — /my-feed/ page styles. Scoped under #tgp-feed-root.
   Buttons pin every visual prop with !important — the theme resets
   button/anchor styling aggressively (recurring gotcha). */

body.tgp-feed-page .entry-header,
body.tgp-feed-page h1.entry-title,
body.tgp-feed-page .page-header { display: none !important; }

#tgp-feed-root {
	max-width: 1200px;
	margin: 0 auto;
	padding: 34px 20px 90px;
	color: #fafafa;
	font-size: 14px;
	line-height: 1.5;
}

#tgp-feed-root .tgpf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 324px;
	gap: 30px;
	align-items: start;
}

/* ── head ── */
#tgp-feed-root .tgpf-head { margin: 0 0 26px; }
#tgp-feed-root .tgpf-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fafafa;
}
#tgp-feed-root .tgpf-sub { margin: 0; color: #9ca3af; font-size: 14px; }

/* ── cards ── */
#tgp-feed-root .tgpf-card {
	background: rgba(255, 255, 255, 0.028);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 18px;
	padding: 24px 26px 22px;
	margin: 0 0 20px;
}
#tgp-feed-root .tgpf-card--empty {
	text-align: center;
	padding: 56px 30px;
}
#tgp-feed-root .tgpf-card--empty h3 { margin: 14px 0 8px; font-size: 19px; color: #fafafa; }
#tgp-feed-root .tgpf-card--empty p { margin: 0 auto 22px; max-width: 420px; color: #9ca3af; }
#tgp-feed-root .tgpf-empty-ic { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.12)); color: #c4b5fd; }

#tgp-feed-root .tgpf-card-head {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 16px;
}
#tgp-feed-root .tgpf-card-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#tgp-feed-root a.tgpf-vname,
#tgp-feed-root span.tgpf-vname {
	color: #fafafa !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#tgp-feed-root a.tgpf-vname:hover { color: #c4b5fd !important; }
#tgp-feed-root .tgpf-meta { color: #9ca3af; font-size: 12.5px; }

#tgp-feed-root .tgpf-newpill,
#tgp-feed-root .tgpf-salepill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	padding: 4px 9px;
	border-radius: 99px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
}
#tgp-feed-root .tgpf-newpill { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; }
#tgp-feed-root .tgpf-salepill { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); color: #e4e4e7; }
#tgp-feed-root .tgpf-salepill svg { color: #fbbf24; }

#tgp-feed-root .tgpf-typeic {
	display: inline-flex;
	width: 40px;
	height: 40px;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(168, 85, 247, 0.14);
	color: #c4b5fd;
}
#tgp-feed-root .tgpf-typeic--trending { background: rgba(251, 146, 60, 0.13); color: #fdba74; }
#tgp-feed-root .tgpf-typeic--wish_sale { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
#tgp-feed-root .tgpf-typeic--resume { background: rgba(96, 165, 250, 0.13); color: #93c5fd; }

/* ── avatars ── */
#tgp-feed-root .tgpf-ava {
	display: inline-flex;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #312e3f, #1d1b26);
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
}
#tgp-feed-root .tgpf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tgp-feed-root .tgpf-ava-init { color: #c4b5fd; font-weight: 800; font-size: 15px; }

/* ── track rows ── */
#tgp-feed-root .tgpf-rows { display: flex; flex-direction: column; }
#tgp-feed-root .tgpf-row {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 12px;
	transition: background 0.15s ease;
	min-width: 0;
}
@media (hover: hover) { #tgp-feed-root .tgpf-row:hover { background: rgba(255, 255, 255, 0.04); } }

#tgp-feed-root button.tgpf-rowplay {
	position: relative;
	width: 46px !important;
	height: 46px !important;
	flex: none;
	border: 0 !important;
	border-radius: 10px !important;
	overflow: hidden;
	cursor: pointer;
	padding: 0 !important;
	background: #222 !important;
	box-shadow: none !important;
}
#tgp-feed-root button.tgpf-rowplay--sm { width: 40px !important; height: 40px !important; }
#tgp-feed-root .tgpf-rowplay img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tgp-feed-root .tgpf-rowplay-ic {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 12, 0.55);
	color: #fff;
}
@media (hover: hover) {
#tgp-feed-root .tgpf-row:hover .tgpf-rowplay-ic--play,
#tgp-feed-root .tgpf-like:hover .tgpf-rowplay-ic--play { display: flex; }
}
#tgp-feed-root .tgpf-row.is-playing .tgpf-rowplay-ic--play,
#tgp-feed-root .tgpf-like.is-playing .tgpf-rowplay-ic--play { display: none !important; }
@media (hover: hover) {
#tgp-feed-root .tgpf-row.is-playing:hover .tgpf-rowplay-ic--pause,
#tgp-feed-root .tgpf-like.is-playing:hover .tgpf-rowplay-ic--pause { display: flex; }
}

#tgp-feed-root .tgpf-eq {
	position: absolute;
	inset: 0;
	display: none;
	align-items: flex-end;
	justify-content: center;
	gap: 2.5px;
	padding-bottom: 9px;
	background: rgba(10, 10, 12, 0.5);
}
#tgp-feed-root .tgpf-row.is-playing .tgpf-eq { display: flex; }
@media (hover: hover) { #tgp-feed-root .tgpf-row.is-playing:hover .tgpf-eq { display: none; } }
#tgp-feed-root .tgpf-eq i {
	width: 3px;
	border-radius: 2px;
	background: #c4b5fd;
	animation: tgpfEq 0.9s ease-in-out infinite;
	height: 10px;
}
#tgp-feed-root .tgpf-eq i:nth-child(2) { animation-delay: 0.22s; height: 16px; }
#tgp-feed-root .tgpf-eq i:nth-child(3) { animation-delay: 0.44s; height: 7px; }
@keyframes tgpfEq {
	0%, 100% { transform: scaleY(0.45); }
	50% { transform: scaleY(1); }
}

#tgp-feed-root .tgpf-rowmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
#tgp-feed-root a.tgpf-rowtitle {
	color: #fafafa !important;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#tgp-feed-root a.tgpf-rowtitle:hover { color: #c4b5fd !important; }
#tgp-feed-root .tgpf-rowsub { display: flex; align-items: center; gap: 8px; min-width: 0; }
#tgp-feed-root a.tgpf-rowvendor {
	color: #9ca3af !important;
	font-size: 12px;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#tgp-feed-root a.tgpf-rowvendor:hover { color: #d4d4d8 !important; }
#tgp-feed-root .tgpf-src { color: #8b8b94; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#tgp-feed-root .tgpf-chips { display: flex; gap: 6px; flex: none; }
#tgp-feed-root .tgpf-chip {
	padding: 3px 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
	color: #a1a1aa;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
#tgp-feed-root .tgpf-off { display: none; }

#tgp-feed-root .tgpf-rowactions { display: flex; align-items: center; gap: 8px; flex: none; }
#tgp-feed-root button.tgpf-heart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #71717a !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: color 0.15s ease, transform 0.15s ease;
}
#tgp-feed-root button.tgpf-heart:hover { color: #f87171 !important; transform: scale(1.08); background: transparent !important; }
#tgp-feed-root button.tgpf-heart.is-on { color: #ef4444 !important; }
#tgp-feed-root button.tgpf-heart.is-on svg { fill: currentColor; }

#tgp-feed-root button.tgpf-buy {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	padding: 8px 15px !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 99px !important;
	background: transparent !important;
	color: #e4e4e7 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	box-shadow: none !important;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
@media (hover: hover) {
#tgp-feed-root button.tgpf-buy:hover {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #fff !important;
}
}
#tgp-feed-root .tgpf-buy-inner { display: inline-flex; align-items: center; gap: 7px; }
#tgp-feed-root .tgpf-buy-inner--in { display: none; }

/* in-cart state: dimmed text + check, "In the cart" — click again removes */
#tgp-feed-root button.tgpf-buy.is-incart { background: transparent !important; border-color: rgba(34, 197, 94, 0.45) !important; color: #4ade80 !important; font-weight: 600 !important; box-shadow: none !important; }
@media (hover: hover) { #tgp-feed-root button.tgpf-buy.is-incart:hover { background: rgba(239, 68, 68, 0.08) !important; border-color: rgba(248, 113, 113, 0.5) !important; color: #fca5a5 !important; box-shadow: none !important; } }
#tgp-feed-root button.tgpf-buy.is-incart .tgpf-buy-inner--add { display: none; }
#tgp-feed-root button.tgpf-buy.is-incart .tgpf-buy-inner--in { display: inline-flex; }

/* pending state: dim label, centered ring spinner */
#tgp-feed-root .tgpf-buy-spin {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: #f4f4f5;
	border-radius: 50%;
	animation: tgpfSpin 0.7s linear infinite;
}
/* while pending the label is fully hidden (width kept) — only the ring shows */
#tgp-feed-root button.tgpf-buy.is-loading { pointer-events: none; }
#tgp-feed-root button.tgpf-buy.is-loading .tgpf-buy-inner { opacity: 0; visibility: hidden; }
#tgp-feed-root button.tgpf-buy.is-loading .tgpf-buy-spin { display: block; }

#tgp-feed-root .tgpf-buy-price { display: inline-flex; align-items: center; gap: 5px; }
#tgp-feed-root .tgpf-buy-price del { opacity: 0.55; font-weight: 500; }
#tgp-feed-root .tgpf-buy-price ins { text-decoration: none; }
#tgp-feed-root .tgpf-buy-price .woocommerce-Price-amount { color: inherit; }

#tgp-feed-root a.tgpf-morelink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 12px;
	color: #a78bfa !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}
#tgp-feed-root a.tgpf-morelink:hover { color: #c4b5fd !important; }

/* ── producer suggestion tiles ── */
#tgp-feed-root .tgpf-sugrow { display: flex; flex-direction: column; gap: 4px; }
#tgp-feed-root .tgpf-sug {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 12px;
	min-width: 0;
}
#tgp-feed-root .tgpf-sug:hover { background: rgba(255, 255, 255, 0.04); }
#tgp-feed-root .tgpf-sugmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
#tgp-feed-root a.tgpf-sugname {
	color: #fafafa !important;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#tgp-feed-root a.tgpf-sugname:hover { color: #c4b5fd !important; }
#tgp-feed-root .tgpf-sugmeta { color: #8b8b94; font-size: 11.5px; }

#tgp-feed-root button.tgpf-follow {
	position: relative;
	flex: none;
	padding: 7px 14px !important;
	border: 1px solid rgba(168, 85, 247, 0.55) !important;
	border-radius: 99px !important;
	background: transparent !important;
	color: #c4b5fd !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}
#tgp-feed-root button.tgpf-follow:hover { background: rgba(168, 85, 247, 0.14) !important; }
#tgp-feed-root button.tgpf-follow .tgpf-follow-on { display: none; align-items: center; gap: 5px; }
#tgp-feed-root button.tgpf-follow.is-on { border-color: rgba(255, 255, 255, 0.14) !important; color: #9ca3af !important; background: transparent !important; }
#tgp-feed-root button.tgpf-follow.is-on .tgpf-follow-idle { display: none; }
#tgp-feed-root button.tgpf-follow.is-on .tgpf-follow-on { display: inline-flex; }

/* ── sidebar ── */
#tgp-feed-root .tgpf-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
#tgp-feed-root .tgpf-widget {
	background: rgba(255, 255, 255, 0.028);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 18px;
	padding: 20px 22px;
}
#tgp-feed-root .tgpf-widget-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 14px;
}
#tgp-feed-root .tgpf-widget-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: #fafafa; letter-spacing: -0.01em; }
#tgp-feed-root a.tgpf-widget-link { color: #a78bfa !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
#tgp-feed-root a.tgpf-widget-link:hover { color: #c4b5fd !important; }
#tgp-feed-root button.tgpf-refresh {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	padding: 5px 10px !important;
	border: 0 !important;
	border-radius: 99px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	color: #a1a1aa !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: none !important;
}
#tgp-feed-root button.tgpf-refresh:hover { color: #fafafa !important; background: rgba(255, 255, 255, 0.09) !important; }
#tgp-feed-root button.tgpf-refresh.is-loading svg { animation: tgpfSpin 0.8s linear infinite; }
@keyframes tgpfSpin { to { transform: rotate(360deg); } }

#tgp-feed-root .tgpf-widget-body { display: flex; flex-direction: column; gap: 2px; }
#tgp-feed-root .tgpf-widget .tgpf-sug { margin: 0 -8px; padding: 8px; }

#tgp-feed-root .tgpf-like {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 8px;
	margin: 0 -8px;
	border-radius: 11px;
	min-width: 0;
}
@media (hover: hover) { #tgp-feed-root .tgpf-like:hover { background: rgba(255, 255, 255, 0.04); } }
#tgp-feed-root .tgpf-likemain { min-width: 0; flex: 1; display: flex; flex-direction: column; }
#tgp-feed-root a.tgpf-liketitle {
	color: #e4e4e7 !important;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#tgp-feed-root a.tgpf-liketitle:hover { color: #c4b5fd !important; }
#tgp-feed-root .tgpf-likesub { color: #8b8b94; font-size: 11px; }

#tgp-feed-root .tgpf-avastrip { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── primary button ── */
#tgp-feed-root a.tgpf-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	padding: 11px 22px !important;
	border: 0 !important;
	border-radius: 99px !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
}
#tgp-feed-root a.tgpf-btn--primary { background: linear-gradient(135deg, #a855f7, #7c3aed) !important; color: #fff !important; }
#tgp-feed-root a.tgpf-btn--primary:hover { filter: brightness(1.1); color: #fff !important; }

/* ── hidden Sonaar engine ── */
#tgp-feed-engine, #tgp-feed-engine-side {
	position: absolute !important;
	left: -99999px !important;
	top: 0;
	width: 640px;
	overflow: hidden;
	opacity: 1;
}

/* ── responsive ── */
@media (max-width: 1020px) {
	#tgp-feed-root .tgpf-layout { grid-template-columns: minmax(0, 1fr); }
	#tgp-feed-root .tgpf-side { position: static; }
}
@media (max-width: 640px) {
	#tgp-feed-root { padding: 24px 14px 70px; }
	#tgp-feed-root .tgpf-card { padding: 18px 16px 16px; border-radius: 15px; }
	#tgp-feed-root .tgpf-title { font-size: 24px; }
	#tgp-feed-root .tgpf-chips { display: none; }
	#tgp-feed-root .tgpf-src { display: none; }
	#tgp-feed-root .tgpf-off { display: none; }
	#tgp-feed-root .tgpf-row { gap: 10px; }
	#tgp-feed-root .tgpf-widget { padding: 18px 16px; }
	#tgp-feed-root button.tgpf-buy { padding: 6px 12px !important; font-size: 12px !important; }
	#tgp-feed-root button.tgpf-heart { width: 28px !important; height: 28px !important; }
}

/* ── Follow button loading state (follow + unfollow) ── */
#tgp-feed-root button.tgpf-follow.is-busy { pointer-events: none; position: relative; }
#tgp-feed-root button.tgpf-follow.is-busy .tgpf-follow-idle,
#tgp-feed-root button.tgpf-follow.is-busy .tgpf-follow-on { visibility: hidden !important; }
#tgp-feed-root button.tgpf-follow.is-busy::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 13px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	border: 2px solid rgba(168, 85, 247, 0.3);
	border-top-color: #a855f7;
	animation: tgpfFollowSpin 0.6s linear infinite;
}
@keyframes tgpfFollowSpin { to { transform: rotate(360deg); } }

/* ── sidebar row wishlist + add-to-cart ── */
#tgp-feed-root .tgpf-likeact { display: flex; align-items: center; gap: 3px; flex: none; margin-left: 4px; }
#tgp-feed-root button.tgpf-heart--sm { width: 30px !important; height: 30px !important; }
#tgp-feed-root button.tgpf-heart--sm svg { width: 14px; height: 14px; }
#tgp-feed-root button.tgpf-buy--sm { width: 30px !important; height: 30px !important; padding: 0 !important; justify-content: center; border-radius: 50% !important; border: 1px solid rgba(255,255,255,0.14) !important; background: transparent !important; color: #d4d4d8 !important; font-size: 0 !important; }
#tgp-feed-root button.tgpf-buy--sm .tgpf-buy-inner { gap: 0; }
#tgp-feed-root button.tgpf-buy--sm svg { width: 15px; height: 15px; }
#tgp-feed-root button.tgpf-buy--sm.is-incart { border-color: rgba(34,197,94,0.45) !important; color: #4ade80 !important; background: transparent !important; font-weight: 400 !important; }
@media (hover: hover) {
	#tgp-feed-root button.tgpf-buy--sm:hover { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.3) !important; color: #fff !important; }
	#tgp-feed-root button.tgpf-buy--sm.is-incart:hover { background: rgba(239,68,68,0.08) !important; border-color: rgba(248,113,113,0.5) !important; color: #fca5a5 !important; }
}

/* ── "Picked for you" pagination + refresh (2026-08-12) ── */
#tgp-feed-root .tgpf-row--extra { display: none !important; }
#tgp-feed-root .tgpf-card-head button.tgpf-refresh--card { margin-left: auto; flex: none; }
#tgp-feed-root button.tgpf-morebtn {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	margin-top: 12px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #8b8b94 !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	cursor: pointer;
	box-shadow: none !important;
}
#tgp-feed-root button.tgpf-morebtn:hover { color: #fafafa !important; }
#tgp-feed-root button.tgpf-morebtn svg { transform: rotate(90deg); }
#tgp-feed-root .tgpf-morecount { color: #8b8b94; font-weight: 500; }

/* mobile one-tap play + sticky nav */
#tgp-feed-root button.tgpf-rowplay, #tgp-feed-root button.tgpf-heart, #tgp-feed-root button.tgpf-buy { touch-action: manipulation; }
@media (hover: none) {
	#tgp-feed-root .tgpf-row:not(.is-playing) .tgpf-rowplay-ic--play,
	#tgp-feed-root .tgpf-like:not(.is-playing) .tgpf-rowplay-ic--play { display: flex; }
}
/* sticky player next/prev play in engine-chunk order, not feed order — hide on the feed page */
body.tgp-feed-page #sonaar-player .next,
body.tgp-feed-page #sonaar-player .previous { display: none !important; }
