/* ISSA MAYYECH product card 0.1.0: the VZ card layout on MAYYECH's iconized card markup, in MAYYECH forest green */
ul.products li.product {
	--issa-c-ink: #244a44;
	--issa-c-muted: #5f6b68;
	--issa-c-gold: #9c9257;
}
ul.products li.product .rey-productInner {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	padding: 0 !important;
	text-align: center;
}
/* Home page cards keep their thin frame, so the price needs room above the frame's bottom line */
ul.products li.product .rey-productInner.--box-styler {
	padding-bottom: 14px !important;
}
ul.products li.product .rey-productThumbnail {
	grid-area: 1 / 1;
	position: relative;
	margin-bottom: 0 !important;
	overflow: hidden;
}

/* Name and price, centred under the photo */
ul.products li.product .woocommerce-loop-product__title {
	grid-row: 2;
	margin: 14px 0 2px !important;
	padding: 0 4px !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	color: var(--issa-c-ink) !important;
}
ul.products li.product .woocommerce-loop-product__title a {
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}
ul.products li.product .rey-productInner > .__break,
ul.products li.product .rey-productLoop-footer > .__break {
	display: none !important;
}
ul.products li.product .rey-loopPrice {
	grid-row: 3;
	justify-self: center;
	justify-content: center !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	position: static !important;
	font-size: 12px !important;
	color: var(--issa-c-muted) !important;
}
ul.products li.product .rey-loopPrice * {
	transform: none !important;
	opacity: 1 !important;
	font-size: inherit !important;
	color: inherit !important;
}
ul.products li.product .rey-loopPrice del,
ul.products li.product .rey-loopPrice del * {
	opacity: 0.7 !important;
}
ul.products li.product .rey-loopPrice ins,
ul.products li.product .rey-loopPrice ins * {
	text-decoration: none !important;
	color: #8c2f39 !important;
	font-weight: 500 !important;
}

/* The theme's icon footer is taken apart: wishlist goes to the photo corner, add to cart becomes a bar on the photo */
ul.products li.product .rey-productLoop-footer {
	display: contents !important;
}
ul.products li.product .rey-productFooter-item--wishlist {
	grid-area: 1 / 1;
	align-self: start;
	justify-self: end;
	z-index: 4;
	display: block !important;
	margin: 12px 12px 0 0 !important;
}
ul.products li.product .rey-productFooter-item--wishlist .rey-wishlistBtn {
	position: relative !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--issa-c-ink) !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	transition: background-color 0.15s, color 0.15s !important;
}
ul.products li.product .rey-productFooter-item--wishlist .rey-wishlistBtn svg {
	position: static !important;
	width: 15px !important;
	height: 15px !important;
	margin: 0 !important;
}
ul.products li.product .rey-wishlistBtn:not(.--in-wishlist) svg {
	fill: none !important;
	stroke: currentColor;
	stroke-width: 1.6px;
}
ul.products li.product .rey-wishlistBtn.--in-wishlist svg {
	fill: currentColor !important;
}
ul.products li.product .rey-productFooter-item--wishlist .rey-wishlistBtn:hover {
	background: var(--issa-c-ink) !important;
	color: #fff !important;
}

ul.products li.product .rey-productFooter-item--addtocart {
	display: block !important;
	grid-area: 1 / 1;
	align-self: end;
	justify-self: stretch;
	z-index: 3;
	margin: 0 62px 12px 12px !important;
	padding: 0 !important;
	opacity: 0;
	transform: translateY(16px) !important;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}
ul.products li.product .rey-productFooter-item--addtocart a.button {
	position: relative !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 40px !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--issa-c-ink) !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	transition: background-color 0.15s, color 0.15s !important;
}
ul.products li.product .rey-productFooter-item--addtocart a.button svg {
	display: none !important;
}
ul.products li.product .rey-productFooter-item--addtocart a.button::before {
	display: none !important;
}
/* The iconized skin prints only an icon, so the bar gets its label here, worded like VZ */
ul.products li.product .rey-productFooter-item--addtocart a.button::after {
	content: "View Product";
	display: inline !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	background: none !important;
	opacity: 1 !important;
	transform: none !important;
}
ul.products li.product .rey-productFooter-item--addtocart a.button.add_to_cart_button::after {
	content: "Add to cart";
}
ul.products li.product .rey-productFooter-item--addtocart a.button.product_type_variable::after {
	content: "Choose Options";
}
ul.products li.product .rey-productFooter-item--addtocart a.button:hover {
	background: var(--issa-c-gold) !important;
	color: #fff !important;
}

