.thuraya-header {
    --header-navy: #211e49;
    --header-accent: #ffb850;
    --header-text: #211e40;
    position: relative;
    z-index: 40;
    background: #fff;
    color: var(--header-text);
    box-shadow: 0 3px 18px #211e4914;
}

.thuraya-header .thuraya-header-top {
    background: #f6f5fb;
    border-bottom: 1px solid #ebe9f4;
    color: #514d6b;
    font-size: 12px;
}

.thuraya-header .thuraya-header-top-inner,
.thuraya-header .thuraya-header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.thuraya-header .thuraya-header-top-inner {
    justify-content: space-between;
    min-height: 35px;
    padding-block: 5px;
}

.thuraya-header .thuraya-header-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.thuraya-header .thuraya-header-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1.25fr) auto;
    align-items: center;
    gap: clamp(16px, 4vw, 50px);
    padding-block: 16px;
}

.thuraya-header .thuraya-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    width: fit-content;
    max-width: 100%;
}

.thuraya-header .thuraya-header-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.thuraya-header .thuraya-header-brand strong {
    display: block;
    font-size: clamp(16px, 1.55vw, 23px);
    line-height: 1.4;
}

.thuraya-header .thuraya-header-brand small {
    display: block;
    margin-top: 4px;
    color: #68572e;
    text-align: right;
    letter-spacing: .09em;
    font-size: 10px;
}

.thuraya-header .thuraya-header-search {
    display: flex;
    min-width: 0;
    margin: 0;
    background: #f6f5fa;
    border: 1px solid #e3e0ef;
    border-radius: 12px;
}

.thuraya-header .thuraya-header-search input {
    min-width: 0;
    width: 100%;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
}

.thuraya-header .thuraya-header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 13px;
    margin: 4px;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--header-navy);
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.thuraya-header .thuraya-header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
    min-height: 45px;
    padding: 7px 11px;
    border: 1px solid #e3e0ef;
    border-radius: 12px;
    background: #f6f5fa;
    color: var(--header-text);
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.thuraya-header .thuraya-header-cart > i,
.thuraya-header .thuraya-header-cart #cartCount {
    position: static;
    inset: auto;
}

.thuraya-header .thuraya-header-cart > i {
    display: inline-block;
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
    font-size: 16px;
}

.thuraya-header .thuraya-header-cart #cartCount {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding-inline: 4px;
    border-radius: 20px;
    background: var(--header-accent);
    color: var(--header-navy);
    font-size: 12px;
    font-weight: bold;
}

.thuraya-header .thuraya-header-nav {
    background: var(--header-navy);
    border-bottom: 2px solid var(--header-accent);
    color: #fff;
}

.thuraya-header .thuraya-header-nav-inner,
.thuraya-header .thuraya-header-links,
.thuraya-header .thuraya-header-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.thuraya-header .thuraya-header-nav-inner {
    min-height: 47px;
    gap: 16px;
}

.thuraya-header .thuraya-header-links {
    flex-shrink: 0;
}

.thuraya-header .thuraya-header-categories {
    overflow-x: auto;
    padding-block: 5px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid #ffffff40;
    scrollbar-width: thin;
}

.thuraya-header .thuraya-header-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 6px;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

.thuraya-header .thuraya-header-categories a {
    background: #ffffff12;
}

.thuraya-header .thuraya-header-nav a:hover {
    background: #ffffff23;
    color: var(--header-accent);
}

.thuraya-header .thuraya-header-cart:hover {
    border-color: #a09ac6;
}

.thuraya-header :is(a, button, input):focus-visible {
    outline: 2px solid #967036;
    outline-offset: 2px;
}

.thuraya-header .thuraya-header-nav a:focus-visible {
    outline-color: var(--header-accent);
    outline-offset: -2px;
}

@media (max-width: 760px) {
    .thuraya-header .thuraya-header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px 12px;
        padding-block: 10px;
    }

    .thuraya-header .thuraya-header-brand img {
        width: 48px;
        height: 48px;
    }

    .thuraya-header .thuraya-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .thuraya-header .thuraya-header-cart {
        grid-column: 2;
        grid-row: 1;
    }

    .thuraya-header .thuraya-header-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .thuraya-header .thuraya-header-links {
        min-height: 38px;
    }

    .thuraya-header .thuraya-header-categories {
        border-inline-start: 0;
        border-top: 1px solid #ffffff24;
        padding-inline-start: 0;
    }

    .thuraya-header .thuraya-header-contacts .thuraya-header-email {
        display: none;
    }
}

@media (max-width: 460px) {
    .thuraya-header .thuraya-header-top-inner {
        gap: 7px;
        font-size: 10px;
    }

    .thuraya-header .thuraya-header-top-inner > span {
        min-width: 0;
    }

    .thuraya-header .thuraya-header-contacts {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: end;
    }

    .thuraya-header .thuraya-header-cart-label,
    .thuraya-header .thuraya-header-brand small {
        display: none;
    }
}

@media (min-width: 761px) {
    .thuraya-header {
        position: sticky;
        top: 0;
    }
}
