/*
Theme Name: مدرن فیتنس (Modern Fitness)
Theme URI: https://modernfitness.example
Author: Modern Fitness
Author URI: https://modernfitness.example
Description: قالب فروشگاهی مدرن و راست‌چین برای تجهیز باشگاه‌ها — فروش تجهیزات، خدمات تعمیر، باشگاه مشتریان امتیازی و بوتیک پوشاک با اتاق پرو مجازی. ورود فقط با موبایل، راه‌انداز یک‌کلیکی، پنل شخصی‌سازی، PWA و جلوه‌های سه‌بعدی و موشن. نسخهٔ ۴.۰ یکپارچه.
Version: 6.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-fitness
Tags: e-commerce, fitness, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
WC requires at least: 7.0
WC tested up to: 9.5
*/

/*
 * استایل‌های اصلی در assets/css/mfc-main.css بارگذاری می‌شود.
 * این فایل فقط هدر قالب + استایل‌های مکمل (سبد کشویی، فروشگاه پوشاک، اتاق پرو) است.
 */

/* ============================================================
   سبد خرید کشویی
   ============================================================ */
.mfc-cart-drawer {
  position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none;
}
.mfc-cart-drawer.mfc-open { visibility: visible; pointer-events: auto; }
.mfc-cart-drawer::before {
  content: ''; position: absolute; inset: 0; background: rgba(10, 12, 16, .55);
  opacity: 0; transition: opacity .3s ease;
}
.mfc-cart-drawer.mfc-open::before { opacity: 1; }
.mfc-cart-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(420px, 92vw);
  background: var(--surface); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .4s cubic-bezier(.2, .8, .25, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
}
.mfc-cart-drawer.mfc-open .mfc-cart-panel { transform: none; }
.mfc-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 16.5px;
}
.mfc-cart-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 15px;
}
.mfc-cart-close:hover { color: #EF4444; border-color: #EF4444; }
.mfc-cart-body { flex: 1; overflow: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.mfc-cart-body .woocommerce { display: none; }
.mfc-cart-items { display: grid; gap: 12px; }
.mfc-cart-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.mfc-cart-item .mfc-ci-img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mfc-cart-item .mfc-ci-info { display: grid; gap: 2px; font-size: 13.8px; flex: 1; }
.mfc-cart-item .mfc-ci-info b { font-size: 14px; }
.mfc-cart-item .mfc-ci-info span { color: var(--accent); font-weight: 700; }
.mfc-cart-item .mfc-ci-x {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 13px; flex-shrink: 0;
}
.mfc-cart-item .mfc-ci-x:hover { color: #EF4444; border-color: #EF4444; }
.mfc-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 14px; font-size: 15px;
}
.mfc-cart-total b { color: var(--accent); font-size: 17px; }
.mfc-cart-empty { text-align: center; margin: auto; color: var(--muted); display: grid; gap: 12px; justify-items: center; padding: 40px 0; }
.mfc-cart-empty-ico { font-size: 54px; opacity: .8; }

/* ============================================================
   فروشگاه پوشاک
   ============================================================ */
.mfc-store-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start;
}
@media (max-width: 940px) { .mfc-store-layout { grid-template-columns: 1fr; } }
.mfc-store-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  position: sticky; top: calc(var(--header-h) + 16px); overflow: hidden;
}
@media (max-width: 940px) { .mfc-store-side { position: static; } }
.mfc-store-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.mfc-ap-reset {
  background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  padding: 6px 14px; font-family: var(--font); font-size: 12.5px; color: var(--muted); font-weight: 700;
  transition: all .2s ease;
}
.mfc-ap-reset:hover { border-color: var(--accent); color: var(--accent); }
.mfc-store-side-body { padding: 18px 20px 22px; display: grid; gap: 20px; }
.mfc-ap-group { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.mfc-ap-group > b { font-size: 14px; }
.mfc-ap-check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; color: var(--text); }
.mfc-ap-check input { accent-color: var(--accent); width: 17px; height: 17px; }
#mfc-ap-price { width: 100%; accent-color: var(--accent); }
.mfc-ap-price-label { font-size: 13px; color: var(--muted); font-weight: 700; }

