/*
Theme Name: Martfury Child
Theme URI: http://drfuri.com/unero
Author: DrFuri
Author URI: http://drfuri.com
Description: Martfury Child Theme.
Version: 1.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martfury
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: martfury
*/

.woocommerce ul.products li.product h2 a {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}
.woocommerce ul.products li.product h2 a { color: #000!important; }

/* Shop By Category — responsive grid, prevent layout stall from 7 fixed columns */
.page-template-template-home-full-width .elementor-element-21f8d439 .elementor-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 640px) {
	.page-template-template-home-full-width .elementor-element-21f8d439 .elementor-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.page-template-template-home-full-width .elementor-element-21f8d439 .elementor-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.page-template-template-home-full-width .elementor-element-21f8d439 .elementor-container {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

.page-template-template-home-full-width .elementor-element-21f8d439 .elementor-column {
	width: 100% !important;
	max-width: 100% !important;
}

.page-template-template-home-full-width .mf-elementor-image-box .thumbnail {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.page-template-template-home-full-width .mf-elementor-image-box .thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hide YITH Compare sticky footer bar (backup if markup is injected via AJAX). */
#yith-woocompare-preview-bar {
	display: none !important;
}

/* Frequently Bought Together — mobile-first responsive layout */
.mf-product-fbt {
	overflow-x: hidden;
	max-width: 100%;
	padding: 1rem;
	margin-bottom: 2rem;
	box-sizing: border-box;
}

.mf-product-fbt .fbt-title {
	margin-bottom: 1.25rem;
	font-size: 1.125rem;
}

.mf-product-fbt ul.products {
	display: flex;
	flex-wrap: wrap;
	float: none;
	width: 100%;
	padding: 0;
	margin: 0;
	gap: 1rem;
	list-style: none;
}

.mf-product-fbt ul.products::before,
.mf-product-fbt ul.products::after {
	display: none;
}

.mf-product-fbt ul.products li.product {
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.mf-product-fbt ul.products .product-content {
	padding-right: 0;
}

.mf-product-fbt ul.products .product-content .thumbnail {
	display: block;
	max-width: 100%;
}

.mf-product-fbt ul.products .product-content .thumbnail img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.mf-product-fbt ul.products .product-content .thumbnail:after {
	display: none;
}

.mf-product-fbt ul.products .product-content h2 {
	font-size: 0.875rem;
	line-height: 1.35;
	word-break: break-word;
}

.mf-product-fbt ul.products li.product table.variations select {
	width: 100%;
	max-width: 100%;
}

.mf-product-fbt ul.products li.product.product-buttons {
	width: 100%;
	padding-top: 0.5rem;
	border-top: 1px solid #e5e5e5;
}

.mf-product-fbt .product-buttons .mf_add_to_cart_button,
.mf-product-fbt .product-buttons .mf-wishlist-button {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-top: 0.75rem;
	text-align: center;
	box-sizing: border-box;
}

.mf-product-fbt .price-box {
	display: block;
	margin-bottom: 0.5rem;
	word-break: break-word;
}

.mf-product-fbt .products-list {
	padding: 0;
	margin: 1rem 0 0;
}

.mf-product-fbt .products-list li a {
	word-break: break-word;
}

@media (min-width: 640px) {
	.mf-product-fbt {
		padding: 1.25rem;
	}

	.mf-product-fbt ul.products li.product:not(.product-buttons) {
		width: calc(50% - 0.5rem);
	}
}

@media (min-width: 992px) {
	.mf-product-fbt ul.products li.product:not(.product-buttons) {
		width: calc(33.333% - 0.667rem);
	}
}

@media (min-width: 1200px) {
	.mf-product-fbt {
		padding: 1.875rem;
	}

	.mf-product-fbt ul.products li.product:not(.product-buttons) {
		width: calc(20% - 0.8rem);
	}

	.mf-product-fbt .product-buttons .mf_add_to_cart_button,
	.mf-product-fbt .product-buttons .mf-wishlist-button {
		display: inline-block;
		width: auto;
		min-width: 10.625rem;
	}
}
