/**
 * CannaGreen Related Products widget.
 */

.cgx-related-products {
	width: 100%;
}

.cgx-related-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.cgx-related-products__title {
	margin: 0;
	color: #1D1D1B;
	font-size: 22px;
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.cgx-related-products__view-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #163F2E;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	background: transparent !important;
}

.cgx-related-products__view-all:hover {
	color: #102D21;
	background: transparent !important;
}

.cgx-related-products__view-all span {
	font-size: 18px;
	line-height: 0.8;
}

.cgx-related-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Related products must use exactly the same product card as archive/shop. */
.cgx-related-products__grid > .product,
.cgx-related-products__grid > .cgx-product-card {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	list-style: none !important;
}

.cgx-related-products .cgx-product-card__inner {
	height: 100%;
}

/* Prevent Elementor/global styles from changing archive card typography inside related widget. */
.cgx-related-products .cgx-product-card__metric-label {
	font-size: 8px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: 0.09em !important;
	text-transform: uppercase !important;
	color: #C8A96A !important;
}

.cgx-related-products .cgx-product-card__metric strong {
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: #1D1D1BCC !important;
}

.cgx-related-products .cgx-product-card__metric-icon {
	width: 26px !important;
	height: 26px !important;
	flex: 0 0 26px !important;
	font-size: 12px !important;
}

.cgx-related-products .cgx-product-card__metric-icon svg {
	width: 12px !important;
	height: 12px !important;
}

@media (max-width: 1024px) {
	.cgx-related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.cgx-related-products__header {
		margin-bottom: 12px;
	}

	.cgx-related-products__title {
		font-size: 20px;
	}

	.cgx-related-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}
