/**
 * [ag_recently_viewed_products] — miniatura à esquerda, título à direita (sidebar / Elementor).
 * Enfileirado em functions.php: o XStore usa muitas vezes theme.css em vez de style.css; este ficheiro garante carga.
 */

/* Cartão do widget — mesmo estilo visual que Categorias de produto */
.ag-recently-viewed-widget.ag-product-sidebar-cats-widget {
	background: #ffffff !important;
	border: 1px solid #e6ebf1 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
}

.ag-recently-viewed-widget h3.ag-product-sidebar-cats-title,
.etheme-elementor-sidebar .ag-recently-viewed-widget h3.ag-product-sidebar-cats-title,
.elementor-widget-shortcode .ag-recently-viewed-widget h3.ag-product-sidebar-cats-title {
	margin: 0 !important;
	padding: 15px 20px 14px !important;
	background-color: #34495e !important;
	border: 0 !important;
	border-radius: 4px 4px 0 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif !important;
	font-size: 20px !important;
	font-weight: 300 !important;
	line-height: 21px !important;
	text-transform: none !important;
}

.ag-recently-viewed-widget .ag-product-sidebar-cats-body {
	padding: 14px 16px 16px;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget ul.ag-recently-viewed-list,
.elementor-widget-shortcode .ag-recently-viewed-widget ul.ag-recently-viewed-list,
.ag-recently-viewed-widget ul.ag-recently-viewed-list {
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget .ag-recently-viewed-item,
.elementor-widget-shortcode .ag-recently-viewed-widget .ag-recently-viewed-item,
.ag-recently-viewed-widget .ag-recently-viewed-item {
	list-style: none !important;
	list-style-type: none !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #e6ebf1;
}

.ag-recently-viewed-widget .ag-recently-viewed-list > .ag-recently-viewed-item {
	list-style: none !important;
}

/* Temas que usam ::before como “bullet” custom */
.ag-recently-viewed-widget .ag-recently-viewed-item::before {
	display: none !important;
	content: none !important;
}

.ag-recently-viewed-widget .ag-recently-viewed-item:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget a.ag-recently-viewed-card,
.elementor-widget-shortcode .ag-recently-viewed-widget a.ag-recently-viewed-card,
.elementor-widget-container .ag-recently-viewed-widget a.ag-recently-viewed-card,
.ag-recently-viewed-widget a.ag-recently-viewed-card {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 10px;
	text-align: left !important;
	text-decoration: none !important;
	color: #24a0da !important;
}

.ag-recently-viewed-widget a.ag-recently-viewed-card:hover .ag-recently-viewed-title {
	text-decoration: underline !important;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget .ag-recently-viewed-thumb,
.elementor-widget-shortcode .ag-recently-viewed-widget .ag-recently-viewed-thumb,
.ag-recently-viewed-widget .ag-recently-viewed-thumb {
	flex: 0 0 56px !important;
	width: 56px !important;
	max-width: 56px !important;
	margin: 0 !important;
	line-height: 0;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget .ag-recently-viewed-thumb img,
.etheme-elementor-sidebar .ag-recently-viewed-widget img.ag-recently-viewed-img,
.elementor-widget-shortcode .ag-recently-viewed-widget .ag-recently-viewed-thumb img,
.elementor-widget-shortcode .ag-recently-viewed-widget img.ag-recently-viewed-img,
.ag-recently-viewed-widget .ag-recently-viewed-thumb img,
.ag-recently-viewed-widget img.ag-recently-viewed-img {
	width: 56px !important;
	height: 56px !important;
	max-width: 100% !important;
	object-fit: contain !important;
	display: block !important;
	border-radius: 4px;
}

.etheme-elementor-sidebar .ag-recently-viewed-widget .ag-recently-viewed-title,
.elementor-widget-shortcode .ag-recently-viewed-widget .ag-recently-viewed-title,
.ag-recently-viewed-widget .ag-recently-viewed-title {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: block !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	color: #24a0da !important;
	word-break: break-word;
}
