/**
 * MT Smart Add to Cart - Main Stylesheet
 * @version 1.8.6
 */

/* --- Parent Container Fixes --- */
.summary.entry-summary, 
.woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* --- Main Cart Form --- */
form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px;
    position: relative;
}

/* --- Blur Effect on Load --- */
.variations_form.blockUI::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    cursor: wait;
    background: transparent;
}

.mt-initial-loader,
.variations_form.blockUI .mt-action-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    cursor: wait;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.mt-initial-loader {
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Hide default WooCommerce quantity input */
form.cart .quantity:not(.mt-quantity-selector) {
    display: none !important;
}

/* --- Initial Loader Spinner --- */
.mt-initial-loader span {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mt-button-bg-color, #ef4056); margin: 0 3px;
    animation: mtFade 1.2s infinite ease-in-out;
}
.mt-initial-loader span:nth-child(2) { animation-delay: 0.2s; }
.mt-initial-loader span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mtFade { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Action Area Wrapper --- */
.mt-action-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin-top: 10px; /* Increased space from price */
}

/* --- Main Button --- */
form.cart .single_add_to_cart_button {
    width: 100% !important;
    display: flex; justify-content: center; align-items: center;
    padding: 12px 0;
    background-color: var(--mt-button-bg-color, #ef4056) !important;
    color: var(--mt-button-text-color, #fff) !important;
    border: none; 
    border-radius: 8px !important;
    font-weight: bold; 
    cursor: pointer;
    height: 48px;
    position: relative;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	order: 2; /* Position after controls */
}
form.cart .single_add_to_cart_button:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Controls Wrapper --- */
.mt-cart-controls-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: right !important;
    align-items: center;
    gap: 10px;
    width: 100%;
	order: 1; /* Position before button */
}

/* --- Custom Quantity Selector --- */
.mt-quantity-selector {
    display: flex; 
    flex-direction: row;
    align-items: center;
    width: 102px !important;
    height: 44px !important;
    border: 1px solid var(--mt-selector-border-color, #e0e0e2);
    background-color: var(--mt-selector-bg-color, #f7f7f7);
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}

.mt-qty-button {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 100% !important;
    border: none !important;
    cursor: pointer; 
    transition: opacity 0.2s;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}
.mt-qty-button:hover { opacity: 0.7; }
.mt-qty-button:disabled { opacity: 0.3; cursor: not-allowed; }

.mt-qty-plus { background-image: var(--mt-plus-icon); }
.mt-qty-minus { background-image: var(--mt-minus-icon); }
.mt-qty-minus.mt-qty-trash { background-image: var(--mt-trash-icon); background-size: 18px; }

.mt-qty-center-wrap {
    flex: 0 0 40px !important;
    width: 40px !important;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    height: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
}

.mt-quantity-selector input.mt-qty {
    width: 100% !important; 
    height: 100% !important; 
    text-align: center !important; 
    border: none !important; 
    background: transparent !important;
    font-size: 22px !important; 
    font-weight: bold;
    color: var(--mt-selector-text-color, #ef4056);
    padding: 0 !important; 
    margin: 0 !important;
    box-shadow: none !important;
    float: none !important;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.mt-quantity-selector input.mt-qty:focus { outline: none !important; box-shadow: none !important; }
.mt-quantity-selector input.mt-qty::-webkit-outer-spin-button,
.mt-quantity-selector input.mt-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mt-max-stock-label {
    font-size: 10px; 
    color: #999; 
    position: absolute; 
    bottom: 4px; 
    width: 100%; 
    text-align: center; 
    line-height: 1;
}

/* --- Loading Dots --- */
.mt-loading-dots {
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    border-radius: 8px;
}
.single_add_to_cart_button .mt-loading-dots { background-color: var(--mt-button-bg-color, #ef4056); }
.mt-qty-center-wrap .mt-loading-dots { background-color: var(--mt-selector-bg-color, #f7f7f7); }
.mt-loading-dots span {
    width: 5px; 
    height: 5px; 
    margin: 0 2px; 
    border-radius: 50%;
    animation: mtFade 1.2s infinite ease-in-out;
}
.single_add_to_cart_button .mt-loading-dots span { background-color: var(--mt-button-text-color, #fff); }
.mt-qty-center-wrap .mt-loading-dots span { background-color: var(--mt-selector-text-color, #ef4056); }
.mt-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.mt-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* --- "In Cart" Info Box --- */
.mt-in-cart-box { display: flex; flex-direction: column; align-items: right; gap: 1px; font-size: 13px; line-height: 1.4; text-align: right; }
.mt-in-cart-title { color: #666; }
form.cart .mt-in-cart-link a { color: var(--mt-selector-text-color, #ef4056); text-decoration: none; font-weight: 500; }
form.cart .mt-in-cart-link a:hover { text-decoration: underline; }

/* --- Stock Urgency Message --- */
.mt-stock-urgency-message {
    color: var(--mt-selector-text-color, #ef4056);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-top: 12px;
    order: 3;
}

/* 
 * --- Swatches --- 
 */

/* --- Swatches Loader --- */
.mt-swatches-loader { display: flex; justify-content: center; align-items: center; min-height: 50px; }
.mt-swatches-loader span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ccc; margin: 0 3px; animation: mtFade 1.2s infinite ease-in-out; }
.mt-swatches-loader span:nth-child(2) { animation-delay: 0.2s; }
.mt-swatches-loader span:nth-child(3) { animation-delay: 0.4s; }

/* --- Swatch Shortcode/Reset --- */
form.variations_form .reset_variations { display: inline-block !important; visibility: visible !important; }
.mt-reset-wrapper { text-align: center; margin-top: 10px; }
.mt-shortcode-reset-variations { font-size: 12px; color: #555; text-decoration: none; border-bottom: 1px dotted #555; cursor: pointer; display: none; line-height: 1; }
.mt-swatches-content .mt-swatches-wrapper { margin-bottom: 15px; }

/* --- Swatch Label (Shortcode Mode) --- */
.mt-swatch-label-container { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; font-size: 14px; color: #333; }
.mt-selected-swatch-name { font-weight: 500; }
.mt-selected-swatch-preview .mt-preview-swatch { display:inline-block; width:14px; height:14px; border-radius:50%; box-shadow: 0 0 0 1px #e0e0e2, inset 0 0 0 1px #fff; }

/* --- Swatch Container --- */
.mt-swatches-wrapper { display: flex; flex-direction: column; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mt-swatches-wrapper .mt-swatches { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

/* --- General Swatch Styles --- */
.mt-swatch { position: relative; width: 34px; height: 34px; cursor: pointer; transition: all 0.2s ease-in-out; box-shadow: 0 0 0 1px #e0e0e2, inset 0 0 0 2px #fff; display: flex; justify-content: center; align-items: center; }
.mt-swatch:hover:not(.disabled) { transform: scale(1.1); z-index: 2; }
.mt-swatch.selected { box-shadow: 0 0 0 2px var(--mt-selector-text-color, #ef4056), inset 0 0 0 2px #fff; }
.mt-swatch.disabled { opacity: 0.35; cursor: not-allowed; background-image: linear-gradient( -45deg, transparent 48%, #c7c7c7 48%, #c7c7c7 52%, transparent 52% ); }

/* --- Checkmark Icon --- */
.mt-swatch-check { width: 16px; height: 16px; background-color: #212121; -webkit-mask-image: var(--mt-check-icon-url); mask-image: var(--mt-check-icon-url); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; opacity: 0; transition: opacity 0.2s ease-in-out; }
.mt-swatch.selected .mt-swatch-check { opacity: 1; }
.mt-swatch.selected.is-dark-bg .mt-swatch-check { background-color: #ffffff; }

/* --- Shapes --- */
.mt-swatch-circle { border-radius: 50%; }
.mt-swatch-square { border-radius: 6px; }

/* --- Button Swatch Type --- */
.mt-button-swatch { width: auto; height: auto; border: 1px solid #dcdcdc; padding: 6px 14px; font-size: 14px; border-radius: 8px; background-color: #fff; color: #333; box-shadow: none; }
.mt-button-swatch:hover:not(.disabled) { border-color: #ababab; }
.mt-button-swatch.selected { border-color: var(--mt-selector-text-color, #ef4056); color: var(--mt-selector-text-color, #ef4056); font-weight: bold; box-shadow: none; background-color: #fff; }
.mt-button-swatch.disabled { color: #999; }

/* --- Tooltip --- */
.mt-swatch::before, .mt-swatch::after { position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; z-index: 10; pointer-events: none; }
.mt-swatch::before { content: attr(data-tooltip); bottom: calc(100% + 8px); background-color: #212121; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.mt-swatch::after { content: ''; bottom: 100%; border: 5px solid transparent; border-top-color: #212121; }
.mt-swatch:hover:not(.disabled)::before, .mt-swatch:hover:not(.disabled)::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-3px); }

/* --- Auto Mode Layout --- */
.variations_form .variations { display: flex !important; flex-wrap: wrap !important; gap: 24px !important; border: none !important; background: transparent !important; margin-bottom: 0 !important; padding: 0 !important; width: 100% !important; }
.variations_form .variations tr, .variations_form .variations tbody { display: contents !important; }
.variations_form .variations tr.woocommerce-variation-attribute { display: flex !important; flex-direction: column !important; gap: 8px !important; background: transparent !important; padding: 0 !important; border: none !important; }
.variations_form .variations th, .variations_form .variations td { border: none !important; padding: 0 !important; background: transparent !important; }
.variations_form .variations .label label { font-size: 14px; color: #333; font-weight: 500; }
.variations_form .variations td .mt-swatches-wrapper { margin-bottom: 0 !important; flex-direction: row !important; }

/* 
 * --- Notifications --- 
 */

/* --- Common Notification Styles --- */
.mt-cart-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:99998; opacity: 0; transition: opacity 0.3s ease-in-out; }
.mt-cart-overlay.is-visible { opacity: 1; }

.mt-common-button{display:block;width:100%;padding:10px 0;background-color:var(--mt-button-bg-color, #ef4056);color:#fff!important;text-align:center;text-decoration:none;border-radius:8px;font-weight:700;font-size:14px;transition:filter .2s ease-in-out}.mt-common-button:hover{filter:brightness(90%)}
.mt-button-secondary { background-color: #f0f0f1; color: #333 !important; }
.mt-button-secondary:hover { filter: brightness(95%); }

.mt-checkmark{width:20px;height:20px;border-radius:50%;display:block;stroke-width:2;stroke:#fff;stroke-miterlimit:10;box-shadow:inset 0 0 0 #7ac142;animation:mtFill .4s ease-in-out .4s forwards,mtScale .3s ease-in-out .9s both}.mt-checkmark__circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#7ac142;fill:none;animation:mtStroke .6s cubic-bezier(.65,0,.45,1) forwards}.mt-checkmark__check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:mtStroke .3s cubic-bezier(.65,0,.45,1) .8s forwards}@keyframes mtStroke{100%{stroke-dashoffset:0}}@keyframes mtScale{0%,100%{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes mtFill{100%{box-shadow:inset 0 0 0 30px #7ac142}}

/* --- Popup styles --- */
.mt-cart-popup{position:fixed;top:50%;left:50%;background:#fff;border-radius:12px;padding:20px;z-index:99999;width:90%;max-width:460px;box-shadow:0 8px 24px rgba(0,0,0,.3);direction:rtl; opacity: 0; transform: translate(-50%, -50%) scale(0.95); transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; }
.mt-cart-popup.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mt-popup-header{display:flex;align-items:center;gap:10px;margin-bottom:15px}.mt-lottie-icon{width:20px;height:20px}.mt-popup-title{font-size:16px;font-weight:700;color:#2e7b32;flex-grow:1}.mt-popup-close{font-size:28px;line-height:1;font-weight:700;color:#666;cursor:pointer;padding:0 5px}.mt-cart-popup hr{border:none;border-top:1px solid #eee;margin:0 0 15px}.mt-product-info{display:flex;align-items:center;gap:15px;margin-bottom:20px;text-align:right}.mt-product-info img{width:80px;height:80px;object-fit:cover;border-radius:8px}.mt-product-info .mt-product-title{font-size:14px;font-weight:500;flex:1}

/* --- Notification Toast --- */
.mt-notification-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(200%); background-color: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 100000; direction: rtl; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s; }
.mt-notification-toast.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.mt-notification-toast.is-hiding { transform: translateX(-50%) translateY(50%); opacity: 0; }
.mt-toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.mt-toast-icon .mt-checkmark { width: 24px; height: 24px; }
.mt-toast-text { font-size: 14px; font-weight: 700; color: #2e7b32; flex-grow: 1; white-space: nowrap; }
.mt-toast-link { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; text-decoration: none; color: #333; font-size: 13px; font-weight: 500; padding: 0 12px; border-right: 1px solid #e0e0e2; margin-right: 12px; white-space: nowrap; }
.mt-toast-link::before { content: ''; display: inline-block; width: 1em; height: 1em; background-color: currentColor; -webkit-mask-image: var(--mt-angle-left-icon); mask-image: var(--mt-angle-left-icon); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.mt-toast-close { font-size: 24px; font-weight: 700; color: #888; cursor: pointer; line-height: 1; padding: 0 4px; }

/* --- Sidebar Styles --- */
.mt-cart-sidebar { position: fixed; top: 0; left: 0; width: 100%; max-width: 400px; height: 100%; background-color: #fff; z-index: 100000; direction: rtl; display: flex; flex-direction: column; box-shadow: 0 0 25px rgba(0, 0, 0, 0.15); opacity: 0; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease-in-out; }
.mt-cart-sidebar.is-visible { opacity: 1; transform: translateX(0); }
.mt-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #e0e0e2; flex-shrink: 0; }
.mt-sidebar-title { font-size: 16px; font-weight: 700; color: #2e7b32; display: flex; align-items: center; gap: 8px; }
.mt-sidebar-title .mt-lottie-icon { width: 20px; height: 20px; }
.mt-sidebar-close { font-size: 28px; line-height: 1; font-weight: 700; color: #666; cursor: pointer; }
.mt-sidebar-content { padding: 20px; overflow-y: auto; flex-grow: 1; }

/* --- Sidebar Full Cart Styles --- */
.mt-sidebar-cart-items { display: flex; flex-direction: column; gap: 15px; }
.mt-sidebar-product { display: flex; gap: 15px; align-items: center; text-align: right; padding: 10px; border-radius: 8px; position: relative; transition: background-color 0.3s, opacity 0.3s; }
.mt-sidebar-product.is-newly-added { background-color: #f0fff2; }
.mt-sidebar-product.is-removing { opacity: 0.5; pointer-events: none; }
.mt-sidebar-product-image { flex-shrink: 0; }
.mt-sidebar-product-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; display: block; }
.mt-sidebar-product-details { flex-grow: 1; }
.mt-sidebar-product-title { font-size: 14px; font-weight: 500; line-height: 1.6; color: #333; margin-bottom: 5px; }
.mt-sidebar-product-attributes { margin-top: 8px; font-size: 12px; color: #555; display: flex; flex-direction: column; gap: 4px; }
.mt-sidebar-attribute { display: flex; align-items: center; gap: 6px; }
.mt-sidebar-swatch-preview { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px #e0e0e2, inset 0 0 0 1px #fff; }
.mt-sidebar-product-meta { color: #666; font-size: 13px; margin-top: 8px; }
.mt-sidebar-product-remove { position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background-color: #e0e0e2; color: #666; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.mt-sidebar-product-remove:hover { background-color: #d1d1d1; color: #333; }

/* --- Sidebar Footer Styles --- */
.mt-sidebar-footer { padding: 20px; border-top: 1px solid #e0e0e2; flex-shrink: 0; background-color: #fdfdfd; }
.mt-sidebar-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 15px; }
.mt-sidebar-total-amount { font-weight: bold; color: #212121; }
.mt-sidebar-total-amount .woocommerce-Price-amount { font-size: 1.1em; }
.mt-sidebar-buttons { display: flex; gap: 10px; }

/* --- Out of Stock Styles --- */
form.cart .single_add_to_cart_button.mt-out-of-stock {
    background-color: #fbebee !important;
    color: #c00 !important;
    border: 1px solid #f7d7d7 !important;
    cursor: not-allowed;
}

/* --- Hiding Stock and "Toman" text --- */
.woocommerce-variation-availability {
    display: none !important;
}
.summary .price .woocommerce-Price-currencySymbol,
.woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* --- Custom Price Styles (CORRECTED) --- */
/* --- ساختار کلی قیمت --- */
body.mt-smart-cart-active .woocommerce-variation-price {
    position: relative; 
    direction: rtl;
    text-align: right !important;
}
body.mt-smart-cart-active .woocommerce-variation-price .price {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* راست‌چین کل ساختار */
    gap: 4px; /* فاصله بین دو خط */
    width: 100%;
}

/* --- قیمت خط‌خورده --- */
body.mt-smart-cart-active .woocommerce-variation-price .price del {
    font-size: var(--mt-sale-price-font-size, 14px);
    color: var(--mt-sale-price-color, #b0b0b0);
    font-weight: 400;
    width: 100%;
    text-align: right;
	position: relative; /* Make this the reference for the absolute badge */
    padding-right: 15px; /* THE FIX: Align with final price (28px icon + 6px margin) */
    box-sizing: border-box; /* Ensure padding is included in the width */
}
body.mt-smart-cart-active .woocommerce-variation-price .price del .woocommerce-Price-amount {
    color: var(--mt-sale-price-color, #b0b0b0) !important;
    font-size: 1em !important;
}

/* --- درصد تخفیف --- */
.mt-sale-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background-color: var(--mt-sale-badge-bg-color, #D32F2F);
    color: var(--mt-button-text-color, #fff);
    padding: 2px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    white-space: nowrap;
}

/* --- قیمت نهایی (شامل معمولی و تخفیف‌خورده) --- */
body.mt-smart-cart-active .woocommerce-variation-price .price ins,
body.mt-smart-cart-active .woocommerce-variation-price .price > .woocommerce-Price-amount {
    text-decoration: none;
    background: none;
    text-align: right;
    width: 100%;
}

/* استایل اصلی عدد قیمت نهایی */
body.mt-smart-cart-active .woocommerce-variation-price .price > ins > .woocommerce-Price-amount,
body.mt-smart-cart-active .woocommerce-variation-price .price > .woocommerce-Price-amount {
    font-weight: 700 !important;
    color: var(--mt-price-color, #222) !important;
    font-size: var(--mt-regular-price-font-size, 22px) !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* آیکن تومان در قیمت نهایی */
body.mt-smart-cart-active .woocommerce-variation-price .price > ins > .woocommerce-Price-amount::after,
body.mt-smart-cart-active .woocommerce-variation-price .price > .woocommerce-Price-amount::after {
    content: "";
    display: inline-block;
    width: var(--mt-toman-icon-size, 28px);
    height: var(--mt-toman-icon-size, 28px);
    margin-right: 6px;
    background-color: var(--mt-price-color, #222);
    -webkit-mask-image: var(--mt-toman-icon);
    mask-image: var(--mt-toman-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* --- حذف موارد اضافه --- */
body.mt-smart-cart-active .woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
    display: none !important;
}
body.mt-smart-cart-active .woocommerce-variation-price .price del .woocommerce-Price-amount::after {
    display: none !important;
}
body.mt-smart-cart-active .elementor-widget-woocommerce-product-price {
    display: none !important;
}

body.mt-smart-cart-active .woocommerce-variation-price .woocommerce-Price-amount {
    display: inline-block !important;
    text-align: right !important;
    direction: rtl !important;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    display: none !important;
}

/*
 * --- Responsive Styles for Mobile ---
 */
@media (max-width: 480px) {
    .mt-cart-controls-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .mt-in-cart-box {
        align-items: flex-start;
    }
    .mt-quantity-selector {
        height: 40px;
    }
    .mt-quantity-selector input.mt-qty {
        font-size: 20px !important;
    }
}