.pro-product-search {
position: relative;
width: 100%;
font-family: inherit;
} .pro-search-field-wrap {
position: relative;
display: flex;
align-items: center;
}
.pro-product-search-input {
width: 100%;
height: 64px;
padding: 0 58px 0 52px;
border: 1px solid #e3e3e3;
border-radius: 12px;
background: #fff;
color: #111;
font-size: 17px;
line-height: 1;
outline: none;
transition:
border-color .2s ease,
box-shadow .2s ease;
}
.pro-product-search-input::placeholder {
color: #999;
}
.pro-product-search-input:focus {
border-color: #aaa;
box-shadow:
0 0 0 3px rgba(0, 0, 0, .035);
} .pro-search-icon {
position: absolute;
left: 18px;
width: 21px;
height: 21px;
color: #666;
pointer-events: none;
} .pro-search-clear {
position: absolute;
right: 18px;
display: none;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 0;
border-radius: 50%;
background: #f2f2f2;
color: #555;
font-size: 22px;
line-height: 1;
cursor: pointer;
}
.pro-search-clear.is-visible {
display: flex;
}
.pro-search-clear:hover {
background: #e5e5e5;
} .pro-search-spinner {
position: absolute;
right: 20px;
display: none;
width: 19px;
height: 19px;
border: 2px solid #ddd;
border-top-color: #333;
border-radius: 50%;
animation: pro-search-spin .7s linear infinite;
}
.pro-search-spinner.is-visible {
display: block;
}
.pro-product-search.is-loading
.pro-search-clear {
display: none;
}
@keyframes pro-search-spin {
to {
transform: rotate(360deg);
}
} .pro-search-dropdown {
display: none;
margin-top: 12px;
background: #fff;
border: 1px solid #eee;
border-radius: 12px;
overflow: hidden;
box-shadow:
0 12px 35px rgba(0, 0, 0, .08);
}
.pro-search-dropdown.is-open {
display: block;
} .pro-search-item {
position: relative;
display: grid;
grid-template-columns: 72px 1fr auto;
align-items: center;
gap: 16px;
min-height: 96px;
padding: 12px 18px;
border-bottom: 1px solid #f0f0f0;
color: inherit;
text-decoration: none;
transition: background .15s ease;
}
.pro-search-item:last-child {
border-bottom: 0;
}
.pro-search-item:hover,
.pro-search-item.is-active {
background: #f8f8f8;
} .pro-search-item-image {
width: 72px;
height: 72px;
overflow: hidden;
border-radius: 8px;
background: #f5f5f5;
}
.pro-search-item-image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
} .pro-search-item-info {
min-width: 0;
}
.pro-search-item-title {
margin-bottom: 7px;
color: #111;
font-size: 15px;
font-weight: 600;
line-height: 1.35;
}
.pro-search-item-meta {
display: flex;
flex-wrap: wrap;
gap: 6px 12px;
color: #888;
font-size: 12px;
line-height: 1.3;
}
.pro-search-sku {
color: #999;
} .pro-search-item-price {
white-space: nowrap;
padding-left: 12px;
color: #111;
font-size: 14px;
font-weight: 600;
}
.pro-search-item-price del {
margin-right: 4px;
color: #aaa;
font-size: 12px;
}
.pro-search-item-price ins {
text-decoration: none;
} .pro-search-item mark {
padding: 0;
background: transparent;
color: inherit;
font-weight: 800;
} .pro-search-empty {
padding: 30px 20px;
color: #888;
font-size: 14px;
text-align: center;
} .pro-search-all {
display: flex;
align-items: center;
justify-content: space-between;
padding: 17px 20px;
border-top: 1px solid #eee;
background: #fafafa;
color: #111;
font-size: 14px;
font-weight: 600;
text-decoration: none;
transition: background .15s ease;
}
.pro-search-all:hover {
background: #f2f2f2;
} @media (max-width: 767px) {
.pro-product-search-input {
height: 58px;
font-size: 16px;
}
.pro-search-item {
grid-template-columns: 58px 1fr;
gap: 12px;
padding: 11px;
}
.pro-search-item-image {
width: 58px;
height: 58px;
}
.pro-search-item-price {
grid-column: 2;
padding-left: 0;
margin-top: -7px;
font-size: 13px;
}
}