/* Storefront search in sticky header — scoped to .store-search* / .kids-navbar-* */

.kids-navbar > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.kids-navbar,
.kids-navbar > .container,
.kids-navbar-top,
.kids-navbar-search,
.kids-navbar-actions {
    overflow: visible;
}

.kids-navbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    width: 100%;
}

.kids-navbar-search {
    flex: 1 1 16rem;
    min-width: 0;
    position: relative;
    z-index: 1032;
}

.kids-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.kids-navbar-menu {
    width: 100%;
    justify-content: flex-start;
}

.kids-navbar-menu .navbar-nav {
    padding-top: 0.15rem;
    margin-inline-start: 0;
    margin-inline-end: auto;
    justify-content: flex-start;
}

.store-search {
    position: relative;
    width: 100%;
}

.store-search__form {
    margin: 0;
}

.store-search__field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid rgba(43, 42, 74, 0.1);
    border-radius: 999px;
    padding: 0.22rem 0.28rem 0.22rem 0.85rem;
    box-shadow: 0 4px 14px rgba(43, 42, 74, 0.06);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

[dir="rtl"] .store-search__field {
    padding: 0.22rem 0.85rem 0.22rem 0.28rem;
}

.store-search__field:focus-within {
    border-color: rgba(255, 138, 31, 0.5);
    box-shadow: 0 6px 18px rgba(255, 138, 31, 0.16);
}

.store-search__icon {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #FF8A1F;
    line-height: 1;
}

.store-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
    padding: 0.4rem 0.2rem;
}

.store-search__input::placeholder {
    color: #9aa0a6;
    font-weight: 500;
}

.store-search__spinner {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(255, 138, 31, 0.2);
    border-top-color: #FF8A1F;
    border-radius: 50%;
    animation: store-search-spin 0.7s linear infinite;
}

.store-search__spinner[hidden] {
    display: none;
}

.store-search__submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF8A1F 0%, #F06D00 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 0.95rem;
    min-height: 40px;
    cursor: pointer;
    transition: filter 0.18s ease;
}

.store-search__submit:hover,
.store-search__submit:focus-visible {
    filter: brightness(1.05);
}

.store-search__submit-label {
    display: none;
}

.store-search__dropdown {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.45rem);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(43, 42, 74, 0.16);
    border: 1px solid rgba(43, 42, 74, 0.06);
    overflow: hidden;
    z-index: 1035;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
}

.store-search__dropdown[hidden] {
    display: none;
}

.store-search__status,
.store-search__empty,
.store-search__error {
    padding: 1rem 1.15rem;
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0;
}

.store-search__error {
    color: #c0392b;
}

.store-search__heading {
    margin: 0;
    padding: 0.55rem 1rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #8a8f98;
}

.store-search__heading + .store-search__list {
    padding-top: 0.1rem;
}

.store-search__list + .store-search__heading {
    border-top: 1px solid rgba(43, 42, 74, 0.06);
    padding-top: 0.65rem;
    margin-top: 0.15rem;
}

.store-search__cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 138, 31, 0.12);
    color: #F06D00;
    font-size: 1.25rem;
}

.store-search__item-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.store-search__item-link:hover,
.store-search__item-link:focus-visible {
    background: rgba(255, 213, 79, 0.22);
    color: inherit;
}

.store-search__thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f3f5;
    flex-shrink: 0;
}

.store-search__meta {
    min-width: 0;
    flex: 1 1 auto;
}

.store-search__name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-search__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #FF8A1F;
}

.store-search__price-old {
    color: #9aa0a6;
    font-weight: 500;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.store-search__footer {
    border-top: 1px solid rgba(43, 42, 74, 0.06);
}

.store-search__more {
    display: block;
    padding: 0.8rem 1rem;
    text-align: center;
    font-weight: 700;
    color: #F06D00;
    text-decoration: none;
}

.store-search__more:hover,
.store-search__more:focus-visible {
    background: rgba(255, 138, 31, 0.08);
    color: #F06D00;
}

@keyframes store-search-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .store-search__submit-label {
        display: inline;
    }
}

@media (max-width: 991.98px) {
    .kids-navbar-search {
        flex: 1 1 100%;
        order: 3;
    }

    .kids-navbar-actions {
        order: 2;
        margin-inline-start: auto;
        gap: 0.35rem;
    }

    .kids-navbar-end {
        gap: 0.35rem;
    }

    .store-search__field {
        border-radius: 16px;
        padding: 0.28rem 0.28rem 0.28rem 0.7rem;
    }

    [dir="rtl"] .store-search__field {
        padding: 0.28rem 0.7rem 0.28rem 0.28rem;
    }

    .store-search__input {
        font-size: 0.92rem;
    }

    .store-search__submit {
        padding: 0.48rem 0.75rem;
        min-width: 40px;
        min-height: 40px;
    }
}
