/*
Theme Name: MotoBazar Child
Theme URI: https://motobazar.ir
Description: قالب اختصاصی موتوبازار — بازار خرید، فروش و تعمیر موتورسیکلت
Author: MotoBazar
Author URI: https://motobazar.ir
Template: twentytwentyfour
Version: 1.0.0
Text Domain: motobazar
*/

/* =============================================
   متغیرهای رنگی — برای تغییر رنگ فقط اینجا را عوض کنید
   ============================================= */
:root {
  --mb-black:  #0D0D0D;
  --mb-steel:  #1A1A2E;
  --mb-chrome: #C0C0C0;
  --mb-flame:  #FF4500;   /* رنگ اصلی سایت */
  --mb-amber:  #FFA500;
  --mb-white:  #F5F5F0;
  --mb-mid:    #2A2A3E;
  --mb-subtle: #3A3A5C;
}

/* =============================================
   ریست پایه
   ============================================= */
body.motobazar-page {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--mb-black);
  color: var(--mb-white);
  direction: rtl;
  margin: 0;
  padding: 0;
}

/* =============================================
   ناوبار
   ============================================= */
.mb-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,69,0,0.2);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.mb-logo { font-size: 1.5rem; font-weight: 900; color: var(--mb-white); text-decoration: none; }
.mb-logo span { color: var(--mb-flame); }

/* =============================================
   دکمه‌ها
   ============================================= */
.mb-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.mb-btn-primary { background: var(--mb-flame); color: white; }
.mb-btn-primary:hover { background: #e03d00; transform: translateY(-1px); color: white; }
.mb-btn-outline { background: transparent; color: var(--mb-white); border: 2px solid var(--mb-white); }
.mb-btn-outline:hover { border-color: var(--mb-flame); color: var(--mb-flame); }

/* =============================================
   کارت محصول
   ============================================= */
.mb-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.mb-product-card {
  background: var(--mb-steel);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.mb-product-card:hover {
  border-color: rgba(255,69,0,0.4);
  transform: translateY(-3px);
}
.mb-product-img {
  height: 180px;
  background: var(--mb-mid);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.mb-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mb-product-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--mb-flame); color: white;
  font-size: 0.7rem; padding: 0.2rem 0.5rem;
  border-radius: 2px; font-weight: 700;
}
.mb-product-badge.used { background: var(--mb-subtle); }
.mb-product-info { padding: 1rem; }
.mb-product-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.mb-product-brand { font-size: 0.75rem; color: var(--mb-chrome); margin-bottom: 0.75rem; }
.mb-product-footer { display: flex; justify-content: space-between; align-items: center; }
.mb-product-price { font-size: 1rem; font-weight: 800; color: var(--mb-flame); }
.mb-product-price small { font-size: 0.7rem; color: var(--mb-chrome); font-weight: 400; }

/* =============================================
   بخش‌ها
   ============================================= */
.mb-section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.mb-section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 2rem; }
.mb-section-title span { color: var(--mb-flame); }

/* =============================================
   فوتر
   ============================================= */
.mb-footer {
  background: var(--mb-steel);
  border-top: 1px solid rgba(255,69,0,0.15);
  padding: 3rem 2rem 2rem;
  direction: rtl;
}
.mb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem; margin-top: 2rem;
  color: var(--mb-subtle); font-size: 0.8rem;
  display: flex; justify-content: space-between;
}
