/* ─── Single Product Page ────────────────────────────────────────────────────── */

.psingle-page {
	padding: 64px 0 80px;
}

/* ─── Info Section: two-column layout ─────────────────────────────────────── */

.psingle-info {
	display: flex;
	gap: 56px;
	align-items: flex-start;
}

/* ─── Left: Gallery ──────────────────────────────────────────────────────── */

.psingle-gallery {
	flex: 0 0 52%;
	max-width: 52%;
}

.psingle-gallery__main {
	width: 100%;
	border: 1px solid #d7e3dc;
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
}

.psingle-gallery__featured {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity 0.2s ease;
}

.psingle-gallery__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f8f6;
}

.psingle-gallery__placeholder svg {
	width: 120px;
	height: 120px;
}

/* Thumbnails row */
.psingle-gallery__thumbs {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.psingle-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border: 2px solid #d7e3dc;
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease;
}

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

.psingle-thumb:hover {
	border-color: #0b183e;
}

.psingle-thumb--active {
	border-color: #0b183e;
}

/* ─── Right: Details ─────────────────────────────────────────────────────── */

.psingle-details {
	flex: 1;
	min-width: 0;
}

.psingle-title {
	font-size: 32px;
	font-weight: 700;
	color: #0b183e;
	line-height: 1.25;
	margin: 0 0 20px 0;
}

.psingle-excerpt {
	font-size: 16px;
	color: #555555;
	line-height: 1.8;
	margin: 0 0 28px 0;
}

/* Phone */
.psingle-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
}

.psingle-phone__icon {
	flex-shrink: 0;
	color: #666666;
}

.psingle-phone__label {
	font-size: 16px;
	font-weight: 700;
	color: #444444;
	white-space: nowrap;
}

.psingle-phone__number {
	font-size: 18px;
	font-weight: 600;
	color: #2563b0;
	text-decoration: none;
	letter-spacing: 0.2px;
}

.psingle-phone__number:hover {
	text-decoration: underline;
	color: #1a4d96;
}

/* Actions */
.psingle-actions {
	margin-bottom: 24px;
}

.psingle-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0b183e;
	color: #ffffff;
	border: 2px solid #0b183e;
	padding: 14px 40px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border-radius: 2px;
	transition: background 0.25s ease, color 0.25s ease;
	letter-spacing: 0.3px;
}

.psingle-contact-btn:hover,
.psingle-contact-btn[aria-expanded="true"] {
	background: #ffffff;
	color: #0b183e;
}

/* ─── Contact Popup Modal ────────────────────────────────────────────────────── */

.psingle-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.psingle-modal.is-open {
	display: flex;
}

.psingle-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	animation: psingle-fade-in 0.22s ease;
}

.psingle-modal__box {
	position: relative;
	z-index: 1;
	background: #0b183e;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	margin: 16px;
	border-radius: 4px;
	animation: psingle-slide-up 0.25s ease;
}

.psingle-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 32px 0;
}

.psingle-modal__title {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	line-height: 1.3;
}

.psingle-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	padding: 4px;
	border-radius: 3px;
	transition: color 0.18s ease;
	flex-shrink: 0;
}

.psingle-modal__close:hover {
	color: #ffffff;
}

.psingle-modal__body {
	padding: 0;
}

/* Override wpcf7 wrapper padding inside modal — top padding already from header */
.psingle-modal__body .wpcf7 {
	border-radius: 0 0 4px 4px;
}

@keyframes psingle-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes psingle-slide-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── Full Post Content ──────────────────────────────────────────────────── */

.psingle-body {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid #d7e3dc;
}

.psingle-body__inner {
	max-width: 860px;
}

.psingle-body__inner h2,
.psingle-body__inner h3,
.psingle-body__inner h4 {
	color: #0b183e;
	line-height: 1.3;
}

.psingle-body__inner p {
	font-size: 16px;
	color: #555555;
	line-height: 1.85;
	margin-bottom: 20px;
}

.psingle-body__inner img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.psingle-body__inner ul,
.psingle-body__inner ol {
	padding-left: 24px;
	margin-bottom: 20px;
}

.psingle-body__inner li {
	font-size: 16px;
	color: #555555;
	line-height: 1.75;
	margin-bottom: 6px;
}

/* ─── Tablet (max 1024px) ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.psingle-info {
		gap: 36px;
	}

	.psingle-gallery {
		flex: 0 0 48%;
		max-width: 48%;
	}

	.psingle-title {
		font-size: 26px;
	}
}

/* ─── Mobile (max 767px) ──────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.psingle-page {
		padding: 40px 0 60px;
	}

	.psingle-info {
		flex-direction: column;
		gap: 32px;
	}

	.psingle-gallery {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.psingle-gallery__main {
		aspect-ratio: 4 / 3;
	}

	.psingle-title {
		font-size: 24px;
		margin-bottom: 16px;
	}

	.psingle-excerpt {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.psingle-phone {
		padding: 12px 16px;
		margin-bottom: 24px;
	}

	.psingle-phone__number {
		font-size: 18px;
	}

	.psingle-form__row {
		flex-direction: column;
		gap: 0;
		margin-bottom: 0;
	}

	.psingle-form__row .psingle-form__field {
		margin-bottom: 20px;
	}

	.psingle-contact-wrap {
		padding: 24px 20px;
	}

	.psingle-body {
		margin-top: 40px;
		padding-top: 32px;
	}
}
