/* =====================================================================
   ÇARŞI — footer (Footer/_Footer_bazaar.cshtml; <footer class="ftr ftr--bazaar">)
   AÇIK zemin (paleti paket belirler): iletişim kutuları → 5 kolon → koyu alt şerit (--bz-ink; beyaz yazı ≥7:1).
   Link kolonları mevcut footer partial'ları; eski footer kurallarının renkleri daha güçlü seçiciyle ezilir.
   ===================================================================== */
html[data-theme-kit="bazaar"] footer.ftr--bazaar {
    margin-top: 48px;
    background: var(--bz-surface-2);
    color: var(--bz-text-body);
    border-top: 1px solid var(--bz-line);
}

.ftr--bazaar .bz-ftr {
    padding: 32px 0 6px;
}

/* İletişim kutuları */
.ftr--bazaar .bz-ftr__contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bz-line);
}

/* 4 kutu: 1200 altında 3 + 1 yerine 2 × 2 (kutu sayısı ayara göre 1–4) */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .ftr--bazaar .bz-ftr__contact:has(> :nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ftr--bazaar .bz-ctile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--bz-line);
    border-radius: 18px;
    background: var(--bz-surface);
    color: var(--bz-text);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ftr--bazaar .bz-ctile:hover {
    border-color: var(--bz-line-strong);
    box-shadow: var(--bz-shadow-card);
}

.ftr--bazaar .bz-ctile__icon {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 21px;
}

.ftr--bazaar .bz-ctile--wa .bz-ctile__icon {
    background: var(--bz-wa-soft);
    color: var(--bz-wa);
}

.ftr--bazaar .bz-ctile--tel .bz-ctile__icon {
    background: var(--bz-accent-soft);
    color: var(--bz-accent-text);
}

.ftr--bazaar .bz-ctile--mail .bz-ctile__icon {
    background: var(--bz-pastel-2-bg);
    color: var(--bz-pastel-2-fg);
}

.ftr--bazaar .bz-ctile--map .bz-ctile__icon {
    background: var(--bz-pastel-5-bg);
    color: var(--bz-pastel-5-fg);
}

.ftr--bazaar .bz-ctile__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ftr--bazaar .bz-ctile__text small {
    color: var(--bz-text-muted);
    font-size: 12px;
    font-weight: 500;
}

.ftr--bazaar .bz-ctile__text b {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--bz-text);
    font-family: var(--bz-font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ftr--bazaar .bz-ctile__go {
    margin-left: auto;
    color: var(--bz-text-muted);
    font-size: 13px;
    transition: transform .15s ease, color .15s ease;
}

.ftr--bazaar .bz-ctile:hover .bz-ctile__go {
    color: var(--bz-accent-text);
    transform: translateX(3px);
}

/* 5 kolon */
.ftr--bazaar .bz-ftr__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(0, 1fr));
    gap: 28px 34px;
    padding: 34px 0 26px;
}

@media (max-width: 1199.98px) {
    .ftr--bazaar .bz-ftr__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ftr--bazaar .bz-ftr__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .ftr--bazaar .bz-ftr__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 26px 0 20px;
    }
}

.ftr--bazaar .bz-ftr__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}

.ftr--bazaar .bz-ftr__logo img {
    width: auto;
    height: min(var(--header-logo-height, 48px), 46px);
    object-fit: contain;
}

.ftr--bazaar .bz-ftr__about {
    margin: 0 0 16px;
    color: var(--bz-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.ftr--bazaar .bz-ftr__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.ftr--bazaar .bz-ftr__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bz-line);
    border-radius: 50%;
    background: var(--bz-surface);
    color: var(--bz-text);
    font-size: 16px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ftr--bazaar .bz-ftr__social a:hover {
    border-color: var(--bz-ink);
    background: var(--bz-ink);
    color: var(--bz-on-ink);
}

/* Link kolonları (mevcut partial'lar) */
.ftr--bazaar .bz-ftr .footer-link-block {
    width: auto !important;
    min-width: 0;
}

.ftr--bazaar .bz-ftr .footer-link-block .footer-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: var(--bz-text);
    font-family: var(--bz-font-heading);
    font-size: 15.5px;
    font-weight: 700;
}

.ftr--bazaar .bz-ftr .footer-link-block .footer-title::after {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background: var(--bz-cta-bg);
}

.ftr--bazaar .bz-ftr .footer-link-block ul li {
    margin-bottom: 9px;
}

.ftr--bazaar .bz-ftr .footer-link-block ul li a,
.ftr--bazaar .bz-ftr .light-gray {
    color: var(--bz-text-body) !important;
    font-size: 14px;
    text-decoration: none;
}

.ftr--bazaar .bz-ftr .footer-link-block ul li a:hover,
.ftr--bazaar .bz-ftr .footer-link-block ul li a:focus-visible {
    color: var(--bz-accent-text) !important;
}

.ftr--bazaar .bz-ftr .footer-link-block ul li a::before {
    background: var(--bz-cta-bg);
}

.ftr--bazaar .bz-ftr .footer-login-btn {
    border-color: var(--bz-cta-bg) !important;
    background: var(--bz-cta-bg) !important;
    color: var(--bz-cta-fg) !important;
}

/* Koyu alt şerit */
.ftr--bazaar .bz-ftr-bottom {
    background: var(--bz-ink);
    color: var(--bz-ink-muted);
}

html[data-theme-kit="bazaar"] .ftr--bazaar .bz-ftr-bottom__bar {
    padding: 16px 0;
    border-top: 0;
}

.ftr--bazaar .bz-ftr-bottom p {
    margin: 0;
    color: var(--bz-ink-muted);
}

.ftr--bazaar .bz-ftr-bottom a {
    color: var(--bz-on-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ftr--bazaar .bz-ftr-bottom a:hover {
    color: var(--bz-on-ink);
    text-decoration-thickness: 2px;
}

.ftr--bazaar .bz-ftr-bottom .footer-currency-item {
    border-color: var(--bz-ink-line);
    background: var(--bz-ink-hover);
    color: var(--bz-on-ink);
}

.ftr--bazaar .bz-ftr-bottom .footer-currency-item i {
    color: var(--bz-on-ink);
}

/* Ödeme logoları koyu şeritte kaybolmasın → beyaz plaka */
.ftr--bazaar .bz-ftr-bottom .payment-cards img {
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--bz-surface);
    opacity: 1;
}

.ftr--bazaar :is(a, button):focus-visible {
    outline: 2px solid var(--bz-accent-text);
    outline-offset: 2px;
}

.ftr--bazaar .bz-ftr-bottom :is(a, button):focus-visible {
    outline-color: var(--bz-on-ink);
}
