/* Product card grid — mirrors static-site/shop.html + DESIGN_SYSTEM.md. */

/* Filter sidebar layout — same shell pattern as .gcf-story-layout. */
.gcf-product-layout {
	display: flex;
	align-items: flex-start;
	gap: 36px;
}

.gcf-product-sidebar {
	flex: 0 0 232px;
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.gcf-product-main {
	flex: 1 1 auto;
	min-width: 0;
}

.gcf-product-sidebar__heading {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c6270;
}

.gcf-product-sidebar .gcf-product-sidebar__search {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #21293b1a;
	border-radius: 8px;
	background: #ffffff;
	font-size: 14px;
	color: #21293b;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.gcf-product-sidebar .gcf-product-sidebar__search:focus {
	outline: none;
	border-color: #0093d0;
	box-shadow: 0 0 0 3px rgba(0, 147, 208, 0.18);
}

.gcf-product-cats {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Two classes to out-specificity the theme's link color rules. */
.gcf-product-cats .chip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #21293b;
	text-decoration: none;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}

.gcf-product-cats .chip:hover {
	background: #f6f6f6;
}

.gcf-product-cats .chip.is-active {
	background: #eaf6fc;
	color: #0093d0;
}

.gcf-product-cats__count {
	font-size: 12px;
	color: #5c6270;
}

.gcf-product-cats .chip.is-active .gcf-product-cats__count {
	color: #0093d0;
}

.gcf-product-sidebar .gcf-product-sidebar__range {
	width: 100%;
	accent-color: #0093d0;
	cursor: pointer;
	margin: 2px 0 8px;
}

.gcf-product-sidebar__price-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	color: #5c6270;
}

.gcf-product-sidebar__price-row strong {
	font-size: 14px;
	color: #21293b;
}

.gcf-product-count {
	margin: 2px 0 16px;
	font-size: 13px;
	color: #5c6270;
}

.gcf-product-card.gcf-filter-hide,
.gcf-product-pagination.gcf-filter-hide {
	display: none;
}

@media (max-width: 780px) {
	.gcf-product-layout {
		flex-direction: column;
		/* Cancel the row layout's flex-start, which in column direction makes
		   the grid shrink to content width instead of filling the viewport. */
		align-items: stretch;
	}

	.gcf-product-sidebar {
		position: static;
		width: 100%;
		flex-basis: auto;
	}
}

.gcf-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--gcf-grid-columns, 4), 1fr);
	gap: 24px;
}

.gcf-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(33, 41, 59, 0.05), 0 4px 14px rgba(33, 41, 59, 0.05);
	transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gcf-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(33, 41, 59, 0.14);
}

.gcf-product-card__img-wrap {
	position: relative;
	display: block;
	height: 230px;
	overflow: hidden;
}

/* Two classes to outrank Elementor's `.elementor img { height: auto }` reset —
   same trick as .gcf-story-card__img. */
.gcf-product-card__img-wrap .gcf-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gcf-product-card:hover .gcf-product-card__img {
	transform: scale(1.05);
}

/* On-image flags need solid fills — the pastel .gcf-badge tints are illegible
   over a photo. */
.gcf-product-card__flag {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(33, 41, 59, 0.2);
}

.gcf-product-card__flag--success {
	background: #1e9e5a;
	color: #ffffff;
}

.gcf-product-card__flag--sale {
	background: #f0a868;
	color: #21293b;
}

.gcf-product-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

/* Two classes to out-specificity the theme's `.post-entry a` color rule —
   same guard as .gcf-campaign-card .gcf-btn-primary. */
.gcf-product-card .gcf-product-card__title {
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
	text-decoration: none;
	transition: color 180ms ease;
}

.gcf-product-card .gcf-product-card__title:hover {
	color: #0093d0;
}

.gcf-product-card__price {
	font-size: 16px;
	font-weight: 700;
	color: #21293b;
}

.gcf-product-card__price del {
	font-weight: 400;
	color: #5c6270;
	margin-right: 4px;
}

.gcf-product-card__price ins {
	text-decoration: none;
}

.gcf-product-card__cta {
	margin-top: auto;
	padding-top: 12px;
}

.gcf-product-card .gcf-product-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 40px;
	border-radius: 999px;
	background: #0093d0;
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 200ms ease, box-shadow 200ms ease;
}

