/**
 * דף בית - מובייל בלבד. נטען אחרי ה-<style> הפנימי ב-index.php כדי לעקוף !important שם.
 */

@media (max-width: 768px) {
    /* גילוי וניווט ישן — במובייל רק מגירת ההדר (wrapper = קו + פס גילוי) */
    body.home-index .home-discover-desktop-strip {
        display: none !important;
    }

    .home-hero-primary--desktop-only {
        display: none !important;
    }

    body.home-index main.container > section + section,
    body.home-index main.container > section + .content-wrapper.home-latest-wrap {
        margin-top: clamp(0.95rem, 3vw, 1.35rem) !important;
    }

    body.home-index .section-title {
        margin-top: 0.85rem !important;
        margin-bottom: 0.55rem !important;
        padding-bottom: 0.45rem !important;
        font-size: clamp(1rem, 3.8vw, 1.22rem) !important;
    }

    body.home-index #home-deals .deals-grid,
    body.home-index #home-hot .hot-grid,
    body.home-index .home-latest-wrap .items-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.62rem !important;
        overflow: visible !important;
        padding: 0.15rem 0 0.45rem !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    body.home-index #home-deals .deal-card,
    body.home-index #home-hot .hot-card,
    body.home-index .home-latest-wrap .item-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    body.home-index #home-deals .deal-image,
    body.home-index #home-hot .hot-image,
    body.home-index .home-latest-wrap .item-card .item-image:not(.skeleton) {
        height: 118px !important;
        min-height: 118px !important;
        max-height: 118px !important;
        aspect-ratio: auto !important;
        object-fit: cover;
    }

    body.home-index #home-deals .deal-content,
    body.home-index #home-hot .hot-content,
    body.home-index .home-latest-wrap .item-content {
        padding: 0.5rem 0.58rem 0.62rem !important;
    }

    body.home-index #home-deals .deal-title,
    body.home-index #home-hot .hot-title,
    body.home-index .home-latest-wrap .item-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: break-word;
        word-break: break-word;
        font-size: 0.86rem !important;
        line-height: 1.3 !important;
        min-height: 0;
        margin: 0.2rem 0 0.25rem !important;
    }

    body.home-index #home-hot .hot-description,
    body.home-index .home-latest-wrap .item-description {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.28rem !important;
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }

    body.home-index #home-deals .hot-category,
    body.home-index #home-hot .hot-category,
    body.home-index .home-latest-wrap .item-category {
        font-size: 0.65rem !important;
    }

    body.home-index #home-deals .trust-signals,
    body.home-index #home-hot .trust-signals,
    body.home-index .home-latest-wrap .trust-signals {
        gap: 0.28rem !important;
        margin: 0.35rem 0 0.2rem !important;
        flex-wrap: wrap;
    }

    body.home-index #home-deals .trust-pill,
    body.home-index #home-hot .trust-pill,
    body.home-index .home-latest-wrap .trust-pill {
        font-size: 0.62rem !important;
        padding: 0.2rem 0.45rem !important;
    }

    body.home-index #home-deals .item-price,
    body.home-index #home-hot .item-price {
        font-size: 0.84rem !important;
        padding: 0.22rem 0.5rem !important;
        margin: 0.35rem 0 !important;
    }

    body.home-index #home-deals .ali-cta-stack .ali-price-supplier-disclaimer,
    body.home-index #home-hot .ali-cta-stack .ali-price-supplier-disclaimer,
    body.home-index .home-latest-wrap .ali-cta-stack .ali-price-supplier-disclaimer {
        font-size: 0.58rem !important;
        line-height: 1.35 !important;
        margin-top: 0.25rem !important;
        display: block;
    }

    body.home-index #home-hot .hot-clicks {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.42rem !important;
    }

    body.home-index .home-latest-wrap .item-meta {
        font-size: 0.65rem !important;
        margin-top: 0.35rem !important;
    }

    @media (hover: none) {
        body.home-index #home-deals .deal-card:hover,
        body.home-index #home-hot .hot-card:hover,
        body.home-index .home-latest-wrap .item-card:hover {
            transform: none;
        }
    }
}

@media (min-width: 769px) {
    body.home-index .home-hero-primary--mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.home-index .mobile-scroll-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }

    body.home-index .mobile-scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    body.home-index .mobile-scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