/* Quickview: the text link becomes an eye button beside the bar */
ul.products li.product .rey-thPos--bottom-right {
	top: auto !important;
	right: 12px !important;
	bottom: 12px !important;
	left: auto !important;
	z-index: 4;
}
ul.products li.product .rey-quickviewBtn {
	position: relative !important;
	display: block !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;
	color: transparent !important;
	opacity: 0;
	transform: translateY(16px) !important;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s !important;
	pointer-events: none;
}
ul.products li.product .rey-quickviewBtn::before {
	display: none !important;
}
ul.products li.product .rey-quickviewBtn::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	margin: -9px 0 0 -9px !important;
	border: 0 !important;
	transform: none !important;
	opacity: 1 !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244a44' stroke-width='1.5'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 18px no-repeat !important;
}
ul.products li.product .rey-quickviewBtn:hover {
	background-color: #eef1ef !important;
}
ul.products li.product:hover .rey-productFooter-item--addtocart,
ul.products li.product:focus-within .rey-productFooter-item--addtocart,
ul.products li.product:hover .rey-quickviewBtn,
ul.products li.product:focus-within .rey-quickviewBtn {
	opacity: 1;
	transform: none !important;
	pointer-events: auto;
}

/* New label in the top-left corner */
ul.products li.product .rey-thPos--bottom-left {
	top: 12px !important;
	left: 12px !important;
	bottom: auto !important;
	right: auto !important;
	z-index: 4;
}

/* Slight zoom of the photo on hover; the theme's slideshow arrows stay */
ul.products li.product .rey-productThumbnail img {
	transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1) !important;
}
ul.products li.product:hover .rey-productThumbnail .is-active img {
	transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
	ul.products li.product .rey-productThumbnail img,
	ul.products li.product .rey-productFooter-item--addtocart,
	ul.products li.product .rey-quickviewBtn {
		transition: none !important;
	}
}

/* Quickview window */
.rey-quickview-container .rey-qvNav,
.rey-quickview-container .rey-productShare,
.rey-quickview-container .__thumbs-wrapper,
.rey-quickview-container .nta-woo-products-button {
	display: none !important;
}
.rey-quickview-container .woocommerce-product-gallery,
.rey-quickview-container .woocommerce-product-gallery__wrapper,
.rey-quickview-container .woocommerce-product-gallery__image {
	background: #f0f2f2;
}
.rey-quickview-container .woocommerce-product-gallery__image img {
	object-fit: contain !important;
	object-position: center !important;
	width: 100% !important;
	height: 100% !important;
}

/* Two lines reserved on phones so prices stay level across a row */
@media (max-width: 767px) {
	ul.products li.product .woocommerce-loop-product__title {
		min-height: 2.8em !important;
		font-size: 11px !important;
		letter-spacing: 0.06em !important;
	}
}

/* Touch screens have no hover: photo opens the product, heart stays visible */
@media (hover: none) and (pointer: coarse) {
	ul.products li.product .rey-productFooter-item--addtocart,
	ul.products li.product .rey-thPos--bottom-right {
		display: none !important;
	}
}

/* 8 Nov: remove Rey's decorative frame on catalogue cards, including home lists. */
ul.products li.product .rey-productInner::before {
	border: 0 !important;
	box-shadow: none !important;
}
ul.products li.product .rey-productInner.--box-styler {
	padding-bottom: 0 !important;
}
@media (max-width: 767px) {
	ul.products li.product .woocommerce-loop-product__title {
		min-height: 0 !important;
	}
}

/* The native slideshow remains on touch; desktop has a passive cross-fade overlay. */
@media (hover: hover) and (pointer: fine) {
	ul.products li.product .rey-productThumbnail {
		isolation: isolate;
	}
	ul.products li.product .rey-productThumbnail .issa-card-second-photo {
		display: block !important;
		position: absolute !important;
		inset: 0;
		z-index: 2;
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
		opacity: 0 !important;
		pointer-events: none;
		transform: scale(1) !important;
		transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0, 0, 0.2, 1) !important;
	}
	ul.products li.product:hover .rey-productThumbnail .issa-card-second-photo,
	ul.products li.product:focus-within .rey-productThumbnail .issa-card-second-photo {
		opacity: 1 !important;
		transform: scale(1.025) !important;
	}
	ul.products li.product.issa-second-ready .rey-productSlideshow-arrows {
		display: none !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	ul.products li.product .rey-productThumbnail .issa-card-second-photo {
		transition: none !important;
	}
}
