.scm-watched-items {
	width: 100%;
}

.scm-watched-loading,
.scm-watched-empty {
	padding: 12px 0;
}

/* v0.2: styling modeled after the site's Recently Viewed cards. */
.scm-watched-grid {
	display: grid;
	grid-template-columns: repeat(var(--scm-watched-columns, 4), minmax(0, 1fr));
	gap: 22px;
	width: 100%;
	align-items: stretch;
}

.scm-watched-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: rgb(255, 255, 255);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scm-watched-card:hover {
	transform: translateY(-2px);
	border-color: rgba(17, 24, 39, 0.13);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.10);
}

.scm-watched-image {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	background: #fff;
	padding: 8px;
    box-sizing: border-box;
}

.scm-watched-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0;
	object-fit: contain !important;
	object-position: center center !important;
	transition: transform 0.4s ease;
}

.scm-watched-card:hover .scm-watched-image img {
	transform: scale(1.04);
}

.scm-watched-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 112px;
	padding: 16px;
}

.scm-watched-title {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	padding: 0;
}

.scm-watched-title a,
.scm-watched-title a:visited,
.scm-watched-title a:hover,
.scm-watched-title a:focus {
	color: rgb(51, 65, 85);
	text-decoration: none !important;
	text-decoration-line: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.scm-watched-price {
	margin-top: auto;
	padding-top: 24px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #6aa457;
}

.scm-watched-price .amount {
	color: inherit;
}

.scm-watched-actions {
	margin-top: 12px;
}

.scm-watched-actions .button {
	margin: 0;
}

.scm-watched-view-all {
	display: inline-block;
	margin-top: 4px;
}

@media (max-width: 900px) {
	.scm-watched-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.scm-watched-grid {
		grid-template-columns: 1fr;
	}
}


/* Dynamic WooCommerce price for Elementor Loop Item templates. */
.scm-loop-product-price {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #6aa457;
}

.scm-loop-product-price .amount,
.scm-loop-product-price ins,
.scm-loop-product-price del {
	color: inherit;
}

.scm-loop-product-price ins {
	text-decoration: none;
}


/*
 * Automatic live WooCommerce price injected into the Elementor
 * "Newest Listings" Loop/Carousel. This does not require Elementor Pro.
 */
.scm-newest-listing-price {
	margin-top: 20px;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #6aa457;
}

.scm-newest-listing-price .amount,
.scm-newest-listing-price ins,
.scm-newest-listing-price del {
	color: inherit;
}

.scm-newest-listing-price ins {
	text-decoration: none;
}


/* Elementor editor-only preview note. */
.scm-watched-editor-note {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px dashed rgba(51, 65, 85, 0.25);
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: rgb(71, 85, 105);
	background: rgba(248, 250, 252, 0.95);
}
