/* استخراج‌شده از front-page.php — فقط در همان صفحه لود می‌شود (khaninejad_enqueue_assets) */
/* =========================================================================
   توکن‌های طراحی صفحه اصلی خانی‌نژاد — پالت لوگو: سرمه‌ای + فیروزه‌ای
   (نام متغیرها برای سازگاری با بقیه کد حفظ شده‌اند)
   روی زمینه روشن: سرمه‌ای و فیروزه‌ای تیره (کنتراست کافی برای متن)
   روی بخش‌های تیره (هیرو و بند میراث): فیروزه‌ای روشن لوگو
   این متغیرها فقط داخل .fp-page اسکوپ شده‌اند تا با متغیرهای سراسری
   قالب (--khaninejad-*) تداخل نکنند.
========================================================================= */
.fp-page {
    --fp-ink: var(--brand-navy-dark, #032f5c);
    --fp-ink-soft: #0a3a6b;
    --fp-paper: #f6f5f2;
    --fp-card: #ffffff;
    --fp-cognac: var(--brand-navy, #05407b);
    --fp-cognac-dark: var(--brand-navy-dark, #032f5c);
    --fp-brass: var(--brand-cyan-text, #007ba3);
    --fp-thread: #e3e1db;
    --fp-ink-text: #1b1e1d;
    --fp-muted: #5f6166;
    background: var(--fp-paper);
    overflow-x: hidden;
}

.fp-page .fp-serif {
    font-family: 'IRANSans', 'IranYekan', Tahoma, sans-serif;
}

.fp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--fp-brass);
    margin-bottom: 10px;
}
.fp-eyebrow svg { width: 16px; height: 16px; flex-shrink: 0; }

/* علامت دوخت کوچک کنار اِیبرو — دو خط موازی کوتاه، یادآور بخیه‌ی چرم */
.fp-stitch-mark {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}
.fp-stitch-mark span {
    width: 2px;
    height: 12px;
    background: var(--fp-brass);
    border-radius: 2px;
    transform: rotate(20deg);
}

/* خط دوخت جداکننده بین بخش‌ها */
.fp-stitch-divider {
    height: 16px;
    background-image: repeating-linear-gradient(90deg, var(--fp-brass) 0 9px, transparent 9px 18px);
    background-position: center;
    background-size: 100% 2px;
    background-repeat: no-repeat;
    opacity: 0.55;
}

.fp-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 46px 20px;
    width: 100%;
}
.fp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.fp-section-head h2 {
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 800;
    color: var(--fp-ink-text);
    margin: 0;
    line-height: 1.5;
}
.fp-section-head-text { min-width: 0; }
.fp-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--fp-cognac);
    white-space: nowrap;
    padding-bottom: 4px;
}
.fp-see-all:hover { text-decoration: underline; }
.fp-see-all svg { width: 15px; height: 15px; }

/* =========================================================================
   ۱. هیرو
========================================================================= */
.fp-hero {
    position: relative;
    background: var(--fp-ink);
    color: #eef1ef;
    overflow: hidden;
    padding: 56px 20px 64px;
}
.fp-hero::before {
    /* بافت نقطه‌ای بسیار کم‌رنگ */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
}
.fp-hero-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.fp-hero-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--fp-brass);
    border: 1px solid rgba(179, 38, 30, 0.45);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 20px;
}
.fp-hero h1 {
    font-size: clamp(30px, 6vw, 54px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 18px 0;
    color: #fbfcfb;
}
.fp-hero h1 em {
    font-style: normal;
    color: var(--fp-brass);
}
.fp-hero p {
    font-size: 15.5px;
    color: #c6ccc9;
    max-width: 520px;
    line-height: 1.95;
    margin: 0 0 30px 0;
}
.fp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.fp-btn-primary { background: var(--fp-cognac); color: #ffffff; }
.fp-btn-primary:hover { background: var(--fp-cognac-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 64, 123, 0.35); }
.fp-btn-outline { background: transparent; color: #eef1ef; border-color: rgba(242,236,224,0.35); }
.fp-btn-outline:hover { border-color: var(--fp-brass); color: var(--fp-brass); }

/* خوشه‌ی برچسب‌های تزئینی هیرو — فقط تبلت به بالا */
.fp-hero-tags {
    display: none;
}

/* =========================================================================
   کارت برچسب آویز (Swing Tag) — عنصر امضادار این صفحه
========================================================================= */
.fp-tag {
    --r: 0deg;
    position: relative;
    display: block;
    background: var(--fp-card);
    border: 1.5px solid var(--fp-thread);
    border-radius: 8px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
    padding: 24px 40px 20px 18px;
    text-decoration: none;
    color: var(--fp-ink-text);
    transform: rotate(var(--r));
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.35s ease, border-color 0.3s ease;
    box-shadow: 0 3px 10px rgba(20,23,26,0.06);
}
.fp-tag:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 20px 32px rgba(20,23,26,0.16);
    border-color: var(--fp-brass);
    z-index: 2;
}
.fp-tag::before {
    /* سوراخ فلزی برنجی برچسب */
    content: '';
    position: absolute;
    top: 50%;
    right: 17px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--fp-brass);
    background: var(--fp-paper);
    transform: translateY(-50%);
}
.fp-tag-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(179, 38, 30, 0.08);
    color: var(--fp-cognac);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.fp-tag-icon svg { width: 19px; height: 19px; }
.fp-tag-icon img { width: 100%; height: 100%; object-fit: cover; }
.fp-tag-name {
    font-family: 'IRANSans', 'IranYekan', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-ink-text);
    margin-bottom: 4px;
    line-height: 1.6;
}
.fp-tag-count {
    font-size: 11.5px;
    color: var(--fp-muted);
    font-weight: 600;
}

