/* Shared shop product card — used on shop, related grids, and editorial product grids. */

.botanosophy-page-products.botanosophy-archive {
	width: min(100% - 3rem, var(--botanosophy-content-width));
	margin-inline: auto;
}

.botanosophy-archive ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	float: none !important;
}

.product-live__related ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	float: none !important;
}

.botanosophy-archive ul.products li.product,
.product-live__related ul.products li.product {
	width: 100% !important;
	max-width: none;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

.botanosophy-archive ul.products::before,
.botanosophy-archive ul.products::after,
.product-live__related ul.products::before,
.product-live__related ul.products::after {
	display: none;
}

.shop-card {
	position: relative;
	width: 100% !important;
	max-width: none;
	float: none !important;
	margin: 0 !important;
	padding: 0 0 15px !important;
	border-radius: 0;
	background: #fff !important;
	box-shadow: none;
	list-style: none;
	transition: box-shadow .3s ease;
}

.shop-card:hover {
	box-shadow: 0 0 40px rgba(0, 0, 0, .08);
}

.shop-card__media {
	display: block;
	color: inherit;
	text-decoration: none;
}

.shop-card__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	background: #fff;
}

.shop-card__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0 !important;
	object-fit: contain;
}

.shop-card__stock {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: auto;
	margin: 0;
	padding: 25px 5px 25px;
	background: none;
	color: var(--botanosophy-text);
	font-family: "Jost", system-ui, sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 22px;
	letter-spacing: .16em;
	text-align: center;
	text-transform: lowercase;
}

.shop-card .woocommerce-loop-product__title {
	margin: 0;
	padding: 15px 5px 5px;
	color: var(--botanosophy-ink);
	font-family: "Jost", system-ui, sans-serif;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.shop-card .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.shop-card .price {
	margin: 0 !important;
	color: #999 !important;
	font-family: "Jost", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 400 !important;
}

.botanosophy-archive .woocommerce ul.products li.product .woocommerce-loop-category__title,
.botanosophy-archive .woocommerce ul.products li.product .woocommerce-loop-product__title,
.botanosophy-archive .woocommerce ul.products li.product h3,
.botanosophy-archive .shop-card .woocommerce-loop-product__title,
.product-live__related .woocommerce ul.products li.product .woocommerce-loop-category__title,
.product-live__related .woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-live__related .woocommerce ul.products li.product h3,
.product-live__related .shop-card .woocommerce-loop-product__title {
	margin: 0;
	padding: 1em 0 0 0;
	font-size: 1.1em;
	text-align: center;
}

.botanosophy-archive .woocommerce ul.products li.product .price,
.botanosophy-archive .shop-card .price,
.product-live__related .woocommerce ul.products li.product .price,
.product-live__related .shop-card .price {
	font-size: 1em;
	text-align: center;
}

.shop-card .star-rating,
.shop-card .button,
.shop-card .added_to_cart,
.shop-card__share {
	display: none !important;
}

.botanosophy-page-products--no-price .shop-card .price {
	display: none !important;
}

/* Square product imagery sitewide. */
.woocommerce ul.products li.product .shop-card__image-wrap img,
.woocommerce-page ul.products li.product .shop-card__image-wrap img,
.product-live__gallery .woocommerce-product-gallery__image img,
.product-live__gallery .flex-control-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-live__gallery .woocommerce-product-gallery__wrapper,
.product-live__gallery .woocommerce-product-gallery__image {
	aspect-ratio: 1 / 1;
}

.product-live__gallery .woocommerce-product-gallery__image:nth-child(n+2) {
	display: none;
}

.product-live__gallery .woocommerce-product-gallery__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.product-live__gallery .woocommerce-product-gallery__trigger {
	display: none !important;
}

@media (max-width: 1024px) {
	.botanosophy-archive ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.product-live__related ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}
}

@media (max-width: 767px) {
	.botanosophy-archive ul.products,
	.product-live__related ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}
