/* Shared catalog search in the public header. Delivered inside AMP's amp-custom block. */
.header-product-search {
    flex: 0 1 290px;
    min-width: 190px;
}

.header-product-search-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.25rem 0.3rem 0.25rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-product-search-form:focus-within {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.header-product-search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
}

.header-product-search-form input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.header-product-search-submit {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
}

.header-product-search-submit:hover {
    background: var(--button-color, #111827);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html[dir="rtl"] .header-product-search-form {
    padding: 0.25rem 0.85rem 0.25rem 0.3rem;
}

html[dir="rtl"] .header-product-search-form input {
    direction: rtl;
    text-align: right;
}

@media (max-width: 900px) {
    .header-content {
        gap: 0.75rem;
    }

    .header-product-search {
        flex-basis: 230px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-product-search {
        order: 3;
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
    }
}