/**
 * Farhang 2 Pro Typography Engine & Font-Face Declarations
 * Design System for Zeytoon & Serkeh (فروشگاه زیتون و سرکه)
 * Font Provider: assets/Webfonts/
 * Author: Moslem Ebrahimi (FontIran)
 */

/* ==========================================================================
   1. FARHANG 2 PRO (Weights 100 - 900)
   ========================================================================== */
@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 100;
    src: url('../Webfonts/fonts/woff2/Farhang2-Thin.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 200;
    src: url('../Webfonts/fonts/woff2/Farhang2-ExtraLight.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 300;
    src: url('../Webfonts/fonts/woff2/Farhang2-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 400;
    src: url('../Webfonts/fonts/woff2/Farhang2-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 500;
    src: url('../Webfonts/fonts/woff2/Farhang2-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 600;
    src: url('../Webfonts/fonts/woff2/Farhang2-DemiBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 700;
    src: url('../Webfonts/fonts/woff2/Farhang2-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 800;
    src: url('../Webfonts/fonts/woff2/Farhang2-ExtraBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Farhang';
    font-style: normal;
    font-weight: 900;
    src: url('../Webfonts/fonts/woff2/Farhang2-Black.woff2') format('woff2');
    font-display: swap;
}

/* ==========================================================================
   2. FARHANG FANUM ALIAS
   ========================================================================== */
@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 100;
    src: url('../Webfonts/fonts/woff2/Farhang2-Thin.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 200;
    src: url('../Webfonts/fonts/woff2/Farhang2-ExtraLight.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 300;
    src: url('../Webfonts/fonts/woff2/Farhang2-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 400;
    src: url('../Webfonts/fonts/woff2/Farhang2-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 500;
    src: url('../Webfonts/fonts/woff2/Farhang2-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 600;
    src: url('../Webfonts/fonts/woff2/Farhang2-DemiBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 700;
    src: url('../Webfonts/fonts/woff2/Farhang2-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 800;
    src: url('../Webfonts/fonts/woff2/Farhang2-ExtraBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'FarhangFaNum';
    font-style: normal;
    font-weight: 900;
    src: url('../Webfonts/fonts/woff2/Farhang2-Black.woff2') format('woff2');
    font-display: swap;
}

/* ==========================================================================
   3. FARHANG VARIABLE FONT ALIAS
   ========================================================================== */
@font-face {
    font-family: 'FarhangVF';
    font-style: normal;
    font-weight: 100 900;
    src: url('../Webfonts/fonts/woff2/Farhang2-Regular.woff2') format('woff2');
    font-display: swap;
}

/* ==========================================================================
   4. DESIGN TOKENS
   ========================================================================== */
:root {
    --font-farhang: 'Farhang', 'FarhangFaNum', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-base: var(--font-farhang);
    --font-family-heading: var(--font-farhang);
}

/* ==========================================================================
   5. TABULAR NUMERALS & OPENTYPE NUMBER RULES (tnum)
   ========================================================================== */
/* Tabular Figures (Monospace Numbers for Vertical Alignment & Stable Count) */
.tnum,
[data-tnum],
.tabular-nums,
.price,
.product-price,
.total-price,
.price-value,
.item-price,
.cart-count,
.order-number,
.numeric-data,
.tracking-code,
table td.numeric,
.badge-numeric {
    font-feature-settings: "tnum" 1, "locl" 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Persian Numerals Utility */
.fanum,
[data-fanum] {
    font-feature-settings: "locl" 1, "numr" 1;
}

/* OpenType Stylistic Alternates */
.farhang-ss01 { font-feature-settings: "ss01" 1; }
.farhang-ss02 { font-feature-settings: "ss02" 1; }
.farhang-ss03 { font-feature-settings: "ss03" 1; }
.farhang-zero { font-feature-settings: "zero" 1; }

/* Farhang Font Family utilities */
.font-farhang-fanum { font-family: 'FarhangFaNum', sans-serif !important; }
.font-farhang-vf { font-family: 'FarhangVF', sans-serif !important; }
.font-farhang-std { font-family: 'Farhang', sans-serif !important; }

/* Farhang Font Weights */
.farhang-fw-100 { font-weight: 100 !important; }
.farhang-fw-200 { font-weight: 200 !important; }
.farhang-fw-300 { font-weight: 300 !important; }
.farhang-fw-400 { font-weight: 400 !important; }
.farhang-fw-500 { font-weight: 500 !important; }
.farhang-fw-600 { font-weight: 600 !important; }
.farhang-fw-700 { font-weight: 700 !important; }
.farhang-fw-800 { font-weight: 800 !important; }
.farhang-fw-900 { font-weight: 900 !important; }

/* Article Editorial & Publishing Components */
.article-callout-olive {
    background-color: #f4f6f0;
    border-right: 4px solid #556B2F;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    color: #2e4518;
}
.article-quote-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9faf6 100%);
    border: 1px solid #dce4ce;
    border-right: 5px solid #2e4518;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.75rem 0;
    box-shadow: 0 4px 15px rgba(46, 69, 24, 0.05);
    font-style: normal;
}
.article-health-tip {
    background-color: #fff9e6;
    border: 1px solid #ffeeba;
    border-right: 4px solid #ffc107;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
    color: #856404;
}
.article-lead-p {
    font-size: 1.25rem;
    line-height: 2.1;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

