/* Globalny, wyśrodkowany pasek wyszukiwania produktów WooCommerce w nagłówku. */
#top-header {
    overflow: visible;
}

#menu-toggle,
#site-logo,
#header-right {
    position: relative;
    z-index: 3;
}

#site-logo,
#header-right {
    flex-shrink: 0;
}

.yaroo-product-search-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: clamp(280px, 34vw, 560px);
    max-width: calc(100vw - 620px);
    min-width: 230px;
    margin: 0;
    transform: translate(-50%, -50%);
}

.yaroo-product-search {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 14px;
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.yaroo-product-search:hover,
.yaroo-product-search:focus-within {
    border-color: rgba(255,122,0,0.62);
    background: rgba(255,255,255,0.065);
    box-shadow: 0 0 0 4px rgba(255,122,0,0.09), 0 10px 28px rgba(0,0,0,0.22);
}

.yaroo-product-search .search-field {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 0.95rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    line-height: 1 !important;
    -webkit-appearance: none;
    appearance: none;
}

.yaroo-product-search .search-field::placeholder {
    color: rgba(255,255,255,0.48);
    opacity: 1;
}

.yaroo-product-search .search-field::-webkit-search-cancel-button {
    cursor: pointer;
    filter: invert(1);
    opacity: 0.55;
}

.yaroo-product-search__submit {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    outline: 0;
    background: linear-gradient(135deg, #ff7a00, #ff9a3d) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.yaroo-product-search__submit:hover,
.yaroo-product-search__submit:focus-visible {
    transform: scale(1.04);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(255,122,0,0.28) !important;
}

.yaroo-product-search__submit svg,
.yaroo-search-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yaroo-search-toggle {
    display: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.yaroo-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1280px) {
    .yaroo-product-search-wrap {
        width: clamp(250px, 28vw, 420px);
        max-width: calc(100vw - 560px);
    }
}

@media (max-width: 1080px) {
    .yaroo-product-search-wrap {
        width: 300px;
        max-width: 300px;
    }

    #header-right {
        gap: 0.95rem;
    }

    #header-links {
        gap: 0.75rem;
    }
}

@media (max-width: 920px) {
    .yaroo-product-search-wrap {
        width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 760px) {
    .yaroo-search-toggle {
        display: inline-flex;
    }

    .yaroo-product-search-wrap {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        z-index: 1110;
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        background: rgba(11,11,13,0.97);
        box-shadow: 0 18px 42px rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }

    .yaroo-product-search-wrap.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    #site-logo {
        margin-right: auto;
    }

    #header-right {
        margin-left: 0;
        gap: 0.35rem;
    }

    #header-icons {
        gap: 0.4rem;
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    #top-header {
        gap: 0.55rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #menu-toggle {
        width: 42px;
        height: 42px;
    }

    .header-icon-link {
        width: 38px;
        height: 38px;
    }

    #site-logo img {
        max-width: 112px;
    }
}
