/* Home category cards (Elementor section with class "pwh-cat-cards"; each column = image widget + button widget).
 * The image fills the card (3:4), the button label sits on top of it over a dark fade, and the
 * whole card is clickable through the button link. Card images share one darkened backdrop
 * (pwh-card-*.jpg, 600x800). Works with the phone carousel (pwh-m-carousel). */
.pwh-cat-cards .elementor-column > .elementor-widget-wrap {
	position: relative;
	display: block !important;
	aspect-ratio: 3 / 4;
	padding: 0 !important;
	overflow: hidden;
	background-color: #221b17 !important;
	border: 0 !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12) !important;
}

/* Image: fill the card. */
.pwh-cat-cards .elementor-widget-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	margin: 0 !important;
}
.pwh-cat-cards .elementor-widget-image > .elementor-widget-container,
.pwh-cat-cards .elementor-widget-image a {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
}
.pwh-cat-cards .elementor-widget-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: 50% 50%;
	border-radius: 0 !important;
	transform: none !important;
	transition: transform .6s ease !important;
}
.pwh-cat-cards .elementor-column:hover .elementor-widget-image img {
	transform: scale(1.05) !important;
}
/* Dark fade behind the label. */
.pwh-cat-cards .elementor-widget-image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 32%, rgba(0, 0, 0, 0) 55%);
}

/* Label on top of the image; its link covers the whole card. */
.pwh-cat-cards .elementor-widget-button {
	position: absolute !important;
	inset: 0;
	z-index: 2;
	width: 100% !important;
	margin: 0 !important;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.pwh-cat-cards .elementor-widget-button > .elementor-widget-container,
.pwh-cat-cards .elementor-widget-button .elementor-button-wrapper {
	position: static !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
}
.pwh-cat-cards .elementor-widget-button .elementor-button {
	position: static !important;
	display: block;
	width: 100%;
	padding: 0 12px 18px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 17px !important;
	letter-spacing: .02em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
	text-decoration: none !important;
}
.pwh-cat-cards .elementor-widget-button .elementor-button * {
	color: #fff !important;
	text-decoration: none !important;
}
.pwh-cat-cards .elementor-widget-button .elementor-button::after {
	content: "";
	position: absolute;
	inset: 0;
}
.pwh-cat-cards .elementor-widget-button .elementor-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -6px;
}

@media (max-width: 767px) {
	.pwh-cat-cards .elementor-widget-button .elementor-button {
		font-size: 16px !important;
		padding-bottom: 14px !important;
	}
}

/* Inactive card: its product category has nothing in stock (see cat-cards.js). */
.pwh-cat-cards .elementor-column.is-empty,
.pwh-cat-cards .elementor-column.is-empty a {
	cursor: default;
}
.pwh-cat-cards .elementor-column.is-empty .elementor-widget-image img,
.pwh-cat-cards .elementor-column.is-empty:hover .elementor-widget-image img {
	filter: grayscale(1) brightness(.6);
	transform: none !important;
}
.pwh-cat-cards .elementor-column.is-empty .elementor-widget-button .elementor-button {
	opacity: .85;
}
