/* =========================================================
   ALYA STOREFRONT V4.16 — SAĞ KAMPANYA / MOBİL SON FIRSATLAR
========================================================= */

.storefront-mobile-last-chance-head {
    display: none;
}

/* Masaüstü denetimleri bağlantının daima üstünde kalır. */
.theme-2.store-body .storefront-side-campaigns {
    isolation: isolate !important;
}

.theme-2.store-body .storefront-side-campaign > a {
    z-index: 1 !important;
}

.theme-2.store-body .storefront-side-campaign-arrow,
.theme-2.store-body .storefront-side-campaign-dots,
.theme-2.store-body .storefront-side-campaign-dots button {
    pointer-events: auto !important;
    touch-action: manipulation;
}

.theme-2.store-body .storefront-side-campaign-arrow {
    z-index: 50 !important;
    display: grid !important;
    place-items: center;
    user-select: none;
}

.theme-2.store-body .storefront-side-campaign-dots {
    z-index: 51 !important;
}

.theme-2.store-body .storefront-side-campaigns.mode-static .storefront-side-campaign-arrow,
.theme-2.store-body .storefront-side-campaigns.mode-static .storefront-side-campaign-dots {
    display: none !important;
}

@media (max-width: 820px) {
    /* Mobilde büyük sağ slider yerine uygulama bildirimi görünümü. */
    html.store-root .theme-2.store-body .storefront-side-campaigns {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 128px !important;
        min-height: 128px !important;
        max-height: 128px !important;
        border: 1px solid rgba(227, 6, 19, .24) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .10) !important;
        overflow: hidden !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaigns.is-mobile-dismissed {
        display: none !important;
    }

    html.store-root .storefront-mobile-last-chance-head {
        position: absolute;
        inset: 0 0 auto 0;
        z-index: 70;
        height: 36px;
        padding: 0 8px 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-bottom: 1px solid rgba(227, 6, 19, .12);
        background: linear-gradient(90deg, #fff5f5, #fff);
    }

    html.store-root .storefront-mobile-last-chance-label {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 7px;
        color: #b70b16;
        font-size: 10px;
        letter-spacing: .08em;
        white-space: nowrap;
    }

    html.store-root .storefront-mobile-last-chance-label i {
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        border-radius: 50%;
        background: #e30613;
        box-shadow: 0 0 0 4px rgba(227, 6, 19, .12);
        animation: alya-last-chance-pulse 1.8s ease-in-out infinite;
    }

    html.store-root .storefront-mobile-last-chance-label strong {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html.store-root .storefront-mobile-last-chance-label small {
        color: #77808d;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0;
    }

    html.store-root [data-side-campaign-dismiss] {
        position: relative;
        z-index: 80;
        width: 28px;
        height: 28px;
        min-width: 28px;
        padding: 0 !important;
        display: grid;
        place-items: center;
        border: 0 !important;
        border-radius: 50%;
        background: rgba(17, 24, 39, .06) !important;
        color: #111827 !important;
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 36px !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 92px !important;
        transform: none !important;
        transition: opacity .28s ease, visibility .28s ease !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign > a {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        padding: 9px 12px 9px 108px !important;
        background-color: #fff !important;
        background-size: 88px 78px !important;
        background-position: 10px center !important;
        background-repeat: no-repeat !important;
        color: #111827 !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign.no-image > a {
        padding-left: 14px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-shade {
        z-index: 1 !important;
        background: linear-gradient(90deg, rgba(255,255,255,.02) 0 94px, rgba(255,255,255,.96) 116px, #fff 100%) !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign.no-image .storefront-side-campaign-shade {
        background: linear-gradient(90deg, rgba(5,10,18,.12), rgba(5,10,18,.82)) !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-copy {
        position: relative !important;
        inset: auto !important;
        z-index: 3 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-wrap: wrap;
        align-content: center;
        align-items: baseline;
        column-gap: 8px;
        row-gap: 3px;
        color: #111827 !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign.no-image .storefront-side-campaign-copy {
        color: #fff !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-copy small {
        display: none !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-copy h2 {
        flex: 1 0 100%;
        max-width: 100% !important;
        max-height: 2.35em !important;
        margin: 0 !important;
        color: inherit !important;
        font-size: 13px !important;
        line-height: 1.17 !important;
        letter-spacing: -.015em !important;
        -webkit-line-clamp: 2 !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-price {
        margin: 1px 0 0 !important;
        gap: 5px !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-price del {
        color: #7b8490;
        font-size: 9px !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-price strong {
        color: #e30613 !important;
        font-size: 15px !important;
        line-height: 1 !important;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-copy > b {
        min-height: 24px !important;
        margin-left: auto;
        padding: 0 9px !important;
        border-radius: 7px !important;
        background: #e30613 !important;
        color: #fff !important;
        font-size: 8px !important;
        white-space: nowrap;
    }

    html.store-root .theme-2.store-body .storefront-side-campaign-arrow,
    html.store-root .theme-2.store-body .storefront-side-campaign-dots {
        display: none !important;
    }
}

@keyframes alya-last-chance-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.82); opacity: .62; }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-mobile-last-chance-label i { animation: none !important; }
    .storefront-side-campaign { transition: none !important; }
}
