/*
Theme Name: FoundBestOne Product
Theme URI: https://foundbestone.com
Description: Independent product-focused theme for PartnerBoost product posts and regular WordPress content.
Author: FoundBestOne
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Text Domain: foundbestone-product
*/

:root {
	--fbp-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
	background: var(--wp--preset--color--fbp-surface);
	font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fbp-site-header {
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.fbp-site-footer {
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fbp-card {
	box-shadow: var(--fbp-card-shadow);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.fbp-card:hover {
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.fbp-card .wp-block-post-featured-image img,
.fbp-product-hero .wp-block-post-featured-image img {
	border-radius: 18px;
	object-fit: cover;
}

.fbp-card .wp-block-post-title {
	font-size: 1.05rem !important;
	font-weight: 750;
	letter-spacing: -0.01em;
	line-height: 1.35;
	margin: 0;
}

.fbp-card .wp-block-post-title a {
	color: var(--wp--preset--color--fbp-ink);
	display: -webkit-box;
	overflow: hidden;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.fbp-card .wp-block-post-featured-image {
	margin-bottom: 0 !important;
}

.fbp-product-shell {
	align-items: start;
}

.pbac-product-detail,
.pbac-product-copy {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.pbac-product-meta,
.pbac-product-info,
.pbac-product-commerce {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	display: grid;
	gap: 12px;
	padding: var(--wp--preset--spacing--40);
}

.fbp-card .pbac-product-meta,
.fbp-card .pbac-product-info,
.fbp-card .pbac-product-commerce {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.pbac-product-meta p,
.pbac-product-info p,
.pbac-product-commerce p,
.pbac-buy-wrap {
	margin: 0;
}

.pbac-buy-wrap {
	text-align: center;
}

.pbac-product-meta a {
	text-decoration: none;
}

.pbac-product-meta__label,
.pbac-product-info__label,
.pbac-product-commerce__label {
	color: var(--wp--preset--color--fbp-muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pbac-product-price,
.pbac-product-price__current {
	color: var(--wp--preset--color--fbp-ink);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.1;
}

.fbp-card .pbac-product-price,
.fbp-card .pbac-product-price__current {
	font-size: 1.05rem;
}

.pbac-product-price {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
}

.pbac-product-price .pbac-product-info__label {
	flex-basis: 100%;
}

.pbac-product-price__old {
	color: var(--wp--preset--color--fbp-muted);
	text-decoration: line-through;
}

.pbac-product-availability {
	color: var(--wp--preset--color--fbp-muted);
	margin: 0;
}

.pbac-buy-button,
.pbac-product-link {
	background: var(--wp--preset--color--fbp-accent);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	padding: 13px 22px;
	text-decoration: none;
}

.pbac-buy-button {
	text-align: center;
}

.fbp-card .pbac-buy-button {
	font-size: 0.95rem;
	padding: 11px 16px;
	width: 100%;
}

.pbac-product-link {
	background: var(--wp--preset--color--fbp-ink);
	font-size: var(--wp--preset--font-size--small);
	padding: 9px 16px;
}

.pbac-product-affiliate-link {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.pbac-product-copy h2,
.pbac-product-copy h3 {
	margin-top: var(--wp--preset--spacing--50);
}

.pbac-product-copy > :first-child {
	margin-top: 0;
}

.wp-block-post-content > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60);
}

@media (max-width: 781px) {
	.fbp-product-shell {
		grid-template-columns: 1fr;
	}
}
