/* =====================================================================
   ATA B2B - Ust bilgi cubugu (top bar) ve ana navigasyon
   ===================================================================== */
.ata-b2b .ata-header {
    position: relative;
    z-index: var(--z-header);
    background: var(--ata-white);
    border-bottom: 1px solid var(--ata-line);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* --- Topbar --- */
.ata-b2b .ata-topbar {
    background: linear-gradient(90deg, var(--ata-red-800) 0%, var(--ata-red) 60%, var(--ata-red-600) 100%);
    color: rgba(255,255,255,.92);
    font-size: 12.5px;
    letter-spacing: .01em;
}
.ata-b2b .ata-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 36px;
    padding: 6px 18px;
    flex-wrap: wrap;
}
.ata-b2b .ata-topbar a {
    color: #fff;
    opacity: .92;
    transition: opacity var(--ata-tr-fast);
}
.ata-b2b .ata-topbar a:hover { opacity: 1; text-decoration: underline; }
.ata-b2b .ata-topbar__group {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ata-b2b .ata-topbar__group i { margin-right: 5px; }
.ata-b2b .ata-topbar__divider {
    width: 1px; height: 14px; background: rgba(255,255,255,.25);
}
.ata-b2b .ata-topbar__lang {
    display: inline-flex; gap: 4px; align-items: center;
}
.ata-b2b .ata-topbar__lang a {
    padding: 2px 8px; border-radius: 4px;
    background: rgba(255,255,255,.08);
}
.ata-b2b .ata-topbar__lang a.is-active {
    background: rgba(255,255,255,.22);
    font-weight: 600;
}

/* --- Main bar (logo + arama + aksiyon) --- */
.ata-b2b .ata-mainbar {
    --ata-header-control-h: 46px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.ata-b2b .ata-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.ata-b2b .ata-logo img {
    height: 56px;
    width: auto;
    transition: transform var(--ata-tr);
}
.ata-b2b .ata-logo:hover img { transform: scale(1.03); }
.ata-b2b .ata-logo__divider {
    width: 1px; height: 38px;
    background: var(--ata-line);
    margin: 0 14px;
}
.ata-b2b .ata-logo__tag {
    display: flex; flex-direction: column;
    line-height: 1.15;
    max-width: 220px;
}
.ata-b2b .ata-logo__tag strong {
    color: var(--ata-red-700);
    font-family: var(--ata-font-h);
    font-size: 14px;
    letter-spacing: .12em;
    white-space: nowrap;
}
.ata-b2b .ata-logo__tag span {
    font-size: 11.5px; color: var(--ata-mute);
    letter-spacing: .04em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ata-b2b .ata-search {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 640px;
}
.ata-b2b .ata-search__form {
    height: var(--ata-header-control-h);
    display: flex;
    align-items: stretch;
    background: var(--ata-paper);
    border: 1px solid var(--ata-line);
    border-radius: var(--ata-radius-xl);
    overflow: hidden;
    transition: border-color var(--ata-tr-fast), box-shadow var(--ata-tr-fast);
}
.ata-b2b .ata-search__form:focus-within {
    border-color: var(--ata-red);
    box-shadow: 0 0 0 4px var(--ata-red-50);
}
.ata-b2b .ata-search__select {
    border: 0;
    background: transparent;
    padding: 0 12px 0 18px;
    font-size: 13px;
    color: var(--ata-ink-2);
    border-right: 1px solid var(--ata-line);
    outline: none;
    cursor: pointer;
    max-width: 180px;
}
.ata-b2b .ata-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ata-ink);
    outline: none;
}
.ata-b2b .ata-search__btn {
    border: 0;
    background: var(--ata-red);
    color: #fff;
    padding: 0 22px;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--ata-tr-fast);
}
.ata-b2b .ata-search__btn:hover { background: var(--ata-red-700); }

