/* GadgetClash primary header */

.ts-site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    inset-inline: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    min-height: 51px;
    padding: 0;
    background: color-mix(in srgb, var(--ts-color-surface) 96%, transparent);
    border-bottom: 1px solid var(--ts-color-border);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #0b1020;
}

.ts-site-header,
.ts-site-header * {
    box-sizing: border-box;
}

body.admin-bar .ts-site-header {
    top: 32px;
}

.ts-header-categories {
    --ts-category-accent: var(--ts-color-primary);
    position: relative;
    z-index: 190;
    width: 100%;
    background: var(--ts-color-surface);
    border-bottom: 1px solid var(--ts-color-border);
}

.elementor-widget-techshowdown-category-menu,
.elementor-widget-techshowdown-category-menu > .elementor-widget-container {
    width: 100%;
    background: var(--ts-color-surface) !important;
}

.elementor-location-header .e-con:has(.ts-header-categories),
.elementor-location-header .e-con-inner:has(.ts-header-categories) {
    background: var(--ts-color-surface) !important;
}

.ts-header-categories__inner {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    gap: 4px;
    width: min(var(--ts-container), calc(100% - (var(--ts-page-gutter) * 2)));
    margin: 0 auto;
    padding: 11px 0 13px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-header-categories__inner::-webkit-scrollbar {
    display: none;
}

.ts-header-categories__item {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 76px;
    color: var(--ts-color-text-muted);
    font-size: var(--ts-text-xs);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.ts-header-categories__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ts-color-border);
    border-radius: 7px;
    color: var(--ts-category-accent);
    font-size: var(--ts-text-xs);
    font-weight: 900;
}

.ts-header-categories__icon i,
.ts-header-categories__icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ts-header-categories__icon svg.ts-category-icon {
    fill: none;
    stroke: currentColor;
}

.ts-header-categories__item:hover,
.ts-header-categories__item:focus-visible,
.ts-header-categories__item.is-active {
    color: var(--ts-category-accent);
}

.ts-header-categories__item.is-active .ts-header-categories__icon {
    background: #eaf2ff;
    border-color: #a9c8f3;
}

@media (max-width: 720px) {
    .elementor-location-header {
        max-width: 100%;
        overflow-x: clip;
    }

    .ts-header-categories__inner {
        grid-auto-columns: 88px;
        width: 100%;
        padding-inline: 12px;
        box-sizing: border-box;
        overscroll-behavior-inline: contain;
    }

    .elementor-location-header .elementor-widget-elementskit-header-search {
        min-width: 32px !important;
    }

    .elementor-location-header .ekit_navsearch-button {
        width: 32px !important;
        height: 32px !important;
        margin-inline: 0 !important;
    }

    /* Elementor's desktop header is also rendered on the home page. Keep its
       branding and search controls inside a phone viewport. */
    .elementor-location-header {
        overflow-x: hidden;
    }

    .elementor-location-header .elementor-widget-container {
        min-width: 0;
    }

    .elementor-location-header .elementor-widget-elementskit-header-search {
        display: none !important;
    }
}

.ts-site-header__inner {
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto minmax(360px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.ts-site-header__brand {
    display: inline-flex;
    align-items: center;
    min-height: 51px;
    padding: 0;
    color: #050711;
    font-family: var(--font-display, "Space Grotesk", Inter, system-ui, sans-serif);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.ts-site-header__brand:hover,
.ts-site-header__brand:focus-visible {
    color: #050711;
    background: transparent;
}

.ts-site-header__nav {
    display: flex;
    align-items: stretch;
    gap: 26px;
    min-width: 0;
    height: 51px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-site-header__nav::-webkit-scrollbar {
    display: none;
}

.ts-site-header__nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 51px;
    padding: 0;
    color: #1f2937;
    font-size: var(--ts-text-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.ts-site-header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #0b57d0;
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.ts-site-header__nav-link:hover,
.ts-site-header__nav-link:focus-visible,
.ts-site-header__nav-link.is-active {
    color: #0b57d0;
}

.ts-site-header__nav-link:hover::after,
.ts-site-header__nav-link:focus-visible::after,
.ts-site-header__nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.ts-site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.ts-site-header__search {
    display: block;
    width: clamp(260px, 24vw, 396px);
    margin: 0;
    padding: 0;
}

.ts-site-header__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ts-site-header__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    width: 15px;
    height: 15px;
    color: #111827;
    transform: translateY(-50%);
    pointer-events: none;
}

.ts-site-header__search-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 16px 0 42px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #edf1f6;
    color: #111827;
    font-size: var(--ts-text-sm);
    font-weight: 500;
    line-height: 38px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.ts-site-header__search-input::placeholder {
    color: #8b95a5;
}

.ts-site-header__search-input:focus {
    border-color: #8fb3ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
}

.ts-site-header__icon-btn,
.ts-site-header__signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.ts-site-header__icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    color: #111827;
    background: transparent;
}

.ts-site-header__icon-btn:hover,
.ts-site-header__icon-btn:focus-visible {
    background: #eef3fa;
}

.ts-site-header__signin {
    gap: 7px;
    min-height: 34px;
    padding: 0 20px;
    border: 1px solid #003aa7;
    border-radius: 9px;
    background: #0052cc;
    color: #ffffff;
    font-size: var(--ts-text-sm);
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ts-site-header__signin:hover,
.ts-site-header__signin:focus-visible {
    background: #0047b3;
    color: #ffffff;
}

@media (max-width: 960px) {
    .ts-site-header__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 18px;
        padding: 0 14px;
    }

    .ts-site-header__nav {
        order: 3;
        grid-column: 1 / -1;
        height: 40px;
        gap: 22px;
        border-top: 1px solid #eef2f6;
    }

    .ts-site-header__nav-link {
        min-height: 40px;
    }

    .ts-site-header__actions {
        gap: 10px;
    }

    .ts-site-header__search {
        width: min(42vw, 300px);
    }
}

@media (max-width: 640px) {
    .ts-site-header {
        min-height: 52px;
    }

    body.admin-bar .ts-site-header {
        top: 46px;
    }

    .ts-site-header__inner {
        min-height: 52px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .ts-site-header__brand {
        min-width: 0;
        font-size: 18px;
    }

    .ts-site-header__search,
    .ts-site-header__icon-btn {
        display: none;
    }

    .ts-site-header__signin {
        min-height: 32px;
        padding: 0 14px;
    }
}
