.grlca-search-wrapper,
.grlca-search-shortcode {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.grlca-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.grlca-search-suggestions-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.grlca-search-item {
    border-bottom: 1px solid #f0f0f0;
}

.grlca-search-item:last-child {
    border-bottom: none;
}

.grlca-search-item a {
    display: flex;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.grlca-search-item a:hover,
.grlca-search-item.active a {
    background-color: #f8f9fa;
}

.grlca-search-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
}

.grlca-search-product-info {
    flex: 1;
    min-width: 0;
}

.grlca-search-product-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grlca-search-product-price {
    color: #007cba;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.grlca-search-product-sku {
    color: #666;
    font-size: 0.8em;
}

.grlca-search-category-info {
    flex: 1;
}

.grlca-search-category-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.grlca-search-category-count {
    color: #666;
    font-size: 0.9em;
}

.grlca-search-loading,
.grlca-search-no-results,
.grlca-search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.grlca-search-loading {
    color: #007cba;
}

.grlca-search-error {
    color: #dc3232;
}

.grlca-search-wrapper form,
.grlca-search-shortcode form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.grlca-search-wrapper input[type="search"],
.grlca-search-shortcode input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.grlca-search-wrapper input[type="search"]:focus,
.grlca-search-shortcode input[type="search"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.grlca-search-wrapper input[type="search"]::placeholder,
.grlca-search-shortcode input[type="search"]::placeholder {
    color: #666;
    font-size: 16px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .grlca-search-wrapper,
    .grlca-search-shortcode {
        max-width: 100%;
    }
    
    .grlca-search-suggestions {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 50vh;
        border-radius: 8px 8px 0 0;
    }
    
    .grlca-search-wrapper input[type="search"],
    .grlca-search-shortcode input[type="search"] {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .grlca-search-product-image {
        width: 40px;
        height: 40px;
    }
    
    .grlca-search-item a {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .grlca-search-wrapper input[type="search"],
    .grlca-search-shortcode input[type="search"] {
        padding: 14px 16px;
        font-size: 16px;
    }
}