/* Peptide Product Loop — frontend styles
   Namespaced under .ppl- so nothing else on the site is affected. */

.ppl-widget {
	width: 100%;
	box-sizing: border-box;
}
.ppl-widget * {
	box-sizing: border-box;
}

/* ---------- Grid mode ---------- */
.ppl-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	align-items: stretch;
}

/* ---------- Carousel mode ---------- */
.ppl-carousel-wrapper {
	overflow: hidden;
	position: relative;
}
.ppl-track {
	display: flex;
	gap: 20px;
	width: max-content;
	will-change: transform;
}
.ppl-track .ppl-card {
	flex: 0 0 260px;
	width: 260px;
}

/* ---------- Card ---------- */
.ppl-card {
	background: #f2f3f5;
	border-radius: 18px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

.ppl-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.ppl-card-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5a7ba6;
	line-height: 1.4;
	max-width: 70%;
}

.ppl-card-icons {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.ppl-icon-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #d8dce3;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.15s ease, background 0.15s ease;
}
.ppl-icon-btn:hover {
	transform: translateY(-1px);
}
.ppl-icon-btn svg {
	stroke: #0b2e59;
	fill: none;
	transition: stroke 0.15s ease, fill 0.15s ease;
}
.ppl-icon-btn.is-active svg {
	stroke: #d2222d;
	fill: #d2222d;
}
/* ---------- TI WooCommerce Wishlist button (real wishlist, icon only) ---------- */
/* .ppl-icon-btn already gives it the 34px circle. TI Wishlist's real markup
   is a wrapper div (.tinv-wraper) containing an <a>, with its icon as an
   actual <i class="ftinvwl ftinvwl-..."> icon-font element and the
   "Add to Wishlist" wording as a plain text node next to it — not a ::before
   pseudo-element. A font-size:0 trick on the parent doesn't reliably zero
   that text (and some themes re-assert TI's own font-size afterwards),
   which is why the words were leaking out and breaking the circle.
   Instead: hide every element inside the button by default, then explicitly
   bring back only the icon itself and stretch it to fill the circle, so the
   whole 34px circle stays clickable — not just the small glyph. Visibility
   (unlike display:none) lets a visible child override an invisible parent,
   and click events still bubble up through the hidden wrapper to whatever
   listener TI attaches to it, so add-to-wishlist keeps working normally. */
.ppl-wishlist-btn {
	position: relative;
	overflow: hidden;
}
.ppl-wishlist-btn * {
	visibility: hidden !important;
}
.ppl-wishlist-btn > div,
.ppl-wishlist-btn a {
	position: absolute !important;
	inset: 0 !important;
	visibility: visible !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}
.ppl-wishlist-btn i {
	/* TI's default icon (an <i class="ftinvwl ..."> icon-font glyph) —
	   sized to fill the whole circle so the full 34px area stays
	   clickable, not just the glyph. font-size keeps the glyph itself
	   visually small; width/height only grows the tappable box. */
	visibility: visible !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	font-size: 16px !important;
	line-height: 1 !important;
	color: #0b2e59;
	margin: 0 !important;
}
.ppl-wishlist-btn svg,
.ppl-wishlist-btn img {
	/* Only used if TI's icon style is switched to an SVG/image icon
	   instead of the default icon font — kept at natural glyph size. */
	visibility: visible !important;
	font-size: 16px !important;
	line-height: 1 !important;
	width: 16px;
	height: 16px;
	color: #0b2e59;
	margin: 0 auto !important;
}
/* Hide any "(0)" counter badge, tooltip popup, or loading text some setups add. */
.ppl-wishlist-btn .tinvwl-tooltip,
.ppl-wishlist-btn .ti-wishlist-counter,
.ppl-wishlist-btn .count,
.ppl-wishlist-btn .loading-spinner + span {
	display: none !important;
}

/* ---------- Guest "sign in to save favorites" prompt ---------- */
.ppl-wishlist-guest-wrap {
	position: relative;
}
.ppl-wishlist-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 240px;
	background: #ffffff;
	border: 1px solid #d8dce3;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	padding: 16px 16px 14px;
	text-align: left;
}
.ppl-wishlist-popover-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: none;
	background: none;
	font-size: 16px;
	line-height: 1;
	color: #8a94a6;
	cursor: pointer;
	padding: 4px;
}
.ppl-wishlist-popover-close:hover {
	color: #0b2e59;
}
.ppl-wishlist-popover-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	font-size: 16px;
	color: #101828;
	margin: 0 0 6px;
	padding-right: 16px;
}
.ppl-wishlist-popover-text {
	font-size: 12.5px;
	line-height: 1.5;
	color: #5a6472;
	margin: 0 0 12px;
}
.ppl-wishlist-popover-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #0b2e59;
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 30px;
	transition: background 0.15s ease;
}
.ppl-wishlist-popover-link:hover {
	background: #123b73;
	color: #ffffff;
}

.ppl-card-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: #101828;
	margin: 0;
}

.ppl-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	background: #0b2e59;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 30px;
	transition: background 0.15s ease;
}
.ppl-card-btn:hover {
	background: #123b73;
	color: #ffffff;
}
.ppl-card-btn svg {
	flex-shrink: 0;
}

.ppl-card-image {
	--ppl-image-lift: -10px;
	background: #ffffff;
	border-radius: 18px;
	margin-top: 6px;
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	flex: 1;
	transition: transform 0.3s ease;
}
.ppl-card-image img {
	max-width: 100%;
	max-height: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Product image slides up slightly on hover, but ONLY when the cursor is
   directly over the image itself — the rest of the card (and the card as a
   whole) has no hover effect at all (toggle: "Lift Image on Hover"). */
.ppl-card-image:hover {
	transform: translateY(var(--ppl-image-lift));
}
.ppl-no-image-hover .ppl-card-image:hover {
	transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ppl-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 600px) {
	.ppl-grid {
		grid-template-columns: 1fr;
	}
	.ppl-track .ppl-card {
		flex: 0 0 220px;
		width: 220px;
	}
}
