/* obiectepromotionale.ro: the product page (board G). Loaded only on product pages. */

/* ---------- Product page (board G) ---------- */

.op-product {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.op-product__top {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 40px 48px;
	align-items: start;
}

.op-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: sticky;
	top: 16px;
}

.op-gallery__main {
	margin: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.op-gallery__zoom {
	display: block;
	width: min(100%, 560px);
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.op-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.op-gallery__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 560px);
	aspect-ratio: 1 / 1;
	color: var(--wp--preset--color--text-2);
}

.op-gallery__thumbs {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.op-gallery__thumbs button {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	cursor: pointer;
}

.op-gallery__thumbs button[aria-pressed="true"] {
	border: 2px solid var(--wp--preset--color--primary);
}

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

.op-lightbox {
	width: min(92vw, 1000px);
	max-height: 92vh;
	padding: 24px;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
}

.op-lightbox::backdrop {
	background: rgba(13, 27, 61, 0.72);
}

.op-lightbox img {
	display: block;
	width: 100%;
	max-height: calc(92vh - 48px);
	object-fit: contain;
}

.op-lightbox__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.op-product__info {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.op-product__title {
	margin: 0;
	font-size: 36px;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.op-pmeta {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--wp--preset--color--text-2);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.op-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.op-stock:empty {
	display: none;
}

.op-stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.op-stock[data-tone="ok"] {
	color: var(--wp--preset--color--success);
}

.op-stock[data-tone="low"] {
	color: var(--wp--preset--color--warning-text);
}

.op-stock[data-tone="neutral"] {
	color: var(--wp--preset--color--text-3);
}

.op-intro {
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.5;
}

/* The product's key points (stage 5): a list with ticks under the introduction. */
.op-keypoints {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.op-keypoints li {
	position: relative;
	padding-left: 28px;
	line-height: 1.45;
}

.op-keypoints li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23157a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Sections under the product */

.op-sec {
	margin-top: 72px;
}

.op-sec--two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 40px 56px;
}

.op-sec--top {
	align-items: start;
}

.op-sec--last {
	padding-bottom: 96px;
}

.op-sec h2 {
	margin: 0 0 12px;
	font-size: 26px;
}

.op-sec p {
	margin: 0 0 12px;
	color: var(--wp--preset--color--text-4);
}

.op-sec p.op-lead {
	font-size: 17px;
	color: var(--wp--preset--color--text);
}

.op-sec p.op-sec__sub {
	margin: -6px 0 16px;
	color: var(--wp--preset--color--text-2);
}

.op-sec p.op-sec__note {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--wp--preset--color--text-2);
}

.op-scroll {
	overflow-x: auto;
}

.op-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 15px;
}

.op-table th {
	font-weight: 600;
}

.op-table thead tr {
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.op-table tbody tr {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.op-table th,
.op-table td {
	padding: 12px;
	vertical-align: top;
}

.op-table tr > :first-child {
	padding-left: 0;
}

.op-table--details th {
	width: 40%;
	padding: 10px 16px 10px 0;
}

.op-table--details td {
	padding: 10px 0;
}

.op-table--tiers {
	min-width: 560px;
	font-size: 16px;
}

.op-sec__h3 {
	margin: 32px 0 10px;
	font-size: 19px;
}

.op-table--pack {
	max-width: 640px;
}

.op-table--pers {
	min-width: 640px;
}

.op-table__pos {
	font-weight: 600;
}

.op-nowrap {
	white-space: nowrap;
}

.op-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 4fr 2fr;
	border-top: 3px solid var(--wp--preset--color--primary);
}

.op-steps li {
	padding: 14px 20px 0;
	border-right: 1px solid var(--wp--preset--color--line);
}

.op-steps li:first-child {
	padding-left: 0;
}

.op-steps li:last-child {
	border-right: 0;
	padding-right: 0;
}

.op-steps__when {
	display: block;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--primary);
}

.op-steps__what {
	color: var(--wp--preset--color--text-2);
}

.op-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.op-faq summary {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 600;
}

.op-faq__sign {
	font-size: 22px;
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	transition: transform 200ms ease;
}

.op-faq[open] .op-faq__sign {
	transform: rotate(45deg);
}

.op-sec .op-faq p {
	margin: 0 0 14px;
}

.op-help {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	padding: 24px;
}

.op-help__photo {
	flex: none;
	width: 110px;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
}

.op-help > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.op-sec .op-help h2 {
	margin: 0;
	font-size: 22px;
}

.op-sec .op-help p {
	margin: 0;
}

.op-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 16px;
}

.op-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 16px;
	background: var(--wp--preset--color--white);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--wp--preset--color--text);
}

.op-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--wp--preset--color--white);
}

.op-card__name {
	font-weight: 600;
	line-height: 1.3;
}

.op-card__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 18px;
	font-weight: 800;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 899px) {
	.op-product {
		padding: 0 16px;
	}

	.op-crumbs ol {
		display: none;
	}

	.op-crumbs__back {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		color: var(--wp--preset--color--text-3);
	}

	.op-product__top {
		margin-top: 8px;
	}

	.op-gallery {
		position: static;
	}

	.op-gallery__main {
		padding: 12px;
	}

	.op-product__title {
		font-size: 28px;
	}

	.op-sec {
		margin-top: 56px;
	}

	.op-steps {
		grid-template-columns: 1fr;
	}

	.op-steps li,
	.op-steps li:first-child {
		padding: 14px 0;
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.op-help {
		flex-direction: column;
	}
}

/* Below the minimum order, next to the total. */
.op-summary__under {
	margin: 4px 0 0;
	color: var(--wp--preset--color--warning-text);
	font-weight: 600;
}