.ata-b2b .ata-mainbar__cta {
    display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.ata-b2b .ata-mainbar__cta > .ata-btn {
    height: var(--ata-header-control-h);
    padding-top: 0;
    padding-bottom: 0;
}
.ata-b2b .ata-cart-widget {
    height: var(--ata-header-control-h);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 9px;
    background: var(--ata-white);
    border: 1px solid var(--ata-line);
    border-radius: var(--ata-radius-sm);
    color: var(--ata-ink);
    box-shadow: var(--ata-shadow-1);
    text-decoration: none;
    transition: border-color var(--ata-tr-fast), box-shadow var(--ata-tr-fast), transform var(--ata-tr-fast);
}
.ata-b2b .ata-cart-widget:hover,
.ata-b2b .ata-cart-widget.is-active {
    color: var(--ata-red-700);
    border-color: var(--ata-red-100);
    box-shadow: var(--ata-shadow-2);
    transform: translateY(-1px);
}
.ata-b2b .ata-cart-widget__icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ata-red-50);
    color: var(--ata-red);
    font-size: 15px;
    flex-shrink: 0;
}
.ata-b2b .ata-cart-widget__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.ata-b2b .ata-cart-widget__text strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--ata-ink);
}
.ata-b2b .ata-cart-widget__text small {
    margin-top: 2px;
    font-size: 11px;
    color: var(--ata-mute);
    font-weight: 700;
}
.ata-b2b .ata-cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ata-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.ata-b2b .ata-cart-widget__icon .ata-cart-count {
    position: absolute;
    top: -7px;
    right: -8px;
    border: 2px solid var(--ata-white);
}

/* --- Navigation bar --- */
.ata-b2b .ata-navbar {
    background: linear-gradient(180deg, var(--ata-paper) 0%, var(--ata-white) 100%);
    border-top: 1px solid var(--ata-line-2);
}
.ata-b2b .ata-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}
.ata-b2b .ata-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: var(--ata-ink);
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--ata-tr-fast), border-color var(--ata-tr-fast);
}
.ata-b2b .ata-nav > li > a:hover,
.ata-b2b .ata-nav > li.is-active > a {
    color: var(--ata-red);
    border-bottom-color: var(--ata-red);
}

/* --- Mobile toggle --- */
.ata-b2b .ata-burger {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: var(--ata-paper);
    border: 1px solid var(--ata-line);
    border-radius: var(--ata-radius-sm);
    color: var(--ata-red-700);
    cursor: pointer;
}
.ata-b2b .ata-burger:hover { background: var(--ata-red-50); }

/* --- Sticky --- */
.ata-b2b .ata-header.is-sticky .ata-mainbar { padding: 10px 18px; }
.ata-b2b .ata-header.is-sticky .ata-logo img { height: 42px; }

/* Responsive */
@media (max-width: 1199px) {
    .ata-b2b .ata-logo__divider,
    .ata-b2b .ata-logo__tag { display: none; }
}
@media (max-width: 991px) {
    .ata-b2b .ata-burger { display: inline-flex; }
    .ata-b2b .ata-mainbar { gap: 14px; padding: 14px 18px; }
    .ata-b2b .ata-mainbar__cta .ata-btn-text { display: none; }
    .ata-b2b .ata-cart-widget__text { display: none; }
    .ata-b2b .ata-cart-widget { padding: 5px; min-height: 40px; }
    .ata-b2b .ata-search { order: 3; flex-basis: 100%; max-width: none; }
    .ata-b2b .ata-search__select { display: none; }
    .ata-b2b .ata-navbar { display: none; }
    .ata-b2b .ata-navbar.is-open {
        display: block;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        box-shadow: var(--ata-shadow-2);
        z-index: var(--z-mobile);
    }
    .ata-b2b .ata-nav { flex-direction: column; align-items: stretch; }
    .ata-b2b .ata-nav > li > a {
        padding: 14px 18px;
        border-bottom: 1px solid var(--ata-line-2);
    }
    .ata-b2b .ata-topbar__group:first-child { display: none; }
}
@media (max-width: 575px) {
    .ata-b2b .ata-logo img { height: 44px; }
    .ata-b2b .ata-search__btn { padding: 0 16px; }
}
