/*
Theme Name:   Woodmart Child
Description:  Child theme for Woodmart 8.3.6 (RTL / Persian store layout)
Author:       Your Name
Template:     woodmart
Version:      1.0.0
Text Domain:  woodmart-child
Domain Path:  /languages
*/

:root {
  --kb-primary: #2e7d32;      /* رنگ اصلی - در تنظیمات وودمارت هم تنظیم کنید */
  --kb-accent: #e53935;       /* رنگ تخفیف */
  --kb-bg-soft: #f6f7f5;
  --kb-text: #333;
  --kb-radius: 12px;
  --kb-font: 'Vazirmatn', Tahoma, sans-serif;
}

body,
.wd-nav > li > a,
.product-title,
.btn, button, input, select, textarea {
  font-family: var(--kb-font);
}

/* ---------- نوار مزایا (Trust bar) ---------- */
.kb-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 10px 0 24px;
}
.kb-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--kb-bg-soft);
  border-radius: var(--kb-radius);
  font-size: 13px;
  font-weight: 600;
}
.kb-trust__icon { font-size: 22px; line-height: 1; }

/* ---------- آیکن دسته‌بندی‌ها (ردیف دایره‌ای) ---------- */
.kb-cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
  text-align: center;
}
.kb-cats__item { display: block; color: var(--kb-text); text-decoration: none; }
.kb-cats__img {
  width: 86px; height: 86px; margin: 0 auto 8px;
  border-radius: 50%; overflow: hidden;
  background: var(--kb-bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kb-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.kb-cats__item:hover .kb-cats__img { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.kb-cats__name { font-size: 13px; font-weight: 600; }

/* نسخه شبکه‌ای (بخش «خرید آجیل و خشکبار ...») */
.kb-cats--grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.kb-cats--grid .kb-cats__img { width: 72px; height: 72px; }

/* ---------- تیتر بخش‌ها ---------- */
.kb-section-title {
  display: flex; align-items: center; gap: 12px;
  margin: 30px 0 16px; font-size: 20px; font-weight: 800;
}
.kb-section-title::after {
  content: ""; flex: 1; height: 2px; background: var(--kb-bg-soft);
}

/* ---------- تب‌های محصولات (المنتور Tabs) ---------- */
.elementor-widget-tabs .elementor-tabs-wrapper { display: flex; gap: 6px; flex-wrap: wrap; }
.elementor-widget-tabs .elementor-tab-title {
  padding: 8px 18px; border-radius: 999px; background: var(--kb-bg-soft);
  font-weight: 700; font-size: 14px; border: 0;
}
.elementor-widget-tabs .elementor-tab-title.elementor-active {
  background: var(--kb-primary); color: #fff;
}
.elementor-widget-tabs .elementor-tab-content { border: 0; padding: 16px 0 0; }

/* ---------- بنرها ---------- */
.kb-banner img { width: 100%; height: auto; border-radius: var(--kb-radius); display: block; }

/* ---------- بلاگ ---------- */
.kb-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kb-post { border-radius: var(--kb-radius); overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.kb-post img { width: 100%; height: auto; display: block; }
.kb-post__title { padding: 12px 14px; font-weight: 700; font-size: 15px; margin: 0; }
.kb-post a { color: inherit; text-decoration: none; }

/* ---------- موبایل ---------- */
@media (max-width: 1024px) {
  .kb-cats { grid-template-columns: repeat(4, 1fr); }
  .kb-trust { grid-template-columns: repeat(2, 1fr); }
  .kb-posts { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .kb-cats__img { width: 64px; height: 64px; }
  .kb-section-title { font-size: 17px; }
}

/* ---------- فوتر نمونه ---------- */
.kb-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 28px 0; border-top: 2px solid var(--kb-bg-soft); margin-top: 30px; }
.kb-footer h4 { margin: 0 0 10px; font-size: 15px; }
.kb-footer a { display: block; color: inherit; text-decoration: none; margin-bottom: 6px; font-size: 13px; }
.kb-footer__logo { width: 120px; height: 48px; display: flex; align-items: center; justify-content: center; border: 2px dashed #bbb; border-radius: 8px; margin-bottom: 8px; font-size: 12px; color: #888; }
@media (max-width: 768px) { .kb-footer { grid-template-columns: 1fr; } }