:root {
    --mfc-primary: #7B3FA0;
    --mfc-hover: #9B5FC0;
    --mfc-gray: #6B6B6B;
    --mfc-bg: #FAFAFA;
    --mfc-border: #E8E8E8;
    --mfc-white: #FFFFFF;
    --mfc-radius: 16px;
    --mfc-radius-sm: 10px;
    --mfc-transition: none;
    --mfc-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --mfc-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mezonman-fc-wrapper { font-family: inherit, 'Vazirmatn', sans-serif; direction: rtl; box-sizing: border-box; }
.mezonman-fc-wrapper *, .mezonman-fc-wrapper *::before, .mezonman-fc-wrapper *::after { box-sizing: border-box; }

.mezonman-fc-wrapper .mfc-trigger-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; background: var(--mfc-primary); color: #fff; border: none;
    border-radius: var(--mfc-radius-sm); font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: var(--mfc-transition); box-shadow: 0 2px 8px rgba(123, 63, 160, 0.25); line-height: 1.5;
}
.mezonman-fc-wrapper .mfc-trigger-btn:hover { background: var(--mfc-hover); box-shadow: 0 4px 16px rgba(123, 63, 160, 0.35); transform: translateY(-1px); }
.mezonman-fc-wrapper .mfc-trigger-btn:active { transform: translateY(0); }

.mfc-nav-menu-item .mfc-nav-trigger { background: transparent; color: var(--mfc-primary); border: 2px solid var(--mfc-primary); padding: 6px 16px; font-size: 13px; }
.mfc-nav-menu-item .mfc-nav-trigger:hover { background: var(--mfc-primary); color: #fff; }

.mezonman-fc-wrapper .mfc-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5);
    z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; animation: mfc-fade-in 0.3s ease;
}
@keyframes mfc-fade-in { from { opacity: 0; } to { opacity: 1; } }

.mezonman-fc-wrapper .mfc-modal {
    background: var(--mfc-white); border-radius: var(--mfc-radius); width: 100%; max-width: 640px;
    max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--mfc-shadow-lg);
    animation: mfc-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes mfc-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mezonman-fc-wrapper .mfc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: linear-gradient(135deg, var(--mfc-primary), var(--mfc-hover)); color: #fff; }
.mezonman-fc-wrapper .mfc-modal-title { margin: 0; font-size: 18px; font-weight: 700; font-family: inherit; }
.mezonman-fc-wrapper .mfc-modal-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: var(--mfc-transition); display: flex; align-items: center; justify-content: center; }
.mezonman-fc-wrapper .mfc-modal-close:hover { background: rgba(255,255,255,0.35); transform: rotate(90deg); }

.mezonman-fc-wrapper .mfc-modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.mezonman-fc-wrapper .mfc-mode-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: var(--mfc-bg); padding: 6px; border-radius: var(--mfc-radius-sm); }
.mezonman-fc-wrapper .mfc-mode-tab { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; color: var(--mfc-gray); transition: var(--mfc-transition); }
.mezonman-fc-wrapper .mfc-mode-tab.active { background: var(--mfc-white); color: var(--mfc-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.mezonman-fc-wrapper .mfc-category-cards, .mezonman-fc-wrapper .mfc-garment-cards, .mezonman-fc-wrapper .mfc-size-cards, .mezonman-fc-wrapper .mfc-cut-cards, .mezonman-fc-wrapper .mfc-age-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }

.mezonman-fc-wrapper .mfc-cat-card, .mezonman-fc-wrapper .mfc-garment-card, .mezonman-fc-wrapper .mfc-size-card, .mezonman-fc-wrapper .mfc-cut-card, .mezonman-fc-wrapper .mfc-age-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; background: var(--mfc-white); border: 2px solid var(--mfc-border); border-radius: var(--mfc-radius); cursor: pointer; transition: var(--mfc-transition); text-align: center; }
.mezonman-fc-wrapper .mfc-cat-card:hover, .mezonman-fc-wrapper .mfc-garment-card:hover, .mezonman-fc-wrapper .mfc-size-card:hover, .mezonman-fc-wrapper .mfc-cut-card:hover, .mezonman-fc-wrapper .mfc-age-card:hover { border-color: var(--mfc-primary); box-shadow: 0 4px 12px rgba(123,63,160,0.1); transform: translateY(-2px); }
.mezonman-fc-wrapper .mfc-cat-card.selected, .mezonman-fc-wrapper .mfc-garment-card.selected, .mezonman-fc-wrapper .mfc-size-card.selected, .mezonman-fc-wrapper .mfc-cut-card.selected, .mezonman-fc-wrapper .mfc-age-card.selected { border-color: var(--mfc-primary); background: rgba(123,63,160,0.05); box-shadow: 0 4px 12px rgba(123,63,160,0.15); }