/* نسخه‌ی تیره‌ی برچسب — روی زمینه‌ی چرم تیره‌ی هیرو */
.fp-tag--hero {
    background: rgba(255,255,255,0.06);
    border-color: rgba(242,236,224,0.22);
    color: #eef1ef;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: none;
}
.fp-tag--hero::before { background: var(--fp-ink); border-color: var(--fp-brass); }
.fp-tag--hero .fp-tag-icon { background: rgba(2, 177, 221, 0.18); color: var(--fp-brass); }
.fp-tag--hero .fp-tag-name { color: #f3f5f3; }
.fp-tag--hero .fp-tag-count { color: #aab3ae; }
.fp-tag--hero:hover { border-color: var(--fp-brass); box-shadow: 0 20px 34px rgba(0,0,0,0.35); }

/* =========================================================================
   ۲. شبکه‌ی دسته‌بندی‌ها
========================================================================= */
.fp-categories { background: var(--fp-paper); }
.fp-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
}
@media (min-width: 640px) {
    .fp-cats-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
}

.fp-empty-panel {
    background: var(--fp-card);
    border: 1.5px dashed var(--fp-thread);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    color: var(--fp-muted);
    font-size: 13.5px;
    line-height: 1.9;
}
.fp-empty-panel .fp-tag-icon { margin: 0 auto 14px; }

/* =========================================================================
   ۴. پرفروش‌ترین‌ها
========================================================================= */
.fp-bestsellers { background: var(--fp-paper); }
.fp-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .fp-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 992px) {
    .fp-products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.fp-product-card {
    display: block;
    background: var(--fp-card);
    border: 1px solid var(--fp-thread);
    border-radius: 14px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.fp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(20,23,26,0.1);
    border-color: var(--fp-brass);
}
.fp-product-image {
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--fp-paper);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-product-image img { width: 100%; height: 100%; object-fit: cover; }
.fp-product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-ink-text);
    line-height: 1.7;
    margin: 0 0 8px 0;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-product-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--fp-cognac);
}
@media (min-width: 992px) {
    .fp-product-image { height: 230px; }
}

/* =========================================================================
   ۵. بند میراث خانی‌نژاد
========================================================================= */
.fp-heritage {
    background: var(--fp-ink);
    color: #eef1ef;
    padding: 60px 20px;
    position: relative;
}
.fp-heritage-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.fp-heritage-mark {
    font-family: 'IRANSans', 'IranYekan', Tahoma, sans-serif;
    font-size: 60px;
    line-height: 1;
    color: var(--fp-brass);
    display: block;
    margin-bottom: 6px;
}
.fp-heritage-quote {
    font-family: 'IRANSans', 'IranYekan', Tahoma, sans-serif;
    font-size: clamp(18px, 2.6vw, 25px);
    font-weight: 700;
    line-height: 1.9;
    color: #f3f5f3;
    margin: 0 0 34px 0;
}
.fp-heritage-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.fp-heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(242,236,224,0.2);
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: #cfd6d2;
}
.fp-heritage-badge svg { width: 16px; height: 16px; color: var(--fp-brass); flex-shrink: 0; }

/* =========================================================================
   ۶. بنر فروشگاه فیزیکی
========================================================================= */
.fp-store { background: var(--fp-paper); }
.fp-store-card {
    background: var(--fp-card);
    border: 1px solid var(--fp-thread);
    border-radius: 22px;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    text-align: center;
}
.fp-store-illustration { width: 120px; height: auto; margin: 0 auto; color: var(--fp-cognac); }
.fp-store-illustration .fp-lid { color: var(--fp-brass); }
.fp-store-text h2 {
    font-family: 'IRANSans', 'IranYekan', Tahoma, sans-serif;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 800;
    color: var(--fp-ink-text);
    margin: 0 0 10px 0;
}
.fp-store-text p {
    font-size: 13.5px;
    color: var(--fp-muted);
    line-height: 1.95;
    max-width: 520px;
    margin: 0 auto 20px auto;
}

@media (min-width: 768px) {
    .fp-hero { padding: 90px 5% 100px; }
    .fp-hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
    .fp-hero-tags {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 18px;
        position: relative;
    }
    .fp-hero-tags .fp-tag:nth-child(2) { margin-top: 34px; }
    .fp-hero-tags .fp-tag:nth-child(3) { margin-top: -18px; }

    .fp-section { padding: 66px 5%; }

    .fp-store-card { grid-template-columns: 200px 1fr; text-align: right; padding: 50px; }
    .fp-store-illustration { margin: 0; }
    .fp-store-text p { margin: 0 0 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-tag, .fp-product-card, .fp-btn { transition: none !important; }
}


/* بخش‌های تیره (سرمه‌ای): تأکیدها فیروزه‌ای روشن لوگو و دکمه اصلی فیروزه‌ای با متن سرمه‌ای */
.fp-hero,
.fp-heritage {
    --fp-brass: var(--brand-cyan, #02b1dd);
    background-image: radial-gradient(120% 140% at 0% 0%, rgba(2, 177, 221, 0.16) 0%, transparent 55%);
}
.fp-hero .fp-btn-primary { background: var(--brand-cyan, #02b1dd); color: var(--brand-navy-dark, #032f5c); }
.fp-hero .fp-btn-primary:hover { background: #ffffff; color: var(--brand-navy, #05407b); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
