/*
Theme Name: Modlino Child
Theme URI: https://modlino.ir
Description: قالب فرزند Blocksy برای فروشگاه مدلینو
Template: blocksy
Version: 1.0.1
Text Domain: modlino-child
*/

/* ─── فونت Vazirmatn (لوکال) ─── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── اعمال Vazirmatn به همه چیز ─── */
:root, body, .ct-button, button, input, textarea, select,
.entry-title, h1, h2, h3, h4, h5, h6,
.product_title, .woocommerce ul.products li.product .woocommerce-loop-product__title,
.price, .amount,
#wpadminbar, .wp-admin {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

/* ─── ترجمه‌های ضروری از طریق CSS (workaround تا language pack بیاد) ─── */
/* SALE → تخفیف */
.onsale {
  background: #c97b5a !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0;
}
.onsale::before { content: "تخفیف"; }
.onsale { font-size: 0 !important; }
.onsale::before { font-size: 12px; }

/* SOLD OUT → ناموجود (در صورت نمایش) */
.out-of-stock-badge::before, span.outofstock::before {
  content: "ناموجود";
}

/* ─── فروشگاه — هاور و کارت ─── */
body { background: #f5f0e8 !important; }
.product-card,
ul.products li.product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}
ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45, 36, 24, 0.1);
}

/* ─── قیمت — تومان شیک ─── */
.price, .amount, .woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #2d2418;
}
del .amount {
  opacity: 0.45;
  font-size: 0.85em;
  text-decoration: line-through;
}

/* ─── دکمه‌ها ─── */
.woocommerce a.button, .ct-button {
  background: #2d2418 !important;
  color: #f5f0e8 !important;
  border-radius: 6px;
  text-transform: none;
  font-weight: 500;
}
.woocommerce a.button:hover {
  background: #c9a87a !important;
  color: #1a1410 !important;
}

/* ─── breadcrumb ─── */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: #7a6c52;
}