.mezonman-fc-wrapper .mfc-cat-icon { font-size: 36px; margin-bottom: 8px; }
.mezonman-fc-wrapper .mfc-cat-label, .mezonman-fc-wrapper .mfc-garment-label, .mezonman-fc-wrapper .mfc-size-label, .mezonman-fc-wrapper .mfc-cut-label { font-size: 14px; font-weight: 600; color: #333; }

.mezonman-fc-wrapper .mfc-width-cards, .mezonman-fc-wrapper .mfc-pattern-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.mezonman-fc-wrapper .mfc-radio-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px; border: 2px solid var(--mfc-border); border-radius: var(--mfc-radius); cursor: pointer; transition: var(--mfc-transition); }
.mezonman-fc-wrapper .mfc-radio-card input[type="radio"] { position: absolute; opacity: 0; }
.mezonman-fc-wrapper .mfc-radio-card:hover { border-color: var(--mfc-primary); }
.mezonman-fc-wrapper .mfc-radio-card:has(input:checked) { border-color: var(--mfc-primary); background: rgba(123,63,160,0.05); box-shadow: 0 4px 12px rgba(123,63,160,0.1); }
.mezonman-fc-wrapper .mfc-radio-card-content { font-size: 14px; font-weight: 600; text-align: center; }
.mezonman-fc-wrapper .mfc-tooltip { display: block; margin-top: 6px; font-size: 11px; color: #e74c3c; text-align: center; }

.mezonman-fc-wrapper .mfc-length-control { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.mezonman-fc-wrapper .mfc-length-slider { flex: 1; min-width: 200px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--mfc-border); outline: none; }
.mezonman-fc-wrapper .mfc-length-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mfc-primary); cursor: pointer; box-shadow: 0 2px 6px rgba(123,63,160,0.3); }
.mezonman-fc-wrapper .mfc-length-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--mfc-primary); cursor: pointer; border: none; box-shadow: 0 2px 6px rgba(123,63,160,0.3); }
.mezonman-fc-wrapper .mfc-length-input { width: 70px; padding: 8px; border: 2px solid var(--mfc-border); border-radius: 8px; text-align: center; font-size: 14px; font-family: inherit; }
.mezonman-fc-wrapper .mfc-length-input:focus { border-color: var(--mfc-primary); outline: none; }
.mezonman-fc-wrapper .mfc-length-unit { font-size: 13px; color: var(--mfc-gray); }

