/* Our Products - front-end styles */

.op-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 40px;
	box-sizing: border-box;
}

/* Top bar (title + breadcrumbs) - shared by single and archive */
.op-topbar {
	padding: 18px 0;
	margin-bottom: 30px;
	border-bottom: 1px solid #e5e5e5;
}

.op-topbar .op-title {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
}

.op-breadcrumbs {
	font-size: 13px;
	color: #777;
}

.op-breadcrumbs a {
	color: #777;
	text-decoration: none;
}

.op-breadcrumbs a:hover {
	text-decoration: underline;
}

.op-breadcrumbs .op-sep {
	margin: 0 6px;
	color: #bbb;
}

.op-breadcrumbs .op-current {
	color: #333;
}

/* Archive grid - image + title only */
.op-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.op-grid-item {
	display: block;
	text-decoration: none;
	color: inherit;
}

.op-grid-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f2f2f2;
	border-radius: 6px;
}

.op-grid-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.op-grid-item:hover .op-grid-image img {
	transform: scale(1.05);
}

.op-grid-placeholder {
	width: 100%;
	height: 100%;
}

.op-grid-title {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.op-empty {
	text-align: center;
	color: #777;
	padding: 40px 0;
}

/* Single product template */
.op-single-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	margin-bottom: 24px;
}

.op-single-content {
	font-size: 16px;
	line-height: 1.7;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
	.op-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.op-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.op-topbar .op-title {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.op-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.op-grid-title {
		font-size: 14px;
	}

	.op-wrap {
		padding: 0 14px 30px;
	}
}

/* Image popup / lightbox */
.op-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.op-modal.op-modal-active {
	display: block;
}

.op-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.op-modal-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	margin: 5vh auto;
	background: #fff;
	border-radius: 6px;
	padding: 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: auto;
}

.op-modal-content img {
	max-width: 100%;
	max-height: 75vh;
	width: auto;
	height: auto;
	display: block;
	border-radius: 4px;
}

.op-modal-title {
	margin: 14px 0 0;
	font-size: 18px;
	text-align: center;
}

.op-modal-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 6px 10px;
}

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

@media (max-width: 600px) {
	.op-modal-content {
		margin: 3vh auto;
		padding: 16px;
		max-width: 94vw;
	}

	.op-modal-content img {
		max-height: 60vh;
	}

	.op-modal-close {
		font-size: 26px;
		top: 2px;
		right: 6px;
	}
}
