/* Ravelin custom header — barlau.kz-style layout: thin top bar, logo+menu row, floating action sidebar */

/* ===== Homepage: dark header blending into the slider (barlau-style) ===== */
body.home-dark-header #top {
    background: #0d0d0f;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
body.home-dark-header #top .top-socials-item {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    color: #fff;
}
body.home-dark-header #top .top-right-link {
    color: #fff;
}
body.home-dark-header #top .top-right-link:hover {
    color: #7aa7ff;
}
body.home-dark-header .header-second-row {
    background: #0d0d0f;
}
body.home-dark-header .header-second-row .header-main-menu li a {
    color: #fff;
}
body.home-dark-header .header-second-row .header-main-menu li a:hover {
    color: #7aa7ff;
}
body.home-dark-header .header-second-row .sc-dropdown-toggle {
    color: #fff !important;
}
body.home-dark-header header.header.with-slideshow {
    background: #0d0d0f;
}

/* ===== Row 1: thin top bar ===== */
#top {
    background: #f8f9fa;
    border-bottom: 1px solid #eceef1;
    min-height: 40px;
}
#top .top-socials {
    gap: 14px;
    margin-left: 20px;
}
#top .top-socials-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e3e5e9;
    color: #55575c;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#top .top-socials-item:hover {
    background: #0160fc;
    border-color: #0160fc;
    color: #fff;
}
#top .top-right-link {
    color: #55575c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
#top .top-right-link:hover {
    color: #0160fc;
}
#top .top-b2b-link {
    border: 1px solid #ff3a44;
    color: #ff3a44;
    padding: 5px 18px;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
#top .top-b2b-link:hover {
    background: #ff3a44;
    color: #fff;
}

/* ===== Row 2: logo + main horizontal menu ===== */
.header-main-menu {
    gap: 28px;
}
.header-main-menu li a {
    color: #292323;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.header-main-menu li a:hover {
    color: #0160fc;
}
/* keep logo and the phone/lang/currency block at their natural width so the
   flex-grow-1 menu in the middle can never squeeze them into a vertical wrap */
.header-second-row > .container-fluid {
    flex-wrap: nowrap;
}
.header-second-row .top-left,
.header-second-row .top-right {
    flex-shrink: 0;
}
.header-second-row .header-main-menu {
    min-width: 0;
    overflow: hidden;
}
.header-second-row .sc-dropdown-toggle {
    white-space: nowrap;
}

/* ===== Row 3 -> floating vertical action sidebar (desktop only) ===== */
@media (min-width: 992px) {
    .header .header-buttons {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 12200;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 0 2px rgba(40,41,61,.04), 0 4px 8px rgba(96,97,112,.16);
        border-radius: 8px 0 0 8px;
        padding: 4px 0;
        width: 64px;
    }
    .header .header-buttons > * {
        width: 100%;
        padding: 12px 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #f2f4f8;
    }
    .header .header-buttons > *:last-child {
        border-bottom: none;
    }
    .header .header-buttons .text-lowercase {
        display: none;
    }
    .header .header-search-box {
        position: relative;
    }
}

/* ===== Responsive tweaks ===== */
@media (max-width: 1199px) {
    .header-main-menu {
        gap: 16px;
    }
    .header-main-menu li a {
        font-size: 13px;
    }
}
@media (max-width: 991px) {
    #top .top-socials {
        margin-left: 12px;
    }
}
