.site-header__center {
    position: relative;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.search-form.is-searching .search-field {
    border-color: var(--color-primary) !important; 
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1.5px solid #fff !important; 
}
.search-clear {
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.search-clear:hover {
    color: var(--color-primary);
}
.search-clear svg {
    width: 14px;
    height: 14px;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--color-primary); 
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none;
    max-height: 450px;
    overflow-y: auto;
    margin-top: -1.5px; 
    box-sizing: border-box;
}
.search-results.is-active {
    display: block;
}
.search-results__item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}
.search-results__item:last-child {
    border-bottom: none;
}
.search-results__item:hover {
    background: color-mix(in srgb, var(--color-primary), transparent 95%);
}
.search-results__item-img {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}
.search-results__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-results__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.search-results__item-title {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
}
.search-results__item-price {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-results__item-price ins {
    text-decoration: none;
}
.search-results__item-price del {
    color: #999;
    font-weight: 500;
    font-size: 11px;
    text-decoration: line-through;
}
.search-results__no-results {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
.search-results__loading {
    padding: 30px;
    text-align: center;
}
.search-results__spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 767px) {
    .site-header__center {
        z-index: 1001;
    }
    .search-results {
        position: absolute; 
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border: none !important; 
        border-radius: 0 !important; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 0;
    }
    .search-form.is-searching .search-field {
        border-radius: 0 !important;
        border-bottom: 1px solid #eee !important; 
    }
    .search-clear {
        right: 45px;
    }
    .search-results__item {
        padding: 15px 20px;
    }
}
