/* =========================================
   HEADER SEARCH (all storefront pages)
========================================= */

body.search-open {
    overflow: hidden;
}

.site-search {
    position: fixed;
    inset: 0;
    z-index: 1060;
}

.site-search[hidden] {
    display: none;
}

.site-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .55);
    backdrop-filter: blur(3px);
    animation: siteSearchFade .2s ease;
}

.site-search-panel {
    position: relative;
    width: min(760px, calc(100% - 32px));
    margin: 90px auto 0;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    border-top: 3px solid #db5c07;
    animation: siteSearchDrop .25s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes siteSearchFade {
    from { opacity: 0; }
}

@keyframes siteSearchDrop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 22px;
    border-bottom: 1px solid #f0f0f0;
}

.site-search-form > i {
    color: #db5c07;
    font-size: 18px;
}

.site-search.is-loading .site-search-form > i {
    animation: siteSearchPulse .8s ease-in-out infinite;
}

@keyframes siteSearchPulse {
    50% { opacity: .3; }
}

.site-search-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111111;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
}

.site-search-form input::placeholder {
    color: #aaaaaa;
}

.site-search-form input::-webkit-search-cancel-button {
    display: none;
}

.site-search-submit {
    height: 44px;
    padding: 0 22px;
    border: 0;
    background: #db5c07;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
}

.site-search-submit:hover {
    background: #b94c04;
}

.site-search-close {
    width: 44px;
    height: 44px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    color: #777777;
    cursor: pointer;
    transition: all .2s ease;
}

.site-search-close:hover {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.site-search-body {
    max-height: min(60vh, 520px);
    overflow-y: auto;
}

.site-search-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: #888888;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

.site-search-hint[hidden] {
    display: none;
}

.site-search-hint b {
    color: #333333;
}

.site-search-hint kbd {
    padding: 2px 7px;
    border: 1px solid #dddddd;
    background: #fafafa;
    color: #777777;
    font-family: inherit;
    font-size: 11px;
    white-space: nowrap;
}

.site-search-results {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.site-search-results:empty {
    display: none;
}

.site-search-results a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    color: inherit;
    font-family: "Poppins", sans-serif;
    transition: background .15s ease;
}

.site-search-results a:hover,
.site-search-results a.active {
    background: #fff5ee;
}

.site-search-results a.active {
    box-shadow: inset 3px 0 0 #db5c07;
}

.site-search-results img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid #eeeeee;
    object-fit: cover;
    background: #f5f5f5;
}

.ss-text {
    flex: 1;
    min-width: 0;
}

.ss-text strong {
    display: block;
    overflow: hidden;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-text small {
    color: #888888;
    font-size: 12px;
}

.ss-model {
    padding: 1px 6px;
    background: #f3efec;
    color: #444444;
    font-weight: 500;
    letter-spacing: .3px;
}

.site-search-results mark {
    padding: 0;
    background: #ffe3cf;
    color: inherit;
}

.ss-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #db5c07;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ss-price del {
    color: #aaaaaa;
    font-size: 11px;
    font-weight: 400;
}

.ss-price em {
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
}

.ss-price em.in {
    color: #2e8b57;
}

.ss-price em.out {
    color: #d93025;
}

.site-search-empty {
    padding: 22px;
    color: #777777;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    text-align: center;
}

.site-search-empty i {
    margin-right: 6px;
    color: #db5c07;
}

.site-search-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    color: #db5c07;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.site-search-all[hidden] {
    display: none;
}

.site-search-all:hover {
    background: #fff5ee;
    color: #b94c04;
}

@media (max-width: 575px) {
    .site-search-panel {
        width: 100%;
        margin-top: 0;
    }

    .site-search-form {
        padding: 10px 10px 10px 14px;
        gap: 8px;
    }

    .site-search-form input {
        font-size: 15px;
    }

    .site-search-submit {
        display: none;
    }

    .site-search-hint kbd {
        display: none;
    }

    .site-search-results a {
        padding: 10px 14px;
    }

    .site-search-body {
        max-height: calc(100vh - 80px);
    }
}


/* ---------- Products page: "N results for …" line ---------- */

.product-search-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -10px 0 24px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

.product-search-summary[hidden] {
    display: none;
}

.product-search-summary strong,
.product-search-summary b {
    color: #ffffff;
}

.product-search-summary button {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.product-search-summary button:hover {
    border-color: #db5c07;
    background: #db5c07;
}

/* Matches inside the model tag need stronger contrast than the tag background. */
.ss-model mark {
    background: #db5c07;
    color: #ffffff;
}
