/* Starlite Portal — storefront UI fixes. Toggle in Portal › Settings. */

/* 1. Shop & category grids: product name, price and material were clipped by a fixed-height link. */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	height: auto !important;
	overflow: visible !important;
	display: block;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
	width: 100%;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 14px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important;
	line-height: 1.35 !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	text-transform: capitalize;
	letter-spacing: .01em;
}
.woocommerce ul.products li.product .price {
	display: block;
	margin: 0 0 4px !important;
	font-weight: 600;
}
.woocommerce ul.products li.product .custom-material-desc {
	margin-bottom: 12px;
	font-size: 13px;
}
.woocommerce ul.products li.product > a.button,
.woocommerce ul.products li.product > .button {
	margin-top: auto !important;
	width: 100%;
	text-align: center;
	transition: background-color .2s ease, color .2s ease;
}
.woocommerce ul.products li.product > a.button:hover {
	background: #111 !important;
	color: #fff !important;
}

/* 2. Wishlist heart was invisible on dark product photos. */
/* YITH renders these late with its own inline styles, so these rules need !important. */
.woocommerce ul.products li.product button.yith-wcwl-add-to-wishlist-button {
	background: rgba(255, 255, 255, .92) !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18) !important;
	z-index: 3;
	transition: transform .15s ease;
}
.woocommerce ul.products li.product button.yith-wcwl-add-to-wishlist-button:hover {
	transform: scale(1.08);
}
.woocommerce ul.products li.product button.yith-wcwl-add-to-wishlist-button svg {
	width: 18px !important;
	height: 18px !important;
	color: #111 !important;
}

/* 3. Home "Shop by category": 5 tiles were placed in a 6-column grid, so the row sat left of centre. */
body .elementor .elementor-widget-wc-categories.elementor-widget ul.products.elementor-grid {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}
body .elementor .elementor-widget-wc-categories.elementor-widget ul.products::before,
body .elementor .elementor-widget-wc-categories.elementor-widget ul.products::after {
	display: none !important;
}
body .elementor .elementor-widget-wc-categories.elementor-widget ul.products.elementor-grid li.product-category {
	flex: 0 1 140px;
	width: auto !important;
	margin: 0 !important;
}
.elementor-widget-wc-categories ul.products li.product-category img {
	transition: transform .35s ease;
}
.elementor-widget-wc-categories ul.products li.product-category:hover img {
	transform: scale(1.04);
}
@media (max-width: 767px) {
	body .elementor .elementor-widget-wc-categories.elementor-widget ul.products.elementor-grid {
		gap: 12px;
	}
	body .elementor .elementor-widget-wc-categories.elementor-widget ul.products.elementor-grid li.product-category {
		flex: 0 1 calc(33.333% - 8px);
	}
}

/* 4. Reviews slider: arrows sat on top of the review text and the "Read full review" eye icon was black-on-black. */
/* Arrows are moved beside the slider by a tiny script (adds .slp-rev). */
.mt-reviews-wrapper .swiper { padding-bottom: 34px !important; }
.mt-reviews-wrapper .swiper-pagination { bottom: 4px !important; }
@media (min-width: 768px) {
	.mt-reviews-wrapper.slp-rev { position: relative; padding-left: 60px !important; padding-right: 60px !important; }
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev,
	.mt-reviews-wrapper.slp-rev > .swiper-button-next { top: calc(50% - 17px) !important; }
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev,
	.mt-reviews-wrapper.slp-rev > .swiper-button-next {
		width: 44px !important; height: 44px !important; margin-top: 0 !important; padding: 0 !important; border-radius: 50% !important;
		background: #fff !important; color: #141210 !important; border: 1px solid #e3dccf !important;
		box-shadow: 0 6px 16px rgba(20, 18, 16, .08); transition: background .2s, color .2s, border-color .2s;
	}
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev::after,
	.mt-reviews-wrapper.slp-rev > .swiper-button-next::after { font-size: 15px !important; font-weight: 700; }
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev:hover,
	.mt-reviews-wrapper.slp-rev > .swiper-button-next:hover { background: #141210 !important; color: #fff !important; border-color: #141210 !important; }
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev { left: 4px !important; right: auto !important; }
	.mt-reviews-wrapper.slp-rev > .swiper-button-next { right: 4px !important; left: auto !important; }
}
@media (max-width: 767px) {
	.mt-reviews-wrapper.slp-rev > .swiper-button-prev,
	.mt-reviews-wrapper.slp-rev > .swiper-button-next { display: none !important; }
}
.mt-read-more-btn svg,
.mt-read-more-btn svg path {
	fill: currentColor !important;
}

/* 5. Single product: quantity box was indented relative to the title & price. */
.single-product div.product form.cart .quantity,
.elementor-add-to-cart form.cart .quantity {
	margin-left: 0 !important;
}

/* 6. Accessibility: visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #b8925a !important;
	outline-offset: 2px;
}

/* Wishlist heart, PHP-template version (lighter than YITH's React bundle; see SLP_Perf). */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist { z-index: 3; margin: 0 !important; }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a {
	display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 !important;
	border-radius: 50%; background: rgba(255, 255, 255, .92) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	color: #111 !important; text-decoration: none !important; transition: transform .15s ease;
}
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a:hover { transform: scale(1.08); }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a svg,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a i { width: 18px !important; height: 18px !important; margin: 0 !important; color: #111 !important; font-size: 17px; }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a span,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .feedback,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .separator,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .view-wishlist {
	position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a { color: #b3261e !important; }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a svg,
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a svg { color: #b3261e !important; fill: currentColor; }
