/* Hide gallery when enable_details is on */
.single-portfolio.cma-enable-product-details .column_image_gallery,
.single-portfolio.cma-enable-product-details .cma-portfolio-gallery-slider-wrapper {
	display: none !important;
}

/* Jump arrow → products section */
.cma-portfolio-products-jump {
	display: block !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 28px 0 8px;
	text-align: center;
}

.cma-portfolio-products-jump__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(35, 31, 32, 0.25);
	border-radius: 50%;
	background: transparent;
	text-decoration: none !important;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	animation: cma-products-jump-bounce 1.8s ease-in-out infinite;
}

.cma-portfolio-products-jump__link:hover,
.cma-portfolio-products-jump__link:focus {
	border-color: #ed1c24;
	background: rgba(237, 28, 36, 0.06);
	transform: translateY(2px);
	animation: none;
}

.cma-portfolio-products-jump__arrow {
	display: block;
	width: 12px;
	height: 12px;
	border-right: 2px solid #ed1c24;
	border-bottom: 2px solid #ed1c24;
	transform: rotate(45deg);
	margin-top: -4px;
}

@keyframes cma-products-jump-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(6px);
	}
}

/* Full-width products section (dark BeBuilder section) */
.cma-portfolio-products-section {
	display: block !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-margin-top: 110px;
}

.cma-portfolio-product-details {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 16px;
}

.cma-portfolio-product-block {
	display: block;
	width: 100%;
	padding: 40px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cma-portfolio-product-block:last-child {
	border-bottom: 0;
	padding-bottom: 16px;
}

/* Image LEFT · content RIGHT */
.cma-portfolio-product-top {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 40px;
	width: 100%;
}

.cma-portfolio-product-media {
	flex: 0 0 240px;
	width: 240px;
	max-width: 240px;
}

.cma-portfolio-product-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border: none;
	border-radius: 12px;
	background: #fff;
	padding: 16px;
	box-sizing: border-box;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.cma-portfolio-product-body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding-top: 2px;
}

.cma-portfolio-product-header {
	margin: 0;
	font: normal normal 800 22px/28px "Funnel Display", sans-serif;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.cma-portfolio-product-list,
.cma-portfolio-product-detail {
	font: normal normal normal 15px/24px Geologica, sans-serif;
	color: rgba(255, 255, 255, 0.88);
}

.cma-portfolio-product-list p,
.cma-portfolio-product-list ul,
.cma-portfolio-product-list ol,
.cma-portfolio-product-list li,
.cma-portfolio-product-list span,
.cma-portfolio-product-detail p,
.cma-portfolio-product-detail ul,
.cma-portfolio-product-detail ol,
.cma-portfolio-product-detail li,
.cma-portfolio-product-detail span {
	margin: 0 0 8px;
	font-size: 15px !important;
	line-height: 24px !important;
	font-family: Geologica, sans-serif !important;
	color: inherit;
}

.cma-portfolio-product-list ul,
.cma-portfolio-product-list ol,
.cma-portfolio-product-detail ul,
.cma-portfolio-product-detail ol {
	padding-left: 1.15rem;
	list-style: disc;
	margin-bottom: 0;
}

.cma-portfolio-product-list li,
.cma-portfolio-product-detail li {
	margin-bottom: 6px;
}

.cma-portfolio-product-list li:last-child,
.cma-portfolio-product-detail li:last-child,
.cma-portfolio-product-list p:last-child,
.cma-portfolio-product-detail p:last-child {
	margin-bottom: 0;
}

.cma-portfolio-product-list a,
.cma-portfolio-product-detail a {
	color: #fff;
	font-size: inherit !important;
	line-height: inherit !important;
	text-decoration: underline;
}

.cma-portfolio-product-actions {
	margin-top: 6px;
}

.cma-portfolio-product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 11px 26px;
	border: 1px solid #ed1c24;
	border-radius: 4px;
	background: #ed1c24;
	color: #fff !important;
	font: normal normal 700 14px/18px Geologica, sans-serif;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cma-portfolio-product-button:hover,
.cma-portfolio-product-button:focus {
	background: transparent;
	border-color: #fff;
	color: #fff !important;
	text-decoration: none !important;
}

html {
	scroll-behavior: smooth;
}

/* Mobile */
@media (max-width: 900px) {
	.cma-portfolio-products-section {
		scroll-margin-top: 80px;
	}

	.cma-portfolio-product-details {
		max-width: 100%;
		padding: 0 4px;
	}

	.cma-portfolio-product-block {
		padding: 28px 0;
	}

	.cma-portfolio-product-top {
		flex-direction: column !important;
		align-items: center;
		gap: 18px;
		text-align: center;
	}

	.cma-portfolio-product-media {
		flex: 0 0 auto;
		width: 100%;
		max-width: 200px;
	}

	.cma-portfolio-product-body {
		max-width: 100%;
		align-items: center;
		text-align: center;
	}

	.cma-portfolio-product-list ul,
	.cma-portfolio-product-list ol {
		display: inline-block;
		text-align: left;
		margin: 0 auto;
	}

	.cma-portfolio-product-header {
		font-size: 18px;
		line-height: 1.3;
	}

	.cma-portfolio-product-list,
	.cma-portfolio-product-detail,
	.cma-portfolio-product-list p,
	.cma-portfolio-product-list ul,
	.cma-portfolio-product-list ol,
	.cma-portfolio-product-list li,
	.cma-portfolio-product-list span,
	.cma-portfolio-product-detail p,
	.cma-portfolio-product-detail ul,
	.cma-portfolio-product-detail ol,
	.cma-portfolio-product-detail li,
	.cma-portfolio-product-detail span {
		font-size: 14px !important;
		line-height: 1.45 !important;
	}

	.cma-portfolio-product-button {
		width: 100%;
		max-width: 260px;
		font-size: 13px;
	}
}
