{{--
    Top utility bar — shows above the main site header.

    Left side:  shipping and warranty highlights (pulled up one level here
                for quick trust signals on every page).
    Right side: Contacts link, shipping info link, language switcher.

    Language switcher links are built by `cms_locale_switcher_links()`,
    which preserves env prefix, query string, and translates the path
    through `language_lines` and CMS Page slug lookups.
--}}
<div class="topbar py-2">
    <div class="container d-flex justify-content-between align-items-center flex-wrap gap-2">
        <div class="d-flex gap-3 flex-wrap align-items-center">
            <span><i class="bi bi-truck"></i> Pristatymas visoje Lietuvoje</span>
            <span class="d-none d-md-inline"><i class="bi bi-shield-check"></i> Garantija visoms prekėms</span>
        </div>
        <div class="d-flex gap-3 flex-wrap align-items-center">
            <a href="/kontaktai" class="d-none d-sm-inline"><i class="bi bi-geo-alt"></i> Kontaktai</a>
            <a href="/pristatymo-salygos" class="d-none d-md-inline">Pristatymas</a>

            @php($localeLinks = cms_locale_switcher_links())
            @if (count($localeLinks) > 1)
                <div class="lang-switch" role="group" aria-label="Kalba">
                    @foreach ($localeLinks as $link)
                        <a href="{{ $link['url'] }}"
                           class="{{ $link['active'] ? 'active' : '' }}"
                           hreflang="{{ $link['tag'] }}"
                           rel="alternate">{{ strtoupper($link['tag']) }}</a>
                    @endforeach
                </div>
            @endif
        </div>
    </div>
</div>
