/* STGCP Liquid Portfolio — single product page + enquiry popup
   Swap the hex values below for your exact brand colors if they differ. */

:root {
	--stgcp-maroon: #8a3439;
	--stgcp-maroon-dark: #6e2a2e;
	--stgcp-teal: #1f3d3c;
	--stgcp-teal-dark: #16302f;
	--stgcp-border: #ddd;
	--stgcp-gray-bg: #f5f5f5;
}

/* Hero */
.stgcp-lp-hero {
	position: relative;
	background-color: #3a3a3a;
	background-size: cover;
	background-position: center;
}

.stgcp-lp-hero-overlay {
	background: linear-gradient(rgba(122, 46, 52, .78), rgba(122, 46, 52, .78));
	padding: 70px 0;
}

.stgcp-lp-title {
	color: #fff;
	font-size: 42px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.stgcp-lp-tagline {
	color: rgba(255, 255, 255, .85);
	font-size: 16px;
	margin: 0;
}

/* Width wrapper — deliberately NOT named .ast-container. That class
   belongs to Astra's own layout system; reusing it here was pulling our
   markup into the theme's sidebar grid and causing a broken 2-column
   layout with a stray dark block. */
.stgcp-lp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* Body — uses padding-top/bottom only (not shorthand "padding") so it
   doesn't clobber the horizontal padding set by .stgcp-lp-container above,
   since this div carries both classes. */
.stgcp-lp-wrap {
	padding-top: 60px;
	padding-bottom: 60px;
}

.stgcp-lp-top {
	display: flex;
	gap: 60px;
	flex-wrap: wrap;
	margin-bottom: 50px;
}

.stgcp-lp-image {
	flex: 0 0 380px;
	max-width: 380px;
	background: #f7f7f7;
	padding: 24px;
	box-sizing: border-box;
}

.stgcp-lp-image img {
	width: 100%;
	height: auto;
	display: block;
}

.stgcp-lp-data {
	flex: 1;
	min-width: 280px;
}

.stgcp-lp-heading {
	color: var(--stgcp-maroon);
	font-size: 22px;
	margin: 0 0 20px;
}

.stgcp-lp-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.stgcp-lp-table td {
	padding: 14px 16px;
	font-size: 15px;
	color: #333;
}

.stgcp-lp-table tr:nth-child(odd) {
	background: var(--stgcp-gray-bg);
}

.stgcp-lp-table .stgcp-lp-label {
	font-weight: 600;
	color: #1a1a1a;
}

/* Fallback: technical data pasted directly into the post's content
   editor (used automatically whenever the ACF Technical Data repeater
   is left empty for a product). */
.stgcp-lp-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.stgcp-lp-content table td,
.stgcp-lp-content table th {
	padding: 14px 16px;
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.stgcp-lp-content table tr:nth-child(odd) {
	background: var(--stgcp-gray-bg);
}

.stgcp-lp-content p:last-child {
	margin-bottom: 30px;
}

.stgcp-enquire-btn {
	background: var(--stgcp-teal);
	color: #fff;
	border: none;
	padding: 14px 30px;
	font-size: 14px;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}

.stgcp-enquire-btn:hover {
	background: var(--stgcp-teal-dark);
}

/* Prev / next */
.stgcp-lp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #eee;
	padding-top: 20px;
	margin-bottom: 50px;
}

.stgcp-lp-nav-label {
	display: block;
	font-size: 13px;
	color: #999;
	margin-bottom: 4px;
}

.stgcp-lp-nav a {
	color: #222;
	font-weight: 600;
	text-decoration: none;
}

.stgcp-lp-nav-next {
	text-align: right;
}

.stgcp-lp-nav-dots {
	color: #bbb;
	font-size: 20px;
}

/* Related products */
.stgcp-lp-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 30px;
}

.stgcp-lp-related-item {
	display: block;
	text-decoration: none;
}

.stgcp-lp-related-thumb {
	background: var(--stgcp-gray-bg);
	padding: 20px;
	margin-bottom: 12px;
}

.stgcp-lp-related-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.stgcp-lp-related-title {
	color: var(--stgcp-maroon);
	font-weight: 600;
	font-size: 15px;
}

/* Enquire Now popup */
.stgcp-enquire-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	display: none;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 60px 20px;
	z-index: 9999;
}

.stgcp-enquire-overlay.is-open {
	display: flex;
}

.stgcp-enquire-modal {
	background: #fff;
	width: 100%;
	max-width: 460px;
	padding: 40px;
	position: relative;
	box-sizing: border-box;
}

.stgcp-enquire-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.stgcp-enquire-title {
	color: var(--stgcp-maroon);
	font-size: 24px;
	margin: 0 0 24px;
}

.stgcp-enquire-modal .wpcf7-form-control {
	width: 100%;
	border: 1px solid var(--stgcp-border);
	padding: 14px 16px;
	font-size: 15px;
	margin-bottom: 18px;
	box-sizing: border-box;
	background: #fff;
}

.stgcp-enquire-modal textarea.wpcf7-form-control {
	min-height: 110px;
	resize: vertical;
}

/* The read-only Product field: darker text, light gray fill, so it visibly
   reads as "already filled in" rather than an empty placeholder. */
.stgcp-enquire-modal .stgcp-product-field {
	background: #fafafa;
	color: #222;
	font-weight: 600;
	cursor: not-allowed;
}

.stgcp-enquire-modal input[type="submit"] {
	background: var(--stgcp-maroon);
	color: #fff;
	border: none;
	padding: 14px 34px;
	font-size: 15px;
	cursor: pointer;
	transition: background-color .2s ease;
}

.stgcp-enquire-modal input[type="submit"]:hover {
	background: var(--stgcp-maroon-dark);
}

body.stgcp-modal-open {
	overflow: hidden;
}

/* Products archive — grouped by category, equal-size cards */
.stgcp-lp-archive-wrap {
	padding: 60px 0;
}

.stgcp-lp-archive-section {
	margin-bottom: 50px;
}

.stgcp-lp-archive-section:last-child {
	margin-bottom: 0;
}

.stgcp-lp-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 26px;
}

.stgcp-lp-archive-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid #eee;
	transition: box-shadow .2s ease;
}

.stgcp-lp-archive-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

/* Fixed-height thumb box, same technique as the Related Products fix —
   every card is the same size regardless of the source photo's shape. */
.stgcp-lp-archive-thumb {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow: hidden;
}

.stgcp-lp-archive-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.stgcp-lp-archive-name {
	text-align: center;
	padding: 16px;
	font-weight: 600;
	color: #222;
	border-top: 1px solid #eee;
}

@media (max-width: 640px) {
	.stgcp-lp-title {
		font-size: 30px;
	}

	.stgcp-lp-top {
		gap: 30px;
	}

	.stgcp-lp-image {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
