/**
 * AOM Product Listing – frontend styles
 *
 * Scoped to .aom-product-grid so wordpress theme heading + link-hover
 * rules cannot restyle the cards.
 */

.elementor-widget-shortcode:has(.aom-product-grid),
.elementor-widget-shortcode:has(.aom-product-grid) > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	flex-basis: 100% !important;
}

.aom-product-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 360px));
	justify-content: center;
	gap: 1.5rem;
	width: 100%;
	max-width: 1158px;
	margin: 1.5rem auto;
	padding-inline: 15px;
	box-sizing: border-box;
}

.aom-product-grid a.aom-product-card,
.aom-product-grid a.aom-product-card:link,
.aom-product-grid a.aom-product-card:visited,
.aom-product-grid a.aom-product-card:hover,
.aom-product-grid a.aom-product-card:focus,
.aom-product-grid a.aom-product-card:focus-visible,
.aom-product-grid a.aom-product-card:active {
	text-decoration: none !important;
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	background-color: #fff;
	background-image: none;
}

.aom-product-card {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	max-width: 360px;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.aom-product-image {
	padding: 15px 15px 0;
	box-sizing: border-box;
}

.aom-product-grid a.aom-product-card:hover,
.aom-product-grid a.aom-product-card:focus,
.aom-product-grid a.aom-product-card:focus-visible {
	border-color: #d1d5db;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	outline: none;
}

.aom-product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	margin-inline: auto;
	background: #f3f4f6;
}

.aom-product-image--placeholder img {
	object-fit: contain;
	padding: 1.5rem;
}

.aom-product-body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.125rem 1.25rem;
	flex: 1;
}

.aom-product-grid .aom-product-card h3.aom-product-title,
.aom-product-grid a.aom-product-card:link h3.aom-product-title,
.aom-product-grid a.aom-product-card:visited h3.aom-product-title,
.aom-product-grid a.aom-product-card:hover h3.aom-product-title,
.aom-product-grid a.aom-product-card:focus h3.aom-product-title,
.aom-product-grid a.aom-product-card:active h3.aom-product-title {
	margin: 0;
	padding: 0;
	font-family: inherit !important;
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	font-style: normal;
	line-height: 1.35 !important;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	background: transparent;
	background-image: none;
}

.aom-product-session-date {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #4b5563;
	-webkit-text-fill-color: #4b5563;
}

.aom-product-grid a.aom-product-card:hover .aom-product-session-date,
.aom-product-grid a.aom-product-card:focus .aom-product-session-date,
.aom-product-grid a.aom-product-card:active .aom-product-session-date {
	color: #4b5563 !important;
	-webkit-text-fill-color: #4b5563 !important;
}

.aom-product-location-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: #6b7280;
}

.aom-product-location-icon svg {
	display: block;
}

.aom-product-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.aom-product-grid .aom-product-price,
.aom-product-grid a.aom-product-card:link .aom-product-price,
.aom-product-grid a.aom-product-card:visited .aom-product-price,
.aom-product-grid a.aom-product-card:hover .aom-product-price,
.aom-product-grid a.aom-product-card:focus .aom-product-price,
.aom-product-grid a.aom-product-card:active .aom-product-price {
	font-weight: 600;
	font-size: 1rem;
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	text-decoration: none !important;
	background: transparent;
}

.aom-product-grid .aom-product-view-more,
.aom-product-grid a.aom-product-card:link .aom-product-view-more,
.aom-product-grid a.aom-product-card:visited .aom-product-view-more,
.aom-product-grid a.aom-product-card:hover .aom-product-view-more,
.aom-product-grid a.aom-product-card:focus .aom-product-view-more,
.aom-product-grid a.aom-product-card:active .aom-product-view-more {
	margin-left: auto;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	text-align: right;
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	background: transparent;
}

.aom-product-grid a.aom-product-card:hover .aom-product-view-more,
.aom-product-grid a.aom-product-card:focus .aom-product-view-more {
	text-decoration: underline !important;
}

.aom-product-unavailable,
.aom-product-empty {
	padding: 1rem 1.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f9fafb;
	color: #374151;
}

@media (max-width: 900px) {
	.aom-product-grid {
		grid-template-columns: repeat(2, minmax(0, 360px));
	}
}

@media (max-width: 600px) {
	.aom-product-grid {
		grid-template-columns: minmax(0, 360px);
		gap: 1rem;
	}
}
