.was-search-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.was-search-form {
    margin: 0;
    padding: 0;
}

.was-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    border: 2px solid #c8c8c8;
    padding: 4px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.was-search-input-container:focus-within {
    border-color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

#was-search-input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 12px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    color: #222;
    order: 2;
}

#was-search-input::placeholder {
    color: #9a9a9a;
}

#was-search-input::-webkit-search-cancel-button,
#was-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.was-search-icon {
    color: #222;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    order: 1;
}

.was-clear-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    padding: 0 10px;
    line-height: 1;
    order: 3;
}

/* When the user has typed: icon swaps to the right of the clear button */
.was-search-input-container.was-active .was-search-icon {
    order: 4;
    margin-left: 6px;
}

.was-search-input-container.was-active #was-search-input {
    order: 1;
    padding-left: 0;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

/* Dropdown */
.was-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    z-index: 9999;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 8px 0;
}

.was-results-dropdown::-webkit-scrollbar {
    width: 8px;
}
.was-results-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.was-results-dropdown::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 4px;
}
.was-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.was-message {
    padding: 24px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.was-section {
    padding: 14px 24px 4px;
}

.was-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 10px;
    margin-bottom: 6px;
}

/* Categories */
.was-cat-item {
    display: block;
    text-decoration: none;
    color: #222;
    padding: 10px 0;
}
.was-cat-item:hover {
    background: transparent;
}
.was-cat-item:hover .was-cat-name {
    text-decoration: underline;
}
.was-cat-name {
    font-size: 16px;
    color: #111;
    line-height: 1.3;
}
.was-cat-breadcrumb {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 3px;
}

/* Products */
.was-product-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #222;
    padding: 12px 0;
    border-bottom: 1px solid #f3f3f3;
}
.was-product-item:last-child {
    border-bottom: none;
}
.was-product-item:hover {
    background: #fafafa;
}

.was-product-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #eee;
    background: #fff;
    margin-right: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.was-product-info {
    flex: 1;
    padding-right: 16px;
    min-width: 0;
}

.was-product-title {
    font-size: 15px;
    color: #1d1d1d;
    line-height: 1.35;
}

.was-product-sku {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 3px;
    line-height: 1.3;
}

.was-product-price {
    text-align: right;
    font-size: 14px;
    color: #555;
    white-space: normal;
    line-height: 1.4;
    flex-shrink: 0;
}

.was-product-price del {
    color: #999;
    font-size: 12px;
    display: block;
}
.was-product-price ins {
    text-decoration: none;
    font-weight: 600;
}

/* Footer "View all" link */
.was-view-all {
    display: block;
    text-align: center;
    padding: 16px 24px;
    margin-top: 8px;
    border-top: 1px solid #ececec;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #444;
    text-decoration: none;
}
.was-view-all:hover {
    color: #000;
    background: #fafafa;
}

/* Highlighted match */
.was-cat-name strong,
.was-product-title strong,
.was-product-sku strong {
    font-weight: 700;
    color: #000;
}
