.header-search-trigger {
    padding: 0;
    background: transparent;
    font: inherit;
}

.mobile-actions .mobile-search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: start;
}

.header-search-trigger:focus-visible,
.mobile-search-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.product-search-modal [hidden] {
    display: none !important;
}

.product-search-modal .modal-dialog {
    margin: 7vh auto;
    padding: 0 12px;
    max-width: 760px;
    height: auto;
}

.product-search-modal .modal-content {
    max-height: 84vh;
    max-height: 84dvh;
    border: 1px solid #dce5de;
    border-radius: 20px;
    box-shadow: 0 24px 80px #082f1d26;
    overflow: hidden;
    background: #fff;
}

.product-search-modal .btn-close {
    flex-shrink: 0;
    margin: 2px 0 0 12px;
    padding: 8px;
}

.product-search-input-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #edf1ed;
    background: #fff;
}

.product-search-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #cbd9ce;
    border-radius: 12px;
    background: #fff;
}

.product-search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #14342512;
}

.product-search-input-wrap>svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--primary);
}

.product-search-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #21372b;
    font: inherit;
    font-size: 16px;
    box-shadow: none;
}

.product-search-input-wrap input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.product-search-clear {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2ee;
    color: #52665a;
    font-size: 23px;
    line-height: 1;
}

.product-search-modal .modal-body {
    padding: 12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9db5a5 transparent;
}

.product-search-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 12px;
}

.product-search-feedback p {
    margin: 0;
    color: #6b756e;
    font-size: 13px;
    line-height: 1.6;
}

.product-search-retry {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-search-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #dce5de;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: product-search-spin .7s linear infinite;
}

@keyframes product-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-search-results {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-search-result {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #21372b;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}

.product-search-result:hover,
.product-search-result.is-active,
.product-search-result:focus-visible {
    border-color: #dce5de;
    outline: none;
    background: #f1f5f2;
    color: var(--primary);
}

.product-search-result img {
    width: 64px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid #e7ece8;
    border-radius: 9px;
    background: #f7f7f3;
    object-fit: cover;
}

.product-search-result-copy {
    flex: 1;
    min-width: 0;
}

.product-search-result-category {
    display: block;
    margin-bottom: 3px;
    color: #7b827c;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.product-search-result-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-search-result-descriptor {
    display: block;
    margin-top: 4px;
    color: #6b756e;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-search-coming {
    align-self: center;
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 20px;
    background: #f8edda;
    color: #80612d;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .product-search-modal .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
    }

    .product-search-modal .modal-content {
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .product-search-input-area {
        gap: 12px;
        padding: max(16px, env(safe-area-inset-top)) 16px 16px;
    }

    .product-search-modal .modal-body {
        padding: 12px;
    }

    .product-search-result {
        flex-wrap: wrap;
        gap: 12px;
    }

    .product-search-result img {
        width: 54px;
        height: 64px;
    }

    .product-search-result-title {
        font-size: 14px;
    }

    .product-search-coming {
        margin-left: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-search-result {
        transition: none;
    }

    .product-search-spinner {
        animation: none;
    }
}