.mfc-store-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.mfc-apparel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 1200px) { .mfc-apparel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mfc-apparel-grid { grid-template-columns: 1fr; } }
.mfc-ap-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .4s cubic-bezier(.2, .8, .25, 1), box-shadow .4s ease, border-color .3s ease;
}
.mfc-ap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(249, 115, 22, .35); }
.mfc-ap-media { position: relative; overflow: hidden; }
.mfc-ap-media img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .25, 1); }
.mfc-ap-card:hover .mfc-ap-media img { transform: scale(1.06); }
.mfc-ap-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--surface);
  color: var(--accent-ink); border: 1px solid rgba(249, 115, 22, .3); border-radius: 999px;
  font-size: 12px; font-weight: 800; padding: 4px 12px;
}
html.mfc-dark .mfc-ap-badge { color: var(--accent-2); }
.mfc-ap-badge-sale { background: var(--grad-accent); color: #fff; border: 0; }
.mfc-ap-actions { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; gap: 6px; opacity: 0; transform: translateX(-6px); transition: all .3s ease; }
.mfc-ap-card:hover .mfc-ap-actions { opacity: 1; transform: none; }
.mfc-ap-actions button {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent); cursor: pointer; font-size: 17px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mfc-ap-cart {
  position: absolute; inset-inline: 12px; bottom: 12px; border: 0; cursor: pointer;
  background: var(--grad-accent); color: #fff; border-radius: 12px; padding: 11px;
  font-family: var(--font); font-size: 14px; font-weight: 800;
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.mfc-ap-card:hover .mfc-ap-cart { opacity: 1; transform: none; }
.mfc-ap-cart:hover { box-shadow: 0 8px 20px rgba(249, 115, 22, .45); }
.mfc-ap-body { padding: 16px 18px 20px; }
.mfc-ap-rate { font-size: 12.5px; letter-spacing: 1px; margin-bottom: 6px; }
.mfc-ap-rate span { color: var(--muted); font-weight: 700; margin-inline-start: 4px; }
.mfc-ap-body h3 { margin: 0 0 8px; font-size: 15.8px; }
.mfc-ap-price { display: flex; align-items: baseline; gap: 10px; }
.mfc-ap-price b { color: var(--accent); font-size: 16.5px; }
.mfc-ap-price del { color: var(--muted); font-size: 13px; }
.mfc-ap-empty { text-align: center; padding: 70px 20px; color: var(--text); background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }

/* ============================================================
   اتاق پرو مجازی
   ============================================================ */
.mfc-fitting-panel {
  position: fixed; inset: 0; z-index: 1150; visibility: hidden; pointer-events: none;
}
.mfc-fitting-panel.mfc-open { visibility: visible; pointer-events: auto; }
.mfc-fitting-panel::before {
  content: ''; position: absolute; inset: 0; background: rgba(10, 12, 16, .6);
  opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mfc-fitting-panel.mfc-open::before { opacity: 1; }
.mfc-fitting-inner {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(720px, 94vw);
  background: var(--surface); border-inline-start: 1px solid var(--line);
  transform: translateX(-105%); transition: transform .45s cubic-bezier(.2, .8, .25, 1);
  display: flex; flex-direction: column; box-shadow: 20px 0 60px rgba(0, 0, 0, .3);
}
[dir="rtl"] .mfc-fitting-inner { transform: translateX(105%); }
.mfc-fitting-panel.mfc-open .mfc-fitting-inner { transform: none; }
.mfc-fitting-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 16.5px;
}
.mfc-fitting-body { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px 24px; }
@media (max-width: 620px) { .mfc-fitting-body { grid-template-columns: 1fr; } }
.mfc-fitting-side { display: grid; gap: 14px; align-content: start; }
.mfc-fitting-tip { margin: 0; font-size: 13.5px; color: var(--muted); background: var(--accent-soft); border: 1px dashed rgba(249, 115, 22, .35); border-radius: 12px; padding: 12px 14px; }
.mfc-fitting-list { display: grid; gap: 8px; min-height: 60px; align-content: start; }
.mfc-fitting-item {
  display: flex; align-items: center; gap: 10px; font-size: 13.8px;
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 9px 14px;
  animation: mfcFadeDown .3s ease;
}
.mfc-fi-emoji { font-size: 19px; }
.mfc-fi-x {
  margin-inline-start: auto; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; color: var(--text);
}
.mfc-fi-x:hover { color: #EF4444; border-color: #EF4444; }

/* مانکن */
.mfc-mannequin {
  position: relative; min-height: 480px; border-radius: 20px;
  background:
    radial-gradient(400px 260px at 50% 30%, var(--accent-soft), transparent 70%),
    var(--bg);
  border: 1px solid var(--line); display: grid; place-items: end center; overflow: hidden;
  perspective: 900px;
}
.mfc-mn-podestal {
  position: absolute; bottom: 26px; width: 62%; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 24, 31, .18), transparent);
  animation: mfcPodestal 6s ease-in-out infinite;
}
@keyframes mfcPodestal { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(.92); opacity: .5; } }
.mfc-mn-spin {
  position: relative; width: 210px; height: 400px; margin-bottom: 42px;
  transform-style: preserve-3d; animation: mfcTurntable 14s linear infinite;
}
.mfc-fitting-panel:hover .mfc-mn-spin { animation-play-state: paused; }
@keyframes mfcTurntable {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
.mfc-mn-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.mfc-mn-layer {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 24px;
}
.mfc-mn-emoji { font-size: 120px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .22)); }
.mfc-mn-layer:nth-child(1) .mfc-mn-emoji { font-size: 150px; }
.mfc-mn-top .mfc-mn-emoji { animation: mfcPop .45s cubic-bezier(.2, .8, .25, 1); }

