/*
Theme Name: Tayapart Child
Theme URI: https://yourwebsite.com/
Description: قالب فرزند تایاپارت بر پایه Blocksy
Author: Your Name
Author URI: https://yourwebsite.com/
Template: blocksy
Version: 1.0.0
Text Domain: tayapart-child
*/

/* ===================================
   فونت وزیرمتن
=================================== */
body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.ct-button, .button, .wp-block-button__link {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* ===================================
   هدر سفید و ثابت
=================================== */
.taya-header {
    width: 100%;
    background: #ffffff;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: 1px solid #e0e0e0;
    position: relative;  /* دیگر absolute نیست */
    z-index: 999;
}

.taya-header a {
    color: #1a1a1a;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.6rem;
    transition: color 0.3s;
}

.taya-header a:hover {
    color: #28a745;
}

.taya-header-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* ===================================
   اسلایدر و فاصله‌ها
=================================== */
.tayapart-hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===================================
   حذف هر گونه استایل قرمز در موبایل
=================================== */
@media (max-width: 768px) {
    .taya-header,
    header.taya-header {
        background: #ffffff !important;
    }
    .taya-header a,
    header.taya-header a {
        color: #1a1a1a !important;
    }
}
/* ============================================
   حذف همه انیمیشن‌های سنگین در موبایل (همه بخش‌ها)
============================================ */
@media (max-width: 768px) {

    /* ۱. حذف همه خطوط اسکن در همه بخش‌ها */
    [class*="scan-beam"],
    [class*="-scan"],
    [class*="scanlines"],
    .tp-best-scan-beam,
    .tp-parts-scan-beam,
    .tp-all-scan-beam,
    .tp-contact-scan-beam,
    .tp-cs-scan-beam,
    .tp-best-title-scan,
    .tp-parts-title-scan,
    .tp-all-title-scan,
    .tp-contact-title-scan,
    .tp-cs-title-scan {
        display: none !important;
    }

    /* ۲. حذف هاله‌های spotlight و glow */
    [class*="spotlight"],
    [class*="glow-"] {
        animation: none !important;
        display: none !important;
    }

    /* ۳. حذف انیمیشن پس‌زمینه‌های متحرک */
    [class*="-bg"] {
        animation: none !important;
    }

    /* ۴. حذف انیمیشن pulsing روی تزئینات */
    [class*="-deco"],
    [class*="-pulse"] {
        animation: none !important;
    }

    /* ۵. حذف همه انیمیشن‌های shine */
    [class*="shine"] {
        animation: none !important;
        display: none !important;
    }

    /* ۶. حذف همه انیمیشن‌های pulse روی badges */
    [class*="-badge"] {
        animation: none !important;
    }

    /* ۷. حذف backdrop-filter از همه عناصر */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* ۸. غیرفعال کردن overflow-anchor برای جلوگیری از پرش اسکرول */
    html, body {
        overflow-anchor: none !important;
    }

    /* ۹. فورس GPU روی عناصر اصلی بخش‌ها */
    .tp-best-box,
    .tp-parts-box,
    .tp-all-box,
    .tp-contact-box,
    .tp-cs-box,
    .tp-merged-box {
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}
/* ============================================
   حذف لیست دسته‌بندی از کارت محصول
   (بر اساس ساختار واقعی: ul مستقیم فرزند li)
============================================ */

/* هر ul که والدش یه li با کلاس post-* باشه */
ul.products li[class*="post-"] > ul,
ul.products li[class*="product"] > ul {
    display: none !important;
}