/*
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
*/

/* Phase 1: keep product-card comparison beside wishlist and quick view. */
.woocommerce ul.products li.product .mf-product-price-box {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 6px;
}

.woocommerce ul.products li.product .mf-product-price-box > .shopengine-wishlist {
	order: 1;
}

.woocommerce ul.products li.product .mf-product-price-box > .shopengine-quickview-trigger {
	order: 2;
}

/* Use the same WCBoost comparison system as the header /compare/ page. */
.woocommerce ul.products li.product .mf-product-price-box > .shopengine-comparison {
	display: none !important;
}

.woocommerce ul.products li.product .mf-product-price-box > .footer-button,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .action-button {
	display: contents !important;
}

.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .shopengine-wishlist,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .shopengine-quickview-trigger,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .add_to_cart_button,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .shopengine-comparison,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .screen-reader-text,
.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .action-button > .wcboost-wishlist-button {
	display: none !important;
}

.woocommerce ul.products li.product .mf-product-price-box > .footer-button > .action-button > .mf-compare-button {
	order: 3;
	display: block !important;
}

.woocommerce ul.products li.product .mf-product-price-box > .footer-button .wcboost-products-compare-button {
	width: 26px;
	height: 38px;
	padding: 6px 3px;
}

.woocommerce ul.products li.product .mf-product-price-box > .add_to_cart_button {
	order: 4;
	flex: 0 0 100%;
}

.woocommerce ul.products li.product .mf-product-price-box > .screen-reader-text {
	order: 5;
}

/* Phase 1: keep sale badges clear of product-image edges. */
.woocommerce ul.products li.product .mf-product-thumbnail .onsale.ribbon {
	top: 8px;
	right: 8px;
}

/* Phase 1: separate the current price from the crossed-out RRP. */
.woocommerce ul.products li.product .price del,
table.compare_table .price del {
	margin-left: 8px;
}

/* Phase 1: add the copyright symbol without changing Elementor footer data. */
.elementor-element-dd12631 .elementor-widget-container > p::before {
	content: "© ";
}

/* Phase 1: use a white Instagram icon tile in the global footer. */
.elementor-location-footer .elementor-social-icon-instagram {
	background-color: #FFFFFF !important;
}

.elementor-location-footer .elementor-social-icon-instagram svg,
.elementor-location-footer .elementor-social-icon-instagram path {
	fill: #23303E !important;
}

/* Phase 1: remove the X/Twitter icon from the global footer. */
.elementor-location-footer .elementor-social-icon-x-twitter {
	display: none !important;
}

/* Phase 1: clearly identify the active FAQ category. */
.page-id-24785 button[role="tab"][aria-selected="true"] {
	background-color: #00C4CC !important;
	color: #23303E !important;
	font-weight: 600 !important;
}

/* Follow-up: keep the homepage Shop label readable while its mega menu is open. */
body.home .menu-item-82454:hover > .ekit-menu-nav-link,
body.home .menu-item-82454 > .ekit-menu-nav-link:hover,
body.home .menu-item-82454 > .ekit-menu-nav-link:focus-visible {
	color: #23303E !important;
}

/* Follow-up: separate the results count from the sorting control. */
#mf-catalog-toolbar .products-found {
	margin-right: 16px;
}

/* Cart block: mirror the checkout VAT breakdown. */
.woocommerce-cart .bbuk-cart-vat-breakdown {
	margin-top: 20px;
	padding: 20px;
	border-radius: 12px;
	background: #4D4D4D;
	color: #FFFFFF;
}

.woocommerce-cart .bbuk-cart-vat-breakdown h3 {
	margin: 0 0 10px;
	color: #FFFFFF;
	font-size: 20px;
}

.woocommerce-cart .bbuk-cart-vat-breakdown ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-cart .bbuk-cart-vat-breakdown li,
.woocommerce-cart .bbuk-cart-vat-breakdown p {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0;
}

.woocommerce-cart .bbuk-cart-vat-breakdown li span,
.woocommerce-cart .bbuk-cart-vat-breakdown p span {
	min-width: 0;
}

.woocommerce-cart .bbuk-cart-vat-breakdown hr {
	margin: 10px 0;
	border-color: rgba(255, 255, 255, 0.2);
}

.woocommerce-cart .bbuk-cart-vat-breakdown .bbuk-cart-vat-total {
	margin-top: 8px;
	font-size: 16px;
}

/* Mobile navigation: anchor the basket count to the basket icon. */
@media (max-width: 767px) {
	.navigation-mobile_cart .mini-item-counter {
		left: calc(50% - 1px) !important;
		right: auto !important;
		top: -1px !important;
	}
}

/* Compare page: keep sticky row labels below the header mega menu. */
.woocommerce-products-compare table.compare_table th {
	z-index: 2;
}

/* Compare page: do not offer Compare inside the comparison table itself. */
.woocommerce-products-compare .shopengine-comparison {
	display: none !important;
}

/* User Registration: use a self-contained password visibility icon. */
.user-registration-page .ur-frontend-form a.password_preview::before {
	content: "" !important;
	display: block;
	width: 20px;
	height: 20px;
	background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M1%2010s3.5-6%209-6%209%206%209%206-3.5%206-9%206-9-6-9-6Z%22%20fill%3D%22none%22%20stroke%3D%22%23676d8a%22%20stroke-width%3D%221.6%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222.5%22%20fill%3D%22none%22%20stroke%3D%22%23676d8a%22%20stroke-width%3D%221.6%22%2F%3E%3C%2Fsvg%3E");
}

.user-registration-page .ur-frontend-form a.password_preview.dashicons-visibility::before {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M1%2010s3.5-6%209-6%209%206%209%206-3.5%206-9%206-9-6-9-6Z%22%20fill%3D%22none%22%20stroke%3D%22%23676d8a%22%20stroke-width%3D%221.6%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222.5%22%20fill%3D%22none%22%20stroke%3D%22%23676d8a%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M3%203l14%2014%22%20stroke%3D%22%23676d8a%22%20stroke-width%3D%221.8%22%2F%3E%3C%2Fsvg%3E");
}