/* ============================================================
   مکمل‌های محتوا
   ============================================================ */
.mfc-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mfc-content, .entry-content { font-size: 16px; line-height: 2; }
.mfc-content h2, .entry-content h2 { margin: 34px 0 14px; font-size: 24px; }
.mfc-content img, .entry-content img { border-radius: 16px; }
.mfc-content blockquote, .entry-content blockquote {
  margin: 24px 0; padding: 18px 24px; border-inline-start: 4px solid var(--accent);
  background: var(--surface); border-radius: 12px; color: var(--muted);
}
.alignwide { width: 100%; }
.aligncenter { margin-inline: auto; display: block; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 9999; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; transition: top .3s ease; }
.skip-link:focus { top: 12px; color: #fff; }

/* ویجت‌ها */
.mfc-widget { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.mfc-widget-title { margin: 0 0 12px; font-size: 16px; }

/* صفحه‌بندی */
.navigation.pagination { margin: 34px 0 0; text-align: center; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px; margin: 0 3px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 700;
  background: var(--surface); transition: all .2s ease;
}
.navigation.pagination .page-numbers.current, .navigation.pagination .page-numbers:hover {
  background: var(--grad-accent); color: #fff; border-color: transparent;
}
.woocommerce-pagination ul { border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination ul li span, .woocommerce-pagination ul li a {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 42px !important; height: 42px !important; margin: 0 3px !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important;
  color: var(--text) !important; font-weight: 700 !important; background: var(--surface) !important;
}
.woocommerce-pagination ul li span.current { background: var(--grad-accent) !important; color: #fff !important; border-color: transparent !important; }

/* فرم ورود/ثبت‌نام ووکامرس */
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  border: 1px solid var(--line) !important; border-radius: 18px !important;
  background: var(--surface); padding: 28px !important; max-width: 460px; margin-inline: auto;
}
.woocommerce form.login .button, .woocommerce form.register .button {
  background: var(--grad-accent) !important; color: #fff !important; border-radius: 999px !important; font-weight: 800 !important; padding: 12px 30px !important;
}

/* ستون‌بندی صفحهٔ داخلی با سایدبار */
.mfc-page-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
@media (max-width: 940px) { .mfc-page-wrap { grid-template-columns: 1fr; } }
