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

/* Tajawal — site-wide typography (Arabic/Latin) */
html,
body,
button,
input,
select,
textarea,
.site-header,
.site-content,
.site-footer,
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.main-navigation,
.menu,
.widget,
.woocommerce,
.elementor-widget-heading .elementor-heading-title {
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* WooCommerce: add-to-cart success notice (see qabas_wc_add_to_cart_message_html) */
.woocommerce-message .qabas-wc-atc-notice,
.woocommerce-info .qabas-wc-atc-notice {
	display: block;
	text-align: start;
}

.qabas-wc-atc-notice__title {
	margin: 0 0 0.35rem;
	font-size: 1.05em;
	line-height: 1.35;
}

.qabas-wc-atc-notice__items {
	margin: 0 0 0.75rem;
	font-size: 0.95em;
	line-height: 1.45;
	color: #444;
}

.qabas-wc-atc-notice__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.qabas-wc-atc-notice__actions .button.qabas-wc-atc-notice__cart {
	font-weight: 700;
}

.qabas-wc-atc-notice__actions .qabas-wc-atc-notice__continue {
	opacity: 0.92;
}

/* Live toast when Martfury AJAX hides Woo notices (add-to-cart-notice.js) */
.qabas-atc-notice-live {
	position: fixed;
	z-index: 999991;
	left: 0;
	right: 0;
	top: auto;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0));
	pointer-events: none;
	transform: translateY(120%);
	transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.qabas-atc-notice-live.is-visible {
	transform: translateY(0);
}

.qabas-atc-notice-live__inner {
	pointer-events: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.15rem;
	max-width: min(100%, 560px);
	padding: 1rem 1.25rem;
	background: #fff;
	color: #1a1d26;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 14px;
	box-shadow:
		0 -10px 44px rgba(50, 56, 150, 0.1),
		0 8px 28px rgba(15, 23, 42, 0.08);
}

.qabas-atc-notice-live__title {
	margin: 0;
	font-size: clamp(1.12rem, 3.2vw, 1.35rem);
	line-height: 1.4;
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	color: #1a1d26;
}

.qabas-atc-notice-live__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.35rem;
	font-weight: 700;
	font-size: clamp(1.02rem, 2.8vw, 1.12rem);
	line-height: 1.25;
	color: #fff !important;
	background: #e53935;
	border-radius: 10px;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.qabas-atc-notice-live__btn:hover {
	background: #c62828 !important;
	color: #fff !important;
}

.qabas-atc-notice-live__close {
	flex: 0 0 auto;
	width: 2.35rem;
	height: 2.35rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.06);
	color: #5c6378;
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.qabas-atc-notice-live__close:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #1a1d26;
}

@media (prefers-reduced-motion: reduce) {
	.qabas-atc-notice-live {
		transition: none;
	}

	.qabas-atc-notice-live__btn:hover {
		transform: none;
	}
}

/* Variable products: clearer disabled out-of-stock <select> options */
.woocommerce .variations select option:disabled {
	color: #9aa0ae;
	background-color: #f3f4f6;
}

/*
 * WCBoost Variation Swatches — out-of-stock (.disabled)
 * Clearer than plugin default (opacity 0.2); clicks blocked in JS + pointer-events.
 */
.woocommerce .wcboost-variation-swatches__item.disabled {
	pointer-events: none;
	cursor: not-allowed !important;
	opacity: 1 !important;
}

/* Button & label: read as “unavailable” gray chips */
.woocommerce .wcboost-variation-swatches--button .wcboost-variation-swatches__item.disabled,
.woocommerce .wcboost-variation-swatches--label .wcboost-variation-swatches__item.disabled {
	background-color: #e8eaef !important;
	color: #8b93a1 !important;
	box-shadow: 0 0 0 1px #cfd4dc !important;
	filter: none;
}

.woocommerce .wcboost-variation-swatches--button .wcboost-variation-swatches__item.disabled .wcboost-variation-swatches__name,
.woocommerce .wcboost-variation-swatches--label .wcboost-variation-swatches__item.disabled .wcboost-variation-swatches__name {
	text-decoration: line-through;
	text-decoration-color: #a0a8b5;
	text-underline-offset: 0.12em;
}

/* Color & image: washed look + light overlay (avoids ::before/::after — WCBoost tooltips use them) */
.woocommerce .wcboost-variation-swatches--color .wcboost-variation-swatches__item.disabled,
.woocommerce .wcboost-variation-swatches--image .wcboost-variation-swatches__item.disabled {
	filter: grayscale(0.85) brightness(0.88);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.12),
		inset 0 0 0 999px rgba(255, 255, 255, 0.42) !important;
}

.woocommerce .wcboost-variation-swatches--color .wcboost-variation-swatches__item.disabled:hover,
.woocommerce .wcboost-variation-swatches--color .wcboost-variation-swatches__item.disabled:focus,
.woocommerce .wcboost-variation-swatches--image .wcboost-variation-swatches__item.disabled:hover,
.woocommerce .wcboost-variation-swatches--image .wcboost-variation-swatches__item.disabled:focus {
	filter: grayscale(0.85) brightness(0.88);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.12),
		inset 0 0 0 999px rgba(255, 255, 255, 0.42) !important;
}

.woocommerce .wcboost-variation-swatches--button .wcboost-variation-swatches__item.disabled:hover,
.woocommerce .wcboost-variation-swatches--button .wcboost-variation-swatches__item.disabled:focus,
.woocommerce .wcboost-variation-swatches--label .wcboost-variation-swatches__item.disabled:hover,
.woocommerce .wcboost-variation-swatches--label .wcboost-variation-swatches__item.disabled:focus {
	background-color: #e8eaef !important;
	color: #8b93a1 !important;
	box-shadow: 0 0 0 1px #cfd4dc !important;
}