.mezonman-fc-wrapper .mfc-progress-wrapper { margin-bottom: 24px; }
.mezonman-fc-wrapper .mfc-progress-svg { width: 100%; height: 8px; margin-bottom: 8px; }
.mezonman-fc-wrapper .mfc-progress-fill { transition: stroke-dashoffset 0.5s cubic-bezier(0.4,0,0.2,1); }
.mezonman-fc-wrapper .mfc-progress-steps { display: flex; justify-content: space-between; }
.mezonman-fc-wrapper .mfc-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--mfc-border); color: var(--mfc-gray); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--mfc-transition); z-index: 1; }
.mezonman-fc-wrapper .mfc-step-dot.active { background: var(--mfc-primary); color: #fff; }
.mezonman-fc-wrapper .mfc-step-dot.completed { background: var(--mfc-hover); color: #fff; }

.mezonman-fc-wrapper .mfc-size-tabs { display: flex; gap: 8px; margin-bottom: 16px; background: var(--mfc-bg); padding: 6px; border-radius: var(--mfc-radius-sm); }
.mezonman-fc-wrapper .mfc-size-tab { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; color: var(--mfc-gray); transition: var(--mfc-transition); }
.mezonman-fc-wrapper .mfc-size-tab.active { background: var(--mfc-white); color: var(--mfc-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.mezonman-fc-wrapper .mfc-btn-primary, .mezonman-fc-wrapper .mfc-btn-secondary { padding: 10px 24px; border: none; border-radius: var(--mfc-radius-sm); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: var(--mfc-transition); display: inline-flex; align-items: center; gap: 6px; }
.mezonman-fc-wrapper .mfc-btn-primary { background: var(--mfc-primary); color: #fff; box-shadow: 0 2px 8px rgba(123,63,160,0.25); }
.mezonman-fc-wrapper .mfc-btn-primary:hover { background: var(--mfc-hover); box-shadow: 0 4px 16px rgba(123,63,160,0.35); }
.mezonman-fc-wrapper .mfc-btn-secondary { background: var(--mfc-bg); color: var(--mfc-gray); border: 1px solid var(--mfc-border); }
.mezonman-fc-wrapper .mfc-btn-secondary:hover { background: var(--mfc-border); color: #333; }

.mezonman-fc-wrapper .mfc-nav-buttons { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--mfc-border); }

.mezonman-fc-wrapper .mfc-result-card { text-align: center; padding: 24px; background: linear-gradient(135deg, rgba(123,63,160,0.05), rgba(155,95,192,0.05)); border-radius: var(--mfc-radius); margin: 16px 0; }
.mezonman-fc-wrapper .mfc-result-icon { font-size: 48px; margin-bottom: 12px; }
.mezonman-fc-wrapper .mfc-result-value { font-size: 28px; font-weight: 800; color: var(--mfc-primary); }
.mezonman-fc-wrapper .mfc-result-note { font-size: 12px; color: var(--mfc-gray); margin-top: 8px; }
.mezonman-fc-wrapper .mfc-result-final { padding: 32px 24px; }
.mezonman-fc-wrapper .mfc-result-label { font-size: 14px; color: var(--mfc-gray); margin-bottom: 8px; }
.mezonman-fc-wrapper .mfc-result-value-large { font-size: 36px; font-weight: 800; color: var(--mfc-primary); line-height: 1.2; }
.mezonman-fc-wrapper .mfc-result-margin { font-size: 14px; color: #e67e22; margin-top: 8px; font-weight: 600; }
.mezonman-fc-wrapper .mfc-result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

.mezonman-fc-wrapper .mfc-loading { text-align: center; padding: 20px; }
.mezonman-fc-wrapper .mfc-spinner { width: 40px; height: 40px; border: 4px solid var(--mfc-border); border-top-color: var(--mfc-primary); border-radius: 50%; margin: 0 auto 12px; animation: mfc-spin 0.8s linear infinite; }
@keyframes mfc-spin { to { transform: rotate(360deg); } }

.mezonman-fc-wrapper .mfc-error { background: #fee; color: #c33; padding: 12px 16px; border-radius: var(--mfc-radius-sm); text-align: center; font-size: 14px; margin-top: 16px; }
.mezonman-fc-wrapper .mfc-step-content h3, .mezonman-fc-wrapper .mfc-quick-step h3 { font-size: 16px; font-weight: 700; color: #333; margin: 0 0 8px; font-family: inherit; }

@media (max-width: 600px) {
    .mezonman-fc-wrapper .mfc-modal { max-width: 100%; max-height: 95vh; border-radius: 12px 12px 0 0; margin: 0; }
    .mezonman-fc-wrapper .mfc-modal-overlay { padding: 0; align-items: flex-end; }
    .mezonman-fc-wrapper .mfc-category-cards, .mezonman-fc-wrapper .mfc-garment-cards, .mezonman-fc-wrapper .mfc-size-cards, .mezonman-fc-wrapper .mfc-cut-cards { grid-template-columns: repeat(2, 1fr); }
    .mezonman-fc-wrapper .mfc-width-cards, .mezonman-fc-wrapper .mfc-pattern-cards { grid-template-columns: 1fr; }
    .mezonman-fc-wrapper .mfc-nav-buttons { flex-direction: column-reverse; }
    .mezonman-fc-wrapper .mfc-btn-primary, .mezonman-fc-wrapper .mfc-btn-secondary { width: 100%; justify-content: center; }
    .mezonman-fc-wrapper .mfc-step-dot { width: 24px; height: 24px; font-size: 10px; }
}

.woodmart-quick-view .mezonman-fc-wrapper .mfc-modal-overlay, .wd-quick-view .mezonman-fc-wrapper .mfc-modal-overlay { z-index: 100000; }