/* Hover matches .gcf-btn-primary / --shadow-btn-hover: primary-hover fill +
   the palette's button shadow token. */
.gcf-product-card .gcf-product-card__btn:hover {
	background: #0076a8;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 147, 208, 0.3);
}

.gcf-product-card__btn svg {
	width: 15px;
	height: 15px;
}

/* WooCommerce ajax add-to-cart feedback states (added/loading classes come
   from WC's own add-to-cart.js). */
.gcf-product-card .gcf-product-card__btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.gcf-product-card .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #0093d0;
	text-align: center;
}

/* ---------- single product (woocommerce/single-product.php) ---------- */

.gcf-pdp-page {
	padding: 48px 0 80px;
}

.gcf-pdp {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 48px;
	align-items: start;
}

.gcf-pdp__gallery .gcf-pdp__main-img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.gcf-pdp__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 12px;
}

.gcf-pdp__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	line-height: 0;
}

.gcf-pdp__thumb img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
}

.gcf-pdp__thumb.is-active {
	border-color: #0093d0;
}

.gcf-pdp__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

/* Flags reuse the card styles but sit in-flow here, not over an image. */
.gcf-pdp__meta .gcf-product-card__flag {
	position: static;
	box-shadow: none;
}

.gcf-pdp__meta-text {
	font-size: 13px;
	color: #5c6270;
}

.gcf-pdp__title {
	margin: 0 0 6px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #21293b;
}

.gcf-pdp__price {
	font-size: 24px;
	font-weight: 700;
	color: #21293b;
	margin-bottom: 18px;
}

.gcf-pdp__price del {
	font-weight: 400;
	color: #5c6270;
	margin-right: 6px;
}

.gcf-pdp__price ins {
	text-decoration: none;
}

.gcf-pdp__desc {
	font-size: 15px;
	line-height: 1.6;
	color: #5c6270;
	max-width: 560px;
	margin-bottom: 24px;
}

/* WooCommerce cart form: quantity stepper + primary button, per the mock. */
.gcf-pdp form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.gcf-pdp form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #21293b1a;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
}

.gcf-pdp form.cart .quantity input.qty {
	width: 52px;
	height: 46px;
	border: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #21293b;
	background: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}

.gcf-pdp form.cart .quantity input.qty::-webkit-outer-spin-button,
.gcf-pdp form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gcf-pdp .gcf-qty-btn {
	width: 40px;
	height: 46px;
	border: 0;
	background: transparent;
	font-size: 18px;
	color: #5c6270;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}

.gcf-pdp .gcf-qty-btn:hover {
	background: #f6f6f6;
	color: #21293b;
}

/* body.woocommerce prefix outranks WC's own `.woocommerce button.button.alt`
   purple default regardless of stylesheet order. */
.gcf-pdp form.cart .single_add_to_cart_button,
.woocommerce .gcf-pdp form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 240px;
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	background: #0093d0;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 200ms ease, box-shadow 200ms ease;
}

.gcf-pdp form.cart .single_add_to_cart_button:hover,
.woocommerce .gcf-pdp form.cart .single_add_to_cart_button:hover {
	background: #0076a8;
	box-shadow: 0 4px 14px rgba(0, 147, 208, 0.3);
}

.gcf-pdp__trust {
	list-style: none;
	margin: 24px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #21293b1a;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gcf-pdp__trust li {
	font-size: 14px;
	line-height: 1.5;
	color: #5c6270;
	padding-left: 24px;
	position: relative;
}

.gcf-pdp__trust li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #1e9e5a;
	font-weight: 700;
}

.gcf-pdp__related {
	margin-top: 64px;
}

.gcf-pdp__related h2 {
	margin: 0 0 24px;
	font-size: 28px;
	font-weight: 600;
	color: #21293b;
}

@media (max-width: 900px) {
	.gcf-pdp {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.gcf-pdp__title {
		font-size: 30px;
	}

	.gcf-pdp__gallery .gcf-pdp__main-img {
		height: 340px;
	}
}

@media (max-width: 1024px) {
	.gcf-product-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-tablet, 2), 1fr);
	}
}

@media (max-width: 640px) {
	.gcf-product-grid {
		grid-template-columns: repeat(var(--gcf-grid-columns-mobile, 1), 1fr);
	}
}
