/* ============================================================
   İki Yengeç Smart App Banner
   Sayfanın üstüne yapışık, uygulamayı tanıtan bant.
   Mobilde cihazın mağazası, masaüstünde iki mağaza düğmesi.
   Renkler public-v2.css'teki marka renkleri (--iy-blue-950, --iy-blue-100, --iy-orange-500).
   ============================================================ */

:root {
    --iy-smart-banner-height: calc(68px + env(safe-area-inset-top, 0px));
}

.iy-smart-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* yapışkan menünün (1000) üstünde, Bootstrap modallarının (1050) altında */
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--iy-smart-banner-height);
    padding: env(safe-area-inset-top, 0px) 12px 0 4px; /* iOS çentik / güvenli alan */
    background-color: #0b4654;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(11, 70, 84, 0.25);
    font-family: inherit;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.iy-smart-banner[hidden] {
    display: none;
}

.iy-smart-banner.iy-smart-banner--visible {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .iy-smart-banner {
        transition: none;
    }
}

/* Banner görünürken sayfa içeriği aşağı itilir; yeni tasarımın yapışkan menüsü de banner'ın altında durur. */
html.iy-smart-banner-visible body {
    padding-top: var(--iy-smart-banner-height);
}

html.iy-smart-banner-visible .iy-header {
    top: var(--iy-smart-banner-height);
}

.iy-smart-banner__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* erişilebilir dokunma alanı */
    min-height: 44px;
    background: none;
    border: none;
    padding: 0;
    color: #dff3f7;
    cursor: pointer;
}

.iy-smart-banner__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.iy-smart-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iy-smart-banner__title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iy-smart-banner__subtitle {
    font-size: 12px;
    line-height: 1.25;
    color: #dff3f7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Koyu mavi zeminde beyaz düğme, koyu mavi yazı (sitenin .iy-button'ı gibi).
   .iy-smart-banner ön eki, yeni tasarımın body.iy-public-v2 a { color: inherit } kuralını geçmek için. */
.iy-smart-banner .iy-smart-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background-color: #ffffff;
    color: #0b4654;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.iy-smart-banner .iy-smart-banner__cta:hover,
.iy-smart-banner .iy-smart-banner__cta:focus-visible {
    background-color: #dff3f7;
    color: #0b4654;
    text-decoration: none;
}

/* --- Masaüstü: iki mağaza düğmesi ---------------------------- */

.iy-smart-banner__stores {
    display: none;
    flex: 0 0 auto;
    gap: 10px;
}

.iy-smart-banner--desktop {
    /* İçerik sitenin .iy-container genişliğiyle (1180px) hizalanır. */
    padding-left: max(4px, calc((100% - 1180px) / 2 - 12px));
    padding-right: max(12px, calc((100% - 1180px) / 2));
}

.iy-smart-banner--desktop .iy-smart-banner__cta {
    display: none;
}

.iy-smart-banner--desktop .iy-smart-banner__stores {
    display: flex;
}

.iy-smart-banner .iy-smart-banner__store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease;
}

.iy-smart-banner .iy-smart-banner__store[hidden] {
    display: none;
}

.iy-smart-banner .iy-smart-banner__store:hover,
.iy-smart-banner .iy-smart-banner__store:focus-visible {
    border-color: #f36c24;
    color: #ffffff;
    text-decoration: none;
}
