/* ==========================================================================
   Product page (inc/product-page.php). Reuses the product card's buy form
   (pills, stepper, red ADD TO CART) from product-card.css.
   ========================================================================== */

.gcf-single-product { margin: 0 0 20px; }

.gcf-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	margin: 0 0 56px;
}
/* The card's own frame/hover don't apply here. */
.gcf-product.gcf-pcard { padding: 0; border: 0; background: none; box-shadow: none; transform: none; }

/* Gallery */
.gcf-product__gallery { position: sticky; top: calc(var(--gcf-header-h-compact) + 24px); }
.gcf-product__main {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 6%;
	border-radius: 24px;
	background: #F2F1EF;
	overflow: hidden;
}
.gcf-product__main img { width: 100%; height: 100%; object-fit: contain; }
.gcf-product__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.gcf-product__thumbs li { margin: 0; }
.gcf-product__thumb {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	padding: 6px;
	border: 2px solid transparent;
	border-radius: 14px;
	background: #F2F1EF;
	cursor: pointer;
}
.gcf-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gcf-product__thumb:hover { border-color: #CFCBC5; }
.gcf-product__thumb.is-active { border-color: #1E1E1E; }

/* Summary */
.gcf-product__brand { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; }
.gcf-product__brand-logo { width: auto; max-width: 150px; height: 56px; object-fit: contain; }
.gcf-product__brand-name { color: var(--gcf-grey); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gcf-product__brand:hover .gcf-product__brand-logo { opacity: .8; }
html body .gcf-pcard.gcf-product .gcf-product__title {
	margin: 0 0 10px;
	color: #1E1E1E;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.15;
	white-space: normal;
}
.gcf-product__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
html body .gcf-product__price .gcf-pcard__price { color: #1E1E1E; font-size: 26px; font-weight: 700; }
.gcf-test-price,
.gcf-pending {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--gcf-yellow);
	color: #1E1E1E;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: middle;
}
.gcf-pending { margin-left: 6px; font-size: 11px; }
.gcf-product__short { margin: 0 0 22px; color: #555; font-size: 17px; line-height: 1.6; }
.gcf-product__short p { margin: 0; }

/* Buy form: bigger than on the card */
.gcf-product .gcf-pcard__sizes { margin-bottom: 22px; }
.gcf-product .gcf-pill span { min-height: 42px; padding: 0 18px; font-size: 13px; }
.gcf-product .gcf-pcard__buy { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.gcf-product .gcf-qty { flex: none; }
.gcf-product .gcf-pcard__add { flex: 1 1 auto; min-height: 52px; font-size: 15px; }
.gcf-product .gcf-product__wish { position: static; flex: none; }

/* Badges */
.gcf-product__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.gcf-product__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px 6px 6px;
	border: 1px solid var(--gcf-line);
	border-radius: 999px;
	background: #fff;
	color: #1E1E1E;
	font-size: 13px;
	font-weight: 600;
}
.gcf-product__badge-img { width: 34px; height: 34px; object-fit: contain; }
.gcf-product__natural {
	display: block;
	width: 34px;
	height: 34px;
	background: #1E1E1E;
	-webkit-mask: url("../img/gcf-100-natural.webp") center / contain no-repeat;
	mask: url("../img/gcf-100-natural.webp") center / contain no-repeat;
}

/* "Buying for your shop?" */
.gcf-product__trade {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 24px 0 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: #F2F1EF;
	color: #1E1E1E;
	font-size: 16px;
}
.gcf-product__trade .gcf-li { flex: none; font-size: 30px; }
.gcf-product__trade + .gcf-product__trade { margin-top: 10px; }
.gcf-product__trade a { color: #1E1E1E; font-weight: 700; white-space: nowrap; }
.gcf-product__trade a:hover { color: var(--gcf-red-ui); }

/* Tabs */
.gcf-product-tabs { margin: 0 0 64px; border-top: 1px solid var(--gcf-line); }
.gcf-product-tabs__list { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; }
.gcf-product-tabs__list [role="tab"] {
	flex: none;
	min-height: 52px;
	padding: 0 4px;
	margin-right: 22px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--gcf-grey);
	font-family: var(--gcf-font);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}
.gcf-product-tabs__list [role="tab"]:hover { color: #1E1E1E; }
.gcf-product-tabs__list [role="tab"][aria-selected="true"] { border-bottom-color: var(--gcf-red-ui); color: #1E1E1E; }
.gcf-product-tabs__panel { max-width: 760px; padding: 24px 0 0; }
.gcf-product-tabs.is-tabbed .gcf-product-tabs__panel { padding-top: 0; }
.gcf-product-tabs.is-tabbed .gcf-product-tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gcf-product-tabs__heading { margin: 0 0 10px; font-size: 22px; }
.gcf-product-tabs__body { color: #555; font-size: 17px; line-height: 1.7; }
.gcf-product-tabs__body ul { padding-left: 20px; }

/* Recipes + you may also like */
.gcf-product-section { margin: 0 0 64px; }
html body .gcf-product-section__title { margin: 0 0 26px; color: #1E1E1E; font-size: clamp(26px, 3vw, 36px); }
.gcf-product-recipes__grid { margin: 0; }

/* Tablets and phones */
@media (max-width: 1023.98px) {
	.gcf-product { gap: 32px; }
}
@media (max-width: 767.98px) {
	.gcf-product { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
	.gcf-product__gallery { position: static; }
	.gcf-product__main { border-radius: 18px; }
	.gcf-product__thumb { width: 64px; height: 64px; }
	.gcf-product__brand-logo { height: 46px; }
	html body .gcf-product__price .gcf-pcard__price { font-size: 22px; }
	.gcf-product .gcf-pcard__buy { flex-direction: row; flex-wrap: wrap; }
	.gcf-product .gcf-pcard__add { order: 3; flex: 1 0 100%; }
	.gcf-product .gcf-qty { flex: 1; }
	.gcf-product__trade { align-items: flex-start; }
	.gcf-product-tabs__list [role="tab"] { margin-right: 12px; font-size: 16px; }
	.gcf-product-tabs { margin-bottom: 44px; }
	.gcf-product-section { margin-bottom: 44px; }
}
