/* اصلاحات تجربه کاربری موبایل — همه‌ی صفحه‌ها */

@media (max-width: 768px) {

    /* نوار اطلاعیه: فشرده؛ دکمه‌های تماس/واتساپ در نوار پایین هست */
    .top-notice__inner {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 0;
        min-height: 0;
    }
    .top-notice__text {
        flex: 1 1 auto;
        font-size: 12px;
        line-height: 1.6;
    }
    .top-notice__actions { width: auto; }
    .top-notice__link { display: none; }
    .top-notice__close { width: 40px; height: 40px; }

    /* دکمه‌های شناور تماس/واتساپ با نوار پایین تکراری‌اند و روی محتوا می‌افتند */
    .floating-call,
    .floating-whatsapp { display: none; }

    /* مسیر صفحه: یک خط، عنوان بلند با سه‌نقطه */
    .breadcrumb ol { flex-wrap: nowrap; gap: 6px; }
    .breadcrumb li { flex: 0 0 auto; white-space: nowrap; }
    .breadcrumb li:last-child { flex: 1 1 auto; min-width: 0; }
    .breadcrumb li:last-child > * {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* فونت کمتر از ۱۶ در iOS هنگام فوکوس صفحه را زوم می‌کند */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea { font-size: 16px; }

    /* هدف لمسی لینک‌های فوتر */
    .footer-links a,
    .footer-contact .contact-item {
        min-height: 40px;
        align-items: center;
    }

    /* صفحه اصلی: متن کوتاه‌تر، دکمه‌ی محصولات اول، بلوک تماس تکراری حذف */
    .hero-sub p:first-child {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-sub p:nth-child(n+2) { display: none; }
    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hero-buttons .btn-outline {
        order: -1;
        grid-column: 1 / -1;
    }
    .lgbazar-hero + .quick-contact { display: none; }
}
